Skip to content

Commit 99534e1

Browse files
Update SQL schema for VehicleModel
1 parent 6399f38 commit 99534e1

1 file changed

Lines changed: 39 additions & 3 deletions

File tree

VehicleModel/schema.sql

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,39 @@
1-
/* (Beta) Export of data model VehicleModel of the subject dataModel.Transportation for a PostgreSQL database. Pending translation of enumerations and multityped attributes */
2-
CREATE TYPE fuelType_type AS ENUM ('autogas','biodiesel','cng','diesel','electric','ethanol','gasoline','hybrid_electric_diesel','hybrid_electric_petrol','hydrogen','lpg','petrol','petrol(unleaded)','petrol(leaded)','other');CREATE TYPE VehicleModel_type AS ENUM ('VehicleModel');CREATE TYPE vehicleType_type AS ENUM ('agriculturalVehicle','bicycle','binTrolley','bus','car','caravan','carWithCaravan','carWithTrailer','cleaningTrolley','constructionOrMaintenanceVehicle','lorry','minibus','moped','motorcycle','motorcycleWithSideCar','motorscooter','sweepingMachine','tanker','trailer','tram','van','trolley');
3-
CREATE TABLE VehicleModel (address JSON, alternateName TEXT, annotations JSON, areaServed TEXT, brandName TEXT, cargoVolume NUMERIC, color TEXT, dataProvider TEXT, dateCreated TIMESTAMP, dateModified TIMESTAMP, depth NUMERIC, description TEXT, fuelConsumption NUMERIC, fuelType fuelType_type, height NUMERIC, id TEXT PRIMARY KEY, image TEXT, location JSON, manufacturerName TEXT, modelName TEXT, name TEXT, owner JSON, seeAlso JSON, source TEXT, type VehicleModel_type, url TEXT, vehicleEngine TEXT, vehicleModelDate TIMESTAMP, vehicleType vehicleType_type, weight NUMERIC, width NUMERIC);
1+
/* (Beta) Export of data model VehicleModel of the subject dataModel.Transportation
2+
for a PostgreSQL database. Pending translation of enumerations and multityped attributes */
3+
CREATE TYPE fuelType_type AS ENUM ('autogas', 'biodiesel', 'cng', 'diesel', 'electric', 'ethanol', 'gasoline', 'hybrid_electric_diesel', 'hybrid_electric_petrol', 'hydrogen', 'lpg', 'petrol', 'petrol(unleaded)', 'petrol(leaded)', 'other');
4+
CREATE TYPE VehicleModel_type AS ENUM ('VehicleModel');
5+
CREATE TYPE vehicleType_type AS ENUM ('agriculturalVehicle', 'bicycle', 'binTrolley', 'bus', 'car', 'caravan', 'carWithCaravan', 'carWithTrailer', 'cleaningTrolley', 'constructionOrMaintenanceVehicle', 'lorry', 'minibus', 'moped', 'motorcycle', 'motorcycleWithSideCar', 'motorscooter', 'sweepingMachine', 'tanker', 'trailer', 'tram', 'van', 'trolley');
6+
7+
CREATE TABLE VehicleModel (
8+
address JSON,
9+
alternateName TEXT,
10+
annotations JSON,
11+
areaServed TEXT,
12+
brandName TEXT,
13+
cargoVolume NUMERIC,
14+
color TEXT,
15+
dataProvider TEXT,
16+
dateCreated TIMESTAMP,
17+
dateModified TIMESTAMP,
18+
depth NUMERIC,
19+
description TEXT,
20+
fuelConsumption NUMERIC,
21+
fuelType fuelType_type,
22+
height NUMERIC,
23+
id TEXT PRIMARY KEY,
24+
image TEXT,
25+
location JSON,
26+
manufacturerName TEXT,
27+
modelName TEXT,
28+
name TEXT,
29+
owner JSON,
30+
seeAlso JSON,
31+
source TEXT,
32+
type VehicleModel_type,
33+
url TEXT,
34+
vehicleEngine TEXT,
35+
vehicleModelDate TIMESTAMP,
36+
vehicleType vehicleType_type,
37+
weight NUMERIC,
38+
width NUMERIC
39+
);

0 commit comments

Comments
 (0)