Skip to main content

Autonomous Driving

Autonomous Driving Schema

Diagram example

Vehicle Table

ColumnTypeDescription
vehicle_idintegerPrimary key for the vehicle
vinstringVehicle Identification Number
makestringMake of the vehicle
modelstringModel of the vehicle
yearintegerYear of the vehicle
owner_idintegerForeign key to the owner table
created_atdatetimeTimestamp of when the vehicle was added
updated_atdatetimeTimestamp of when the vehicle was last updated

Owner Table

ColumnTypeDescription
owner_idintegerPrimary key for the owner
first_namestringFirst name of the owner
last_namestringLast name of the owner
emailstringEmail address of the owner
created_atdatetimeTimestamp of when the owner was added
updated_atdatetimeTimestamp of when the owner was last updated

Trip Table

ColumnTypeDescription
trip_idintegerPrimary key for the trip
vehicle_idintegerForeign key to the vehicle table
start_timedatetimeTimestamp of when the trip started
end_timedatetimeTimestamp of when the trip ended
start_location_latfloatLatitude of the starting location
start_location_lngfloatLongitude of the starting location
end_location_latfloatLatitude of the ending location
end_location_lngfloatLongitude of the ending location
created_atdatetimeTimestamp of when the trip was added
updated_atdatetimeTimestamp of when the trip was last updated

Sensor Data Table

ColumnTypeDescription
sensor_data_idintegerPrimary key for the sensor data
trip_idintegerForeign key to the trip table
timestampdatetimeTimestamp of when the sensor data was recorded
sensor_typestringType of sensor used to collect the data
sensor_datajsonJSON object containing sensor data
created_atdatetimeTimestamp of when the sensor data was added
updated_atdatetimeTimestamp of when the sensor data was last updated

Lane Data Table

ColumnTypeDescription
lane_data_idintegerPrimary key for the lane data
trip_idintegerForeign key to the trip table
timestampdatetimeTimestamp of when the lane data was recorded
lane_typestringType of lane detected
lane_datajsonJSON object containing lane data
created_atdatetimeTimestamp of when the lane data was added
updated_atdatetimeTimestamp of when the lane data was last updated

Vehicle Data Table

ColumnTypeDescription
vehicle_data_idintegerPrimary key for the vehicle data
trip_idintegerForeign key to the trip table
timestampdatetimeTimestamp of when the vehicle data was recorded
speedfloatCurrent speed of the vehicle
odometerfloatCurrent odometer reading of the vehicle
battery_levelfloatCurrent battery level of the vehicle
created_atdatetimeTimestamp of when the vehicle data was added
updated_atdatetimeTimestamp of when the vehicle data was last updated

Collision Data Table

ColumnTypeDescription
collision_data_idintegerPrimary key for the collision data
trip_idintegerForeign key to the trip table
timestampdatetimeTimestamp of when the collision data was recorded
collision_typestringType of collision detected
collision_datajsonJSON object containing collision data
created_atdatetimeTimestamp of when the collision data was added
updated_atdatetimeTimestamp of when the collision data was last updated

Mapping Data Table

ColumnTypeDescription
mapping_data_idintegerPrimary key for the mapping data
trip_idintegerForeign key to the trip table
timestampdatetimeTimestamp of when the mapping data was recorded
map_typestringType of map data collected
map_datajsonJSON object containing mapping data
created_atdatetimeTimestamp of when the mapping data was added
updated_atdatetimeTimestamp of when the mapping data was last updated