Map `iCalUID` to `VarChar`

write-icaluid-to-booking
Joe Au-Yeung 2023-10-30 11:18:17 -04:00
parent 674c0e2b54
commit 16fffd6258
2 changed files with 4 additions and 3 deletions

View File

@ -5,5 +5,6 @@
*/
-- AlterTable
ALTER TABLE "Booking" ADD COLUMN "iCalSequence" INTEGER NOT NULL DEFAULT 0,
ADD COLUMN "iCalUID" TEXT NOT NULL;
ALTER TABLE "Booking"
ADD COLUMN "iCalUID" VARCHAR NOT NULL ,
ADD COLUMN "iCalSequence" INTEGER NOT NULL DEFAULT 0;

View File

@ -417,7 +417,7 @@ model Booking {
/// @zod.custom(imports.bookingMetadataSchema)
metadata Json?
isRecorded Boolean @default(false)
iCalUID String
iCalUID String @db.VarChar()
iCalSequence Int @default(0)
@@index([eventTypeId])