feat: Add consistent iCalUID (#12122)

Co-authored-by: Hariom <[email protected]>
Co-authored-by: Keith Williams <[email protected]>
This commit is contained in:
authored and GitHub committed 2023-12-15 10:28:32 -05:00
1 parent 0e8ac7e4ed
commit 9dfa596e3e
33 files changed
+568 -195

No files matched your search

@@ -0,0 +1,3 @@
-- AlterTable
ALTER TABLE "Booking" ADD COLUMN "iCalSequence" INTEGER NOT NULL DEFAULT 0,
ADD COLUMN "iCalUID" TEXT DEFAULT '';
+2
View File
@@ -433,6 +433,8 @@ model Booking {
/// @zod.custom(imports.bookingMetadataSchema)
metadata Json?
isRecorded Boolean @default(false)
iCalUID String? @default("")
iCalSequence Int @default(0)
@@index([eventTypeId])
@@index([userId])
+1
View File
@@ -133,6 +133,7 @@ export async function createUserAndEventType({
},
},
status: bookingInput.status,
iCalUID: "",
},
});
console.log(