BusinessSupport/VehicleSimulation/src/main/resources/schema.sql

15 lines
409 B
SQL

create table if not exists vehicle (
`vin` char (17) primary key not null,
`remaining_battery` DOUBLE not null,
`total_mileage` DOUBLE not null,
`battery_level` DOUBLE not null,
`create_time` datetime not null
) ;
create table if not exists route_info (
`id` int primary key not null ,
`name` char (3) not null,
`data` CLOB not null,
`create_time` datetime not null
) ;