This commit is contained in:
gpatruno
2026-07-18 17:25:56 +02:00
parent 2614d679c8
commit 2168998679
26 changed files with 2760 additions and 894 deletions
+12
View File
@@ -13,6 +13,7 @@ model User {
passwordHash String
balance BigInt @default(0)
osuBalance Int @default(0)
prBalance Int @default(0)
lastAdAt DateTime?
role String @default("user")
avatarUrl String @default("")
@@ -23,6 +24,15 @@ model User {
prestigeChanceBonus Int @default(0)
prestigeGainBonus Int @default(0)
prestigeKeyOpenReduction Int @default(0)
prestigeStartBonus Int @default(0)
prestigeAdBonus Int @default(0)
prestigeAdCooldownReduction Int @default(0)
prestigeWearBonus Int @default(0)
prestigePrBonus Int @default(0)
prestigeShopDiscount Int @default(0)
prestigeStartOsu Int @default(0)
prestigeDropValueBonus Int @default(0)
prestigeOpenBonus Int @default(0)
lastConnection DateTime?
playTimeSeconds BigInt @default(0)
createdAt DateTime @default(now())
@@ -56,6 +66,7 @@ model Item {
name String
imageUrl String @default("")
rarity String
category String @default("Misc")
marketValue BigInt
createdAt DateTime @default(now())
cases CaseItem[]
@@ -187,6 +198,7 @@ model PrestigeLog {
id Int @id @default(autoincrement())
userId Int
choice String
prGranted Int @default(0)
createdAt DateTime @default(now())
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
}