Pfadauswahl hinzugefügt

This commit is contained in:
PxlLoewe
2025-06-25 21:06:03 -07:00
parent 7ad75bff63
commit 2bd8a455c8
14 changed files with 253 additions and 90 deletions

View File

@@ -1,6 +1,7 @@
enum EVENT_TYPE {
COURSE
OBLIGATED_COURSE
PILOT_STARTER
DISPATCH_STARTER
EVENT
}
@@ -12,7 +13,7 @@ model EventAppointment {
// relations:
Users User[] @relation("EventAppointmentUser")
Participants Participant[]
Event Event @relation(fields: [eventId], references: [id])
Event Event @relation(fields: [eventId], references: [id], onDelete: Cascade)
Presenter User @relation(fields: [presenterId], references: [id])
}
@@ -29,7 +30,7 @@ model Participant {
eventId Int
// relations:
User User @relation(fields: [userId], references: [id], onDelete: Cascade)
Event Event @relation(fields: [eventId], references: [id])
Event Event @relation(fields: [eventId], references: [id], onDelete: Cascade)
EventAppointment EventAppointment? @relation(fields: [eventAppointmentId], references: [id])
}
@@ -48,8 +49,8 @@ model Event {
hidden Boolean @default(true)
// relations:
participants Participant[]
appointments EventAppointment[]
Participants Participant[]
Appointments EventAppointment[]
}
model File {