Files
carpool-service/internal/booking.go
Arnaud Delcasse 38cb3c5ad9
All checks were successful
Build and Push Docker Image / build_and_push (push) Successful in 1m58s
Add motivation field to organized carpool bookings
2025-10-08 18:51:22 +02:00

16 lines
565 B
Go

package internal
import (
"git.coopgo.io/coopgo-platform/carpool-service/interoperability/ocss"
"github.com/paulmach/orb/geojson"
)
// Booking is the internal struct to desribe a booking. It overrides ocss.Booking and adds driver and passenger routes
type Booking struct {
ocss.Booking `bson:",inline"`
DriverRoute *geojson.FeatureCollection `bson:"driver_route,omitempty"`
PassengerRoute *geojson.FeatureCollection `bson:"passenger_route,omitempty"`
Motivation *string `bson:"motivation,omitempty" json:"motivation,omitempty"`
}