feat: 연감 기능 추가 및 데이터베이스 모델 생성

This commit is contained in:
2026-01-28 16:18:14 +00:00
parent 321aa8f5c1
commit 8c5ab5074d
7 changed files with 525 additions and 1 deletions
+15
View File
@@ -213,6 +213,21 @@ model DiplomacyLetter {
@@map("diplomacy_letter")
}
model YearbookHistory {
id Int @id @default(autoincrement())
profileName String @map("profile_name")
year Int
month Int
map Json
nations Json
hash String @default("")
createdAt DateTime @default(now()) @map("created_at")
@@unique([profileName, year, month])
@@index([profileName, year, month])
@@map("yearbook_history")
}
model Event {
id Int @id @default(autoincrement())
targetCode String @map("target_code")