remove appointment from events

This commit is contained in:
PxlLoewe
2026-01-18 01:09:39 +01:00
parent 606379d151
commit 9129652912
22 changed files with 105 additions and 1133 deletions

View File

@@ -5,33 +5,17 @@ enum EVENT_TYPE {
EVENT
}
model EventAppointment {
id Int @id @default(autoincrement())
eventId Int
appointmentDate DateTime
presenterId String
// relations:
Users User[] @relation("EventAppointmentUser")
Participants Participant[]
Event Event @relation(fields: [eventId], references: [id], onDelete: Cascade)
Presenter User @relation(fields: [presenterId], references: [id])
}
model Participant {
id Int @id @default(autoincrement())
userId String @map(name: "user_id")
finisherMoodleCurseCompleted Boolean @default(false)
attended Boolean @default(false)
appointmentCancelled Boolean @default(false)
eventAppointmentId Int?
enscriptionDate DateTime @default(now())
statusLog Json[] @default([])
eventId Int
statusLog Json[] @default([])
eventId Int
// relations:
User User @relation(fields: [userId], references: [id], onDelete: Cascade)
Event Event @relation(fields: [eventId], references: [id], onDelete: Cascade)
EventAppointment EventAppointment? @relation(fields: [eventAppointmentId], references: [id])
User User @relation(fields: [userId], references: [id], onDelete: Cascade)
Event Event @relation(fields: [eventId], references: [id], onDelete: Cascade)
}
model Event {
@@ -41,8 +25,6 @@ model Event {
description String
type EVENT_TYPE @default(EVENT)
discordRoleId String? @default("")
hasPresenceEvents Boolean @default(false)
maxParticipants Int? @default(0)
finisherMoodleCourseId String? @default("")
finishedBadges BADGES[] @default([])
requiredBadges BADGES[] @default([])
@@ -51,7 +33,6 @@ model Event {
// relations:
Participants Participant[]
Appointments EventAppointment[]
}
model File {