ninoxe 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.rdoc +3 -0
  3. data/Rakefile +49 -0
  4. data/app/assets/javascripts/ninoxe/application.js +15 -0
  5. data/app/assets/stylesheets/ninoxe/application.css +13 -0
  6. data/app/controllers/ninoxe/application_controller.rb +4 -0
  7. data/app/helpers/ninoxe/application_helper.rb +4 -0
  8. data/app/models/chouette/access_link.rb +63 -0
  9. data/app/models/chouette/access_point.rb +145 -0
  10. data/app/models/chouette/access_point_type.rb +50 -0
  11. data/app/models/chouette/active_record.rb +66 -0
  12. data/app/models/chouette/area_type.rb +56 -0
  13. data/app/models/chouette/chouette_structure.dump +3417 -0
  14. data/app/models/chouette/command.rb +93 -0
  15. data/app/models/chouette/command_line_support.rb +35 -0
  16. data/app/models/chouette/company.rb +19 -0
  17. data/app/models/chouette/connection_link.rb +43 -0
  18. data/app/models/chouette/connection_link_type.rb +51 -0
  19. data/app/models/chouette/direction.rb +60 -0
  20. data/app/models/chouette/exporter.rb +32 -0
  21. data/app/models/chouette/file_validator.rb +47 -0
  22. data/app/models/chouette/group_of_line.rb +30 -0
  23. data/app/models/chouette/journey_pattern.rb +63 -0
  24. data/app/models/chouette/line.rb +65 -0
  25. data/app/models/chouette/link_orientation_type.rb +49 -0
  26. data/app/models/chouette/loader.rb +110 -0
  27. data/app/models/chouette/network.rb +33 -0
  28. data/app/models/chouette/object_id.rb +36 -0
  29. data/app/models/chouette/pt_link.rb +39 -0
  30. data/app/models/chouette/route.rb +158 -0
  31. data/app/models/chouette/stop_area.rb +273 -0
  32. data/app/models/chouette/stop_point.rb +33 -0
  33. data/app/models/chouette/time_table.rb +146 -0
  34. data/app/models/chouette/time_table_date.rb +14 -0
  35. data/app/models/chouette/time_table_period.rb +26 -0
  36. data/app/models/chouette/time_table_vehicle_journey.rb +5 -0
  37. data/app/models/chouette/transport_mode.rb +71 -0
  38. data/app/models/chouette/trident_active_record.rb +97 -0
  39. data/app/models/chouette/vehicle_journey.rb +101 -0
  40. data/app/models/chouette/vehicle_journey_at_stop.rb +45 -0
  41. data/app/models/chouette/wayback.rb +50 -0
  42. data/app/views/layouts/ninoxe/application.html.erb +14 -0
  43. data/config/database.yml +9 -0
  44. data/config/database.yml.ci +14 -0
  45. data/config/database.yml.travis +9 -0
  46. data/config/locales/en.yml +15 -0
  47. data/config/locales/fr.yml +16 -0
  48. data/config/routes.rb +2 -0
  49. data/db/migrate/20120213131553_create_chouette_line.rb +26 -0
  50. data/db/migrate/20120214101458_create_chouette_company.rb +25 -0
  51. data/db/migrate/20120214101645_create_chouette_ptnetwork.rb +24 -0
  52. data/db/migrate/20120406144221_create_chouette_stop_area.rb +33 -0
  53. data/db/migrate/20120411144209_create_time_table.rb +38 -0
  54. data/db/migrate/20120425064403_create_chouette_route.rb +22 -0
  55. data/db/migrate/20120425123944_create_chouette_stop_point.rb +17 -0
  56. data/db/migrate/20120426114527_create_chouette_connection_link.rb +28 -0
  57. data/db/migrate/20120521073709_create_chouette_journey_pattern.rb +26 -0
  58. data/db/migrate/20120521073723_create_chouette_journey_pattern_stop_point.rb +14 -0
  59. data/db/migrate/20120521073740_create_chouette_time_slot.rb +22 -0
  60. data/db/migrate/20120521073746_create_chouette_vehicle_journey.rb +34 -0
  61. data/db/migrate/20120521073758_create_chouette_vehicle_journey_at_stop.rb +25 -0
  62. data/db/migrate/20120521073900_create_chouette_time_table_vehicle_journey.rb +16 -0
  63. data/db/migrate/20120521132304_create_chouette_access_point.rb +34 -0
  64. data/db/migrate/20120521132313_create_chouette_access_link.rb +33 -0
  65. data/db/migrate/20120521132429_create_chouette_facility.rb +34 -0
  66. data/db/migrate/20120521132502_create_chouette_facility_feature.rb +12 -0
  67. data/db/migrate/20120521132551_create_chouette_group_of_line.rb +18 -0
  68. data/db/migrate/20120521132600_create_chouette_group_of_line_line.rb +12 -0
  69. data/db/migrate/20120521132656_create_chouette_routing_constrains_line.rb +12 -0
  70. data/db/migrate/20120521132724_create_chouette_stoparea_stoparea.rb +12 -0
  71. data/db/migrate/20120531091529_create_chouette_pt_link.rb +21 -0
  72. data/db/migrate/20120926141405_add_id_to_time_table_date.rb +12 -0
  73. data/db/migrate/20120926141415_add_id_to_time_table_period.rb +12 -0
  74. data/db/migrate/20121024072219_add_fields_to_access_points.rb +12 -0
  75. data/lib/chouette_factories.rb +1 -0
  76. data/lib/factories/chouette_access_links.rb +11 -0
  77. data/lib/factories/chouette_access_points.rb +8 -0
  78. data/lib/factories/chouette_companies.rb +5 -0
  79. data/lib/factories/chouette_connection_links.rb +11 -0
  80. data/lib/factories/chouette_group_of_lines.rb +4 -0
  81. data/lib/factories/chouette_journey_pattern.rb +32 -0
  82. data/lib/factories/chouette_lines.rb +20 -0
  83. data/lib/factories/chouette_networks.rb +5 -0
  84. data/lib/factories/chouette_routes.rb +18 -0
  85. data/lib/factories/chouette_stop_areas.rb +8 -0
  86. data/lib/factories/chouette_stop_points.rb +7 -0
  87. data/lib/factories/chouette_time_table.rb +21 -0
  88. data/lib/factories/chouette_vehicle_journey.rb +50 -0
  89. data/lib/factories/chouette_vehicle_journey_at_stop.rb +5 -0
  90. data/lib/ninoxe/engine.rb +15 -0
  91. data/lib/ninoxe/version.rb +3 -0
  92. data/lib/ninoxe.rb +7 -0
  93. metadata +251 -0
