fleets/storage/bookings.go

18 lines
500 B
Go
Raw Normal View History

2022-08-12 12:49:16 +00:00
package storage
import "time"
type Booking struct {
ID string `json:"id" bson:"_id"`
Vehicleid string `json:"vehicleid"`
Driver string `json:"driver"`
Startdate time.Time `json:"startdate"`
Enddate time.Time `json:"enddate"`
Unavailablefrom time.Time `json:"unavailablefrom"`
Unavailableto time.Time `json:"unavailableto"`
Data map[string]any `json:"data"`
Deleted bool
Vehicle Vehicle
}