code update
This commit is contained in:
@ -26,12 +26,12 @@ model User {
|
||||
position_x Int?
|
||||
position_y Int?
|
||||
rotation Int?
|
||||
mapId Int? @unique
|
||||
map Map? @relation(fields: [mapId], references: [id])
|
||||
zoneId Int? @unique
|
||||
zone Zone? @relation(fields: [zoneId], references: [id])
|
||||
chatlogs Chatlogs[]
|
||||
}
|
||||
|
||||
model Map {
|
||||
model Zone {
|
||||
id Int @id @default(autoincrement())
|
||||
name String
|
||||
width Int
|
||||
@ -45,7 +45,7 @@ model Chatlogs {
|
||||
id Int @id @default(autoincrement())
|
||||
userId Int
|
||||
message String
|
||||
mapId Int
|
||||
map Map @relation(fields: [mapId], references: [id])
|
||||
zoneId Int
|
||||
zone Zone @relation(fields: [zoneId], references: [id])
|
||||
user User @relation(fields: [userId], references: [id])
|
||||
}
|
Reference in New Issue
Block a user