Switch to translatable data
This commit is contained in:
+20
-12
@@ -64,9 +64,11 @@ model File {
|
||||
}
|
||||
|
||||
model Hunt {
|
||||
id Int @id @default(autoincrement())
|
||||
name String
|
||||
description String
|
||||
id Int @id @default(autoincrement())
|
||||
name_en String
|
||||
name_de String
|
||||
description_en String
|
||||
description_de String
|
||||
|
||||
virtual Boolean @default(false)
|
||||
start DateTime? @db.Timestamptz(3)
|
||||
@@ -154,12 +156,15 @@ enum TextType {
|
||||
}
|
||||
|
||||
model HuntQuest {
|
||||
id Int @id @default(autoincrement())
|
||||
title String
|
||||
description String @default("")
|
||||
question String?
|
||||
location String?
|
||||
locationLink String?
|
||||
id Int @id @default(autoincrement())
|
||||
title_en String
|
||||
title_de String
|
||||
description_en String @default("")
|
||||
description_de String @default("")
|
||||
question_en String?
|
||||
question_de String?
|
||||
location String?
|
||||
locationLink String?
|
||||
|
||||
picture File? @relation(fields: [pictureId], references: [id], onUpdate: Cascade, onDelete: Cascade)
|
||||
pictureId Int?
|
||||
@@ -172,9 +177,10 @@ model HuntQuest {
|
||||
textUnit String?
|
||||
textSolution String?
|
||||
|
||||
points Int @default(10) @db.SmallInt
|
||||
extraPoints Int? @db.SmallInt
|
||||
extraText String?
|
||||
points Int @default(10) @db.SmallInt
|
||||
extraPoints Int? @db.SmallInt
|
||||
extraText_en String?
|
||||
extraText_de String?
|
||||
|
||||
hunt Hunt @relation(fields: [huntId], references: [id], onUpdate: Cascade, onDelete: Cascade)
|
||||
huntId Int
|
||||
@@ -194,6 +200,8 @@ model QuestAnswer {
|
||||
lon Decimal? @db.Decimal(10, 8)
|
||||
final Boolean @default(false)
|
||||
|
||||
lang String @default("de") @db.Char(2)
|
||||
|
||||
team HuntTeam @relation(fields: [teamId], references: [id], onUpdate: Cascade, onDelete: Cascade)
|
||||
teamId Int
|
||||
|
||||
|
||||
Reference in New Issue
Block a user