mirror of
https://github.com/detleph/server.git
synced 2026-09-09 23:44:51 +02:00
Adding VisualElement (v.2.1)
This commit is contained in:
+15
-1
@@ -19,6 +19,7 @@ model Event {
|
||||
disciplines Discipline[]
|
||||
organisations Organisation[]
|
||||
campaign Campaign[]
|
||||
visual VisualElement[]
|
||||
}
|
||||
|
||||
model Campaign {
|
||||
@@ -65,6 +66,7 @@ model Discipline {
|
||||
teams Team[]
|
||||
event Event @relation(fields: [eventId], references: [id])
|
||||
eventId Int
|
||||
visual VisualElement[]
|
||||
}
|
||||
|
||||
model RoleSchema {
|
||||
@@ -76,6 +78,7 @@ model RoleSchema {
|
||||
roles Role[]
|
||||
discipline Discipline @relation(fields: [disciplineId], references: [id])
|
||||
disciplineId Int
|
||||
visual VisualElement[]
|
||||
}
|
||||
|
||||
model Team {
|
||||
@@ -95,6 +98,7 @@ model Participant {
|
||||
firstName String
|
||||
lastName String
|
||||
gender Gender
|
||||
relevance Job
|
||||
|
||||
group Group @relation(fields: [groupId], references: [id])
|
||||
groupId Int
|
||||
@@ -105,7 +109,6 @@ model Role {
|
||||
id Int @id @default(autoincrement())
|
||||
pid String @unique @default(dbgenerated("gen_random"))
|
||||
name String //e.g. runner, swimmer,...
|
||||
importance Job
|
||||
score String
|
||||
|
||||
participant Participant? @relation(fields: [participantId], references: [id])
|
||||
@@ -140,6 +143,17 @@ model Group {
|
||||
admins Admin[]
|
||||
}
|
||||
|
||||
model VisualElement {
|
||||
id Int @id @default(autoincrement())
|
||||
pid String @unique @default(dbgenerated("gen_random_uuid()")) @db.Uuid
|
||||
description String
|
||||
location String
|
||||
|
||||
event Event[]
|
||||
discipline Discipline[]
|
||||
role RoleSchema[]
|
||||
}
|
||||
|
||||
enum AdminLevel {
|
||||
STANDARD
|
||||
ELEVATED
|
||||
|
||||
Reference in New Issue
Block a user