一部プロパティをnullableに

This commit is contained in:
ろむねこ 2024-06-18 12:38:57 +09:00
parent e3e232a4ec
commit 5d299c06d1
Signed by: Fujimatsu
GPG Key ID: FA1F39A1BA37D168
2 changed files with 5 additions and 2 deletions

View File

@ -0,0 +1,3 @@
-- AlterTable
ALTER TABLE "Task" ALTER COLUMN "iconEmoji" DROP NOT NULL,
ALTER COLUMN "bg_color" DROP NOT NULL;

View File

@ -35,8 +35,8 @@ model HomeGroup {
model Task {
id String @id @default(cuid())
display_name String
iconEmoji String
bg_color String
iconEmoji String?
bg_color String?
home_group_id String
home_group HomeGroup @relation(fields: [home_group_id], references: [id])
created_at DateTime @default(now())