forked from noxious/server
npm update, added depth field to zoneObjects model, added zoneEventTile model
This commit is contained in:
@ -85,6 +85,7 @@ model Zone {
|
||||
width Int
|
||||
height Int
|
||||
tiles Json
|
||||
zoneEventTiles ZoneEventTile[]
|
||||
zoneObjects ZoneObject[]
|
||||
characters Character[]
|
||||
chats Chat[]
|
||||
@ -98,6 +99,23 @@ model ZoneObject {
|
||||
zone Zone @relation(fields: [zoneId], references: [id], onDelete: Cascade)
|
||||
objectId String
|
||||
object Object @relation(fields: [objectId], references: [id])
|
||||
depth Int
|
||||
position_x Int
|
||||
position_y Int
|
||||
}
|
||||
|
||||
enum ZoneEventTileType {
|
||||
BLOCK
|
||||
WARP
|
||||
NPC
|
||||
ITEM
|
||||
}
|
||||
|
||||
model ZoneEventTile {
|
||||
id Int @id @default(autoincrement())
|
||||
zoneId Int
|
||||
zone Zone @relation(fields: [zoneId], references: [id], onDelete: Cascade)
|
||||
type ZoneEventTileType
|
||||
position_x Int
|
||||
position_y Int
|
||||
}
|
||||
|
Reference in New Issue
Block a user