Anzeige für lsitenplatz, sortierung nach Datum

This commit is contained in:
PxlLoewe
2025-03-11 00:25:42 -07:00
parent 92dff8f3c9
commit 07310907f1
6 changed files with 129 additions and 27 deletions

View File

@@ -17,19 +17,21 @@ model EventAppointment {
}
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)
completetionWorkflowFinished Boolean @default(false)
id Int @id @default(autoincrement())
userId String @map(name: "user_id")
finisherMoodleCurseCompleted Boolean @default(false)
attended Boolean @default(false)
appointmentCancelled Boolean @default(false)
completetionWorkflowFinished Boolean @default(false)
eventAppointmentId Int?
statusLog Json[] @default([])
eventId Int
enscriptionDate DateTime @default(now())
statusLog Json[] @default([])
eventId Int
// relations:
User User @relation(fields: [userId], references: [id])
Event Event @relation(fields: [eventId], references: [id])
EventAppointment EventAppointment? @relation(fields: [eventAppointmentId], references: [id])
User User @relation(fields: [userId], references: [id])
Event Event @relation(fields: [eventId], references: [id])
EventAppointment EventAppointment? @relation(fields: [eventAppointmentId], references: [id])
}
model Event {

View File

@@ -27,7 +27,7 @@ model User {
moodleId Int? @map(name: "moodle_id")
emailVerified DateTime? @map(name: "email_verified")
image String?
badges BADGES[] @unique @default([])
badges BADGES[] @default([])
permissions PERMISSION[] @default([])
createdAt DateTime @default(now()) @map(name: "created_at")
updatedAt DateTime @default(now()) @map(name: "updated_at")