Nullable album createdAt

This commit is contained in:
Jorge Vargas 2025-04-10 17:47:20 -06:00
parent ba1ba7a286
commit ae7605ad4a
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE `albums` MODIFY `createdAt` DATETIME(0) NULL DEFAULT CURRENT_TIMESTAMP(0);

View file

@ -130,7 +130,7 @@ model albums {
releaseDate DateTime? @db.Date
label String? @db.VarChar(255)
vgmdb String? @db.VarChar(255)
createdAt DateTime @default(now()) @db.DateTime(0)
createdAt DateTime? @default(now()) @db.DateTime(0)
updatedAt DateTime @default(now()) @db.DateTime(0)
publishedAt DateTime @default(now())
description String? @db.VarChar(255)