Plugins or Drizzle + Next JS API

I’m developing an application similar to Linear.app, where each team contains projects with features like comments, rich text content, and customizable columns (e.g., "Urgent", "Working On"). The desired structure is: A workspace encompasses multiple teams. Each team contains multiple projects. Each project has user-defined customizable columns. I’m using the organization and teams plugins from Better Auth. I’m considering two approaches, but I’m not sure if it’s fully possible to implement this via plugins: Custom plugin: Extend Better Auth’s team structure by adding tables and endpoints to manage projects and columns. Drizzle ORM with Next.js API routes: Implement projects and columns using Drizzle ORM for database interactions and Next.js API routes for backend logic. I’m looking for guidance on: Integration: Which approach integrates more seamlessly with Better Auth’s teams and organizations system? Maintainability: Which method would be more maintainable and scalable long-term? Best practices: Any recommendations for implementing such features within the Better Auth ecosystem?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?