Berian Chaiwa
05/29/2022, 2:53 PMcreated_at DateTime @default(now()) @db.Timestamptz()
last_modified_at DateTime @updatedAt @db.Timestamptz()
My assumption is that both created_at and last_modified_at will default to now() and when I check the generated types for CreateInput, for both, they look as below:
created_at?: Date | string
last_modified_at?: Date | string
But Prisma Studio tells me something different: It defaults last_modified_at to `now()`'s timestamp as expected and requires me to enter the value for created_at! Why isn't it defaulting created_at to now()?Nurul
05/30/2022, 1:47 PMlast_modified_at gets pre-filled but created_at doesn’t?Berian Chaiwa
05/30/2022, 1:58 PMNurul
05/30/2022, 2:00 PM@prisma/client version?Berian Chaiwa
05/30/2022, 2:02 PMNurul
05/31/2022, 2:17 PM