|
|
|
|
|
CREATE SCHEMA IF NOT EXISTS "bird__bike_share_1"; |
|
|
|
|
|
|
|
|
CREATE TABLE "bird__bike_share_1"."station" ( |
|
|
"id" BIGINT NOT NULL, |
|
|
"name" TEXT, |
|
|
"lat" DOUBLE PRECISION, |
|
|
"long" DOUBLE PRECISION, |
|
|
"dock_count" BIGINT, |
|
|
"city" TEXT, |
|
|
"installation_date" TEXT, |
|
|
CONSTRAINT "station_pkey" PRIMARY KEY ("id") |
|
|
); |
|
|
|
|
|
|
|
|
CREATE TABLE "bird__bike_share_1"."status" ( |
|
|
"station_id" BIGINT, |
|
|
"bikes_available" BIGINT, |
|
|
"docks_available" BIGINT, |
|
|
"time" TEXT |
|
|
); |
|
|
|
|
|
|
|
|
CREATE TABLE "bird__bike_share_1"."trip" ( |
|
|
"id" BIGINT NOT NULL, |
|
|
"duration" BIGINT, |
|
|
"start_date" TEXT, |
|
|
"start_station_name" TEXT, |
|
|
"start_station_id" BIGINT, |
|
|
"end_date" TEXT, |
|
|
"end_station_name" TEXT, |
|
|
"end_station_id" BIGINT, |
|
|
"bike_id" BIGINT, |
|
|
"subscription_type" TEXT, |
|
|
"zip_code" BIGINT, |
|
|
CONSTRAINT "trip_pkey" PRIMARY KEY ("id") |
|
|
); |
|
|
|
|
|
|
|
|
CREATE TABLE "bird__bike_share_1"."weather" ( |
|
|
"date" TEXT, |
|
|
"max_temperature_f" BIGINT, |
|
|
"mean_temperature_f" BIGINT, |
|
|
"min_temperature_f" BIGINT, |
|
|
"max_dew_point_f" BIGINT, |
|
|
"mean_dew_point_f" BIGINT, |
|
|
"min_dew_point_f" BIGINT, |
|
|
"max_humidity" BIGINT, |
|
|
"mean_humidity" BIGINT, |
|
|
"min_humidity" BIGINT, |
|
|
"max_sea_level_pressure_inches" DOUBLE PRECISION, |
|
|
"mean_sea_level_pressure_inches" DOUBLE PRECISION, |
|
|
"min_sea_level_pressure_inches" DOUBLE PRECISION, |
|
|
"max_visibility_miles" BIGINT, |
|
|
"mean_visibility_miles" BIGINT, |
|
|
"min_visibility_miles" BIGINT, |
|
|
"max_wind_Speed_mph" BIGINT, |
|
|
"mean_wind_speed_mph" BIGINT, |
|
|
"max_gust_speed_mph" BIGINT, |
|
|
"precipitation_inches" TEXT, |
|
|
"cloud_cover" BIGINT, |
|
|
"events" TEXT, |
|
|
"wind_dir_degrees" BIGINT, |
|
|
"zip_code" TEXT |
|
|
); |
|
|
|