chore: User->UUID as a required field, ready for use in foreign keys (#24881)

This commit is contained in:
Alex van Andel
2025-11-04 00:20:52 +00:00
committed by GitHub
parent 0a2ddf05ca
commit ab37847ea1
2 changed files with 9 additions and 1 deletions
@@ -0,0 +1,8 @@
/*
Warnings:
- Made the column `uuid` on table `users` required. This step will fail if there are existing NULL values in that column.
*/
-- AlterTable
ALTER TABLE "public"."users" ALTER COLUMN "uuid" SET NOT NULL;
+1 -1
View File
@@ -349,7 +349,7 @@ model TravelSchedule {
// It holds Personal Profiles of a User plus it has email, password and other core things..
model User {
id Int @id @default(autoincrement())
uuid String? @unique @default(uuid()) @db.Uuid
uuid String @unique @default(uuid()) @db.Uuid
username String?
name String?
/// @zod.import(["import { emailSchema } from '@calcom/lib/emailSchema'"]).custom.use(emailSchema)