This document describes the database schema for your application. The schema provides a foundation for building multi-tenant SaaS applications with authentication, organizations, teams, and role-based access control.
These tables handle user authentication and are based on the Better Auth specification. They form the foundation of your application's security layer.
These tables implement the multi-tenant architecture with organizations and teams. They integrate with the authentication layer through Better Auth's organization and teams plugins.
When extending authentication tables, ensure your changes don't break Better Auth's expected schema. Always test authentication flows after making changes.