1
0
forked from noxious/server

Added equipment tables and columns in game & user schema

This commit is contained in:
2024-12-17 16:59:52 +01:00
parent 3b0138130b
commit 4748044ab3
3 changed files with 87 additions and 98 deletions

View File

@ -42,11 +42,33 @@ model SpriteAction {
}
model Item {
id String @id @default(uuid())
id String @id @default(uuid())
name String
description String?
stackable Boolean @default(false)
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
itemType ItemType
stackable Boolean @default(false)
rarity ItemRarity @default(COMMON)
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
characters CharacterItem[]
equipment EquippedCharacterItem[]
}
enum ItemType {
WEAPON
HELMET
CHEST
LEGS
BOOTS
GLOVES
RING
NECKLACE
}
enum ItemRarity {
COMMON
UNCOMMON
RARE
EPIC
LEGENDARY
}