Initial commit

This commit is contained in:
2022-08-12 14:49:16 +02:00
commit b9b0c10e1c
22 changed files with 3737 additions and 0 deletions

17
storage/bookings.go Normal file
View File

@@ -0,0 +1,17 @@
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
}