Skip to content

Commit 214082e

Browse files
Update SQL schema for ElectricVehicleMobility
1 parent eae696b commit 214082e

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

ElectricVehicleMobility/schema.sql

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/* (Beta) Export of data model ElectricVehicleMobility of the subject dataModel.Transportation
2+
for a PostgreSQL database. Pending translation of enumerations and multityped attributes */
3+
CREATE TYPE region_type AS ENUM ('CONTINENTE', 'AÇORES', 'MADEIRA', 'Outros - GDPR');
4+
CREATE TYPE ElectricVehicleMobility_type AS ENUM ('ElectricVehicleMobility');
5+
CREATE TYPE vehicleType_type AS ENUM ('BEV', 'PHEV', 'HEV', 'FCEV', 'unknown');
6+
7+
CREATE TABLE ElectricVehicleMobility (
8+
address JSON,
9+
alternateName TEXT,
10+
areaServed TEXT,
11+
averageDistanceKm NUMERIC,
12+
dataProvider TEXT,
13+
dateCreated TIMESTAMP,
14+
dateModified TIMESTAMP,
15+
dateObserved DATE,
16+
description TEXT,
17+
deviceBrand TEXT,
18+
district TEXT,
19+
id TEXT PRIMARY KEY,
20+
location JSON,
21+
locationCode TEXT,
22+
municipality TEXT,
23+
n NUMERIC,
24+
name TEXT,
25+
owner JSON,
26+
region region_type,
27+
seeAlso JSON,
28+
source TEXT,
29+
type ElectricVehicleMobility_type,
30+
vehicleType vehicleType_type
31+
);

0 commit comments

Comments
 (0)