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