-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate.sql
More file actions
106 lines (95 loc) · 1.8 KB
/
create.sql
File metadata and controls
106 lines (95 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
create table agency
(
agency_id char(50),
agency_name char(50),
agency_url char(50),
agency_timezone char(50),
agency_phone char(50),
agency_lang char(50)
);
create table calendar
(
service_id char(50),
monday char(50),
tuesday char(50),
wednesday char(50),
thursday char(50),
friday char(50),
saturday char(50),
sunday char(50),
start_date char(50),
end_date char(50)
);
create table calendar_dates
(
service_id char(50),
date char(50),
exception_type char(50)
);
create table fare_attributes
(
fare_id char(50),
price float,
currency_type char(50),
payment_method char(50),
transfers char(50),
transfer_duration char(50)
);
create table fare_rules
(
fare_id char(50),
route_id char(50),
origin_id char(50),
destination_id char(50),
contains_id char(50)
);
create table routes
(
route_id char(50),
route_short_name char(50),
route_long_name char(50),
route_desc char(50),
route_type int,
route_url char(50),
route_color char(50),
route_text_color char(50)
);
create table shapes
(
shape_id char(50),
shape_pt_lat char(20),
shape_pt_lon char(20),
shape_pt_sequence int,
shape_dist_traveled char(50)
);
create table stop_times
(
trip_id char(50),
arrival_time char(50),
departure_time char(50),
stop_id char(50),
stop_sequence int,
pickup_type char(50),
drop_off_type char(50),
shape_dist_traveled char(50)
);
create table stops
(
stop_id char(50),
stop_name char(50),
stop_desc char(100),
stop_lat char(20),
stop_lon char(20),
zone_id char(20),
stop_url char(50)
);
create table trips
(
trip_id char(50),
route_id char(50),
service_id char(50),
trip_headsign char(50),
direction_id char(50),
block_id char(50),
shape_id char(50)
);