added manager, driver, order, route, vehicle, warehouse endpoints,models and migrations.
This commit is contained in:
19
internal/models/warehouse.go
Normal file
19
internal/models/warehouse.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
type Warehouse struct {
|
||||
ID uuid.UUID `db:"id"`
|
||||
Slug string `db:"slug"`
|
||||
Name string `db:"name"`
|
||||
Address string `db:"address"`
|
||||
City string `db:"city"`
|
||||
Latitude float64 `db:"latitude"`
|
||||
Longitude float64 `db:"longitude"`
|
||||
Status string `db:"status"` // active, inactive
|
||||
CreatedAt time.Time `db:"created_at"`
|
||||
}
|
||||
Reference in New Issue
Block a user