added manager, driver, order, route, vehicle, warehouse endpoints,models and migrations.
This commit is contained in:
15
internal/models/vehicle.go
Normal file
15
internal/models/vehicle.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package models
|
||||
|
||||
import "github.com/google/uuid"
|
||||
|
||||
type Vehicle struct {
|
||||
ID uuid.UUID `db:"id"`
|
||||
PlateNumber string `db:"plate_number"`
|
||||
Brand string `db:"brand"`
|
||||
Model string `db:"model"`
|
||||
Year int `db:"year"`
|
||||
CapacityKg float64 `db:"capacity_kg"`
|
||||
CapacityM3 float64 `db:"capacity_m3"`
|
||||
Status string `db:"status"` // available, in_transit, maintenance
|
||||
Slug string `db:"slug"`
|
||||
}
|
||||
Reference in New Issue
Block a user