I am evaluating Prisma and I am a complete noob...
- I am using Postgresql
- I have the following model definition
model Sth {
id Int @default(autoincrement()) @id
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
expiresAt DateTime?
}
The createdAt
column translates to
createdAt | timestamp(3) without time zone | | not null | CURRENT_TIMESTAMP
Since I am planing to really work with the timestamps - I need them to be timestamp with time zone
.
How can I achieve this with Prisma?
Edit NOW() > '2021-02-16': Prisma now, has the "native types"