chore: User->UUID as a required field, ready for use in foreign keys (#24881)
This commit is contained in:
@@ -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;
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user