After running the npx prisma introspect
in the console, the startTime
attribute was set to @db.Time(6)
in my schema.prisma
file.
model Table {
id String @id @default(uuid())
startTime DateTime @map("start_time") @db.Time(6)
}
What does x
mean in @db.Time(x)
in Prisma schema? Documentation link
P.S. I use PosgreSQL
as database
The x
is the precision to store in the time
type which can be anything from 0-6. You can read more this here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With