Add PostgreSQL database option and more booking flow functionalities
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
package internal
|
||||
|
||||
import "git.coopgo.io/coopgo-platform/carpool-service/interoperability/ocss"
|
||||
import (
|
||||
"git.coopgo.io/coopgo-platform/carpool-service/interoperability/ocss"
|
||||
"github.com/paulmach/orb/geojson"
|
||||
)
|
||||
|
||||
type Booking struct {
|
||||
ID string `bson:"_id"`
|
||||
Roles []string // At least one of ["driver", "passenger"]
|
||||
BookingDefinition ocss.Booking
|
||||
DriverJourney *PlannedJourney
|
||||
PassengerJourney *PlannedJourney
|
||||
ocss.Booking `bson:",inline"`
|
||||
|
||||
DriverRoute *geojson.FeatureCollection `bson:"driver_route,omitempty"`
|
||||
PassengerRoute *geojson.FeatureCollection `bson:"passenger_route,omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user