|
trip_id
|
int(10) unsigned
|
|
|
|
|
driver_id
|
int(10) unsigned
|
|
|
|
|
vehicle_id
|
int(10) unsigned
|
|
|
|
|
trip_code
|
varchar(30)
|
|
|
|
|
session_id
|
int(10) unsigned
|
|
|
|
|
starting_area
|
varchar(255)
|
|
|
|
|
start_lat
|
decimal(10,7)
|
|
|
|
|
start_lng
|
decimal(10,7)
|
|
|
|
|
started_at
|
datetime
|
|
|
current_timestamp()
|
|
ended_at
|
datetime
|
|
|
|
|
status
|
enum
|
-- |
|
active
|
|
start_photo_path
|
varchar(255)
|
|
|
|
|
end_photo_path
|
varchar(255)
|
|
|
|
|
start_odometer
|
decimal(10,1)
|
|
|
|
|
end_odometer
|
decimal(10,1)
|
|
|
|
|
start_ocr_km
|
decimal(10,1)
|
|
|
|
|
end_ocr_km
|
decimal(10,1)
|
|
|
|
|
start_photo_taken_at
|
datetime
|
|
|
|
|
end_photo_taken_at
|
datetime
|
|
|
|
|
notes
|
varchar(500)
|
|
|
|
|
created_at
|
datetime
|
|
|
current_timestamp()
|