Implementiere i18n für Frontend, Admin und Datenbank
This commit is contained in:
@@ -28,8 +28,8 @@ model Song {
|
||||
|
||||
model Genre {
|
||||
id Int @id @default(autoincrement())
|
||||
name String @unique
|
||||
subtitle String?
|
||||
name Json // Multilingual: { "de": "Rock", "en": "Rock" }
|
||||
subtitle Json? // Multilingual
|
||||
active Boolean @default(true)
|
||||
songs Song[]
|
||||
dailyPuzzles DailyPuzzle[]
|
||||
@@ -37,8 +37,8 @@ model Genre {
|
||||
|
||||
model Special {
|
||||
id Int @id @default(autoincrement())
|
||||
name String @unique
|
||||
subtitle String?
|
||||
name Json // Multilingual
|
||||
subtitle Json? // Multilingual
|
||||
maxAttempts Int @default(7)
|
||||
unlockSteps String // JSON string: e.g. "[2, 4, 7, 11, 16, 30]"
|
||||
createdAt DateTime @default(now())
|
||||
@@ -77,8 +77,8 @@ model DailyPuzzle {
|
||||
|
||||
model News {
|
||||
id Int @id @default(autoincrement())
|
||||
title String
|
||||
content String // Markdown format
|
||||
title Json // Multilingual
|
||||
content Json // Multilingual
|
||||
author String? // Optional: curator/admin name
|
||||
publishedAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
Reference in New Issue
Block a user