Skip to content

Commit 0f6f900

Browse files
Update SQL schema for OSMCycleRoute
1 parent 86e7d84 commit 0f6f900

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

OSMCycleRoute/schema.sql

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/* (Beta) Export of data model OSMCycleRoute of the subject dataModel.OpenStreetMap
2+
for a PostgreSQL database. Pending translation of enumerations and multityped attributes */
3+
CREATE TYPE access_type AS ENUM ('yes', 'no', 'private', 'permissive', 'destination', 'designated');
4+
CREATE TYPE cyclewayType_type AS ENUM ('lane', 'track', 'opposite', 'opposite_lane', 'shared_busway', 'path', 'separate', 'shared');
5+
CREATE TYPE osmType_type AS ENUM ('node', 'way', 'relation');
6+
CREATE TYPE surface_type AS ENUM ('asphalt', 'concrete', 'gravel', 'dirt', 'paving_stones', 'cobblestone', 'unpaved', 'grass', 'compacted', 'fine_gravel', 'sand', 'ground', 'wood');
7+
CREATE TYPE OSMCycleRoute_type AS ENUM ('OSMCycleRoute');
8+
9+
CREATE TABLE OSMCycleRoute (
10+
access access_type,
11+
address JSON,
12+
alternateName TEXT,
13+
areaServed TEXT,
14+
cyclewayType cyclewayType_type,
15+
dataProvider TEXT,
16+
dateCreated TIMESTAMP,
17+
dateModified TIMESTAMP,
18+
description TEXT,
19+
id TEXT PRIMARY KEY,
20+
lit BOOLEAN,
21+
location JSON,
22+
maxSpeed NUMERIC,
23+
name TEXT,
24+
ncnRef TEXT,
25+
oneway BOOLEAN,
26+
operator TEXT,
27+
osmId NUMERIC,
28+
osmLastModified TIMESTAMP,
29+
osmType osmType_type,
30+
owner JSON,
31+
rcnRef TEXT,
32+
seeAlso JSON,
33+
segregated BOOLEAN,
34+
source TEXT,
35+
surface surface_type,
36+
type OSMCycleRoute_type,
37+
widthMeters NUMERIC
38+
);

0 commit comments

Comments
 (0)