From 58d4bd9e6cf5777f6fe7d27fc2c9dbc719fd1739 Mon Sep 17 00:00:00 2001 From: SnO2WMaN Date: Wed, 20 Dec 2023 04:12:24 +0900 Subject: [PATCH] add VideoTitle id default --- migrations/20231219184638_video_title_id/migration.sql | 1 + schema.prisma | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 migrations/20231219184638_video_title_id/migration.sql diff --git a/migrations/20231219184638_video_title_id/migration.sql b/migrations/20231219184638_video_title_id/migration.sql new file mode 100644 index 0000000..af5102c --- /dev/null +++ b/migrations/20231219184638_video_title_id/migration.sql @@ -0,0 +1 @@ +-- This is an empty migration. \ No newline at end of file diff --git a/schema.prisma b/schema.prisma index 32bde41..c6a2b83 100644 --- a/schema.prisma +++ b/schema.prisma @@ -405,7 +405,7 @@ enum VideoEventType { } model VideoTitle { - id String @id + id String @id @default(cuid()) title String locale String @default("ja-JP")