add id field calendar-cache (#20578)
This commit is contained in:
@@ -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;
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user