Mukund
CCConvex Community
•Created by Mukund on 2/15/2025 in #support-community
Autoincrement and unique fields in convex.
This is my drizzle schema:
I created a convex schema like this:
I want username to be something like this ADMIN00001, ADMIN00002, ADMIN00003, and so on.
Currently I have SQL DB and I am using AUTO_INCREMENT field by creating an id field and based on value of id updating the username.
How can I do that in convex.
Also, I didn't find any way to create unique fields (in my sql schema username is unique) how can I do same here.
3 replies