Fix prisma schema
This commit is contained in:
parent
078e8df619
commit
abce28d50e
12
prisma/migrations/20220720155206_terminalmode/migration.sql
Normal file
12
prisma/migrations/20220720155206_terminalmode/migration.sql
Normal 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;
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user