added manager, driver, order, route, vehicle, warehouse endpoints,models and migrations.
This commit is contained in:
18
internal/models/driver.go
Normal file
18
internal/models/driver.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
type Driver struct {
|
||||
ID uuid.UUID `db:"id"`
|
||||
UserID uuid.UUID `db:"user_id"`
|
||||
VehicleID *uuid.UUID `db:"vehicle_id"`
|
||||
LicenseNumber string `db:"license_number"`
|
||||
LicenseExpiry time.Time `db:"license_expiry"`
|
||||
Rating float64 `db:"rating"`
|
||||
Slug string `db:"slug"`
|
||||
Status string `db:"status"` // available, on_route, off_duty
|
||||
}
|
||||
Reference in New Issue
Block a user