Refactor to use PostGIS database instead of gtfs tools
[busui.git] / transitdata.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
--
-- PostgreSQL database dump
--
 
SET statement_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = off;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET escape_string_warning = off;
 
SET search_path = public, pg_catalog;
 
SET default_tablespace = '';
 
SET default_with_oids = false;
 
--
-- Name: trips; Type: TABLE; Schema: public; Owner: postgres; Tablespace: 
--
 
CREATE TABLE trips (
    route_id integer,
    trip_id integer NOT NULL,
    trip_headsign text,
    service_id text
);
 
 
ALTER TABLE public.trips OWNER TO postgres;
 
--
-- Data for Name: trips; Type: TABLE DATA; Schema: public; Owner: postgres
--
 
COPY trips (route_id, trip_id, trip_headsign, service_id) FROM stdin;
\.
 
 
--
-- Name: trips_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace: 
--
 
ALTER TABLE ONLY trips
    ADD CONSTRAINT trips_pkey PRIMARY KEY (trip_id);
 
 
--
-- Name: routetrips; Type: INDEX; Schema: public; Owner: postgres; Tablespace: 
--
 
CREATE INDEX routetrips ON trips USING btree (route_id);
 
 
--
-- PostgreSQL database dump complete
--