Skip to content

Commit 7757518

Browse files
Update SQL schema for OSMAddressPoint
1 parent dc28f8e commit 7757518

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

OSMAddressPoint/schema.sql

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/* (Beta) Export of data model OSMAddressPoint of the subject dataModel.OpenStreetMap
2+
for a PostgreSQL database. Pending translation of enumerations and multityped attributes */
3+
CREATE TYPE osmType_type AS ENUM ('node', 'way', 'relation');
4+
CREATE TYPE OSMAddressPoint_type AS ENUM ('OSMAddressPoint');
5+
6+
CREATE TABLE OSMAddressPoint (
7+
address JSON,
8+
addressCity TEXT,
9+
addressCountry TEXT,
10+
addressDistrict TEXT,
11+
addressProvince TEXT,
12+
alternateName TEXT,
13+
areaServed TEXT,
14+
dataProvider TEXT,
15+
dateCreated TIMESTAMP,
16+
dateModified TIMESTAMP,
17+
description TEXT,
18+
fullAddress TEXT,
19+
houseName TEXT,
20+
houseNumber TEXT,
21+
id TEXT PRIMARY KEY,
22+
location JSON,
23+
name TEXT,
24+
osmId NUMERIC,
25+
osmLastModified TIMESTAMP,
26+
osmType osmType_type,
27+
owner JSON,
28+
postalCode TEXT,
29+
refBuilding TEXT,
30+
seeAlso JSON,
31+
source TEXT,
32+
streetAddress TEXT,
33+
type OSMAddressPoint_type
34+
);

0 commit comments

Comments
 (0)