Skip to content

Commit ab37847

Browse files
authored
chore: User->UUID as a required field, ready for use in foreign keys (calcom#24881)
1 parent 0a2ddf0 commit ab37847

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/*
2+
Warnings:
3+
4+
- Made the column `uuid` on table `users` required. This step will fail if there are existing NULL values in that column.
5+
6+
*/
7+
-- AlterTable
8+
ALTER TABLE "public"."users" ALTER COLUMN "uuid" SET NOT NULL;

packages/prisma/schema.prisma

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ model TravelSchedule {
349349
// It holds Personal Profiles of a User plus it has email, password and other core things..
350350
model User {
351351
id Int @id @default(autoincrement())
352-
uuid String? @unique @default(uuid()) @db.Uuid
352+
uuid String @unique @default(uuid()) @db.Uuid
353353
username String?
354354
name String?
355355
/// @zod.import(["import { emailSchema } from '@calcom/lib/emailSchema'"]).custom.use(emailSchema)

0 commit comments

Comments
 (0)