forked from noxious/server
Added equipment tables and columns in game & user schema
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user