mirror of
https://github.com/Steffo99/festa.git
synced 2024-12-23 07:04:22 +00:00
Add ride sharing models
This commit is contained in:
parent
6145bc414c
commit
2792860e3e
1 changed files with 17 additions and 11 deletions
|
@ -90,6 +90,7 @@ model Vehicle {
|
||||||
driver Partecipant @relation("VehicleDrive", fields: [driverId], references: [id])
|
driver Partecipant @relation("VehicleDrive", fields: [driverId], references: [id])
|
||||||
riders Partecipant[] @relation("VehicleRide")
|
riders Partecipant[] @relation("VehicleRide")
|
||||||
//
|
//
|
||||||
|
type VehicleType @default(CAR)
|
||||||
slots Int @default(4)
|
slots Int @default(4)
|
||||||
password String?
|
password String?
|
||||||
//
|
//
|
||||||
|
@ -99,6 +100,11 @@ model Vehicle {
|
||||||
arrivalAt DateTime
|
arrivalAt DateTime
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum VehicleType {
|
||||||
|
CAR
|
||||||
|
OTHER
|
||||||
|
}
|
||||||
|
|
||||||
enum VoyageType {
|
enum VoyageType {
|
||||||
TO
|
TO
|
||||||
FROM
|
FROM
|
||||||
|
|
Loading…
Reference in a new issue