Skip to content

Commit ccd877c

Browse files
Update SQL schema for OSMPublicTransportStop
1 parent ab65634 commit ccd877c

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

OSMPublicTransportStop/schema.sql

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/* (Beta) Export of data model OSMPublicTransportStop of the subject dataModel.OpenStreetMap
2+
for a PostgreSQL database. Pending translation of enumerations and multityped attributes */
3+
CREATE TYPE osmType_type AS ENUM ('node', 'way', 'relation');
4+
CREATE TYPE publicTransportType_type AS ENUM ('stop_position', 'platform', 'station', 'stop_area');
5+
CREATE TYPE OSMPublicTransportStop_type AS ENUM ('OSMPublicTransportStop');
6+
CREATE TYPE wheelchair_type AS ENUM ('yes', 'no', 'limited');
7+
8+
CREATE TABLE OSMPublicTransportStop (
9+
address JSON,
10+
alternateName TEXT,
11+
areaServed TEXT,
12+
bench BOOLEAN,
13+
bin BOOLEAN,
14+
dataProvider TEXT,
15+
dateCreated TIMESTAMP,
16+
dateModified TIMESTAMP,
17+
description TEXT,
18+
id TEXT PRIMARY KEY,
19+
location JSON,
20+
name TEXT,
21+
network TEXT,
22+
openingHours TEXT,
23+
operator TEXT,
24+
osmId NUMERIC,
25+
osmLastModified TIMESTAMP,
26+
osmType osmType_type,
27+
owner JSON,
28+
publicTransportType publicTransportType_type,
29+
ref TEXT,
30+
seeAlso JSON,
31+
shelter BOOLEAN,
32+
source TEXT,
33+
tactilePaving BOOLEAN,
34+
transportMode JSON,
35+
type OSMPublicTransportStop_type,
36+
wheelchair wheelchair_type
37+
);

0 commit comments

Comments
 (0)