diff --git a/packages/prisma/migrations/20250409135411_updated_at_routing_form_response/migration.sql b/packages/prisma/migrations/20250409135411_updated_at_routing_form_response/migration.sql index 03f6782083..9421727a29 100644 --- a/packages/prisma/migrations/20250409135411_updated_at_routing_form_response/migration.sql +++ b/packages/prisma/migrations/20250409135411_updated_at_routing_form_response/migration.sql @@ -5,4 +5,4 @@ */ -- AlterTable -ALTER TABLE "App_RoutingForms_FormResponse" ADD COLUMN "updatedAt" TIMESTAMP(3) NOT NULL; +ALTER TABLE "App_RoutingForms_FormResponse" ADD COLUMN "updatedAt" TIMESTAMP(3); diff --git a/packages/prisma/schema.prisma b/packages/prisma/schema.prisma index 17c309acc1..cb4dffa22c 100644 --- a/packages/prisma/schema.prisma +++ b/packages/prisma/schema.prisma @@ -1067,7 +1067,7 @@ model App_RoutingForms_FormResponse { formId String response Json createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt + updatedAt DateTime? @updatedAt routedToBookingUid String? @unique // We should not cascade delete the booking, because we want to keep the form response even if the routedToBooking is deleted