August 25, 2026

3 views

Drizzle joins and a new account model

Better Auth 1.7 is a stable release with breaking changes to plan for before production upgrades. What matters for our stack: native joins in Drizzle and Prisma adapters, enabled via advanced.database.joins. When a join is available, related data comes back in one query; otherwise the library falls back to multiple queries as before.

For Drizzle Relations v2 there is a dedicated entry point: @better-auth/drizzle-adapter/relations-v2. Schema and relations are still generated with npx auth@latest generate — no hand-copying of session and account tables.

Another major change is the new account-identity model: Account.issuer plus a backfill migration before deploy. The joins config path moved, and OAuth, OTP, JWT, and Next.js integration received fixes and updates.

For the Altyn San dashboard — already on Better Auth, Drizzle ORM, and PostgreSQL — this is a forward-looking release: fewer database round trips on session checks and a clearer schema as the admin base grows.

Back to all news