add id field calendar-cache (#20578)

This commit is contained in:
Hariom Balhara
2025-04-08 02:51:30 +00:00
committed by GitHub
parent 35d54ff223
commit 1dc5cd4d41
2 changed files with 8 additions and 0 deletions
@@ -0,0 +1,5 @@
-- AlterTable
ALTER TABLE "CalendarCache" ADD COLUMN "id" TEXT;
-- Update all historical rows (id) to `gen_random_uuid`
UPDATE "CalendarCache" SET "id" = gen_random_uuid() WHERE "id" IS NULL;
+3
View File
@@ -1457,6 +1457,9 @@ view BookingTimeStatus {
}
model CalendarCache {
// To be made required in a followup
id String? @default(uuid())
// The key would be the unique URL that is requested by the user
key String
value Json