Assignment
Vehicle assignment to drivers, tracking which driver is assigned to which vehicle for a specific period
Properties
| Property | Type | Mode | Description | Required |
|---|---|---|---|---|
| assignmentId | string | Unique identifier for the assignment Example: | Required | |
| vehicleId | string | Reference to the vehicle being assigned Example: | Required | |
| driverId | string | Reference to the driver receiving the vehicle assignment Example: | Required | |
| startDate | string | Start date and time of the assignment Example: | Required | |
| endDate | string | End date and time of the assignment (null if ongoing) Example: | Optional | |
| assignmentType | string | Type of assignment (permanent, temporary, short-term) Example: | Required | |
| status | string | Current status of the assignment (active, completed, cancelled) Example: | Required | |
| startMileage | number | Vehicle mileage at the start of assignment Example: | Optional | |
| endMileage | number | Vehicle mileage at the end of assignment Example: | Optional | |
| notes | string | Additional notes or comments about the assignment Example: | Optional | |
| assignedBy | string | Person or system that created the assignment Example: | Optional | |
| createdAt | string | Timestamp when the assignment record was created Example: | Required | |
| updatedAt | string | Timestamp when the assignment record was last updated Example: | Optional |
Examples
Example 1
{
"@type": "Assignment",
"assignmentId": "ASSIGN-2024-001",
"vehicleId": "VEH-12345",
"driverId": "DRV-67890",
"startDate": "2024-01-15T08:00:00Z",
"endDate": null,
"assignmentType": "permanent",
"status": "active",
"startMileage": 45000,
"notes": "Primary vehicle for regional deliveries",
"assignedBy": "fleet-manager-001",
"createdAt": "2024-01-14T10:30:00Z",
"updatedAt": "2024-01-15T09:00:00Z"
}Example 2
{
"@type": "Assignment",
"assignmentId": "ASSIGN-2024-002",
"vehicleId": "VEH-54321",
"driverId": "DRV-11111",
"startDate": "2024-02-01T07:00:00Z",
"endDate": "2024-02-28T18:00:00Z",
"assignmentType": "temporary",
"status": "completed",
"startMileage": 30000,
"endMileage": 32500,
"notes": "Temporary replacement while regular vehicle in maintenance",
"assignedBy": "fleet-manager-002",
"createdAt": "2024-01-30T14:00:00Z",
"updatedAt": "2024-02-28T18:30:00Z"
}