-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.sql
30 lines (26 loc) · 849 Bytes
/
init.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
CREATE SCHEMA IF NOT EXISTS digitraffic;
CREATE TABLE IF NOT EXISTS digitraffic.station (
passenger_traffic boolean,
type text,
station_name text,
station_short_code text,
station_uic_code integer,
country_code text,
longitude numeric,
latitude numeric
);
CREATE TABLE IF NOT EXISTS digitraffic.operator (
operator_name text,
operator_short_code text,
operator_uic_code integer
);
CREATE TABLE IF NOT EXISTS digitraffic.cause_code (
category_code text,
category_name text,
valid_from date,
valid_to date
);
CREATE TABLE IF NOT EXISTS digitraffic.train_type (
name text,
train_category text
);