Skip to content

Commit ab65634

Browse files
Update SQL schema for OSMParkingArea
1 parent 85958e8 commit ab65634

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

OSMParkingArea/schema.sql

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/* (Beta) Export of data model OSMParkingArea 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', 'customers', 'destination');
4+
CREATE TYPE osmType_type AS ENUM ('node', 'way', 'relation');
5+
CREATE TYPE parkingType_type AS ENUM ('surface', 'multi-storey', 'underground', 'street_side', 'rooftop', 'sheds', 'carports', 'garage_boxes', 'lane');
6+
CREATE TYPE surface_type AS ENUM ('asphalt', 'concrete', 'gravel', 'dirt', 'paving_stones', 'cobblestone', 'unpaved', 'grass', 'compacted');
7+
CREATE TYPE OSMParkingArea_type AS ENUM ('OSMParkingArea');
8+
CREATE TYPE wheelchair_type AS ENUM ('yes', 'no', 'limited');
9+
10+
CREATE TABLE OSMParkingArea (
11+
access access_type,
12+
address JSON,
13+
alternateName TEXT,
14+
areaServed TEXT,
15+
capacity NUMERIC,
16+
capacityDisabled NUMERIC,
17+
dataProvider TEXT,
18+
dateCreated TIMESTAMP,
19+
dateModified TIMESTAMP,
20+
description TEXT,
21+
fee BOOLEAN,
22+
id TEXT PRIMARY KEY,
23+
lit BOOLEAN,
24+
location JSON,
25+
maxStay TEXT,
26+
name TEXT,
27+
openingHours TEXT,
28+
operator TEXT,
29+
osmId NUMERIC,
30+
osmLastModified TIMESTAMP,
31+
osmType osmType_type,
32+
owner JSON,
33+
parkingType parkingType_type,
34+
seeAlso JSON,
35+
source TEXT,
36+
surface surface_type,
37+
type OSMParkingArea_type,
38+
wheelchair wheelchair_type
39+
);

0 commit comments

Comments
 (0)