Does Drizzle support type CUID?

In Prisma i can use: id String @id @default(cuid()) Do we have similar solutions?
4 Replies
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
bloberenober
bloberenober15mo ago
Also, we have plans to add TS-side defaults to the columns to support such cases
Md Jahidul Islam milon
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?
bloberenober
bloberenober14mo ago
not possible with the schema yes you can just provide the value when you insert the row