1
0
mirror of synced 2024-12-13 15:31:10 +01:00

Fix prisma schema

This commit is contained in:
Rin 2022-07-20 16:52:11 +01:00
parent 078e8df619
commit abce28d50e
2 changed files with 15 additions and 2 deletions

View File

@ -0,0 +1,12 @@
-- AlterTable
ALTER TABLE "Car" ALTER COLUMN "stLoseBits" SET DEFAULT 0;
-- AlterTable
ALTER TABLE "TimeAttackRecord" ADD COLUMN "tuneHandling" INTEGER NOT NULL DEFAULT 0,
ADD COLUMN "tunePower" INTEGER NOT NULL DEFAULT 0;
-- AlterTable
ALTER TABLE "User" ADD COLUMN "bookmarks" INTEGER[],
ADD COLUMN "carOrder" INTEGER[],
ADD COLUMN "currentSheet" INTEGER NOT NULL DEFAULT 0,
ADD COLUMN "lastSheet" INTEGER NOT NULL DEFAULT 0;

View File

@ -127,8 +127,9 @@ model Car {
} }
model CarItem { model CarItem {
Car Car? @relation(fields: [carId], references: [carId]) dbId Int @id @default(autoincrement())
carId Int @unique Car Car @relation(fields: [carId], references: [carId])
carId Int
category Int category Int
itemId Int itemId Int