deleted bookings management
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 3m2s

This commit is contained in:
Arnaud Delcasse
2025-10-08 09:27:56 +02:00
parent ce5e5f7acb
commit 0bf041b154
15 changed files with 573 additions and 942 deletions

View File

@@ -18,7 +18,7 @@ type Booking struct {
Unavailableto time.Time `json:"unavailableto"`
Data map[string]any `json:"data"`
Deleted bool
Deleted bool `json:"deleted"`
Vehicle Vehicle `json:"vehicle" bson:"-"`
}

View File

@@ -21,6 +21,7 @@ type VehicleFilters struct {
Administrators []string
AvailableFrom time.Time
AvailableTo time.Time
IncludeDeleted bool
}
func (v Vehicle) Free(start time.Time, end time.Time) bool {