1
0
forked from noxious/server

DB adjustments

This commit is contained in:
2024-07-20 22:53:02 +02:00
parent be2d7ca7f8
commit fe437aa331
3 changed files with 48 additions and 27 deletions

View File

@ -6,7 +6,7 @@
// 3. Generate Prisma Client and type-safe models based on schema
// npx prisma generate
// 4. Create a new migration
// npx prisma migrate dev --name init
// npx prisma migrate dev --name [migration-name]
// 5. Apply the migration
// npx prisma migrate deploy
@ -20,18 +20,17 @@ datasource db {
}
model Sprite {
id String @id @default(uuid())
name String
origin_x Decimal @default(0)
origin_y Decimal @default(0)
type String
frameSpeed Int @default(0)
isAnimated Boolean @default(false)
isLooping Boolean @default(false)
isPlayableCharacter Boolean @default(false)
isEnemy Boolean @default(false)
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
id String @id @default(uuid())
name String
origin_x Decimal @default(0)
origin_y Decimal @default(0)
frameSpeed Int @default(0)
frameWidth Int @default(0)
frameHeight Int @default(0)
isAnimated Boolean @default(false)
isLooping Boolean @default(false)
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
model Tile {
@ -43,14 +42,18 @@ model Tile {
}
model Object {
id String @id @default(uuid())
name String
tags Json?
origin_x Decimal @default(0)
origin_y Decimal @default(0)
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
ZoneObject ZoneObject[]
id String @id @default(uuid())
name String
tags Json?
origin_x Decimal @default(0)
origin_y Decimal @default(0)
isAnimated Boolean @default(false)
frameSpeed Int @default(0)
frameWidth Int @default(0)
frameHeight Int @default(0)
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
ZoneObject ZoneObject[]
}
model Item {