Vehicle
Option required
Vehicles are only available if the VEHICLE option is enabled on the project.
Definition
A Vehicle is a means of transport that can be associated with a movement. Its primary purpose is to record which vehicle was used and who was driving it, so that the driver can be identified in the event of a traffic incident.
Organization
└── Project
└── VehicleMain attributes
| Attribute | Description |
|---|---|
| License plate | The vehicle’s registration number |
| Brand | The vehicle manufacturer |
| Model | The vehicle model |
| Availability dates | Date and time range defining when the vehicle is available |
Status
A vehicle does not have an explicit status field. Its availability state is derived from:
| Situation | Implied availability state |
|---|---|
| Has been soft deleted | DISABLED |
| Arrival date is in the future | NOT_AVAILABLE_YET |
| End date is in the past | NO_MORE_AVAILABLE |
| No dates set OR today is between start and end dates | AVAILABLE |
For the runtime presence status (derived from movement history: IN, OUT), see Movement — Vehicle presence status. The two statuses are independent: the table above is computed from the vehicle's availability dates, while the presence status is computed from its movement history.
Availability dates
A vehicle can have its own availability dates (start and end). These are optional. If not set, the vehicle is full-time available.
Relationships
| Related object | Relationship |
|---|---|
| Project | A vehicle belongs to one project |
| Movement | A vehicle can be attached to one or more movements |