Skip to content

Commit bd9e070

Browse files
Update SQL schema for OSMShop
1 parent 31b0d91 commit bd9e070

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

OSMShop/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 OSMShop of the subject dataModel.OpenStreetMap
2+
for a PostgreSQL database. Pending translation of enumerations and multityped attributes */
3+
CREATE TYPE organic_type AS ENUM ('yes', 'no', 'only');
4+
CREATE TYPE osmType_type AS ENUM ('node', 'way', 'relation');
5+
CREATE TYPE shopType_type AS ENUM ('supermarket', 'convenience', 'bakery', 'butcher', 'greengrocer', 'deli', 'clothes', 'shoes', 'boutique', 'tailor', 'jewelry', 'optician', 'cosmetics', 'hairdresser', 'beauty', 'massage', 'tattoo', 'car', 'car_repair', 'bicycle', 'hardware', 'electronics', 'mobile_phone', 'computer', 'doityourself', 'florist', 'gift', 'books', 'stationery', 'sports', 'fishing', 'outdoor', 'pet', 'toys', 'furniture', 'interior_decoration', 'laundry', 'dry_cleaning');
6+
CREATE TYPE OSMShop_type AS ENUM ('OSMShop');
7+
CREATE TYPE wheelchair_type AS ENUM ('yes', 'no', 'limited');
8+
9+
CREATE TABLE OSMShop (
10+
address JSON,
11+
alternateName TEXT,
12+
areaServed TEXT,
13+
brand TEXT,
14+
dataProvider TEXT,
15+
dateCreated TIMESTAMP,
16+
dateModified TIMESTAMP,
17+
description TEXT,
18+
id TEXT PRIMARY KEY,
19+
location JSON,
20+
name TEXT,
21+
openingHours TEXT,
22+
operator TEXT,
23+
organic organic_type,
24+
osmId NUMERIC,
25+
osmLastModified TIMESTAMP,
26+
osmType osmType_type,
27+
owner JSON,
28+
phone TEXT,
29+
seeAlso JSON,
30+
shopType shopType_type,
31+
source TEXT,
32+
type OSMShop_type,
33+
website TEXT,
34+
wheelchair wheelchair_type
35+
);

0 commit comments

Comments
 (0)