Skip to content

Commit 4a91438

Browse files
Update SQL schema for OSMTourism
1 parent bd9e070 commit 4a91438

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

OSMTourism/schema.sql

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/* (Beta) Export of data model OSMTourism of the subject dataModel.OpenStreetMap
2+
for a PostgreSQL database. Pending translation of enumerations and multityped attributes */
3+
CREATE TYPE artworkType_type AS ENUM ('sculpture', 'statue', 'mural', 'bust', 'architecture', 'graffiti', 'installation', 'painting');
4+
CREATE TYPE information_type AS ENUM ('guidepost', 'board', 'map', 'office', 'terminal', 'audioguide');
5+
CREATE TYPE osmType_type AS ENUM ('node', 'way', 'relation');
6+
CREATE TYPE tourismType_type AS ENUM ('hotel', 'motel', 'hostel', 'guest_house', 'chalet', 'apartment', 'camp_site', 'caravan_site', 'alpine_hut', 'wilderness_hut', 'museum', 'gallery', 'theme_park', 'zoo', 'aquarium', 'attraction', 'viewpoint', 'artwork', 'information', 'picnic_site');
7+
CREATE TYPE OSMTourism_type AS ENUM ('OSMTourism');
8+
CREATE TYPE wheelchair_type AS ENUM ('yes', 'no', 'limited');
9+
10+
CREATE TABLE OSMTourism (
11+
address JSON,
12+
alternateName TEXT,
13+
areaServed TEXT,
14+
artworkType artworkType_type,
15+
dataProvider TEXT,
16+
dateCreated TIMESTAMP,
17+
dateModified TIMESTAMP,
18+
description TEXT,
19+
fee BOOLEAN,
20+
id TEXT PRIMARY KEY,
21+
information information_type,
22+
location JSON,
23+
name TEXT,
24+
osmId NUMERIC,
25+
osmLastModified TIMESTAMP,
26+
osmType osmType_type,
27+
owner JSON,
28+
rooms NUMERIC,
29+
seeAlso JSON,
30+
source TEXT,
31+
stars NUMERIC,
32+
tourismType tourismType_type,
33+
type OSMTourism_type,
34+
wheelchair wheelchair_type
35+
);

0 commit comments

Comments
 (0)