Skip to content

Commit a389937

Browse files
Update SQL schema for OSMAerialway
1 parent 7757518 commit a389937

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

OSMAerialway/schema.sql

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/* (Beta) Export of data model OSMAerialway of the subject dataModel.OpenStreetMap
2+
for a PostgreSQL database. Pending translation of enumerations and multityped attributes */
3+
CREATE TYPE aerialwayType_type AS ENUM ('cable_car', 'gondola', 'mixed_lift', 'chair_lift', 'drag_lift', 't-bar', 'j-bar', 'platter', 'rope_tow', 'magic_carpet', 'zip_line', 'goods', 'pylon', 'station');
4+
CREATE TYPE osmType_type AS ENUM ('node', 'way', 'relation');
5+
CREATE TYPE OSMAerialway_type AS ENUM ('OSMAerialway');
6+
7+
CREATE TABLE OSMAerialway (
8+
address JSON,
9+
aerialwayType aerialwayType_type,
10+
alternateName TEXT,
11+
areaServed TEXT,
12+
bubble BOOLEAN,
13+
capacity NUMERIC,
14+
dataProvider TEXT,
15+
dateCreated TIMESTAMP,
16+
dateModified TIMESTAMP,
17+
description TEXT,
18+
duration NUMERIC,
19+
elevationGain NUMERIC,
20+
heating BOOLEAN,
21+
id TEXT PRIMARY KEY,
22+
location JSON,
23+
name TEXT,
24+
occupancy NUMERIC,
25+
operator TEXT,
26+
osmId NUMERIC,
27+
osmLastModified TIMESTAMP,
28+
osmType osmType_type,
29+
owner JSON,
30+
seeAlso JSON,
31+
source TEXT,
32+
type OSMAerialway_type
33+
);

0 commit comments

Comments
 (0)