Skip to content

Commit 47c10cd

Browse files
Update SQL schema for OSMAmenity
1 parent a389937 commit 47c10cd

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

OSMAmenity/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 OSMAmenity of the subject dataModel.OpenStreetMap
2+
for a PostgreSQL database. Pending translation of enumerations and multityped attributes */
3+
CREATE TYPE amenityType_type AS ENUM ('restaurant', 'cafe', 'bar', 'fast_food', 'pub', 'ice_cream', 'biergarten', 'food_court', 'school', 'kindergarten', 'university', 'college', 'library', 'music_school', 'driving_school', 'hospital', 'clinic', 'pharmacy', 'doctors', 'dentist', 'veterinary', 'bank', 'atm', 'bureau_de_change', 'post_office', 'police', 'fire_station', 'place_of_worship', 'courthouse', 'townhall', 'fuel', 'parking', 'bicycle_parking', 'car_sharing', 'bus_station', 'taxi', 'toilets', 'bench', 'drinking_water', 'fountain', 'waste_basket', 'waste_disposal', 'recycling');
4+
CREATE TYPE osmType_type AS ENUM ('node', 'way', 'relation');
5+
CREATE TYPE takeaway_type AS ENUM ('yes', 'no', 'only');
6+
CREATE TYPE OSMAmenity_type AS ENUM ('OSMAmenity');
7+
CREATE TYPE wheelchair_type AS ENUM ('yes', 'no', 'limited');
8+
9+
CREATE TABLE OSMAmenity (
10+
address JSON,
11+
alternateName TEXT,
12+
amenityType amenityType_type,
13+
areaServed TEXT,
14+
capacity NUMERIC,
15+
cuisine TEXT,
16+
dataProvider TEXT,
17+
dateCreated TIMESTAMP,
18+
dateModified TIMESTAMP,
19+
delivery BOOLEAN,
20+
description TEXT,
21+
fee BOOLEAN,
22+
id TEXT PRIMARY KEY,
23+
location JSON,
24+
name TEXT,
25+
openingHours TEXT,
26+
osmId NUMERIC,
27+
osmLastModified TIMESTAMP,
28+
osmType osmType_type,
29+
outdoorSeating BOOLEAN,
30+
owner JSON,
31+
phone TEXT,
32+
seeAlso JSON,
33+
source TEXT,
34+
takeaway takeaway_type,
35+
type OSMAmenity_type,
36+
website TEXT,
37+
wheelchair wheelchair_type
38+
);

0 commit comments

Comments
 (0)