Does Drizzle support type CUID?
In Prisma i can use: id String @id @default(cuid())
Do we have similar solutions?
4 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Also, we have plans to add TS-side defaults to the columns to support such cases
so setting up default cuid or nano id is not possible for now right, it will be in future ?
createdAt: datetime("created_at").notNull().default(?????)
how to set current date in the default datetime column?
not possible with the schema yes
you can just provide the value when you insert the row