code update

This commit is contained in:
2024-05-09 22:03:21 +02:00
parent 8356a83431
commit a2f21229d8
14 changed files with 216 additions and 45 deletions

View File

@ -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])
}