@@ -0,0 +1,3417 @@
1
+ --
2
+ -- PostgreSQL database dump
3
+ --
4
+
5
+ SET statement_timeout = 0;
6
+ SET client_encoding = 'UTF8';
7
+ SET standard_conforming_strings = off;
8
+ SET check_function_bodies = false;
9
+ SET client_min_messages = warning;
10
+ SET escape_string_warning = off;
11
+
12
+ --
13
+ -- Name: grenoble2; Type: SCHEMA; Schema: -; Owner: -
14
+ --
15
+
16
+ CREATE SCHEMA grenoble2;
17
+
18
+
19
+ SET search_path = grenoble2, pg_catalog;
20
+
21
+ SET default_tablespace = '';
22
+
23
+ SET default_with_oids = false;
24
+
25
+ --
26
+ -- Name: access_links; Type: TABLE; Schema: grenoble2; Owner: -; Tablespace:
27
+ --
28
+
29
+ CREATE TABLE access_links (
30
+ id bigint NOT NULL,
31
+ objectid character varying(255) NOT NULL,
32
+ object_version integer DEFAULT 1,
33
+ creation_time timestamp without time zone,
34
+ creator_id character varying(255),
35
+ name character varying(255),
36
+ comment character varying(255),
37
+ link_distance numeric(19,2),
38
+ lift_availability boolean,
39
+ mobility_restricted_suitability boolean,
40
+ stairs_availability boolean,
41
+ default_duration time without time zone,
42
+ frequent_traveller_duration time without time zone,
43
+ occasional_traveller_duration time without time zone,
44
+ mobility_restricted_traveller_duration time without time zone,
45
+ link_type character varying(255),
46
+ int_user_needs integer,
47
+ link_orientation character varying(255),
48
+ access_point_id bigint,
49
+ stop_area_id bigint
50
+ );
51
+
52
+
53
+ --
54
+ -- Name: TABLE access_links; Type: COMMENT; Schema: grenoble2; Owner: -
55
+ --
56
+
57
+ COMMENT ON TABLE access_links IS 'Access Link';
58
+
59
+
60
+ --
61
+ -- Name: COLUMN access_links.id; Type: COMMENT; Schema: grenoble2; Owner: -
62
+ --
63
+
64
+ COMMENT ON COLUMN access_links.id IS 'Internal identification';
65
+
66
+
67
+ --
68
+ -- Name: COLUMN access_links.objectid; Type: COMMENT; Schema: grenoble2; Owner: -
69
+ --
70
+
71
+ COMMENT ON COLUMN access_links.objectid IS 'Neptune identification';
72
+
73
+
74
+ --
75
+ -- Name: COLUMN access_links.object_version; Type: COMMENT; Schema: grenoble2; Owner: -
76
+ --
77
+
78
+ COMMENT ON COLUMN access_links.object_version IS 'Version of this object';
79
+
80
+
81
+ --
82
+ -- Name: COLUMN access_links.creation_time; Type: COMMENT; Schema: grenoble2; Owner: -
83
+ --
84
+
85
+ COMMENT ON COLUMN access_links.creation_time IS 'Creation date and time';
86
+
87
+
88
+ --
89
+ -- Name: COLUMN access_links.creator_id; Type: COMMENT; Schema: grenoble2; Owner: -
90
+ --
91
+
92
+ COMMENT ON COLUMN access_links.creator_id IS 'Creator identification';
93
+
94
+
95
+ --
96
+ -- Name: COLUMN access_links.name; Type: COMMENT; Schema: grenoble2; Owner: -
97
+ --
98
+
99
+ COMMENT ON COLUMN access_links.name IS 'Name';
100
+
101
+
102
+ --
103
+ -- Name: COLUMN access_links.comment; Type: COMMENT; Schema: grenoble2; Owner: -
104
+ --
105
+
106
+ COMMENT ON COLUMN access_links.comment IS 'Comment';
107
+
108
+
109
+ --
110
+ -- Name: COLUMN access_links.link_distance; Type: COMMENT; Schema: grenoble2; Owner: -
111
+ --
112
+
113
+ COMMENT ON COLUMN access_links.link_distance IS 'Distance between AccesPoint and StopArea';
114
+
115
+
116
+ --
117
+ -- Name: COLUMN access_links.lift_availability; Type: COMMENT; Schema: grenoble2; Owner: -
118
+ --
119
+
120
+ COMMENT ON COLUMN access_links.lift_availability IS 'Indicate if a lift is available';
121
+
122
+
123
+ --
124
+ -- Name: COLUMN access_links.mobility_restricted_suitability; Type: COMMENT; Schema: grenoble2; Owner: -
125
+ --
126
+
127
+ COMMENT ON COLUMN access_links.mobility_restricted_suitability IS 'Indicate if the link is suitable for mobility restricted persons';
128
+
129
+
130
+ --
131
+ -- Name: COLUMN access_links.stairs_availability; Type: COMMENT; Schema: grenoble2; Owner: -
132
+ --
133
+
134
+ COMMENT ON COLUMN access_links.stairs_availability IS 'Indicate if stairs are available';
135
+
136
+
137
+ --
138
+ -- Name: COLUMN access_links.default_duration; Type: COMMENT; Schema: grenoble2; Owner: -
139
+ --
140
+
141
+ COMMENT ON COLUMN access_links.default_duration IS 'Default duration to cross this link';
142
+
143
+
144
+ --
145
+ -- Name: COLUMN access_links.frequent_traveller_duration; Type: COMMENT; Schema: grenoble2; Owner: -
146
+ --
147
+
148
+ COMMENT ON COLUMN access_links.frequent_traveller_duration IS 'Duration of travel for frequent travellers';
149
+
150
+
151
+ --
152
+ -- Name: COLUMN access_links.occasional_traveller_duration; Type: COMMENT; Schema: grenoble2; Owner: -
153
+ --
154
+
155
+ COMMENT ON COLUMN access_links.occasional_traveller_duration IS 'Duration of travel for occasional travellers';
156
+
157
+
158
+ --
159
+ -- Name: COLUMN access_links.mobility_restricted_traveller_duration; Type: COMMENT; Schema: grenoble2; Owner: -
160
+ --
161
+
162
+ COMMENT ON COLUMN access_links.mobility_restricted_traveller_duration IS 'Duration of travel for mobility restricted travellers';
163
+
164
+
165
+ --
166
+ -- Name: COLUMN access_links.link_type; Type: COMMENT; Schema: grenoble2; Owner: -
167
+ --
168
+
169
+ COMMENT ON COLUMN access_links.link_type IS 'Link type : Underground, Overground or Mixed';
170
+
171
+
172
+ --
173
+ -- Name: COLUMN access_links.int_user_needs; Type: COMMENT; Schema: grenoble2; Owner: -
174
+ --
175
+
176
+ COMMENT ON COLUMN access_links.int_user_needs IS 'binary mapping of userNeed list';
177
+
178
+
179
+ --
180
+ -- Name: COLUMN access_links.link_orientation; Type: COMMENT; Schema: grenoble2; Owner: -
181
+ --
182
+
183
+ COMMENT ON COLUMN access_links.link_orientation IS 'Link orientation : accesspoint_to_stoparea or stoparea_to_accesspoint';
184
+
185
+
186
+ --
187
+ -- Name: COLUMN access_links.access_point_id; Type: COMMENT; Schema: grenoble2; Owner: -
188
+ --
189
+
190
+ COMMENT ON COLUMN access_links.access_point_id IS 'AccessPoint reference';
191
+
192
+
193
+ --
194
+ -- Name: COLUMN access_links.stop_area_id; Type: COMMENT; Schema: grenoble2; Owner: -
195
+ --
196
+
197
+ COMMENT ON COLUMN access_links.stop_area_id IS 'StopArea reference';
198
+
199
+
200
+ --
201
+ -- Name: access_links_id_seq; Type: SEQUENCE; Schema: grenoble2; Owner: -
202
+ --
203
+
204
+ CREATE SEQUENCE access_links_id_seq
205
+ START WITH 1
206
+ INCREMENT BY 1
207
+ NO MAXVALUE
208
+ NO MINVALUE
209
+ CACHE 1;
210
+
211
+
212
+ --
213
+ -- Name: access_links_id_seq; Type: SEQUENCE OWNED BY; Schema: grenoble2; Owner: -
214
+ --
215
+
216
+ ALTER SEQUENCE access_links_id_seq OWNED BY access_links.id;
217
+
218
+
219
+ --
220
+ -- Name: access_points; Type: TABLE; Schema: grenoble2; Owner: -; Tablespace:
221
+ --
222
+
223
+ CREATE TABLE access_points (
224
+ id bigint NOT NULL,
225
+ objectid character varying(255) NOT NULL,
226
+ object_version integer DEFAULT 1,
227
+ creation_time timestamp without time zone,
228
+ creator_id character varying(255),
229
+ name character varying(255),
230
+ comment character varying(255),
231
+ longitude numeric(19,16),
232
+ latitude numeric(19,16),
233
+ long_lat_type character varying(255),
234
+ x numeric(19,2),
235
+ y numeric(19,2),
236
+ projection_type character varying(255),
237
+ country_code character varying(255),
238
+ street_name character varying(255),
239
+ contained_in character varying(255),
240
+ openning_time timestamp without time zone,
241
+ closing_time timestamp without time zone,
242
+ type character varying(255),
243
+ lift_availability boolean,
244
+ mobility_restricted_suitability boolean,
245
+ stairs_availability boolean
246
+ );
247
+
248
+
249
+ --
250
+ -- Name: TABLE access_points; Type: COMMENT; Schema: grenoble2; Owner: -
251
+ --
252
+
253
+ COMMENT ON TABLE access_points IS 'Access point';
254
+
255
+
256
+ --
257
+ -- Name: COLUMN access_points.id; Type: COMMENT; Schema: grenoble2; Owner: -
258
+ --
259
+
260
+ COMMENT ON COLUMN access_points.id IS 'Internal identification';
261
+
262
+
263
+ --
264
+ -- Name: COLUMN access_points.objectid; Type: COMMENT; Schema: grenoble2; Owner: -
265
+ --
266
+
267
+ COMMENT ON COLUMN access_points.objectid IS 'Neptune identification';
268
+
269
+
270
+ --
271
+ -- Name: COLUMN access_points.object_version; Type: COMMENT; Schema: grenoble2; Owner: -
272
+ --
273
+
274
+ COMMENT ON COLUMN access_points.object_version IS 'Version of this object';
275
+
276
+
277
+ --
278
+ -- Name: COLUMN access_points.creation_time; Type: COMMENT; Schema: grenoble2; Owner: -
279
+ --
280
+
281
+ COMMENT ON COLUMN access_points.creation_time IS 'Creation date and time';
282
+
283
+
284
+ --
285
+ -- Name: COLUMN access_points.creator_id; Type: COMMENT; Schema: grenoble2; Owner: -
286
+ --
287
+
288
+ COMMENT ON COLUMN access_points.creator_id IS 'Creator identification';
289
+
290
+
291
+ --
292
+ -- Name: COLUMN access_points.name; Type: COMMENT; Schema: grenoble2; Owner: -
293
+ --
294
+
295
+ COMMENT ON COLUMN access_points.name IS 'Name';
296
+
297
+
298
+ --
299
+ -- Name: COLUMN access_points.comment; Type: COMMENT; Schema: grenoble2; Owner: -
300
+ --
301
+
302
+ COMMENT ON COLUMN access_points.comment IS 'Comment';
303
+
304
+
305
+ --
306
+ -- Name: COLUMN access_points.longitude; Type: COMMENT; Schema: grenoble2; Owner: -
307
+ --
308
+
309
+ COMMENT ON COLUMN access_points.longitude IS 'Longitude';
310
+
311
+
312
+ --
313
+ -- Name: COLUMN access_points.latitude; Type: COMMENT; Schema: grenoble2; Owner: -
314
+ --
315
+
316
+ COMMENT ON COLUMN access_points.latitude IS 'Latitude';
317
+
318
+
319
+ --
320
+ -- Name: COLUMN access_points.long_lat_type; Type: COMMENT; Schema: grenoble2; Owner: -
321
+ --
322
+
323
+ COMMENT ON COLUMN access_points.long_lat_type IS 'Model used for Longitude and Latitude (Standard, WGS84 or WGS92)';
324
+
325
+
326
+ --
327
+ -- Name: COLUMN access_points.x; Type: COMMENT; Schema: grenoble2; Owner: -
328
+ --
329
+
330
+ COMMENT ON COLUMN access_points.x IS 'X coordinate';
331
+
332
+
333
+ --
334
+ -- Name: COLUMN access_points.y; Type: COMMENT; Schema: grenoble2; Owner: -
335
+ --
336
+
337
+ COMMENT ON COLUMN access_points.y IS 'Y coordinate';
338
+
339
+
340
+ --
341
+ -- Name: COLUMN access_points.projection_type; Type: COMMENT; Schema: grenoble2; Owner: -
342
+ --
343
+
344
+ COMMENT ON COLUMN access_points.projection_type IS 'Projection used for coordinates';
345
+
346
+
347
+ --
348
+ -- Name: COLUMN access_points.country_code; Type: COMMENT; Schema: grenoble2; Owner: -
349
+ --
350
+
351
+ COMMENT ON COLUMN access_points.country_code IS 'Zip code';
352
+
353
+
354
+ --
355
+ -- Name: COLUMN access_points.street_name; Type: COMMENT; Schema: grenoble2; Owner: -
356
+ --
357
+
358
+ COMMENT ON COLUMN access_points.street_name IS 'Address';
359
+
360
+
361
+ --
362
+ -- Name: COLUMN access_points.contained_in; Type: COMMENT; Schema: grenoble2; Owner: -
363
+ --
364
+
365
+ COMMENT ON COLUMN access_points.contained_in IS 'Unused data';
366
+
367
+
368
+ --
369
+ -- Name: COLUMN access_points.openning_time; Type: COMMENT; Schema: grenoble2; Owner: -
370
+ --
371
+
372
+ COMMENT ON COLUMN access_points.openning_time IS 'Opening time';
373
+
374
+
375
+ --
376
+ -- Name: COLUMN access_points.closing_time; Type: COMMENT; Schema: grenoble2; Owner: -
377
+ --
378
+
379
+ COMMENT ON COLUMN access_points.closing_time IS 'Closing time';
380
+
381
+
382
+ --
383
+ -- Name: COLUMN access_points.type; Type: COMMENT; Schema: grenoble2; Owner: -
384
+ --
385
+
386
+ COMMENT ON COLUMN access_points.type IS 'Access Point Type : free description';
387
+
388
+
389
+ --
390
+ -- Name: COLUMN access_points.lift_availability; Type: COMMENT; Schema: grenoble2; Owner: -
391
+ --
392
+
393
+ COMMENT ON COLUMN access_points.lift_availability IS 'Indicate if a lift is available';
394
+
395
+
396
+ --
397
+ -- Name: COLUMN access_points.mobility_restricted_suitability; Type: COMMENT; Schema: grenoble2; Owner: -
398
+ --
399
+
400
+ COMMENT ON COLUMN access_points.mobility_restricted_suitability IS 'Indicate if the link is suitable for mobility restricted persons';
401
+
402
+
403
+ --
404
+ -- Name: COLUMN access_points.stairs_availability; Type: COMMENT; Schema: grenoble2; Owner: -
405
+ --
406
+
407
+ COMMENT ON COLUMN access_points.stairs_availability IS 'Indicate if stairs are available';
408
+
409
+
410
+ --
411
+ -- Name: access_points_id_seq; Type: SEQUENCE; Schema: grenoble2; Owner: -
412
+ --
413
+
414
+ CREATE SEQUENCE access_points_id_seq
415
+ START WITH 1
416
+ INCREMENT BY 1
417
+ NO MAXVALUE
418
+ NO MINVALUE
419
+ CACHE 1;
420
+
421
+
422
+ --
423
+ -- Name: access_points_id_seq; Type: SEQUENCE OWNED BY; Schema: grenoble2; Owner: -
424
+ --
425
+
426
+ ALTER SEQUENCE access_points_id_seq OWNED BY access_points.id;
427
+
428
+
429
+ --
430
+ -- Name: companies; Type: TABLE; Schema: grenoble2; Owner: -; Tablespace:
431
+ --
432
+
433
+ CREATE TABLE companies (
434
+ id bigint NOT NULL,
435
+ objectid character varying(255) NOT NULL,
436
+ object_version integer DEFAULT 1,
437
+ creation_time timestamp without time zone,
438
+ creator_id character varying(255),
439
+ name character varying(255),
440
+ short_name character varying(255),
441
+ organizational_unit character varying(255),
442
+ operating_department_name character varying(255),
443
+ code character varying(255),
444
+ phone character varying(255),
445
+ fax character varying(255),
446
+ email character varying(255),
447
+ registration_number character varying(255)
448
+ );
449
+
450
+
451
+ --
452
+ -- Name: TABLE companies; Type: COMMENT; Schema: grenoble2; Owner: -
453
+ --
454
+
455
+ COMMENT ON TABLE companies IS 'company operating a public transport service';
456
+
457
+
458
+ --
459
+ -- Name: COLUMN companies.id; Type: COMMENT; Schema: grenoble2; Owner: -
460
+ --
461
+
462
+ COMMENT ON COLUMN companies.id IS 'Internal identification';
463
+
464
+
465
+ --
466
+ -- Name: COLUMN companies.objectid; Type: COMMENT; Schema: grenoble2; Owner: -
467
+ --
468
+
469
+ COMMENT ON COLUMN companies.objectid IS 'Neptune identification';
470
+
471
+
472
+ --
473
+ -- Name: COLUMN companies.object_version; Type: COMMENT; Schema: grenoble2; Owner: -
474
+ --
475
+
476
+ COMMENT ON COLUMN companies.object_version IS 'Version of this object';
477
+
478
+
479
+ --
480
+ -- Name: COLUMN companies.creation_time; Type: COMMENT; Schema: grenoble2; Owner: -
481
+ --
482
+
483
+ COMMENT ON COLUMN companies.creation_time IS 'Creation date and time';
484
+
485
+
486
+ --
487
+ -- Name: COLUMN companies.creator_id; Type: COMMENT; Schema: grenoble2; Owner: -
488
+ --
489
+
490
+ COMMENT ON COLUMN companies.creator_id IS 'Creator identification';
491
+
492
+
493
+ --
494
+ -- Name: COLUMN companies.name; Type: COMMENT; Schema: grenoble2; Owner: -
495
+ --
496
+
497
+ COMMENT ON COLUMN companies.name IS 'Name';
498
+
499
+
500
+ --
501
+ -- Name: COLUMN companies.short_name; Type: COMMENT; Schema: grenoble2; Owner: -
502
+ --
503
+
504
+ COMMENT ON COLUMN companies.short_name IS 'Short name';
505
+
506
+
507
+ --
508
+ -- Name: COLUMN companies.organizational_unit; Type: COMMENT; Schema: grenoble2; Owner: -
509
+ --
510
+
511
+ COMMENT ON COLUMN companies.organizational_unit IS 'Organizational Unit';
512
+
513
+
514
+ --
515
+ -- Name: COLUMN companies.operating_department_name; Type: COMMENT; Schema: grenoble2; Owner: -
516
+ --
517
+
518
+ COMMENT ON COLUMN companies.operating_department_name IS 'Operating department';
519
+
520
+
521
+ --
522
+ -- Name: COLUMN companies.code; Type: COMMENT; Schema: grenoble2; Owner: -
523
+ --
524
+
525
+ COMMENT ON COLUMN companies.code IS 'Zip code';
526
+
527
+
528
+ --
529
+ -- Name: COLUMN companies.phone; Type: COMMENT; Schema: grenoble2; Owner: -
530
+ --
531
+
532
+ COMMENT ON COLUMN companies.phone IS 'Phone number';
533
+
534
+
535
+ --
536
+ -- Name: COLUMN companies.fax; Type: COMMENT; Schema: grenoble2; Owner: -
537
+ --
538
+
539
+ COMMENT ON COLUMN companies.fax IS 'FAX number';
540
+
541
+
542
+ --
543
+ -- Name: COLUMN companies.email; Type: COMMENT; Schema: grenoble2; Owner: -
544
+ --
545
+
546
+ COMMENT ON COLUMN companies.email IS 'Email';
547
+
548
+
549
+ --
550
+ -- Name: COLUMN companies.registration_number; Type: COMMENT; Schema: grenoble2; Owner: -
551
+ --
552
+
553
+ COMMENT ON COLUMN companies.registration_number IS 'Registration number';
554
+
555
+
556
+ --
557
+ -- Name: companies_id_seq; Type: SEQUENCE; Schema: grenoble2; Owner: -
558
+ --
559
+
560
+ CREATE SEQUENCE companies_id_seq
561
+ START WITH 1
562
+ INCREMENT BY 1
563
+ NO MAXVALUE
564
+ NO MINVALUE
565
+ CACHE 1;
566
+
567
+
568
+ --
569
+ -- Name: companies_id_seq; Type: SEQUENCE OWNED BY; Schema: grenoble2; Owner: -
570
+ --
571
+
572
+ ALTER SEQUENCE companies_id_seq OWNED BY companies.id;
573
+
574
+
575
+ --
576
+ -- Name: connection_links; Type: TABLE; Schema: grenoble2; Owner: -; Tablespace:
577
+ --
578
+
579
+ CREATE TABLE connection_links (
580
+ id bigint NOT NULL,
581
+ objectid character varying(255) NOT NULL,
582
+ object_version integer DEFAULT 1,
583
+ creation_time timestamp without time zone,
584
+ creator_id character varying(255),
585
+ name character varying(255),
586
+ comment character varying(255),
587
+ link_distance numeric(19,2),
588
+ departure_id bigint,
589
+ arrival_id bigint,
590
+ lift_availability boolean,
591
+ mobility_restricted_suitability boolean,
592
+ stairs_availability boolean,
593
+ default_duration time without time zone,
594
+ frequent_traveller_duration time without time zone,
595
+ occasional_traveller_duration time without time zone,
596
+ mobility_restricted_traveller_duration time without time zone,
597
+ link_type character varying(255),
598
+ int_user_needs integer
599
+ );
600
+
601
+
602
+ --
603
+ -- Name: TABLE connection_links; Type: COMMENT; Schema: grenoble2; Owner: -
604
+ --
605
+
606
+ COMMENT ON TABLE connection_links IS 'Connection link between 2 stopareas';
607
+
608
+
609
+ --
610
+ -- Name: COLUMN connection_links.id; Type: COMMENT; Schema: grenoble2; Owner: -
611
+ --
612
+
613
+ COMMENT ON COLUMN connection_links.id IS 'Internal identification';
614
+
615
+
616
+ --
617
+ -- Name: COLUMN connection_links.objectid; Type: COMMENT; Schema: grenoble2; Owner: -
618
+ --
619
+
620
+ COMMENT ON COLUMN connection_links.objectid IS 'Neptune identification';
621
+
622
+
623
+ --
624
+ -- Name: COLUMN connection_links.object_version; Type: COMMENT; Schema: grenoble2; Owner: -
625
+ --
626
+
627
+ COMMENT ON COLUMN connection_links.object_version IS 'Version of this object';
628
+
629
+
630
+ --
631
+ -- Name: COLUMN connection_links.creation_time; Type: COMMENT; Schema: grenoble2; Owner: -
632
+ --
633
+
634
+ COMMENT ON COLUMN connection_links.creation_time IS 'Creation date and time';
635
+
636
+
637
+ --
638
+ -- Name: COLUMN connection_links.creator_id; Type: COMMENT; Schema: grenoble2; Owner: -
639
+ --
640
+
641
+ COMMENT ON COLUMN connection_links.creator_id IS 'Creator identification';
642
+
643
+
644
+ --
645
+ -- Name: COLUMN connection_links.name; Type: COMMENT; Schema: grenoble2; Owner: -
646
+ --
647
+
648
+ COMMENT ON COLUMN connection_links.name IS 'Name';
649
+
650
+
651
+ --
652
+ -- Name: COLUMN connection_links.comment; Type: COMMENT; Schema: grenoble2; Owner: -
653
+ --
654
+
655
+ COMMENT ON COLUMN connection_links.comment IS 'Comment';
656
+
657
+
658
+ --
659
+ -- Name: COLUMN connection_links.link_distance; Type: COMMENT; Schema: grenoble2; Owner: -
660
+ --
661
+
662
+ COMMENT ON COLUMN connection_links.link_distance IS 'Distance between StopAreas';
663
+
664
+
665
+ --
666
+ -- Name: COLUMN connection_links.departure_id; Type: COMMENT; Schema: grenoble2; Owner: -
667
+ --
668
+
669
+ COMMENT ON COLUMN connection_links.departure_id IS 'Start stoparea internal id';
670
+
671
+
672
+ --
673
+ -- Name: COLUMN connection_links.arrival_id; Type: COMMENT; Schema: grenoble2; Owner: -
674
+ --
675
+
676
+ COMMENT ON COLUMN connection_links.arrival_id IS 'End stoparea internal id';
677
+
678
+
679
+ --
680
+ -- Name: COLUMN connection_links.lift_availability; Type: COMMENT; Schema: grenoble2; Owner: -
681
+ --
682
+
683
+ COMMENT ON COLUMN connection_links.lift_availability IS 'Indicate if a lift is available';
684
+
685
+
686
+ --
687
+ -- Name: COLUMN connection_links.mobility_restricted_suitability; Type: COMMENT; Schema: grenoble2; Owner: -
688
+ --
689
+
690
+ COMMENT ON COLUMN connection_links.mobility_restricted_suitability IS 'Indicate if the link is suitable for mobility restricted persons';
691
+
692
+
693
+ --
694
+ -- Name: COLUMN connection_links.stairs_availability; Type: COMMENT; Schema: grenoble2; Owner: -
695
+ --
696
+
697
+ COMMENT ON COLUMN connection_links.stairs_availability IS 'Indicate if stairs are available';
698
+
699
+
700
+ --
701
+ -- Name: COLUMN connection_links.default_duration; Type: COMMENT; Schema: grenoble2; Owner: -
702
+ --
703
+
704
+ COMMENT ON COLUMN connection_links.default_duration IS 'average duration of travel';
705
+
706
+
707
+ --
708
+ -- Name: COLUMN connection_links.frequent_traveller_duration; Type: COMMENT; Schema: grenoble2; Owner: -
709
+ --
710
+
711
+ COMMENT ON COLUMN connection_links.frequent_traveller_duration IS 'duration of travel for frequent traveller';
712
+
713
+
714
+ --
715
+ -- Name: COLUMN connection_links.occasional_traveller_duration; Type: COMMENT; Schema: grenoble2; Owner: -
716
+ --
717
+
718
+ COMMENT ON COLUMN connection_links.occasional_traveller_duration IS 'duration of travel for occasional traveler';
719
+
720
+
721
+ --
722
+ -- Name: COLUMN connection_links.mobility_restricted_traveller_duration; Type: COMMENT; Schema: grenoble2; Owner: -
723
+ --
724
+
725
+ COMMENT ON COLUMN connection_links.mobility_restricted_traveller_duration IS 'duration of travel for mobility restricted traveller';
726
+
727
+
728
+ --
729
+ -- Name: COLUMN connection_links.link_type; Type: COMMENT; Schema: grenoble2; Owner: -
730
+ --
731
+
732
+ COMMENT ON COLUMN connection_links.link_type IS 'Type (Underground,Overground or Mixed)';
733
+
734
+
735
+ --
736
+ -- Name: COLUMN connection_links.int_user_needs; Type: COMMENT; Schema: grenoble2; Owner: -
737
+ --
738
+
739
+ COMMENT ON COLUMN connection_links.int_user_needs IS 'binary mapping of userNeed list';
740
+
741
+
742
+ --
743
+ -- Name: connection_links_id_seq; Type: SEQUENCE; Schema: grenoble2; Owner: -
744
+ --
745
+
746
+ CREATE SEQUENCE connection_links_id_seq
747
+ START WITH 1
748
+ INCREMENT BY 1
749
+ NO MAXVALUE
750
+ NO MINVALUE
751
+ CACHE 1;
752
+
753
+
754
+ --
755
+ -- Name: connection_links_id_seq; Type: SEQUENCE OWNED BY; Schema: grenoble2; Owner: -
756
+ --
757
+
758
+ ALTER SEQUENCE connection_links_id_seq OWNED BY connection_links.id;
759
+
760
+
761
+ --
762
+ -- Name: facilities; Type: TABLE; Schema: grenoble2; Owner: -; Tablespace:
763
+ --
764
+
765
+ CREATE TABLE facilities (
766
+ id bigint NOT NULL,
767
+ objectid character varying(255) NOT NULL,
768
+ object_version integer DEFAULT 1,
769
+ creation_time timestamp without time zone,
770
+ creator_id character varying(255),
771
+ name character varying(255),
772
+ comment character varying(255),
773
+ stop_area_id bigint,
774
+ line_id bigint,
775
+ connection_link_id bigint,
776
+ stop_point_id bigint,
777
+ description character varying(255),
778
+ free_access boolean,
779
+ longitude numeric(19,16),
780
+ latitude numeric(19,16),
781
+ long_lat_type character varying(255),
782
+ x numeric(19,2),
783
+ y numeric(19,2),
784
+ projection_type character varying(255),
785
+ country_code character varying(255),
786
+ street_name character varying(255),
787
+ contained_in character varying(255)
788
+ );
789
+
790
+
791
+ --
792
+ -- Name: TABLE facilities; Type: COMMENT; Schema: grenoble2; Owner: -
793
+ --
794
+
795
+ COMMENT ON TABLE facilities IS 'Facility';
796
+
797
+
798
+ --
799
+ -- Name: COLUMN facilities.id; Type: COMMENT; Schema: grenoble2; Owner: -
800
+ --
801
+
802
+ COMMENT ON COLUMN facilities.id IS 'Internal identification';
803
+
804
+
805
+ --
806
+ -- Name: COLUMN facilities.objectid; Type: COMMENT; Schema: grenoble2; Owner: -
807
+ --
808
+
809
+ COMMENT ON COLUMN facilities.objectid IS 'Neptune identification';
810
+
811
+
812
+ --
813
+ -- Name: COLUMN facilities.object_version; Type: COMMENT; Schema: grenoble2; Owner: -
814
+ --
815
+
816
+ COMMENT ON COLUMN facilities.object_version IS 'Version of this object';
817
+
818
+
819
+ --
820
+ -- Name: COLUMN facilities.creation_time; Type: COMMENT; Schema: grenoble2; Owner: -
821
+ --
822
+
823
+ COMMENT ON COLUMN facilities.creation_time IS 'Creation date and time';
824
+
825
+
826
+ --
827
+ -- Name: COLUMN facilities.creator_id; Type: COMMENT; Schema: grenoble2; Owner: -
828
+ --
829
+
830
+ COMMENT ON COLUMN facilities.creator_id IS 'Creator identification';
831
+
832
+
833
+ --
834
+ -- Name: COLUMN facilities.name; Type: COMMENT; Schema: grenoble2; Owner: -
835
+ --
836
+
837
+ COMMENT ON COLUMN facilities.name IS 'Name';
838
+
839
+
840
+ --
841
+ -- Name: COLUMN facilities.comment; Type: COMMENT; Schema: grenoble2; Owner: -
842
+ --
843
+
844
+ COMMENT ON COLUMN facilities.comment IS 'Comment';
845
+
846
+
847
+ --
848
+ -- Name: COLUMN facilities.stop_area_id; Type: COMMENT; Schema: grenoble2; Owner: -
849
+ --
850
+
851
+ COMMENT ON COLUMN facilities.stop_area_id IS 'StopArea reference';
852
+
853
+
854
+ --
855
+ -- Name: COLUMN facilities.line_id; Type: COMMENT; Schema: grenoble2; Owner: -
856
+ --
857
+
858
+ COMMENT ON COLUMN facilities.line_id IS 'Line reference';
859
+
860
+
861
+ --
862
+ -- Name: COLUMN facilities.connection_link_id; Type: COMMENT; Schema: grenoble2; Owner: -
863
+ --
864
+
865
+ COMMENT ON COLUMN facilities.connection_link_id IS 'ConnectionLink reference';
866
+
867
+
868
+ --
869
+ -- Name: COLUMN facilities.stop_point_id; Type: COMMENT; Schema: grenoble2; Owner: -
870
+ --
871
+
872
+ COMMENT ON COLUMN facilities.stop_point_id IS 'StopPoint reference';
873
+
874
+
875
+ --
876
+ -- Name: COLUMN facilities.description; Type: COMMENT; Schema: grenoble2; Owner: -
877
+ --
878
+
879
+ COMMENT ON COLUMN facilities.description IS 'Facility description';
880
+
881
+
882
+ --
883
+ -- Name: COLUMN facilities.free_access; Type: COMMENT; Schema: grenoble2; Owner: -
884
+ --
885
+
886
+ COMMENT ON COLUMN facilities.free_access IS 'Indicate if facility is on free (true) or restricted(false) access';
887
+
888
+
889
+ --
890
+ -- Name: COLUMN facilities.longitude; Type: COMMENT; Schema: grenoble2; Owner: -
891
+ --
892
+
893
+ COMMENT ON COLUMN facilities.longitude IS 'Longitude';
894
+
895
+
896
+ --
897
+ -- Name: COLUMN facilities.latitude; Type: COMMENT; Schema: grenoble2; Owner: -
898
+ --
899
+
900
+ COMMENT ON COLUMN facilities.latitude IS 'Latitude';
901
+
902
+
903
+ --
904
+ -- Name: COLUMN facilities.long_lat_type; Type: COMMENT; Schema: grenoble2; Owner: -
905
+ --
906
+
907
+ COMMENT ON COLUMN facilities.long_lat_type IS 'Model used for Longitude and Latitude (Standard, WGS84 or WGS92)';
908
+
909
+
910
+ --
911
+ -- Name: COLUMN facilities.x; Type: COMMENT; Schema: grenoble2; Owner: -
912
+ --
913
+
914
+ COMMENT ON COLUMN facilities.x IS 'X coordinate';
915
+
916
+
917
+ --
918
+ -- Name: COLUMN facilities.y; Type: COMMENT; Schema: grenoble2; Owner: -
919
+ --
920
+
921
+ COMMENT ON COLUMN facilities.y IS 'Y coordinate';
922
+
923
+
924
+ --
925
+ -- Name: COLUMN facilities.projection_type; Type: COMMENT; Schema: grenoble2; Owner: -
926
+ --
927
+
928
+ COMMENT ON COLUMN facilities.projection_type IS 'Projection used for coordinates';
929
+
930
+
931
+ --
932
+ -- Name: COLUMN facilities.country_code; Type: COMMENT; Schema: grenoble2; Owner: -
933
+ --
934
+
935
+ COMMENT ON COLUMN facilities.country_code IS 'Zip code';
936
+
937
+
938
+ --
939
+ -- Name: COLUMN facilities.street_name; Type: COMMENT; Schema: grenoble2; Owner: -
940
+ --
941
+
942
+ COMMENT ON COLUMN facilities.street_name IS 'Address';
943
+
944
+
945
+ --
946
+ -- Name: COLUMN facilities.contained_in; Type: COMMENT; Schema: grenoble2; Owner: -
947
+ --
948
+
949
+ COMMENT ON COLUMN facilities.contained_in IS 'Unused data';
950
+
951
+
952
+ --
953
+ -- Name: facilities_features; Type: TABLE; Schema: grenoble2; Owner: -; Tablespace:
954
+ --
955
+
956
+ CREATE TABLE facilities_features (
957
+ facility_id bigint NOT NULL,
958
+ choice_code integer
959
+ );
960
+
961
+
962
+ --
963
+ -- Name: TABLE facilities_features; Type: COMMENT; Schema: grenoble2; Owner: -
964
+ --
965
+
966
+ COMMENT ON TABLE facilities_features IS 'Facility Features secondary table';
967
+
968
+
969
+ --
970
+ -- Name: COLUMN facilities_features.facility_id; Type: COMMENT; Schema: grenoble2; Owner: -
971
+ --
972
+
973
+ COMMENT ON COLUMN facilities_features.facility_id IS 'Facility reference';
974
+
975
+
976
+ --
977
+ -- Name: COLUMN facilities_features.choice_code; Type: COMMENT; Schema: grenoble2; Owner: -
978
+ --
979
+
980
+ COMMENT ON COLUMN facilities_features.choice_code IS 'encoded value for facility';
981
+
982
+
983
+ --
984
+ -- Name: facilities_id_seq; Type: SEQUENCE; Schema: grenoble2; Owner: -
985
+ --
986
+
987
+ CREATE SEQUENCE facilities_id_seq
988
+ START WITH 1
989
+ INCREMENT BY 1
990
+ NO MAXVALUE
991
+ NO MINVALUE
992
+ CACHE 1;
993
+
994
+
995
+ --
996
+ -- Name: facilities_id_seq; Type: SEQUENCE OWNED BY; Schema: grenoble2; Owner: -
997
+ --
998
+
999
+ ALTER SEQUENCE facilities_id_seq OWNED BY facilities.id;
1000
+
1001
+
1002
+ --
1003
+ -- Name: group_of_lines; Type: TABLE; Schema: grenoble2; Owner: -; Tablespace:
1004
+ --
1005
+
1006
+ CREATE TABLE group_of_lines (
1007
+ id bigint NOT NULL,
1008
+ objectid character varying(255) NOT NULL,
1009
+ object_version integer DEFAULT 1,
1010
+ creation_time timestamp without time zone,
1011
+ creator_id character varying(255),
1012
+ name character varying(255),
1013
+ comment character varying(255)
1014
+ );
1015
+
1016
+
1017
+ --
1018
+ -- Name: TABLE group_of_lines; Type: COMMENT; Schema: grenoble2; Owner: -
1019
+ --
1020
+
1021
+ COMMENT ON TABLE group_of_lines IS 'group of lines';
1022
+
1023
+
1024
+ --
1025
+ -- Name: COLUMN group_of_lines.id; Type: COMMENT; Schema: grenoble2; Owner: -
1026
+ --
1027
+
1028
+ COMMENT ON COLUMN group_of_lines.id IS 'Internal identification';
1029
+
1030
+
1031
+ --
1032
+ -- Name: COLUMN group_of_lines.objectid; Type: COMMENT; Schema: grenoble2; Owner: -
1033
+ --
1034
+
1035
+ COMMENT ON COLUMN group_of_lines.objectid IS 'Neptune identification';
1036
+
1037
+
1038
+ --
1039
+ -- Name: COLUMN group_of_lines.object_version; Type: COMMENT; Schema: grenoble2; Owner: -
1040
+ --
1041
+
1042
+ COMMENT ON COLUMN group_of_lines.object_version IS 'Version of this object';
1043
+
1044
+
1045
+ --
1046
+ -- Name: COLUMN group_of_lines.creation_time; Type: COMMENT; Schema: grenoble2; Owner: -
1047
+ --
1048
+
1049
+ COMMENT ON COLUMN group_of_lines.creation_time IS 'Creation date and time';
1050
+
1051
+
1052
+ --
1053
+ -- Name: COLUMN group_of_lines.creator_id; Type: COMMENT; Schema: grenoble2; Owner: -
1054
+ --
1055
+
1056
+ COMMENT ON COLUMN group_of_lines.creator_id IS 'Creator identification';
1057
+
1058
+
1059
+ --
1060
+ -- Name: COLUMN group_of_lines.name; Type: COMMENT; Schema: grenoble2; Owner: -
1061
+ --
1062
+
1063
+ COMMENT ON COLUMN group_of_lines.name IS 'Name';
1064
+
1065
+
1066
+ --
1067
+ -- Name: COLUMN group_of_lines.comment; Type: COMMENT; Schema: grenoble2; Owner: -
1068
+ --
1069
+
1070
+ COMMENT ON COLUMN group_of_lines.comment IS 'Comment';
1071
+
1072
+
1073
+ --
1074
+ -- Name: group_of_lines_id_seq; Type: SEQUENCE; Schema: grenoble2; Owner: -
1075
+ --
1076
+
1077
+ CREATE SEQUENCE group_of_lines_id_seq
1078
+ START WITH 1
1079
+ INCREMENT BY 1
1080
+ NO MAXVALUE
1081
+ NO MINVALUE
1082
+ CACHE 1;
1083
+
1084
+
1085
+ --
1086
+ -- Name: group_of_lines_id_seq; Type: SEQUENCE OWNED BY; Schema: grenoble2; Owner: -
1087
+ --
1088
+
1089
+ ALTER SEQUENCE group_of_lines_id_seq OWNED BY group_of_lines.id;
1090
+
1091
+
1092
+ --
1093
+ -- Name: group_of_lines_lines; Type: TABLE; Schema: grenoble2; Owner: -; Tablespace:
1094
+ --
1095
+
1096
+ CREATE TABLE group_of_lines_lines (
1097
+ group_of_line_id bigint NOT NULL,
1098
+ line_id bigint NOT NULL
1099
+ );
1100
+
1101
+
1102
+ --
1103
+ -- Name: TABLE group_of_lines_lines; Type: COMMENT; Schema: grenoble2; Owner: -
1104
+ --
1105
+
1106
+ COMMENT ON TABLE group_of_lines_lines IS 'Lines affected to groupOfLines';
1107
+
1108
+
1109
+ --
1110
+ -- Name: COLUMN group_of_lines_lines.group_of_line_id; Type: COMMENT; Schema: grenoble2; Owner: -
1111
+ --
1112
+
1113
+ COMMENT ON COLUMN group_of_lines_lines.group_of_line_id IS 'GroupOfLine reference';
1114
+
1115
+
1116
+ --
1117
+ -- Name: COLUMN group_of_lines_lines.line_id; Type: COMMENT; Schema: grenoble2; Owner: -
1118
+ --
1119
+
1120
+ COMMENT ON COLUMN group_of_lines_lines.line_id IS 'Line reference';
1121
+
1122
+
1123
+ --
1124
+ -- Name: journey_patterns; Type: TABLE; Schema: grenoble2; Owner: -; Tablespace:
1125
+ --
1126
+
1127
+ CREATE TABLE journey_patterns (
1128
+ id bigint NOT NULL,
1129
+ objectid character varying(255) NOT NULL,
1130
+ object_version integer DEFAULT 1,
1131
+ creation_time timestamp without time zone,
1132
+ creator_id character varying(255),
1133
+ name character varying(255),
1134
+ comment character varying(255),
1135
+ registration_number character varying(255),
1136
+ published_name character varying(255),
1137
+ route_id bigint,
1138
+ departure_stop_point_id bigint,
1139
+ arrival_stop_point_id bigint
1140
+ );
1141
+
1142
+
1143
+ --
1144
+ -- Name: TABLE journey_patterns; Type: COMMENT; Schema: grenoble2; Owner: -
1145
+ --
1146
+
1147
+ COMMENT ON TABLE journey_patterns IS 'Journey pattern';
1148
+
1149
+
1150
+ --
1151
+ -- Name: COLUMN journey_patterns.id; Type: COMMENT; Schema: grenoble2; Owner: -
1152
+ --
1153
+
1154
+ COMMENT ON COLUMN journey_patterns.id IS 'Internal identification';
1155
+
1156
+
1157
+ --
1158
+ -- Name: COLUMN journey_patterns.objectid; Type: COMMENT; Schema: grenoble2; Owner: -
1159
+ --
1160
+
1161
+ COMMENT ON COLUMN journey_patterns.objectid IS 'Neptune identification';
1162
+
1163
+
1164
+ --
1165
+ -- Name: COLUMN journey_patterns.object_version; Type: COMMENT; Schema: grenoble2; Owner: -
1166
+ --
1167
+
1168
+ COMMENT ON COLUMN journey_patterns.object_version IS 'Version of this object';
1169
+
1170
+
1171
+ --
1172
+ -- Name: COLUMN journey_patterns.creation_time; Type: COMMENT; Schema: grenoble2; Owner: -
1173
+ --
1174
+
1175
+ COMMENT ON COLUMN journey_patterns.creation_time IS 'Creation date and time';
1176
+
1177
+
1178
+ --
1179
+ -- Name: COLUMN journey_patterns.creator_id; Type: COMMENT; Schema: grenoble2; Owner: -
1180
+ --
1181
+
1182
+ COMMENT ON COLUMN journey_patterns.creator_id IS 'Creator identification';
1183
+
1184
+
1185
+ --
1186
+ -- Name: COLUMN journey_patterns.name; Type: COMMENT; Schema: grenoble2; Owner: -
1187
+ --
1188
+
1189
+ COMMENT ON COLUMN journey_patterns.name IS 'Name';
1190
+
1191
+
1192
+ --
1193
+ -- Name: COLUMN journey_patterns.comment; Type: COMMENT; Schema: grenoble2; Owner: -
1194
+ --
1195
+
1196
+ COMMENT ON COLUMN journey_patterns.comment IS 'Comment';
1197
+
1198
+
1199
+ --
1200
+ -- Name: COLUMN journey_patterns.registration_number; Type: COMMENT; Schema: grenoble2; Owner: -
1201
+ --
1202
+
1203
+ COMMENT ON COLUMN journey_patterns.registration_number IS 'Registration number';
1204
+
1205
+
1206
+ --
1207
+ -- Name: COLUMN journey_patterns.published_name; Type: COMMENT; Schema: grenoble2; Owner: -
1208
+ --
1209
+
1210
+ COMMENT ON COLUMN journey_patterns.published_name IS 'Public name for travelers';
1211
+
1212
+
1213
+ --
1214
+ -- Name: COLUMN journey_patterns.route_id; Type: COMMENT; Schema: grenoble2; Owner: -
1215
+ --
1216
+
1217
+ COMMENT ON COLUMN journey_patterns.route_id IS 'Route Reference';
1218
+
1219
+
1220
+ --
1221
+ -- Name: COLUMN journey_patterns.departure_stop_point_id; Type: COMMENT; Schema: grenoble2; Owner: -
1222
+ --
1223
+
1224
+ COMMENT ON COLUMN journey_patterns.departure_stop_point_id IS 'Departure StopPoint Reference';
1225
+
1226
+
1227
+ --
1228
+ -- Name: COLUMN journey_patterns.arrival_stop_point_id; Type: COMMENT; Schema: grenoble2; Owner: -
1229
+ --
1230
+
1231
+ COMMENT ON COLUMN journey_patterns.arrival_stop_point_id IS 'Arrival StopPoint Reference';
1232
+
1233
+
1234
+ --
1235
+ -- Name: journey_patterns_id_seq; Type: SEQUENCE; Schema: grenoble2; Owner: -
1236
+ --
1237
+
1238
+ CREATE SEQUENCE journey_patterns_id_seq
1239
+ START WITH 1
1240
+ INCREMENT BY 1
1241
+ NO MAXVALUE
1242
+ NO MINVALUE
1243
+ CACHE 1;
1244
+
1245
+
1246
+ --
1247
+ -- Name: journey_patterns_id_seq; Type: SEQUENCE OWNED BY; Schema: grenoble2; Owner: -
1248
+ --
1249
+
1250
+ ALTER SEQUENCE journey_patterns_id_seq OWNED BY journey_patterns.id;
1251
+
1252
+
1253
+ --
1254
+ -- Name: journey_patterns_stop_points; Type: TABLE; Schema: grenoble2; Owner: -; Tablespace:
1255
+ --
1256
+
1257
+ CREATE TABLE journey_patterns_stop_points (
1258
+ journey_pattern_id bigint NOT NULL,
1259
+ stop_point_id bigint NOT NULL
1260
+ );
1261
+
1262
+
1263
+ --
1264
+ -- Name: TABLE journey_patterns_stop_points; Type: COMMENT; Schema: grenoble2; Owner: -
1265
+ --
1266
+
1267
+ COMMENT ON TABLE journey_patterns_stop_points IS 'StopPoint on JourneyPattern cross reference';
1268
+
1269
+
1270
+ --
1271
+ -- Name: COLUMN journey_patterns_stop_points.journey_pattern_id; Type: COMMENT; Schema: grenoble2; Owner: -
1272
+ --
1273
+
1274
+ COMMENT ON COLUMN journey_patterns_stop_points.journey_pattern_id IS 'JourneyPattern Reference';
1275
+
1276
+
1277
+ --
1278
+ -- Name: COLUMN journey_patterns_stop_points.stop_point_id; Type: COMMENT; Schema: grenoble2; Owner: -
1279
+ --
1280
+
1281
+ COMMENT ON COLUMN journey_patterns_stop_points.stop_point_id IS 'StopPoint Reference';
1282
+
1283
+
1284
+ --
1285
+ -- Name: lines; Type: TABLE; Schema: grenoble2; Owner: -; Tablespace:
1286
+ --
1287
+
1288
+ CREATE TABLE lines (
1289
+ id bigint NOT NULL,
1290
+ objectid character varying(255) NOT NULL,
1291
+ object_version integer DEFAULT 1,
1292
+ creation_time timestamp without time zone,
1293
+ creator_id character varying(255),
1294
+ name character varying(255),
1295
+ comment character varying(255),
1296
+ number character varying(255),
1297
+ published_name character varying(255),
1298
+ registration_number character varying(255),
1299
+ transport_mode_name character varying(255),
1300
+ mobility_restricted_suitability boolean,
1301
+ int_user_needs integer,
1302
+ network_id bigint,
1303
+ company_id bigint,
1304
+ ptnetwork_id bigint
1305
+ );
1306
+
1307
+
1308
+ --
1309
+ -- Name: TABLE lines; Type: COMMENT; Schema: grenoble2; Owner: -
1310
+ --
1311
+
1312
+ COMMENT ON TABLE lines IS 'Public Transport Line';
1313
+
1314
+
1315
+ --
1316
+ -- Name: COLUMN lines.id; Type: COMMENT; Schema: grenoble2; Owner: -
1317
+ --
1318
+
1319
+ COMMENT ON COLUMN lines.id IS 'Internal identification';
1320
+
1321
+
1322
+ --
1323
+ -- Name: COLUMN lines.objectid; Type: COMMENT; Schema: grenoble2; Owner: -
1324
+ --
1325
+
1326
+ COMMENT ON COLUMN lines.objectid IS 'Neptune identification';
1327
+
1328
+
1329
+ --
1330
+ -- Name: COLUMN lines.object_version; Type: COMMENT; Schema: grenoble2; Owner: -
1331
+ --
1332
+
1333
+ COMMENT ON COLUMN lines.object_version IS 'Version of this object';
1334
+
1335
+
1336
+ --
1337
+ -- Name: COLUMN lines.creation_time; Type: COMMENT; Schema: grenoble2; Owner: -
1338
+ --
1339
+
1340
+ COMMENT ON COLUMN lines.creation_time IS 'Creation date and time';
1341
+
1342
+
1343
+ --
1344
+ -- Name: COLUMN lines.creator_id; Type: COMMENT; Schema: grenoble2; Owner: -
1345
+ --
1346
+
1347
+ COMMENT ON COLUMN lines.creator_id IS 'Creator identification';
1348
+
1349
+
1350
+ --
1351
+ -- Name: COLUMN lines.name; Type: COMMENT; Schema: grenoble2; Owner: -
1352
+ --
1353
+
1354
+ COMMENT ON COLUMN lines.name IS 'Name';
1355
+
1356
+
1357
+ --
1358
+ -- Name: COLUMN lines.comment; Type: COMMENT; Schema: grenoble2; Owner: -
1359
+ --
1360
+
1361
+ COMMENT ON COLUMN lines.comment IS 'Comment';
1362
+
1363
+
1364
+ --
1365
+ -- Name: COLUMN lines.number; Type: COMMENT; Schema: grenoble2; Owner: -
1366
+ --
1367
+
1368
+ COMMENT ON COLUMN lines.number IS 'Number of the line (characters)';
1369
+
1370
+
1371
+ --
1372
+ -- Name: COLUMN lines.published_name; Type: COMMENT; Schema: grenoble2; Owner: -
1373
+ --
1374
+
1375
+ COMMENT ON COLUMN lines.published_name IS 'Public name for travelers';
1376
+
1377
+
1378
+ --
1379
+ -- Name: COLUMN lines.registration_number; Type: COMMENT; Schema: grenoble2; Owner: -
1380
+ --
1381
+
1382
+ COMMENT ON COLUMN lines.registration_number IS 'Registration number';
1383
+
1384
+
1385
+ --
1386
+ -- Name: COLUMN lines.transport_mode_name; Type: COMMENT; Schema: grenoble2; Owner: -
1387
+ --
1388
+
1389
+ COMMENT ON COLUMN lines.transport_mode_name IS 'Transport Mode (Bus, Train, ...)';
1390
+
1391
+
1392
+ --
1393
+ -- Name: COLUMN lines.mobility_restricted_suitability; Type: COMMENT; Schema: grenoble2; Owner: -
1394
+ --
1395
+
1396
+ COMMENT ON COLUMN lines.mobility_restricted_suitability IS 'Indicate whenever the line is suitable for mobility restricted persons';
1397
+
1398
+
1399
+ --
1400
+ -- Name: COLUMN lines.int_user_needs; Type: COMMENT; Schema: grenoble2; Owner: -
1401
+ --
1402
+
1403
+ COMMENT ON COLUMN lines.int_user_needs IS 'bit encoded list of userneeds enum value';
1404
+
1405
+
1406
+ --
1407
+ -- Name: COLUMN lines.network_id; Type: COMMENT; Schema: grenoble2; Owner: -
1408
+ --
1409
+
1410
+ COMMENT ON COLUMN lines.network_id IS 'PTNetwork reference';
1411
+
1412
+
1413
+ --
1414
+ -- Name: COLUMN lines.company_id; Type: COMMENT; Schema: grenoble2; Owner: -
1415
+ --
1416
+
1417
+ COMMENT ON COLUMN lines.company_id IS 'Company reference';
1418
+
1419
+
1420
+ --
1421
+ -- Name: lines_id_seq; Type: SEQUENCE; Schema: grenoble2; Owner: -
1422
+ --
1423
+
1424
+ CREATE SEQUENCE lines_id_seq
1425
+ START WITH 1
1426
+ INCREMENT BY 1
1427
+ NO MAXVALUE
1428
+ NO MINVALUE
1429
+ CACHE 1;
1430
+
1431
+
1432
+ --
1433
+ -- Name: lines_id_seq; Type: SEQUENCE OWNED BY; Schema: grenoble2; Owner: -
1434
+ --
1435
+
1436
+ ALTER SEQUENCE lines_id_seq OWNED BY lines.id;
1437
+
1438
+
1439
+ --
1440
+ -- Name: networks; Type: TABLE; Schema: grenoble2; Owner: -; Tablespace:
1441
+ --
1442
+
1443
+ CREATE TABLE networks (
1444
+ id bigint NOT NULL,
1445
+ objectid character varying(255) NOT NULL,
1446
+ object_version integer DEFAULT 1,
1447
+ creation_time timestamp without time zone,
1448
+ creator_id character varying(255),
1449
+ name character varying(255),
1450
+ comment character varying(255),
1451
+ version_date date,
1452
+ description character varying(255),
1453
+ registration_number character varying(255),
1454
+ source_type character varying(255),
1455
+ source_name character varying(255),
1456
+ source_identifier character varying(255)
1457
+ );
1458
+
1459
+
1460
+ --
1461
+ -- Name: TABLE networks; Type: COMMENT; Schema: grenoble2; Owner: -
1462
+ --
1463
+
1464
+ COMMENT ON TABLE networks IS 'Public Transport Network';
1465
+
1466
+
1467
+ --
1468
+ -- Name: COLUMN networks.id; Type: COMMENT; Schema: grenoble2; Owner: -
1469
+ --
1470
+
1471
+ COMMENT ON COLUMN networks.id IS 'Internal identification';
1472
+
1473
+
1474
+ --
1475
+ -- Name: COLUMN networks.objectid; Type: COMMENT; Schema: grenoble2; Owner: -
1476
+ --
1477
+
1478
+ COMMENT ON COLUMN networks.objectid IS 'Neptune identification';
1479
+
1480
+
1481
+ --
1482
+ -- Name: COLUMN networks.object_version; Type: COMMENT; Schema: grenoble2; Owner: -
1483
+ --
1484
+
1485
+ COMMENT ON COLUMN networks.object_version IS 'Version of this object';
1486
+
1487
+
1488
+ --
1489
+ -- Name: COLUMN networks.creation_time; Type: COMMENT; Schema: grenoble2; Owner: -
1490
+ --
1491
+
1492
+ COMMENT ON COLUMN networks.creation_time IS 'Creation date and time';
1493
+
1494
+
1495
+ --
1496
+ -- Name: COLUMN networks.creator_id; Type: COMMENT; Schema: grenoble2; Owner: -
1497
+ --
1498
+
1499
+ COMMENT ON COLUMN networks.creator_id IS 'Creator identification';
1500
+
1501
+
1502
+ --
1503
+ -- Name: COLUMN networks.name; Type: COMMENT; Schema: grenoble2; Owner: -
1504
+ --
1505
+
1506
+ COMMENT ON COLUMN networks.name IS 'Name';
1507
+
1508
+
1509
+ --
1510
+ -- Name: COLUMN networks.comment; Type: COMMENT; Schema: grenoble2; Owner: -
1511
+ --
1512
+
1513
+ COMMENT ON COLUMN networks.comment IS 'Comment';
1514
+
1515
+
1516
+ --
1517
+ -- Name: COLUMN networks.version_date; Type: COMMENT; Schema: grenoble2; Owner: -
1518
+ --
1519
+
1520
+ COMMENT ON COLUMN networks.version_date IS 'PTNetwork version date';
1521
+
1522
+
1523
+ --
1524
+ -- Name: COLUMN networks.description; Type: COMMENT; Schema: grenoble2; Owner: -
1525
+ --
1526
+
1527
+ COMMENT ON COLUMN networks.description IS 'description';
1528
+
1529
+
1530
+ --
1531
+ -- Name: COLUMN networks.registration_number; Type: COMMENT; Schema: grenoble2; Owner: -
1532
+ --
1533
+
1534
+ COMMENT ON COLUMN networks.registration_number IS 'Registration unique number';
1535
+
1536
+
1537
+ --
1538
+ -- Name: COLUMN networks.source_type; Type: COMMENT; Schema: grenoble2; Owner: -
1539
+ --
1540
+
1541
+ COMMENT ON COLUMN networks.source_type IS 'data producer type';
1542
+
1543
+
1544
+ --
1545
+ -- Name: COLUMN networks.source_name; Type: COMMENT; Schema: grenoble2; Owner: -
1546
+ --
1547
+
1548
+ COMMENT ON COLUMN networks.source_name IS 'data producer name';
1549
+
1550
+
1551
+ --
1552
+ -- Name: COLUMN networks.source_identifier; Type: COMMENT; Schema: grenoble2; Owner: -
1553
+ --
1554
+
1555
+ COMMENT ON COLUMN networks.source_identifier IS 'data producer identifier';
1556
+
1557
+
1558
+ --
1559
+ -- Name: networks_id_seq; Type: SEQUENCE; Schema: grenoble2; Owner: -
1560
+ --
1561
+
1562
+ CREATE SEQUENCE networks_id_seq
1563
+ START WITH 1
1564
+ INCREMENT BY 1
1565
+ NO MAXVALUE
1566
+ NO MINVALUE
1567
+ CACHE 1;
1568
+
1569
+
1570
+ --
1571
+ -- Name: networks_id_seq; Type: SEQUENCE OWNED BY; Schema: grenoble2; Owner: -
1572
+ --
1573
+
1574
+ ALTER SEQUENCE networks_id_seq OWNED BY networks.id;
1575
+
1576
+
1577
+ --
1578
+ -- Name: pt_links; Type: TABLE; Schema: grenoble2; Owner: -; Tablespace:
1579
+ --
1580
+
1581
+ CREATE TABLE pt_links (
1582
+ id bigint NOT NULL,
1583
+ objectid character varying(255) NOT NULL,
1584
+ object_version integer DEFAULT 1,
1585
+ creation_time timestamp without time zone,
1586
+ creator_id character varying(255),
1587
+ name character varying(255),
1588
+ comment character varying(255),
1589
+ link_distance numeric(19,2),
1590
+ start_of_link_id bigint,
1591
+ end_of_link_id bigint,
1592
+ route_id bigint
1593
+ );
1594
+
1595
+
1596
+ --
1597
+ -- Name: TABLE pt_links; Type: COMMENT; Schema: grenoble2; Owner: -
1598
+ --
1599
+
1600
+ COMMENT ON TABLE pt_links IS 'Link between two successive stop points on a same route';
1601
+
1602
+
1603
+ --
1604
+ -- Name: COLUMN pt_links.id; Type: COMMENT; Schema: grenoble2; Owner: -
1605
+ --
1606
+
1607
+ COMMENT ON COLUMN pt_links.id IS 'Internal identification';
1608
+
1609
+
1610
+ --
1611
+ -- Name: COLUMN pt_links.objectid; Type: COMMENT; Schema: grenoble2; Owner: -
1612
+ --
1613
+
1614
+ COMMENT ON COLUMN pt_links.objectid IS 'Neptune identification';
1615
+
1616
+
1617
+ --
1618
+ -- Name: COLUMN pt_links.object_version; Type: COMMENT; Schema: grenoble2; Owner: -
1619
+ --
1620
+
1621
+ COMMENT ON COLUMN pt_links.object_version IS 'Version of this object';
1622
+
1623
+
1624
+ --
1625
+ -- Name: COLUMN pt_links.creation_time; Type: COMMENT; Schema: grenoble2; Owner: -
1626
+ --
1627
+
1628
+ COMMENT ON COLUMN pt_links.creation_time IS 'Creation date and time';
1629
+
1630
+
1631
+ --
1632
+ -- Name: COLUMN pt_links.creator_id; Type: COMMENT; Schema: grenoble2; Owner: -
1633
+ --
1634
+
1635
+ COMMENT ON COLUMN pt_links.creator_id IS 'Creator identification';
1636
+
1637
+
1638
+ --
1639
+ -- Name: COLUMN pt_links.name; Type: COMMENT; Schema: grenoble2; Owner: -
1640
+ --
1641
+
1642
+ COMMENT ON COLUMN pt_links.name IS 'Name';
1643
+
1644
+
1645
+ --
1646
+ -- Name: COLUMN pt_links.comment; Type: COMMENT; Schema: grenoble2; Owner: -
1647
+ --
1648
+
1649
+ COMMENT ON COLUMN pt_links.comment IS 'Comment';
1650
+
1651
+
1652
+ --
1653
+ -- Name: COLUMN pt_links.link_distance; Type: COMMENT; Schema: grenoble2; Owner: -
1654
+ --
1655
+
1656
+ COMMENT ON COLUMN pt_links.link_distance IS 'Distance between AccesPoint and StopArea';
1657
+
1658
+
1659
+ --
1660
+ -- Name: COLUMN pt_links.start_of_link_id; Type: COMMENT; Schema: grenoble2; Owner: -
1661
+ --
1662
+
1663
+ COMMENT ON COLUMN pt_links.start_of_link_id IS 'Start StopPoint reference';
1664
+
1665
+
1666
+ --
1667
+ -- Name: COLUMN pt_links.end_of_link_id; Type: COMMENT; Schema: grenoble2; Owner: -
1668
+ --
1669
+
1670
+ COMMENT ON COLUMN pt_links.end_of_link_id IS 'End StopPoint reference';
1671
+
1672
+
1673
+ --
1674
+ -- Name: COLUMN pt_links.route_id; Type: COMMENT; Schema: grenoble2; Owner: -
1675
+ --
1676
+
1677
+ COMMENT ON COLUMN pt_links.route_id IS 'Route reference';
1678
+
1679
+
1680
+ --
1681
+ -- Name: pt_links_id_seq; Type: SEQUENCE; Schema: grenoble2; Owner: -
1682
+ --
1683
+
1684
+ CREATE SEQUENCE pt_links_id_seq
1685
+ START WITH 1
1686
+ INCREMENT BY 1
1687
+ NO MAXVALUE
1688
+ NO MINVALUE
1689
+ CACHE 1;
1690
+
1691
+
1692
+ --
1693
+ -- Name: pt_links_id_seq; Type: SEQUENCE OWNED BY; Schema: grenoble2; Owner: -
1694
+ --
1695
+
1696
+ ALTER SEQUENCE pt_links_id_seq OWNED BY pt_links.id;
1697
+
1698
+
1699
+ --
1700
+ -- Name: routes; Type: TABLE; Schema: grenoble2; Owner: -; Tablespace:
1701
+ --
1702
+
1703
+ CREATE TABLE routes (
1704
+ id bigint NOT NULL,
1705
+ objectid character varying(255) NOT NULL,
1706
+ object_version integer DEFAULT 1,
1707
+ creation_time timestamp without time zone,
1708
+ creator_id character varying(255),
1709
+ name character varying(255),
1710
+ comment character varying(255),
1711
+ opposite_route_id bigint,
1712
+ published_name character varying(255),
1713
+ number character varying(255),
1714
+ direction character varying(255),
1715
+ wayback character varying(255),
1716
+ line_id bigint
1717
+ );
1718
+
1719
+
1720
+ --
1721
+ -- Name: TABLE routes; Type: COMMENT; Schema: grenoble2; Owner: -
1722
+ --
1723
+
1724
+ COMMENT ON TABLE routes IS 'Route';
1725
+
1726
+
1727
+ --
1728
+ -- Name: COLUMN routes.id; Type: COMMENT; Schema: grenoble2; Owner: -
1729
+ --
1730
+
1731
+ COMMENT ON COLUMN routes.id IS 'Internal identification';
1732
+
1733
+
1734
+ --
1735
+ -- Name: COLUMN routes.objectid; Type: COMMENT; Schema: grenoble2; Owner: -
1736
+ --
1737
+
1738
+ COMMENT ON COLUMN routes.objectid IS 'Neptune identification';
1739
+
1740
+
1741
+ --
1742
+ -- Name: COLUMN routes.object_version; Type: COMMENT; Schema: grenoble2; Owner: -
1743
+ --
1744
+
1745
+ COMMENT ON COLUMN routes.object_version IS 'Version of this object';
1746
+
1747
+
1748
+ --
1749
+ -- Name: COLUMN routes.creation_time; Type: COMMENT; Schema: grenoble2; Owner: -
1750
+ --
1751
+
1752
+ COMMENT ON COLUMN routes.creation_time IS 'Creation date and time';
1753
+
1754
+
1755
+ --
1756
+ -- Name: COLUMN routes.creator_id; Type: COMMENT; Schema: grenoble2; Owner: -
1757
+ --
1758
+
1759
+ COMMENT ON COLUMN routes.creator_id IS 'Creator identification';
1760
+
1761
+
1762
+ --
1763
+ -- Name: COLUMN routes.name; Type: COMMENT; Schema: grenoble2; Owner: -
1764
+ --
1765
+
1766
+ COMMENT ON COLUMN routes.name IS 'Name';
1767
+
1768
+
1769
+ --
1770
+ -- Name: COLUMN routes.comment; Type: COMMENT; Schema: grenoble2; Owner: -
1771
+ --
1772
+
1773
+ COMMENT ON COLUMN routes.comment IS 'Comment';
1774
+
1775
+
1776
+ --
1777
+ -- Name: COLUMN routes.opposite_route_id; Type: COMMENT; Schema: grenoble2; Owner: -
1778
+ --
1779
+
1780
+ COMMENT ON COLUMN routes.opposite_route_id IS 'Opposite route reference';
1781
+
1782
+
1783
+ --
1784
+ -- Name: COLUMN routes.published_name; Type: COMMENT; Schema: grenoble2; Owner: -
1785
+ --
1786
+
1787
+ COMMENT ON COLUMN routes.published_name IS 'Published name';
1788
+
1789
+
1790
+ --
1791
+ -- Name: COLUMN routes.number; Type: COMMENT; Schema: grenoble2; Owner: -
1792
+ --
1793
+
1794
+ COMMENT ON COLUMN routes.number IS 'Number';
1795
+
1796
+
1797
+ --
1798
+ -- Name: COLUMN routes.direction; Type: COMMENT; Schema: grenoble2; Owner: -
1799
+ --
1800
+
1801
+ COMMENT ON COLUMN routes.direction IS 'Direction : North, East, ...';
1802
+
1803
+
1804
+ --
1805
+ -- Name: COLUMN routes.wayback; Type: COMMENT; Schema: grenoble2; Owner: -
1806
+ --
1807
+
1808
+ COMMENT ON COLUMN routes.wayback IS 'Orientation : A or R';
1809
+
1810
+
1811
+ --
1812
+ -- Name: COLUMN routes.line_id; Type: COMMENT; Schema: grenoble2; Owner: -
1813
+ --
1814
+
1815
+ COMMENT ON COLUMN routes.line_id IS 'Line reference';
1816
+
1817
+
1818
+ --
1819
+ -- Name: routes_id_seq; Type: SEQUENCE; Schema: grenoble2; Owner: -
1820
+ --
1821
+
1822
+ CREATE SEQUENCE routes_id_seq
1823
+ START WITH 1
1824
+ INCREMENT BY 1
1825
+ NO MAXVALUE
1826
+ NO MINVALUE
1827
+ CACHE 1;
1828
+
1829
+
1830
+ --
1831
+ -- Name: routes_id_seq; Type: SEQUENCE OWNED BY; Schema: grenoble2; Owner: -
1832
+ --
1833
+
1834
+ ALTER SEQUENCE routes_id_seq OWNED BY routes.id;
1835
+
1836
+
1837
+ --
1838
+ -- Name: routing_constraints_lines; Type: TABLE; Schema: grenoble2; Owner: -; Tablespace:
1839
+ --
1840
+
1841
+ CREATE TABLE routing_constraints_lines (
1842
+ line_id bigint NOT NULL,
1843
+ stop_area_id bigint NOT NULL
1844
+ );
1845
+
1846
+
1847
+ --
1848
+ -- Name: TABLE routing_constraints_lines; Type: COMMENT; Schema: grenoble2; Owner: -
1849
+ --
1850
+
1851
+ COMMENT ON TABLE routing_constraints_lines IS 'Routing constraint applicable on lines';
1852
+
1853
+
1854
+ --
1855
+ -- Name: COLUMN routing_constraints_lines.line_id; Type: COMMENT; Schema: grenoble2; Owner: -
1856
+ --
1857
+
1858
+ COMMENT ON COLUMN routing_constraints_lines.line_id IS 'Line reference';
1859
+
1860
+
1861
+ --
1862
+ -- Name: COLUMN routing_constraints_lines.stop_area_id; Type: COMMENT; Schema: grenoble2; Owner: -
1863
+ --
1864
+
1865
+ COMMENT ON COLUMN routing_constraints_lines.stop_area_id IS 'Routing constraint reference';
1866
+
1867
+
1868
+ --
1869
+ -- Name: stop_areas; Type: TABLE; Schema: grenoble2; Owner: -; Tablespace:
1870
+ --
1871
+
1872
+ CREATE TABLE stop_areas (
1873
+ id bigint NOT NULL,
1874
+ objectid character varying(255) NOT NULL,
1875
+ object_version integer DEFAULT 1,
1876
+ creation_time timestamp without time zone,
1877
+ creator_id character varying(255),
1878
+ name character varying(255),
1879
+ comment character varying(255),
1880
+ area_type character varying(255),
1881
+ registration_number character varying(255),
1882
+ nearest_topic_name character varying(255),
1883
+ fare_code integer,
1884
+ longitude numeric(19,16),
1885
+ latitude numeric(19,16),
1886
+ long_lat_type character varying(255),
1887
+ x numeric(19,2),
1888
+ y numeric(19,2),
1889
+ projection_type character varying(255),
1890
+ country_code character varying(255),
1891
+ street_name character varying(255),
1892
+ parent_id bigint
1893
+ );
1894
+
1895
+
1896
+ --
1897
+ -- Name: TABLE stop_areas; Type: COMMENT; Schema: grenoble2; Owner: -
1898
+ --
1899
+
1900
+ COMMENT ON TABLE stop_areas IS 'StopArea';
1901
+
1902
+
1903
+ --
1904
+ -- Name: COLUMN stop_areas.id; Type: COMMENT; Schema: grenoble2; Owner: -
1905
+ --
1906
+
1907
+ COMMENT ON COLUMN stop_areas.id IS 'Internal identification';
1908
+
1909
+
1910
+ --
1911
+ -- Name: COLUMN stop_areas.objectid; Type: COMMENT; Schema: grenoble2; Owner: -
1912
+ --
1913
+
1914
+ COMMENT ON COLUMN stop_areas.objectid IS 'Neptune identification';
1915
+
1916
+
1917
+ --
1918
+ -- Name: COLUMN stop_areas.object_version; Type: COMMENT; Schema: grenoble2; Owner: -
1919
+ --
1920
+
1921
+ COMMENT ON COLUMN stop_areas.object_version IS 'Version of this object';
1922
+
1923
+
1924
+ --
1925
+ -- Name: COLUMN stop_areas.creation_time; Type: COMMENT; Schema: grenoble2; Owner: -
1926
+ --
1927
+
1928
+ COMMENT ON COLUMN stop_areas.creation_time IS 'Creation date and time';
1929
+
1930
+
1931
+ --
1932
+ -- Name: COLUMN stop_areas.creator_id; Type: COMMENT; Schema: grenoble2; Owner: -
1933
+ --
1934
+
1935
+ COMMENT ON COLUMN stop_areas.creator_id IS 'Creator identification';
1936
+
1937
+
1938
+ --
1939
+ -- Name: COLUMN stop_areas.name; Type: COMMENT; Schema: grenoble2; Owner: -
1940
+ --
1941
+
1942
+ COMMENT ON COLUMN stop_areas.name IS 'Name';
1943
+
1944
+
1945
+ --
1946
+ -- Name: COLUMN stop_areas.comment; Type: COMMENT; Schema: grenoble2; Owner: -
1947
+ --
1948
+
1949
+ COMMENT ON COLUMN stop_areas.comment IS 'Comment';
1950
+
1951
+
1952
+ --
1953
+ -- Name: COLUMN stop_areas.area_type; Type: COMMENT; Schema: grenoble2; Owner: -
1954
+ --
1955
+
1956
+ COMMENT ON COLUMN stop_areas.area_type IS 'Type of Area : BoardingPosition, Quay, CommercialStopPoint, StopPlace or ITL)';
1957
+
1958
+
1959
+ --
1960
+ -- Name: COLUMN stop_areas.registration_number; Type: COMMENT; Schema: grenoble2; Owner: -
1961
+ --
1962
+
1963
+ COMMENT ON COLUMN stop_areas.registration_number IS 'Registration number';
1964
+
1965
+
1966
+ --
1967
+ -- Name: COLUMN stop_areas.nearest_topic_name; Type: COMMENT; Schema: grenoble2; Owner: -
1968
+ --
1969
+
1970
+ COMMENT ON COLUMN stop_areas.nearest_topic_name IS 'Nearest topic name';
1971
+
1972
+
1973
+ --
1974
+ -- Name: COLUMN stop_areas.fare_code; Type: COMMENT; Schema: grenoble2; Owner: -
1975
+ --
1976
+
1977
+ COMMENT ON COLUMN stop_areas.fare_code IS 'Fare code';
1978
+
1979
+
1980
+ --
1981
+ -- Name: COLUMN stop_areas.longitude; Type: COMMENT; Schema: grenoble2; Owner: -
1982
+ --
1983
+
1984
+ COMMENT ON COLUMN stop_areas.longitude IS 'Longitude';
1985
+
1986
+
1987
+ --
1988
+ -- Name: COLUMN stop_areas.latitude; Type: COMMENT; Schema: grenoble2; Owner: -
1989
+ --
1990
+
1991
+ COMMENT ON COLUMN stop_areas.latitude IS 'Latitude';
1992
+
1993
+
1994
+ --
1995
+ -- Name: COLUMN stop_areas.long_lat_type; Type: COMMENT; Schema: grenoble2; Owner: -
1996
+ --
1997
+
1998
+ COMMENT ON COLUMN stop_areas.long_lat_type IS 'Model used for Longitude and Latitude (Standard, WGS84 or WGS92)';
1999
+
2000
+
2001
+ --
2002
+ -- Name: COLUMN stop_areas.x; Type: COMMENT; Schema: grenoble2; Owner: -
2003
+ --
2004
+
2005
+ COMMENT ON COLUMN stop_areas.x IS 'X coordinate';
2006
+
2007
+
2008
+ --
2009
+ -- Name: COLUMN stop_areas.y; Type: COMMENT; Schema: grenoble2; Owner: -
2010
+ --
2011
+
2012
+ COMMENT ON COLUMN stop_areas.y IS 'Y coordinate';
2013
+
2014
+
2015
+ --
2016
+ -- Name: COLUMN stop_areas.projection_type; Type: COMMENT; Schema: grenoble2; Owner: -
2017
+ --
2018
+
2019
+ COMMENT ON COLUMN stop_areas.projection_type IS 'Projection used for coordinates';
2020
+
2021
+
2022
+ --
2023
+ -- Name: COLUMN stop_areas.country_code; Type: COMMENT; Schema: grenoble2; Owner: -
2024
+ --
2025
+
2026
+ COMMENT ON COLUMN stop_areas.country_code IS 'Zip code';
2027
+
2028
+
2029
+ --
2030
+ -- Name: COLUMN stop_areas.street_name; Type: COMMENT; Schema: grenoble2; Owner: -
2031
+ --
2032
+
2033
+ COMMENT ON COLUMN stop_areas.street_name IS 'Address';
2034
+
2035
+
2036
+ --
2037
+ -- Name: COLUMN stop_areas.parent_id; Type: COMMENT; Schema: grenoble2; Owner: -
2038
+ --
2039
+
2040
+ COMMENT ON COLUMN stop_areas.parent_id IS 'parent reference';
2041
+
2042
+
2043
+ --
2044
+ -- Name: stop_areas_id_seq; Type: SEQUENCE; Schema: grenoble2; Owner: -
2045
+ --
2046
+
2047
+ CREATE SEQUENCE stop_areas_id_seq
2048
+ START WITH 1
2049
+ INCREMENT BY 1
2050
+ NO MAXVALUE
2051
+ NO MINVALUE
2052
+ CACHE 1;
2053
+
2054
+
2055
+ --
2056
+ -- Name: stop_areas_id_seq; Type: SEQUENCE OWNED BY; Schema: grenoble2; Owner: -
2057
+ --
2058
+
2059
+ ALTER SEQUENCE stop_areas_id_seq OWNED BY stop_areas.id;
2060
+
2061
+
2062
+ --
2063
+ -- Name: stop_areas_stop_areas; Type: TABLE; Schema: grenoble2; Owner: -; Tablespace:
2064
+ --
2065
+
2066
+ CREATE TABLE stop_areas_stop_areas (
2067
+ parent_id bigint NOT NULL,
2068
+ child_id bigint NOT NULL
2069
+ );
2070
+
2071
+
2072
+ --
2073
+ -- Name: stop_points; Type: TABLE; Schema: grenoble2; Owner: -; Tablespace:
2074
+ --
2075
+
2076
+ CREATE TABLE stop_points (
2077
+ id bigint NOT NULL,
2078
+ objectid character varying(255) NOT NULL,
2079
+ object_version integer DEFAULT 1,
2080
+ creation_time timestamp without time zone,
2081
+ creator_id character varying(255),
2082
+ "position" integer,
2083
+ stop_area_id bigint,
2084
+ route_id bigint
2085
+ );
2086
+
2087
+
2088
+ --
2089
+ -- Name: TABLE stop_points; Type: COMMENT; Schema: grenoble2; Owner: -
2090
+ --
2091
+
2092
+ COMMENT ON TABLE stop_points IS 'stop point on route';
2093
+
2094
+
2095
+ --
2096
+ -- Name: COLUMN stop_points.id; Type: COMMENT; Schema: grenoble2; Owner: -
2097
+ --
2098
+
2099
+ COMMENT ON COLUMN stop_points.id IS 'Internal identification';
2100
+
2101
+
2102
+ --
2103
+ -- Name: COLUMN stop_points.objectid; Type: COMMENT; Schema: grenoble2; Owner: -
2104
+ --
2105
+
2106
+ COMMENT ON COLUMN stop_points.objectid IS 'Neptune identification';
2107
+
2108
+
2109
+ --
2110
+ -- Name: COLUMN stop_points.object_version; Type: COMMENT; Schema: grenoble2; Owner: -
2111
+ --
2112
+
2113
+ COMMENT ON COLUMN stop_points.object_version IS 'Version of this object';
2114
+
2115
+
2116
+ --
2117
+ -- Name: COLUMN stop_points.creation_time; Type: COMMENT; Schema: grenoble2; Owner: -
2118
+ --
2119
+
2120
+ COMMENT ON COLUMN stop_points.creation_time IS 'Creation date and time';
2121
+
2122
+
2123
+ --
2124
+ -- Name: COLUMN stop_points.creator_id; Type: COMMENT; Schema: grenoble2; Owner: -
2125
+ --
2126
+
2127
+ COMMENT ON COLUMN stop_points.creator_id IS 'Creator identification';
2128
+
2129
+
2130
+ --
2131
+ -- Name: COLUMN stop_points."position"; Type: COMMENT; Schema: grenoble2; Owner: -
2132
+ --
2133
+
2134
+ COMMENT ON COLUMN stop_points."position" IS 'Rank of stop point in route';
2135
+
2136
+
2137
+ --
2138
+ -- Name: COLUMN stop_points.stop_area_id; Type: COMMENT; Schema: grenoble2; Owner: -
2139
+ --
2140
+
2141
+ COMMENT ON COLUMN stop_points.stop_area_id IS 'StopArea reference';
2142
+
2143
+
2144
+ --
2145
+ -- Name: COLUMN stop_points.route_id; Type: COMMENT; Schema: grenoble2; Owner: -
2146
+ --
2147
+
2148
+ COMMENT ON COLUMN stop_points.route_id IS 'Route reference';
2149
+
2150
+
2151
+ --
2152
+ -- Name: stop_points_id_seq; Type: SEQUENCE; Schema: grenoble2; Owner: -
2153
+ --
2154
+
2155
+ CREATE SEQUENCE stop_points_id_seq
2156
+ START WITH 1
2157
+ INCREMENT BY 1
2158
+ NO MAXVALUE
2159
+ NO MINVALUE
2160
+ CACHE 1;
2161
+
2162
+
2163
+ --
2164
+ -- Name: stop_points_id_seq; Type: SEQUENCE OWNED BY; Schema: grenoble2; Owner: -
2165
+ --
2166
+
2167
+ ALTER SEQUENCE stop_points_id_seq OWNED BY stop_points.id;
2168
+
2169
+
2170
+ --
2171
+ -- Name: time_slots; Type: TABLE; Schema: grenoble2; Owner: -; Tablespace:
2172
+ --
2173
+
2174
+ CREATE TABLE time_slots (
2175
+ id bigint NOT NULL,
2176
+ objectid character varying(255) NOT NULL,
2177
+ object_version integer DEFAULT 1,
2178
+ creation_time timestamp without time zone,
2179
+ creator_id character varying(255),
2180
+ name character varying(255),
2181
+ beginning_slot_time time without time zone,
2182
+ end_slot_time time without time zone,
2183
+ first_departure_time_in_slot time without time zone,
2184
+ last_departure_time_in_slot time without time zone
2185
+ );
2186
+
2187
+
2188
+ --
2189
+ -- Name: TABLE time_slots; Type: COMMENT; Schema: grenoble2; Owner: -
2190
+ --
2191
+
2192
+ COMMENT ON TABLE time_slots IS 'time slot';
2193
+
2194
+
2195
+ --
2196
+ -- Name: COLUMN time_slots.id; Type: COMMENT; Schema: grenoble2; Owner: -
2197
+ --
2198
+
2199
+ COMMENT ON COLUMN time_slots.id IS 'Internal identification';
2200
+
2201
+
2202
+ --
2203
+ -- Name: COLUMN time_slots.objectid; Type: COMMENT; Schema: grenoble2; Owner: -
2204
+ --
2205
+
2206
+ COMMENT ON COLUMN time_slots.objectid IS 'Neptune identification';
2207
+
2208
+
2209
+ --
2210
+ -- Name: COLUMN time_slots.object_version; Type: COMMENT; Schema: grenoble2; Owner: -
2211
+ --
2212
+
2213
+ COMMENT ON COLUMN time_slots.object_version IS 'Version of this object';
2214
+
2215
+
2216
+ --
2217
+ -- Name: COLUMN time_slots.creation_time; Type: COMMENT; Schema: grenoble2; Owner: -
2218
+ --
2219
+
2220
+ COMMENT ON COLUMN time_slots.creation_time IS 'Creation date and time';
2221
+
2222
+
2223
+ --
2224
+ -- Name: COLUMN time_slots.creator_id; Type: COMMENT; Schema: grenoble2; Owner: -
2225
+ --
2226
+
2227
+ COMMENT ON COLUMN time_slots.creator_id IS 'Creator identification';
2228
+
2229
+
2230
+ --
2231
+ -- Name: COLUMN time_slots.name; Type: COMMENT; Schema: grenoble2; Owner: -
2232
+ --
2233
+
2234
+ COMMENT ON COLUMN time_slots.name IS 'Name';
2235
+
2236
+
2237
+ --
2238
+ -- Name: COLUMN time_slots.beginning_slot_time; Type: COMMENT; Schema: grenoble2; Owner: -
2239
+ --
2240
+
2241
+ COMMENT ON COLUMN time_slots.beginning_slot_time IS 'Beginning slot time';
2242
+
2243
+
2244
+ --
2245
+ -- Name: COLUMN time_slots.end_slot_time; Type: COMMENT; Schema: grenoble2; Owner: -
2246
+ --
2247
+
2248
+ COMMENT ON COLUMN time_slots.end_slot_time IS 'End slot time';
2249
+
2250
+
2251
+ --
2252
+ -- Name: COLUMN time_slots.first_departure_time_in_slot; Type: COMMENT; Schema: grenoble2; Owner: -
2253
+ --
2254
+
2255
+ COMMENT ON COLUMN time_slots.first_departure_time_in_slot IS 'First departure time in slot';
2256
+
2257
+
2258
+ --
2259
+ -- Name: COLUMN time_slots.last_departure_time_in_slot; Type: COMMENT; Schema: grenoble2; Owner: -
2260
+ --
2261
+
2262
+ COMMENT ON COLUMN time_slots.last_departure_time_in_slot IS 'Last departure time in slot';
2263
+
2264
+
2265
+ --
2266
+ -- Name: time_slots_id_seq; Type: SEQUENCE; Schema: grenoble2; Owner: -
2267
+ --
2268
+
2269
+ CREATE SEQUENCE time_slots_id_seq
2270
+ START WITH 1
2271
+ INCREMENT BY 1
2272
+ NO MAXVALUE
2273
+ NO MINVALUE
2274
+ CACHE 1;
2275
+
2276
+
2277
+ --
2278
+ -- Name: time_slots_id_seq; Type: SEQUENCE OWNED BY; Schema: grenoble2; Owner: -
2279
+ --
2280
+
2281
+ ALTER SEQUENCE time_slots_id_seq OWNED BY time_slots.id;
2282
+
2283
+
2284
+ --
2285
+ -- Name: time_table_dates; Type: TABLE; Schema: grenoble2; Owner: -; Tablespace:
2286
+ --
2287
+
2288
+ CREATE TABLE time_table_dates (
2289
+ time_table_id bigint NOT NULL,
2290
+ date date,
2291
+ "position" integer NOT NULL
2292
+ );
2293
+
2294
+
2295
+ --
2296
+ -- Name: TABLE time_table_dates; Type: COMMENT; Schema: grenoble2; Owner: -
2297
+ --
2298
+
2299
+ COMMENT ON TABLE time_table_dates IS 'Applicable Calendar days for Timetable';
2300
+
2301
+
2302
+ --
2303
+ -- Name: COLUMN time_table_dates.time_table_id; Type: COMMENT; Schema: grenoble2; Owner: -
2304
+ --
2305
+
2306
+ COMMENT ON COLUMN time_table_dates.time_table_id IS 'timetable foreign key';
2307
+
2308
+
2309
+ --
2310
+ -- Name: COLUMN time_table_dates.date; Type: COMMENT; Schema: grenoble2; Owner: -
2311
+ --
2312
+
2313
+ COMMENT ON COLUMN time_table_dates.date IS 'calendar date';
2314
+
2315
+
2316
+ --
2317
+ -- Name: COLUMN time_table_dates."position"; Type: COMMENT; Schema: grenoble2; Owner: -
2318
+ --
2319
+
2320
+ COMMENT ON COLUMN time_table_dates."position" IS 'order of date';
2321
+
2322
+
2323
+ --
2324
+ -- Name: time_table_periods; Type: TABLE; Schema: grenoble2; Owner: -; Tablespace:
2325
+ --
2326
+
2327
+ CREATE TABLE time_table_periods (
2328
+ time_table_id bigint NOT NULL,
2329
+ period_start date,
2330
+ period_end date,
2331
+ "position" integer NOT NULL
2332
+ );
2333
+
2334
+
2335
+ --
2336
+ -- Name: TABLE time_table_periods; Type: COMMENT; Schema: grenoble2; Owner: -
2337
+ --
2338
+
2339
+ COMMENT ON TABLE time_table_periods IS 'Applicable Periods for Timetable';
2340
+
2341
+
2342
+ --
2343
+ -- Name: COLUMN time_table_periods.time_table_id; Type: COMMENT; Schema: grenoble2; Owner: -
2344
+ --
2345
+
2346
+ COMMENT ON COLUMN time_table_periods.time_table_id IS 'timetable foreign key';
2347
+
2348
+
2349
+ --
2350
+ -- Name: COLUMN time_table_periods.period_start; Type: COMMENT; Schema: grenoble2; Owner: -
2351
+ --
2352
+
2353
+ COMMENT ON COLUMN time_table_periods.period_start IS 'start date of period';
2354
+
2355
+
2356
+ --
2357
+ -- Name: COLUMN time_table_periods.period_end; Type: COMMENT; Schema: grenoble2; Owner: -
2358
+ --
2359
+
2360
+ COMMENT ON COLUMN time_table_periods.period_end IS 'end date of period';
2361
+
2362
+
2363
+ --
2364
+ -- Name: COLUMN time_table_periods."position"; Type: COMMENT; Schema: grenoble2; Owner: -
2365
+ --
2366
+
2367
+ COMMENT ON COLUMN time_table_periods."position" IS 'order of date';
2368
+
2369
+
2370
+ --
2371
+ -- Name: time_tables; Type: TABLE; Schema: grenoble2; Owner: -; Tablespace:
2372
+ --
2373
+
2374
+ CREATE TABLE time_tables (
2375
+ id bigint NOT NULL,
2376
+ objectid character varying(255) NOT NULL,
2377
+ object_version integer DEFAULT 1,
2378
+ creation_time timestamp without time zone,
2379
+ creator_id character varying(255),
2380
+ comment character varying(255),
2381
+ version character varying(255),
2382
+ int_day_types integer
2383
+ );
2384
+
2385
+
2386
+ --
2387
+ -- Name: TABLE time_tables; Type: COMMENT; Schema: grenoble2; Owner: -
2388
+ --
2389
+
2390
+ COMMENT ON TABLE time_tables IS 'Timetables';
2391
+
2392
+
2393
+ --
2394
+ -- Name: COLUMN time_tables.id; Type: COMMENT; Schema: grenoble2; Owner: -
2395
+ --
2396
+
2397
+ COMMENT ON COLUMN time_tables.id IS 'Internal identification';
2398
+
2399
+
2400
+ --
2401
+ -- Name: COLUMN time_tables.objectid; Type: COMMENT; Schema: grenoble2; Owner: -
2402
+ --
2403
+
2404
+ COMMENT ON COLUMN time_tables.objectid IS 'Neptune identification';
2405
+
2406
+
2407
+ --
2408
+ -- Name: COLUMN time_tables.object_version; Type: COMMENT; Schema: grenoble2; Owner: -
2409
+ --
2410
+
2411
+ COMMENT ON COLUMN time_tables.object_version IS 'Version of this object';
2412
+
2413
+
2414
+ --
2415
+ -- Name: COLUMN time_tables.creation_time; Type: COMMENT; Schema: grenoble2; Owner: -
2416
+ --
2417
+
2418
+ COMMENT ON COLUMN time_tables.creation_time IS 'Creation date and time';
2419
+
2420
+
2421
+ --
2422
+ -- Name: COLUMN time_tables.creator_id; Type: COMMENT; Schema: grenoble2; Owner: -
2423
+ --
2424
+
2425
+ COMMENT ON COLUMN time_tables.creator_id IS 'Creator identification';
2426
+
2427
+
2428
+ --
2429
+ -- Name: COLUMN time_tables.comment; Type: COMMENT; Schema: grenoble2; Owner: -
2430
+ --
2431
+
2432
+ COMMENT ON COLUMN time_tables.comment IS 'Comment';
2433
+
2434
+
2435
+ --
2436
+ -- Name: COLUMN time_tables.version; Type: COMMENT; Schema: grenoble2; Owner: -
2437
+ --
2438
+
2439
+ COMMENT ON COLUMN time_tables.version IS 'version';
2440
+
2441
+
2442
+ --
2443
+ -- Name: COLUMN time_tables.int_day_types; Type: COMMENT; Schema: grenoble2; Owner: -
2444
+ --
2445
+
2446
+ COMMENT ON COLUMN time_tables.int_day_types IS 'coded DayTypeEnum list (Monday,Tuesday, ...)';
2447
+
2448
+
2449
+ --
2450
+ -- Name: time_tables_id_seq; Type: SEQUENCE; Schema: grenoble2; Owner: -
2451
+ --
2452
+
2453
+ CREATE SEQUENCE time_tables_id_seq
2454
+ START WITH 1
2455
+ INCREMENT BY 1
2456
+ NO MAXVALUE
2457
+ NO MINVALUE
2458
+ CACHE 1;
2459
+
2460
+
2461
+ --
2462
+ -- Name: time_tables_id_seq; Type: SEQUENCE OWNED BY; Schema: grenoble2; Owner: -
2463
+ --
2464
+
2465
+ ALTER SEQUENCE time_tables_id_seq OWNED BY time_tables.id;
2466
+
2467
+
2468
+ --
2469
+ -- Name: time_tables_vehicle_journeys; Type: TABLE; Schema: grenoble2; Owner: -; Tablespace:
2470
+ --
2471
+
2472
+ CREATE TABLE time_tables_vehicle_journeys (
2473
+ time_table_id bigint NOT NULL,
2474
+ vehicle_journey_id bigint NOT NULL
2475
+ );
2476
+
2477
+
2478
+ --
2479
+ -- Name: TABLE time_tables_vehicle_journeys; Type: COMMENT; Schema: grenoble2; Owner: -
2480
+ --
2481
+
2482
+ COMMENT ON TABLE time_tables_vehicle_journeys IS 'Timetable on Vehicle journeys cross reference';
2483
+
2484
+
2485
+ --
2486
+ -- Name: COLUMN time_tables_vehicle_journeys.time_table_id; Type: COMMENT; Schema: grenoble2; Owner: -
2487
+ --
2488
+
2489
+ COMMENT ON COLUMN time_tables_vehicle_journeys.time_table_id IS 'Timetable foreign key';
2490
+
2491
+
2492
+ --
2493
+ -- Name: COLUMN time_tables_vehicle_journeys.vehicle_journey_id; Type: COMMENT; Schema: grenoble2; Owner: -
2494
+ --
2495
+
2496
+ COMMENT ON COLUMN time_tables_vehicle_journeys.vehicle_journey_id IS 'VehicleJourney foreign key';
2497
+
2498
+
2499
+ --
2500
+ -- Name: vehicle_journey_at_stops; Type: TABLE; Schema: grenoble2; Owner: -; Tablespace:
2501
+ --
2502
+
2503
+ CREATE TABLE vehicle_journey_at_stops (
2504
+ id bigint NOT NULL,
2505
+ vehicle_journey_id bigint,
2506
+ stop_point_id bigint,
2507
+ connecting_service_id character varying(255),
2508
+ boarding_alighting_possibility character varying(255),
2509
+ "position" bigint,
2510
+ arrival_time time without time zone,
2511
+ departure_time time without time zone,
2512
+ waiting_time time without time zone,
2513
+ elapse_duration time without time zone,
2514
+ headway_frequency time without time zone,
2515
+ is_departure boolean DEFAULT false,
2516
+ is_arrival boolean DEFAULT false
2517
+ );
2518
+
2519
+
2520
+ --
2521
+ -- Name: TABLE vehicle_journey_at_stops; Type: COMMENT; Schema: grenoble2; Owner: -
2522
+ --
2523
+
2524
+ COMMENT ON TABLE vehicle_journey_at_stops IS 'Vehicle journey At Stop';
2525
+
2526
+
2527
+ --
2528
+ -- Name: COLUMN vehicle_journey_at_stops.id; Type: COMMENT; Schema: grenoble2; Owner: -
2529
+ --
2530
+
2531
+ COMMENT ON COLUMN vehicle_journey_at_stops.id IS 'Internal identification';
2532
+
2533
+
2534
+ --
2535
+ -- Name: COLUMN vehicle_journey_at_stops.vehicle_journey_id; Type: COMMENT; Schema: grenoble2; Owner: -
2536
+ --
2537
+
2538
+ COMMENT ON COLUMN vehicle_journey_at_stops.vehicle_journey_id IS 'vehicleJourney foreign key';
2539
+
2540
+
2541
+ --
2542
+ -- Name: COLUMN vehicle_journey_at_stops.stop_point_id; Type: COMMENT; Schema: grenoble2; Owner: -
2543
+ --
2544
+
2545
+ COMMENT ON COLUMN vehicle_journey_at_stops.stop_point_id IS 'StopPoint foreign key';
2546
+
2547
+
2548
+ --
2549
+ -- Name: COLUMN vehicle_journey_at_stops.connecting_service_id; Type: COMMENT; Schema: grenoble2; Owner: -
2550
+ --
2551
+
2552
+ COMMENT ON COLUMN vehicle_journey_at_stops.connecting_service_id IS 'connectingServiceId';
2553
+
2554
+
2555
+ --
2556
+ -- Name: COLUMN vehicle_journey_at_stops.boarding_alighting_possibility; Type: COMMENT; Schema: grenoble2; Owner: -
2557
+ --
2558
+
2559
+ COMMENT ON COLUMN vehicle_journey_at_stops.boarding_alighting_possibility IS 'boardingAlightingPossibility';
2560
+
2561
+
2562
+ --
2563
+ -- Name: COLUMN vehicle_journey_at_stops."position"; Type: COMMENT; Schema: grenoble2; Owner: -
2564
+ --
2565
+
2566
+ COMMENT ON COLUMN vehicle_journey_at_stops."position" IS 'order in JourneyPattern (deprecated : see StopPoint)';
2567
+
2568
+
2569
+ --
2570
+ -- Name: COLUMN vehicle_journey_at_stops.arrival_time; Type: COMMENT; Schema: grenoble2; Owner: -
2571
+ --
2572
+
2573
+ COMMENT ON COLUMN vehicle_journey_at_stops.arrival_time IS 'Arrival time';
2574
+
2575
+
2576
+ --
2577
+ -- Name: COLUMN vehicle_journey_at_stops.departure_time; Type: COMMENT; Schema: grenoble2; Owner: -
2578
+ --
2579
+
2580
+ COMMENT ON COLUMN vehicle_journey_at_stops.departure_time IS 'Departure time';
2581
+
2582
+
2583
+ --
2584
+ -- Name: COLUMN vehicle_journey_at_stops.waiting_time; Type: COMMENT; Schema: grenoble2; Owner: -
2585
+ --
2586
+
2587
+ COMMENT ON COLUMN vehicle_journey_at_stops.waiting_time IS 'Waiting time';
2588
+
2589
+
2590
+ --
2591
+ -- Name: COLUMN vehicle_journey_at_stops.elapse_duration; Type: COMMENT; Schema: grenoble2; Owner: -
2592
+ --
2593
+
2594
+ COMMENT ON COLUMN vehicle_journey_at_stops.elapse_duration IS 'elapse duration';
2595
+
2596
+
2597
+ --
2598
+ -- Name: COLUMN vehicle_journey_at_stops.headway_frequency; Type: COMMENT; Schema: grenoble2; Owner: -
2599
+ --
2600
+
2601
+ COMMENT ON COLUMN vehicle_journey_at_stops.headway_frequency IS 'headway frequency';
2602
+
2603
+
2604
+ --
2605
+ -- Name: COLUMN vehicle_journey_at_stops.is_departure; Type: COMMENT; Schema: grenoble2; Owner: -
2606
+ --
2607
+
2608
+ COMMENT ON COLUMN vehicle_journey_at_stops.is_departure IS 'First stop of the vehicle journey (deprecated : see JourneyPattern)';
2609
+
2610
+
2611
+ --
2612
+ -- Name: COLUMN vehicle_journey_at_stops.is_arrival; Type: COMMENT; Schema: grenoble2; Owner: -
2613
+ --
2614
+
2615
+ COMMENT ON COLUMN vehicle_journey_at_stops.is_arrival IS 'Last stop of the vehicle journey (deprecated : see JourneyPattern)';
2616
+
2617
+
2618
+ --
2619
+ -- Name: vehicle_journey_at_stops_id_seq; Type: SEQUENCE; Schema: grenoble2; Owner: -
2620
+ --
2621
+
2622
+ CREATE SEQUENCE vehicle_journey_at_stops_id_seq
2623
+ START WITH 1
2624
+ INCREMENT BY 1
2625
+ NO MAXVALUE
2626
+ NO MINVALUE
2627
+ CACHE 1;
2628
+
2629
+
2630
+ --
2631
+ -- Name: vehicle_journey_at_stops_id_seq; Type: SEQUENCE OWNED BY; Schema: grenoble2; Owner: -
2632
+ --
2633
+
2634
+ ALTER SEQUENCE vehicle_journey_at_stops_id_seq OWNED BY vehicle_journey_at_stops.id;
2635
+
2636
+
2637
+ --
2638
+ -- Name: vehicle_journeys; Type: TABLE; Schema: grenoble2; Owner: -; Tablespace:
2639
+ --
2640
+
2641
+ CREATE TABLE vehicle_journeys (
2642
+ id bigint NOT NULL,
2643
+ objectid character varying(255) NOT NULL,
2644
+ object_version integer DEFAULT 1,
2645
+ creation_time timestamp without time zone,
2646
+ creator_id character varying(255),
2647
+ comment character varying(255),
2648
+ status_value character varying(255),
2649
+ transport_mode character varying(255),
2650
+ published_journey_name character varying(255),
2651
+ published_journey_identifier character varying(255),
2652
+ facility character varying(255),
2653
+ vehicle_type_identifier character varying(255),
2654
+ number bigint,
2655
+ route_id bigint,
2656
+ journey_pattern_id bigint,
2657
+ time_slot_id bigint,
2658
+ company_id bigint
2659
+ );
2660
+
2661
+
2662
+ --
2663
+ -- Name: TABLE vehicle_journeys; Type: COMMENT; Schema: grenoble2; Owner: -
2664
+ --
2665
+
2666
+ COMMENT ON TABLE vehicle_journeys IS 'Vehicle journey';
2667
+
2668
+
2669
+ --
2670
+ -- Name: COLUMN vehicle_journeys.id; Type: COMMENT; Schema: grenoble2; Owner: -
2671
+ --
2672
+
2673
+ COMMENT ON COLUMN vehicle_journeys.id IS 'Internal identification';
2674
+
2675
+
2676
+ --
2677
+ -- Name: COLUMN vehicle_journeys.objectid; Type: COMMENT; Schema: grenoble2; Owner: -
2678
+ --
2679
+
2680
+ COMMENT ON COLUMN vehicle_journeys.objectid IS 'Neptune identification';
2681
+
2682
+
2683
+ --
2684
+ -- Name: COLUMN vehicle_journeys.object_version; Type: COMMENT; Schema: grenoble2; Owner: -
2685
+ --
2686
+
2687
+ COMMENT ON COLUMN vehicle_journeys.object_version IS 'Version of this object';
2688
+
2689
+
2690
+ --
2691
+ -- Name: COLUMN vehicle_journeys.creation_time; Type: COMMENT; Schema: grenoble2; Owner: -
2692
+ --
2693
+
2694
+ COMMENT ON COLUMN vehicle_journeys.creation_time IS 'Creation date and time';
2695
+
2696
+
2697
+ --
2698
+ -- Name: COLUMN vehicle_journeys.creator_id; Type: COMMENT; Schema: grenoble2; Owner: -
2699
+ --
2700
+
2701
+ COMMENT ON COLUMN vehicle_journeys.creator_id IS 'Creator identification';
2702
+
2703
+
2704
+ --
2705
+ -- Name: COLUMN vehicle_journeys.comment; Type: COMMENT; Schema: grenoble2; Owner: -
2706
+ --
2707
+
2708
+ COMMENT ON COLUMN vehicle_journeys.comment IS 'Comment';
2709
+
2710
+
2711
+ --
2712
+ -- Name: COLUMN vehicle_journeys.status_value; Type: COMMENT; Schema: grenoble2; Owner: -
2713
+ --
2714
+
2715
+ COMMENT ON COLUMN vehicle_journeys.status_value IS 'Service Status';
2716
+
2717
+
2718
+ --
2719
+ -- Name: COLUMN vehicle_journeys.transport_mode; Type: COMMENT; Schema: grenoble2; Owner: -
2720
+ --
2721
+
2722
+ COMMENT ON COLUMN vehicle_journeys.transport_mode IS 'Transport mode';
2723
+
2724
+
2725
+ --
2726
+ -- Name: COLUMN vehicle_journeys.published_journey_name; Type: COMMENT; Schema: grenoble2; Owner: -
2727
+ --
2728
+
2729
+ COMMENT ON COLUMN vehicle_journeys.published_journey_name IS 'Name for travelers';
2730
+
2731
+
2732
+ --
2733
+ -- Name: COLUMN vehicle_journeys.published_journey_identifier; Type: COMMENT; Schema: grenoble2; Owner: -
2734
+ --
2735
+
2736
+ COMMENT ON COLUMN vehicle_journeys.published_journey_identifier IS 'Identifier for travelers';
2737
+
2738
+
2739
+ --
2740
+ -- Name: COLUMN vehicle_journeys.facility; Type: COMMENT; Schema: grenoble2; Owner: -
2741
+ --
2742
+
2743
+ COMMENT ON COLUMN vehicle_journeys.facility IS 'facility';
2744
+
2745
+
2746
+ --
2747
+ -- Name: COLUMN vehicle_journeys.vehicle_type_identifier; Type: COMMENT; Schema: grenoble2; Owner: -
2748
+ --
2749
+
2750
+ COMMENT ON COLUMN vehicle_journeys.vehicle_type_identifier IS 'Vehicle type';
2751
+
2752
+
2753
+ --
2754
+ -- Name: COLUMN vehicle_journeys.number; Type: COMMENT; Schema: grenoble2; Owner: -
2755
+ --
2756
+
2757
+ COMMENT ON COLUMN vehicle_journeys.number IS 'Number of the vehicle journey';
2758
+
2759
+
2760
+ --
2761
+ -- Name: COLUMN vehicle_journeys.route_id; Type: COMMENT; Schema: grenoble2; Owner: -
2762
+ --
2763
+
2764
+ COMMENT ON COLUMN vehicle_journeys.route_id IS 'Route foreign key';
2765
+
2766
+
2767
+ --
2768
+ -- Name: COLUMN vehicle_journeys.journey_pattern_id; Type: COMMENT; Schema: grenoble2; Owner: -
2769
+ --
2770
+
2771
+ COMMENT ON COLUMN vehicle_journeys.journey_pattern_id IS 'JourneyPattern foreign key';
2772
+
2773
+
2774
+ --
2775
+ -- Name: COLUMN vehicle_journeys.time_slot_id; Type: COMMENT; Schema: grenoble2; Owner: -
2776
+ --
2777
+
2778
+ COMMENT ON COLUMN vehicle_journeys.time_slot_id IS 'TimeSlot foreign key';
2779
+
2780
+
2781
+ --
2782
+ -- Name: COLUMN vehicle_journeys.company_id; Type: COMMENT; Schema: grenoble2; Owner: -
2783
+ --
2784
+
2785
+ COMMENT ON COLUMN vehicle_journeys.company_id IS 'Company foreign key';
2786
+
2787
+
2788
+ --
2789
+ -- Name: vehicle_journeys_id_seq; Type: SEQUENCE; Schema: grenoble2; Owner: -
2790
+ --
2791
+
2792
+ CREATE SEQUENCE vehicle_journeys_id_seq
2793
+ START WITH 1
2794
+ INCREMENT BY 1
2795
+ NO MAXVALUE
2796
+ NO MINVALUE
2797
+ CACHE 1;
2798
+
2799
+
2800
+ --
2801
+ -- Name: vehicle_journeys_id_seq; Type: SEQUENCE OWNED BY; Schema: grenoble2; Owner: -
2802
+ --
2803
+
2804
+ ALTER SEQUENCE vehicle_journeys_id_seq OWNED BY vehicle_journeys.id;
2805
+
2806
+
2807
+ --
2808
+ -- Name: id; Type: DEFAULT; Schema: grenoble2; Owner: -
2809
+ --
2810
+
2811
+ ALTER TABLE ONLY access_links ALTER COLUMN id SET DEFAULT nextval('access_links_id_seq'::regclass);
2812
+
2813
+
2814
+ --
2815
+ -- Name: id; Type: DEFAULT; Schema: grenoble2; Owner: -
2816
+ --
2817
+
2818
+ ALTER TABLE ONLY access_points ALTER COLUMN id SET DEFAULT nextval('access_points_id_seq'::regclass);
2819
+
2820
+
2821
+ --
2822
+ -- Name: id; Type: DEFAULT; Schema: grenoble2; Owner: -
2823
+ --
2824
+
2825
+ ALTER TABLE ONLY companies ALTER COLUMN id SET DEFAULT nextval('companies_id_seq'::regclass);
2826
+
2827
+
2828
+ --
2829
+ -- Name: id; Type: DEFAULT; Schema: grenoble2; Owner: -
2830
+ --
2831
+
2832
+ ALTER TABLE ONLY connection_links ALTER COLUMN id SET DEFAULT nextval('connection_links_id_seq'::regclass);
2833
+
2834
+
2835
+ --
2836
+ -- Name: id; Type: DEFAULT; Schema: grenoble2; Owner: -
2837
+ --
2838
+
2839
+ ALTER TABLE ONLY facilities ALTER COLUMN id SET DEFAULT nextval('facilities_id_seq'::regclass);
2840
+
2841
+
2842
+ --
2843
+ -- Name: id; Type: DEFAULT; Schema: grenoble2; Owner: -
2844
+ --
2845
+
2846
+ ALTER TABLE ONLY group_of_lines ALTER COLUMN id SET DEFAULT nextval('group_of_lines_id_seq'::regclass);
2847
+
2848
+
2849
+ --
2850
+ -- Name: id; Type: DEFAULT; Schema: grenoble2; Owner: -
2851
+ --
2852
+
2853
+ ALTER TABLE ONLY journey_patterns ALTER COLUMN id SET DEFAULT nextval('journey_patterns_id_seq'::regclass);
2854
+
2855
+
2856
+ --
2857
+ -- Name: id; Type: DEFAULT; Schema: grenoble2; Owner: -
2858
+ --
2859
+
2860
+ ALTER TABLE ONLY lines ALTER COLUMN id SET DEFAULT nextval('lines_id_seq'::regclass);
2861
+
2862
+
2863
+ --
2864
+ -- Name: id; Type: DEFAULT; Schema: grenoble2; Owner: -
2865
+ --
2866
+
2867
+ ALTER TABLE ONLY networks ALTER COLUMN id SET DEFAULT nextval('networks_id_seq'::regclass);
2868
+
2869
+
2870
+ --
2871
+ -- Name: id; Type: DEFAULT; Schema: grenoble2; Owner: -
2872
+ --
2873
+
2874
+ ALTER TABLE ONLY pt_links ALTER COLUMN id SET DEFAULT nextval('pt_links_id_seq'::regclass);
2875
+
2876
+
2877
+ --
2878
+ -- Name: id; Type: DEFAULT; Schema: grenoble2; Owner: -
2879
+ --
2880
+
2881
+ ALTER TABLE ONLY routes ALTER COLUMN id SET DEFAULT nextval('routes_id_seq'::regclass);
2882
+
2883
+
2884
+ --
2885
+ -- Name: id; Type: DEFAULT; Schema: grenoble2; Owner: -
2886
+ --
2887
+
2888
+ ALTER TABLE ONLY stop_areas ALTER COLUMN id SET DEFAULT nextval('stop_areas_id_seq'::regclass);
2889
+
2890
+
2891
+ --
2892
+ -- Name: id; Type: DEFAULT; Schema: grenoble2; Owner: -
2893
+ --
2894
+
2895
+ ALTER TABLE ONLY stop_points ALTER COLUMN id SET DEFAULT nextval('stop_points_id_seq'::regclass);
2896
+
2897
+
2898
+ --
2899
+ -- Name: id; Type: DEFAULT; Schema: grenoble2; Owner: -
2900
+ --
2901
+
2902
+ ALTER TABLE ONLY time_slots ALTER COLUMN id SET DEFAULT nextval('time_slots_id_seq'::regclass);
2903
+
2904
+
2905
+ --
2906
+ -- Name: id; Type: DEFAULT; Schema: grenoble2; Owner: -
2907
+ --
2908
+
2909
+ ALTER TABLE ONLY time_tables ALTER COLUMN id SET DEFAULT nextval('time_tables_id_seq'::regclass);
2910
+
2911
+
2912
+ --
2913
+ -- Name: id; Type: DEFAULT; Schema: grenoble2; Owner: -
2914
+ --
2915
+
2916
+ ALTER TABLE ONLY vehicle_journey_at_stops ALTER COLUMN id SET DEFAULT nextval('vehicle_journey_at_stops_id_seq'::regclass);
2917
+
2918
+
2919
+ --
2920
+ -- Name: id; Type: DEFAULT; Schema: grenoble2; Owner: -
2921
+ --
2922
+
2923
+ ALTER TABLE ONLY vehicle_journeys ALTER COLUMN id SET DEFAULT nextval('vehicle_journeys_id_seq'::regclass);
2924
+
2925
+
2926
+ --
2927
+ -- Name: access_links_pkey; Type: CONSTRAINT; Schema: grenoble2; Owner: -; Tablespace:
2928
+ --
2929
+
2930
+ ALTER TABLE ONLY access_links
2931
+ ADD CONSTRAINT access_links_pkey PRIMARY KEY (id);
2932
+
2933
+
2934
+ --
2935
+ -- Name: access_points_pkey; Type: CONSTRAINT; Schema: grenoble2; Owner: -; Tablespace:
2936
+ --
2937
+
2938
+ ALTER TABLE ONLY access_points
2939
+ ADD CONSTRAINT access_points_pkey PRIMARY KEY (id);
2940
+
2941
+
2942
+ --
2943
+ -- Name: companies_pkey; Type: CONSTRAINT; Schema: grenoble2; Owner: -; Tablespace:
2944
+ --
2945
+
2946
+ ALTER TABLE ONLY companies
2947
+ ADD CONSTRAINT companies_pkey PRIMARY KEY (id);
2948
+
2949
+
2950
+ --
2951
+ -- Name: connection_links_pkey; Type: CONSTRAINT; Schema: grenoble2; Owner: -; Tablespace:
2952
+ --
2953
+
2954
+ ALTER TABLE ONLY connection_links
2955
+ ADD CONSTRAINT connection_links_pkey PRIMARY KEY (id);
2956
+
2957
+
2958
+ --
2959
+ -- Name: facilities_pkey; Type: CONSTRAINT; Schema: grenoble2; Owner: -; Tablespace:
2960
+ --
2961
+
2962
+ ALTER TABLE ONLY facilities
2963
+ ADD CONSTRAINT facilities_pkey PRIMARY KEY (id);
2964
+
2965
+
2966
+ --
2967
+ -- Name: group_of_lines_pkey; Type: CONSTRAINT; Schema: grenoble2; Owner: -; Tablespace:
2968
+ --
2969
+
2970
+ ALTER TABLE ONLY group_of_lines
2971
+ ADD CONSTRAINT group_of_lines_pkey PRIMARY KEY (id);
2972
+
2973
+
2974
+ --
2975
+ -- Name: groupofline_line_pkey; Type: CONSTRAINT; Schema: grenoble2; Owner: -; Tablespace:
2976
+ --
2977
+
2978
+ ALTER TABLE ONLY group_of_lines_lines
2979
+ ADD CONSTRAINT groupofline_line_pkey PRIMARY KEY (group_of_line_id, line_id);
2980
+
2981
+
2982
+ --
2983
+ -- Name: journey_patterns_pkey; Type: CONSTRAINT; Schema: grenoble2; Owner: -; Tablespace:
2984
+ --
2985
+
2986
+ ALTER TABLE ONLY journey_patterns
2987
+ ADD CONSTRAINT journey_patterns_pkey PRIMARY KEY (id);
2988
+
2989
+
2990
+ --
2991
+ -- Name: journeypatternstoppoint_pkey; Type: CONSTRAINT; Schema: grenoble2; Owner: -; Tablespace:
2992
+ --
2993
+
2994
+ ALTER TABLE ONLY journey_patterns_stop_points
2995
+ ADD CONSTRAINT journeypatternstoppoint_pkey PRIMARY KEY (journey_pattern_id, stop_point_id);
2996
+
2997
+
2998
+ --
2999
+ -- Name: lines_pkey; Type: CONSTRAINT; Schema: grenoble2; Owner: -; Tablespace:
3000
+ --
3001
+
3002
+ ALTER TABLE ONLY lines
3003
+ ADD CONSTRAINT lines_pkey PRIMARY KEY (id);
3004
+
3005
+
3006
+ --
3007
+ -- Name: networks_pkey; Type: CONSTRAINT; Schema: grenoble2; Owner: -; Tablespace:
3008
+ --
3009
+
3010
+ ALTER TABLE ONLY networks
3011
+ ADD CONSTRAINT networks_pkey PRIMARY KEY (id);
3012
+
3013
+
3014
+ --
3015
+ -- Name: pt_links_pkey; Type: CONSTRAINT; Schema: grenoble2; Owner: -; Tablespace:
3016
+ --
3017
+
3018
+ ALTER TABLE ONLY pt_links
3019
+ ADD CONSTRAINT pt_links_pkey PRIMARY KEY (id);
3020
+
3021
+
3022
+ --
3023
+ -- Name: routes_pkey; Type: CONSTRAINT; Schema: grenoble2; Owner: -; Tablespace:
3024
+ --
3025
+
3026
+ ALTER TABLE ONLY routes
3027
+ ADD CONSTRAINT routes_pkey PRIMARY KEY (id);
3028
+
3029
+
3030
+ --
3031
+ -- Name: stop_areas_pkey; Type: CONSTRAINT; Schema: grenoble2; Owner: -; Tablespace:
3032
+ --
3033
+
3034
+ ALTER TABLE ONLY stop_areas
3035
+ ADD CONSTRAINT stop_areas_pkey PRIMARY KEY (id);
3036
+
3037
+
3038
+ --
3039
+ -- Name: stop_points_pkey; Type: CONSTRAINT; Schema: grenoble2; Owner: -; Tablespace:
3040
+ --
3041
+
3042
+ ALTER TABLE ONLY stop_points
3043
+ ADD CONSTRAINT stop_points_pkey PRIMARY KEY (id);
3044
+
3045
+
3046
+ --
3047
+ -- Name: time_slots_pkey; Type: CONSTRAINT; Schema: grenoble2; Owner: -; Tablespace:
3048
+ --
3049
+
3050
+ ALTER TABLE ONLY time_slots
3051
+ ADD CONSTRAINT time_slots_pkey PRIMARY KEY (id);
3052
+
3053
+
3054
+ --
3055
+ -- Name: time_table_dates_pkey; Type: CONSTRAINT; Schema: grenoble2; Owner: -; Tablespace:
3056
+ --
3057
+
3058
+ ALTER TABLE ONLY time_table_dates
3059
+ ADD CONSTRAINT time_table_dates_pkey PRIMARY KEY (time_table_id, "position");
3060
+
3061
+
3062
+ --
3063
+ -- Name: time_table_periods_pkey; Type: CONSTRAINT; Schema: grenoble2; Owner: -; Tablespace:
3064
+ --
3065
+
3066
+ ALTER TABLE ONLY time_table_periods
3067
+ ADD CONSTRAINT time_table_periods_pkey PRIMARY KEY (time_table_id, "position");
3068
+
3069
+
3070
+ --
3071
+ -- Name: time_tables_pkey; Type: CONSTRAINT; Schema: grenoble2; Owner: -; Tablespace:
3072
+ --
3073
+
3074
+ ALTER TABLE ONLY time_tables
3075
+ ADD CONSTRAINT time_tables_pkey PRIMARY KEY (id);
3076
+
3077
+
3078
+ --
3079
+ -- Name: timetablevehiclejourney_pkey; Type: CONSTRAINT; Schema: grenoble2; Owner: -; Tablespace:
3080
+ --
3081
+
3082
+ ALTER TABLE ONLY time_tables_vehicle_journeys
3083
+ ADD CONSTRAINT timetablevehiclejourney_pkey PRIMARY KEY (time_table_id, vehicle_journey_id);
3084
+
3085
+
3086
+ --
3087
+ -- Name: vehicle_journey_at_stops_pkey; Type: CONSTRAINT; Schema: grenoble2; Owner: -; Tablespace:
3088
+ --
3089
+
3090
+ ALTER TABLE ONLY vehicle_journey_at_stops
3091
+ ADD CONSTRAINT vehicle_journey_at_stops_pkey PRIMARY KEY (id);
3092
+
3093
+
3094
+ --
3095
+ -- Name: vehicle_journey_at_stops_vehicle_journey_id_key; Type: CONSTRAINT; Schema: grenoble2; Owner: -; Tablespace:
3096
+ --
3097
+
3098
+ ALTER TABLE ONLY vehicle_journey_at_stops
3099
+ ADD CONSTRAINT vehicle_journey_at_stops_vehicle_journey_id_key UNIQUE (vehicle_journey_id, stop_point_id);
3100
+
3101
+
3102
+ --
3103
+ -- Name: vehicle_journeys_pkey; Type: CONSTRAINT; Schema: grenoble2; Owner: -; Tablespace:
3104
+ --
3105
+
3106
+ ALTER TABLE ONLY vehicle_journeys
3107
+ ADD CONSTRAINT vehicle_journeys_pkey PRIMARY KEY (id);
3108
+
3109
+
3110
+ --
3111
+ -- Name: aclk_acpt_fkey; Type: FK CONSTRAINT; Schema: grenoble2; Owner: -
3112
+ --
3113
+
3114
+ ALTER TABLE ONLY access_links
3115
+ ADD CONSTRAINT aclk_acpt_fkey FOREIGN KEY (access_point_id) REFERENCES access_points(id) ON DELETE CASCADE;
3116
+
3117
+
3118
+ --
3119
+ -- Name: aclk_area_fkey; Type: FK CONSTRAINT; Schema: grenoble2; Owner: -
3120
+ --
3121
+
3122
+ ALTER TABLE ONLY access_links
3123
+ ADD CONSTRAINT aclk_area_fkey FOREIGN KEY (stop_area_id) REFERENCES stop_areas(id) ON DELETE CASCADE;
3124
+
3125
+
3126
+ --
3127
+ -- Name: arrival_point_fkey; Type: FK CONSTRAINT; Schema: grenoble2; Owner: -
3128
+ --
3129
+
3130
+ ALTER TABLE ONLY journey_patterns
3131
+ ADD CONSTRAINT arrival_point_fkey FOREIGN KEY (arrival_stop_point_id) REFERENCES stop_points(id) ON DELETE SET NULL;
3132
+
3133
+
3134
+ --
3135
+ -- Name: colk_endarea_fkey; Type: FK CONSTRAINT; Schema: grenoble2; Owner: -
3136
+ --
3137
+
3138
+ ALTER TABLE ONLY connection_links
3139
+ ADD CONSTRAINT colk_endarea_fkey FOREIGN KEY (arrival_id) REFERENCES stop_areas(id) ON DELETE CASCADE;
3140
+
3141
+
3142
+ --
3143
+ -- Name: colk_startarea_fkey; Type: FK CONSTRAINT; Schema: grenoble2; Owner: -
3144
+ --
3145
+
3146
+ ALTER TABLE ONLY connection_links
3147
+ ADD CONSTRAINT colk_startarea_fkey FOREIGN KEY (departure_id) REFERENCES stop_areas(id) ON DELETE CASCADE;
3148
+
3149
+
3150
+ --
3151
+ -- Name: departure_point_fkey; Type: FK CONSTRAINT; Schema: grenoble2; Owner: -
3152
+ --
3153
+
3154
+ ALTER TABLE ONLY journey_patterns
3155
+ ADD CONSTRAINT departure_point_fkey FOREIGN KEY (departure_stop_point_id) REFERENCES stop_points(id) ON DELETE SET NULL;
3156
+
3157
+
3158
+ --
3159
+ -- Name: faci_area_fkey; Type: FK CONSTRAINT; Schema: grenoble2; Owner: -
3160
+ --
3161
+
3162
+ ALTER TABLE ONLY facilities
3163
+ ADD CONSTRAINT faci_area_fkey FOREIGN KEY (stop_area_id) REFERENCES stop_areas(id) ON DELETE CASCADE;
3164
+
3165
+
3166
+ --
3167
+ -- Name: faci_colk_fkey; Type: FK CONSTRAINT; Schema: grenoble2; Owner: -
3168
+ --
3169
+
3170
+ ALTER TABLE ONLY facilities
3171
+ ADD CONSTRAINT faci_colk_fkey FOREIGN KEY (connection_link_id) REFERENCES connection_links(id) ON DELETE CASCADE;
3172
+
3173
+
3174
+ --
3175
+ -- Name: faci_line_fkey; Type: FK CONSTRAINT; Schema: grenoble2; Owner: -
3176
+ --
3177
+
3178
+ ALTER TABLE ONLY facilities
3179
+ ADD CONSTRAINT faci_line_fkey FOREIGN KEY (line_id) REFERENCES lines(id) ON DELETE CASCADE;
3180
+
3181
+
3182
+ --
3183
+ -- Name: faci_stpt_fkey; Type: FK CONSTRAINT; Schema: grenoble2; Owner: -
3184
+ --
3185
+
3186
+ ALTER TABLE ONLY facilities
3187
+ ADD CONSTRAINT faci_stpt_fkey FOREIGN KEY (stop_point_id) REFERENCES stop_points(id) ON DELETE CASCADE;
3188
+
3189
+
3190
+ --
3191
+ -- Name: facility_feature_fkey; Type: FK CONSTRAINT; Schema: grenoble2; Owner: -
3192
+ --
3193
+
3194
+ ALTER TABLE ONLY facilities_features
3195
+ ADD CONSTRAINT facility_feature_fkey FOREIGN KEY (facility_id) REFERENCES facilities(id) ON DELETE CASCADE;
3196
+
3197
+
3198
+ --
3199
+ -- Name: groupofline_group_fkey; Type: FK CONSTRAINT; Schema: grenoble2; Owner: -
3200
+ --
3201
+
3202
+ ALTER TABLE ONLY group_of_lines_lines
3203
+ ADD CONSTRAINT groupofline_group_fkey FOREIGN KEY (group_of_line_id) REFERENCES group_of_lines(id) ON DELETE CASCADE;
3204
+
3205
+
3206
+ --
3207
+ -- Name: groupofline_line_fkey; Type: FK CONSTRAINT; Schema: grenoble2; Owner: -
3208
+ --
3209
+
3210
+ ALTER TABLE ONLY group_of_lines_lines
3211
+ ADD CONSTRAINT groupofline_line_fkey FOREIGN KEY (line_id) REFERENCES lines(id) ON DELETE CASCADE;
3212
+
3213
+
3214
+ --
3215
+ -- Name: jp_route_fkey; Type: FK CONSTRAINT; Schema: grenoble2; Owner: -
3216
+ --
3217
+
3218
+ ALTER TABLE ONLY journey_patterns
3219
+ ADD CONSTRAINT jp_route_fkey FOREIGN KEY (route_id) REFERENCES routes(id) ON DELETE CASCADE;
3220
+
3221
+
3222
+ --
3223
+ -- Name: jpsp_jp_fkey; Type: FK CONSTRAINT; Schema: grenoble2; Owner: -
3224
+ --
3225
+
3226
+ ALTER TABLE ONLY journey_patterns_stop_points
3227
+ ADD CONSTRAINT jpsp_jp_fkey FOREIGN KEY (journey_pattern_id) REFERENCES journey_patterns(id) ON DELETE CASCADE;
3228
+
3229
+
3230
+ --
3231
+ -- Name: jpsp_stoppoint_fkey; Type: FK CONSTRAINT; Schema: grenoble2; Owner: -
3232
+ --
3233
+
3234
+ ALTER TABLE ONLY journey_patterns_stop_points
3235
+ ADD CONSTRAINT jpsp_stoppoint_fkey FOREIGN KEY (stop_point_id) REFERENCES stop_points(id) ON DELETE CASCADE;
3236
+
3237
+
3238
+ --
3239
+ -- Name: line_company_fkey; Type: FK CONSTRAINT; Schema: grenoble2; Owner: -
3240
+ --
3241
+
3242
+ ALTER TABLE ONLY lines
3243
+ ADD CONSTRAINT line_company_fkey FOREIGN KEY (company_id) REFERENCES companies(id) ON DELETE SET NULL;
3244
+
3245
+
3246
+ --
3247
+ -- Name: line_ptnetwork_fkey; Type: FK CONSTRAINT; Schema: grenoble2; Owner: -
3248
+ --
3249
+
3250
+ ALTER TABLE ONLY lines
3251
+ ADD CONSTRAINT line_ptnetwork_fkey FOREIGN KEY (ptnetwork_id) REFERENCES networks(id) ON DELETE SET NULL;
3252
+
3253
+
3254
+ --
3255
+ -- Name: ptlink_route_fkey; Type: FK CONSTRAINT; Schema: grenoble2; Owner: -
3256
+ --
3257
+
3258
+ ALTER TABLE ONLY pt_links
3259
+ ADD CONSTRAINT ptlink_route_fkey FOREIGN KEY (route_id) REFERENCES routes(id) ON DELETE CASCADE;
3260
+
3261
+
3262
+ --
3263
+ -- Name: ptlk_endstpt_fkey; Type: FK CONSTRAINT; Schema: grenoble2; Owner: -
3264
+ --
3265
+
3266
+ ALTER TABLE ONLY pt_links
3267
+ ADD CONSTRAINT ptlk_endstpt_fkey FOREIGN KEY (end_of_link_id) REFERENCES stop_points(id) ON DELETE SET NULL;
3268
+
3269
+
3270
+ --
3271
+ -- Name: ptlk_startstpt_fkey; Type: FK CONSTRAINT; Schema: grenoble2; Owner: -
3272
+ --
3273
+
3274
+ ALTER TABLE ONLY pt_links
3275
+ ADD CONSTRAINT ptlk_startstpt_fkey FOREIGN KEY (start_of_link_id) REFERENCES stop_points(id) ON DELETE SET NULL;
3276
+
3277
+
3278
+ --
3279
+ -- Name: route_line_fkey; Type: FK CONSTRAINT; Schema: grenoble2; Owner: -
3280
+ --
3281
+
3282
+ ALTER TABLE ONLY routes
3283
+ ADD CONSTRAINT route_line_fkey FOREIGN KEY (line_id) REFERENCES lines(id) ON DELETE CASCADE;
3284
+
3285
+
3286
+ --
3287
+ -- Name: routingconstraint_line_fkey; Type: FK CONSTRAINT; Schema: grenoble2; Owner: -
3288
+ --
3289
+
3290
+ ALTER TABLE ONLY routing_constraints_lines
3291
+ ADD CONSTRAINT routingconstraint_line_fkey FOREIGN KEY (line_id) REFERENCES lines(id) ON DELETE CASCADE;
3292
+
3293
+
3294
+ --
3295
+ -- Name: routingconstraint_stoparea_fkey; Type: FK CONSTRAINT; Schema: grenoble2; Owner: -
3296
+ --
3297
+
3298
+ ALTER TABLE ONLY routing_constraints_lines
3299
+ ADD CONSTRAINT routingconstraint_stoparea_fkey FOREIGN KEY (stop_area_id) REFERENCES stop_areas(id) ON DELETE CASCADE;
3300
+
3301
+
3302
+ --
3303
+ -- Name: stoparea_child_fkey; Type: FK CONSTRAINT; Schema: grenoble2; Owner: -
3304
+ --
3305
+
3306
+ ALTER TABLE ONLY stop_areas_stop_areas
3307
+ ADD CONSTRAINT stoparea_child_fkey FOREIGN KEY (child_id) REFERENCES stop_areas(id) ON DELETE CASCADE;
3308
+
3309
+
3310
+ --
3311
+ -- Name: stoparea_parent_fkey; Type: FK CONSTRAINT; Schema: grenoble2; Owner: -
3312
+ --
3313
+
3314
+ ALTER TABLE ONLY stop_areas_stop_areas
3315
+ ADD CONSTRAINT stoparea_parent_fkey FOREIGN KEY (parent_id) REFERENCES stop_areas(id) ON DELETE CASCADE;
3316
+
3317
+
3318
+ --
3319
+ -- Name: stoppoint_area_fkey; Type: FK CONSTRAINT; Schema: grenoble2; Owner: -
3320
+ --
3321
+
3322
+ ALTER TABLE ONLY stop_points
3323
+ ADD CONSTRAINT stoppoint_area_fkey FOREIGN KEY (stop_area_id) REFERENCES stop_areas(id) ON DELETE SET NULL;
3324
+
3325
+
3326
+ --
3327
+ -- Name: stoppoint_route_fkey; Type: FK CONSTRAINT; Schema: grenoble2; Owner: -
3328
+ --
3329
+
3330
+ ALTER TABLE ONLY stop_points
3331
+ ADD CONSTRAINT stoppoint_route_fkey FOREIGN KEY (route_id) REFERENCES routes(id) ON DELETE CASCADE;
3332
+
3333
+
3334
+ --
3335
+ -- Name: tm_date_fkey; Type: FK CONSTRAINT; Schema: grenoble2; Owner: -
3336
+ --
3337
+
3338
+ ALTER TABLE ONLY time_table_dates
3339
+ ADD CONSTRAINT tm_date_fkey FOREIGN KEY (time_table_id) REFERENCES time_tables(id) ON DELETE CASCADE;
3340
+
3341
+
3342
+ --
3343
+ -- Name: tm_period_fkey; Type: FK CONSTRAINT; Schema: grenoble2; Owner: -
3344
+ --
3345
+
3346
+ ALTER TABLE ONLY time_table_periods
3347
+ ADD CONSTRAINT tm_period_fkey FOREIGN KEY (time_table_id) REFERENCES time_tables(id) ON DELETE CASCADE;
3348
+
3349
+
3350
+ --
3351
+ -- Name: vj_company_fkey; Type: FK CONSTRAINT; Schema: grenoble2; Owner: -
3352
+ --
3353
+
3354
+ ALTER TABLE ONLY vehicle_journeys
3355
+ ADD CONSTRAINT vj_company_fkey FOREIGN KEY (company_id) REFERENCES companies(id) ON DELETE SET NULL;
3356
+
3357
+
3358
+ --
3359
+ -- Name: vj_jp_fkey; Type: FK CONSTRAINT; Schema: grenoble2; Owner: -
3360
+ --
3361
+
3362
+ ALTER TABLE ONLY vehicle_journeys
3363
+ ADD CONSTRAINT vj_jp_fkey FOREIGN KEY (journey_pattern_id) REFERENCES journey_patterns(id) ON DELETE CASCADE;
3364
+
3365
+
3366
+ --
3367
+ -- Name: vj_route_fkey; Type: FK CONSTRAINT; Schema: grenoble2; Owner: -
3368
+ --
3369
+
3370
+ ALTER TABLE ONLY vehicle_journeys
3371
+ ADD CONSTRAINT vj_route_fkey FOREIGN KEY (route_id) REFERENCES routes(id) ON DELETE CASCADE;
3372
+
3373
+
3374
+ --
3375
+ -- Name: vj_timeslot_fkey; Type: FK CONSTRAINT; Schema: grenoble2; Owner: -
3376
+ --
3377
+
3378
+ ALTER TABLE ONLY vehicle_journeys
3379
+ ADD CONSTRAINT vj_timeslot_fkey FOREIGN KEY (time_slot_id) REFERENCES time_slots(id) ON DELETE SET NULL;
3380
+
3381
+
3382
+ --
3383
+ -- Name: vjas_sp_fkey; Type: FK CONSTRAINT; Schema: grenoble2; Owner: -
3384
+ --
3385
+
3386
+ ALTER TABLE ONLY vehicle_journey_at_stops
3387
+ ADD CONSTRAINT vjas_sp_fkey FOREIGN KEY (stop_point_id) REFERENCES stop_points(id) ON DELETE CASCADE;
3388
+
3389
+
3390
+ --
3391
+ -- Name: vjas_vj_fkey; Type: FK CONSTRAINT; Schema: grenoble2; Owner: -
3392
+ --
3393
+
3394
+ ALTER TABLE ONLY vehicle_journey_at_stops
3395
+ ADD CONSTRAINT vjas_vj_fkey FOREIGN KEY (vehicle_journey_id) REFERENCES vehicle_journeys(id) ON DELETE CASCADE;
3396
+
3397
+
3398
+ --
3399
+ -- Name: vjtm_tm_fkey; Type: FK CONSTRAINT; Schema: grenoble2; Owner: -
3400
+ --
3401
+
3402
+ ALTER TABLE ONLY time_tables_vehicle_journeys
3403
+ ADD CONSTRAINT vjtm_tm_fkey FOREIGN KEY (time_table_id) REFERENCES time_tables(id) ON DELETE CASCADE;
3404
+
3405
+
3406
+ --
3407
+ -- Name: vjtm_vj_fkey; Type: FK CONSTRAINT; Schema: grenoble2; Owner: -
3408
+ --
3409
+
3410
+ ALTER TABLE ONLY time_tables_vehicle_journeys
3411
+ ADD CONSTRAINT vjtm_vj_fkey FOREIGN KEY (vehicle_journey_id) REFERENCES vehicle_journeys(id) ON DELETE CASCADE;
3412
+
3413
+
3414
+ --
3415
+ -- PostgreSQL database dump complete
3416
+ --
3417
+