mirror of
https://github.com/detleph/server.git
synced 2026-09-07 07:56:18 +02:00
Removed Campaign, Link, Gender
This commit is contained in:
+1
-32
@@ -18,32 +18,9 @@ model Event {
|
|||||||
|
|
||||||
disciplines Discipline[]
|
disciplines Discipline[]
|
||||||
organisations Organisation[]
|
organisations Organisation[]
|
||||||
campaign Campaign[]
|
|
||||||
visual Media[]
|
visual Media[]
|
||||||
}
|
}
|
||||||
|
|
||||||
model Campaign {
|
|
||||||
id Int @id @default(autoincrement())
|
|
||||||
pid String @unique @default(dbgenerated("gen_random_uuid()")) @db.Uuid
|
|
||||||
start DateTime
|
|
||||||
expiresAt DateTime
|
|
||||||
|
|
||||||
links Link[]
|
|
||||||
event Event @relation(fields: [eventId], references: [id], onDelete: Cascade)
|
|
||||||
eventId Int @unique
|
|
||||||
}
|
|
||||||
|
|
||||||
model Link {
|
|
||||||
id Int @id @default(autoincrement())
|
|
||||||
pid String @unique @default(dbgenerated("gen_random_uuid()")) @db.Uuid
|
|
||||||
link String
|
|
||||||
|
|
||||||
campaign Campaign @relation(fields: [campaignId], references: [id], onDelete: Cascade)
|
|
||||||
campaignId Int
|
|
||||||
group Group @relation(fields: [groupId], references: [id], onDelete: Cascade)
|
|
||||||
groupId Int @unique
|
|
||||||
}
|
|
||||||
|
|
||||||
model Admin {
|
model Admin {
|
||||||
id Int @id @default(autoincrement())
|
id Int @id @default(autoincrement())
|
||||||
pid String @unique @default(dbgenerated("gen_random_uuid()")) @db.Uuid
|
pid String @unique @default(dbgenerated("gen_random_uuid()")) @db.Uuid
|
||||||
@@ -97,7 +74,6 @@ model Participant {
|
|||||||
pid String @unique @default(dbgenerated("gen_random_uuid()")) @db.Uuid
|
pid String @unique @default(dbgenerated("gen_random_uuid()")) @db.Uuid
|
||||||
firstName String
|
firstName String
|
||||||
lastName String
|
lastName String
|
||||||
gender Gender
|
|
||||||
relevance Job
|
relevance Job
|
||||||
|
|
||||||
group Group @relation(fields: [groupId], references: [id], onDelete: Cascade)
|
group Group @relation(fields: [groupId], references: [id], onDelete: Cascade)
|
||||||
@@ -134,11 +110,10 @@ model Group {
|
|||||||
name String
|
name String
|
||||||
user_limit Int @default(40)
|
user_limit Int @default(40)
|
||||||
level Int
|
level Int
|
||||||
|
|
||||||
organisation Organisation @relation(fields: [organisationId], references: [id], onDelete: Cascade)
|
organisation Organisation @relation(fields: [organisationId], references: [id], onDelete: Cascade)
|
||||||
organisationId Int
|
organisationId Int
|
||||||
|
|
||||||
participants Participant[]
|
participants Participant[]
|
||||||
link Link?
|
|
||||||
admins Admin[]
|
admins Admin[]
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -158,12 +133,6 @@ enum AdminLevel {
|
|||||||
ELEVATED
|
ELEVATED
|
||||||
}
|
}
|
||||||
|
|
||||||
enum Gender {
|
|
||||||
MALE
|
|
||||||
FEMALE
|
|
||||||
OTHER
|
|
||||||
}
|
|
||||||
|
|
||||||
enum Job {
|
enum Job {
|
||||||
TEAMLEADER
|
TEAMLEADER
|
||||||
MEMBER
|
MEMBER
|
||||||
|
|||||||
Reference in New Issue
Block a user