Avoid saving entire vehicle in database
This commit is contained in:
@@ -19,7 +19,7 @@ type Booking struct {
|
|||||||
Data map[string]any `json:"data"`
|
Data map[string]any `json:"data"`
|
||||||
|
|
||||||
Deleted bool
|
Deleted bool
|
||||||
Vehicle Vehicle
|
Vehicle Vehicle `json:"vehicle" bson:"-"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b Booking) Status() int {
|
func (b Booking) Status() int {
|
||||||
|
|||||||
Reference in New Issue
Block a user