dgtlmonk
dgtlmonk6mo ago

Roles / Permission modeling (Ent Tables)

Hi, I'm pretty new with backend paradigm but i'm a seasoned frontend dev. Convex enables me to do stuff that would take me a lot of time learning with traditional backend programming - i'm am grateful for it. So my question is, is there a better way to do this Role / Permission using Ent edges instead of foreign keys? What's the common best practice and pattern I should know.
No description
1 Reply
ampp
ampp6mo ago
the setup in the saas-starter ent's example i would consider a standard design done with ents. https://github.com/xixixao/saas-starter/blob/main/convex/schema.ts
GitHub
saas-starter/convex/schema.ts at main · xixixao/saas-starter
Convex, Clerk, Next.js, Convex Ents. Contribute to xixixao/saas-starter development by creating an account on GitHub.

Did you find this page helpful?