Kay Khan
06/25/2022, 3:51 PMmodel users {
id String @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid
email String
password String?
created_at DateTime @default(now())
updated_at DateTime @updatedAt
deleted_at DateTime?
}
if i create a new user, updated_at is not autofilled
generated sql
CREATE TABLE "users" (
"id" UUID NOT NULL DEFAULT gen_random_uuid(),
"email" TEXT NOT NULL,
"password" TEXT,
"created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updated_at" TIMESTAMP(3) NOT NULL,
"deleted_at" TIMESTAMP(3),
CONSTRAINT "users_pkey" PRIMARY KEY ("id")
);Austin
06/27/2022, 8:43 PM@updatedAt seems to be working fine for me. Are you creating the new user through the Prisma Client or somewhere else?Kay Khan
06/27/2022, 8:46 PM