make mill optional

This commit is contained in:
Thomas Ruoff
2022-10-11 12:01:52 +02:00
parent 1ef9b14e95
commit aebc50f917
2 changed files with 3 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "Booking" ALTER COLUMN "billId" DROP NOT NULL;

View File

@@ -45,7 +45,7 @@ model Booking {
createdAt DateTime @default(now()) @db.Date
updatedAt DateTime @updatedAt @db.Date
bill Bill? @relation(fields: [billId], references: [id], onDelete: Cascade)
billId Int @unique
billId Int? @unique
calendarEventId String?
city String
destination String