[PR #9062] [MERGED] docs: add database table names #16656

Closed
opened 2026-04-13 10:37:58 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/9062
Author: @demhadais
Created: 4/9/2026
Status: Merged
Merged: 4/9/2026
Merged by: @ping-maxwell

Base: mainHead: docs/add-database-table-names


📝 Commits (7)

  • 4f57a7d Add name for database tables in core schema
  • eeb5f81 add table names for all tabels except in the migration guide
  • bdb83a1 fix trailing comma in database table names and actually add name= in docs for anonymous
  • 5a1b89a correct session table name in organization documentation
  • a38b661 Merge branch 'main' into docs/add-database-table-names
  • 1e6ada2 chore: remove last overlooked comma
  • a0b8411 Merge branch 'main' into docs/add-database-table-names

📊 Changes

19 files changed (+46 additions, -1 deletions)

View changed files

📝 docs/content/docs/concepts/database.mdx (+4 -0)
📝 docs/content/docs/concepts/rate-limit.mdx (+1 -0)
📝 docs/content/docs/plugins/2fa.mdx (+2 -0)
📝 docs/content/docs/plugins/admin.mdx (+2 -1)
📝 docs/content/docs/plugins/anonymous.mdx (+1 -0)
📝 docs/content/docs/plugins/api-key/reference.mdx (+1 -0)
📝 docs/content/docs/plugins/chargebee.mdx (+4 -0)
📝 docs/content/docs/plugins/device-authorization.mdx (+1 -0)
📝 docs/content/docs/plugins/jwt.mdx (+1 -0)
📝 docs/content/docs/plugins/last-login-method.mdx (+1 -0)
📝 docs/content/docs/plugins/oauth-provider.mdx (+4 -0)
📝 docs/content/docs/plugins/oidc-provider.mdx (+3 -0)
📝 docs/content/docs/plugins/organization.mdx (+11 -0)
📝 docs/content/docs/plugins/passkey.mdx (+1 -0)
📝 docs/content/docs/plugins/phone-number.mdx (+1 -0)
📝 docs/content/docs/plugins/scim.mdx (+2 -0)
📝 docs/content/docs/plugins/sso.mdx (+2 -0)
📝 docs/content/docs/plugins/stripe.mdx (+3 -0)
📝 docs/content/docs/plugins/username.mdx (+1 -0)

📄 Description

This PR closes #9061 by adding table names for most of the tables in the documentation in generated SQL, making said SQL actually accurate.

  • Add name for database tables in core schema
  • add table names for all tabels except in the migration guide

Summary by cubic

Added explicit table names to <DatabaseTable> examples across core and plugin docs so generated SQL matches real schema names. Also fixed a wrong session table reference and removed stray commas causing MDX parsing errors.

  • Bug Fixes
    • Added name="..." to all <DatabaseTable> blocks for core tables (user, session, account, verification) and plugins: Anonymous, Rate Limit, OAuth/OIDC Provider, Organization, API Key, JWT, Passkey, Device Authorization, 2FA, Phone Number, Username, SSO, SCIM, Chargebee, Stripe, Admin, Last Login Method.
    • Removed trailing commas to avoid MDX parsing issues and corrected the session table name in Organization docs.

Written for commit a0b8411d96. Summary will update on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/9062 **Author:** [@demhadais](https://github.com/demhadais) **Created:** 4/9/2026 **Status:** ✅ Merged **Merged:** 4/9/2026 **Merged by:** [@ping-maxwell](https://github.com/ping-maxwell) **Base:** `main` ← **Head:** `docs/add-database-table-names` --- ### 📝 Commits (7) - [`4f57a7d`](https://github.com/better-auth/better-auth/commit/4f57a7d7f84121c82cdefff0a57257595a064b9f) Add `name` for database tables in core schema - [`eeb5f81`](https://github.com/better-auth/better-auth/commit/eeb5f816eeffbfaac7f1444911ab8cc76520530d) add table names for all tabels except in the migration guide - [`bdb83a1`](https://github.com/better-auth/better-auth/commit/bdb83a1cac00d6f3ebda9f8acc5def50e9609a20) fix trailing comma in database table names and actually add name= in docs for anonymous - [`5a1b89a`](https://github.com/better-auth/better-auth/commit/5a1b89a35e76803a5020615cb01b166b6b1b48cd) correct session table name in organization documentation - [`a38b661`](https://github.com/better-auth/better-auth/commit/a38b66152264b39eecfa1357246763e2c0a704fd) Merge branch 'main' into docs/add-database-table-names - [`1e6ada2`](https://github.com/better-auth/better-auth/commit/1e6ada2a361c85cf9fb83957c5835fdf76824aaa) chore: remove last overlooked comma - [`a0b8411`](https://github.com/better-auth/better-auth/commit/a0b8411d969251f7a29115201de72cc16949600b) Merge branch 'main' into docs/add-database-table-names ### 📊 Changes **19 files changed** (+46 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/concepts/database.mdx` (+4 -0) 📝 `docs/content/docs/concepts/rate-limit.mdx` (+1 -0) 📝 `docs/content/docs/plugins/2fa.mdx` (+2 -0) 📝 `docs/content/docs/plugins/admin.mdx` (+2 -1) 📝 `docs/content/docs/plugins/anonymous.mdx` (+1 -0) 📝 `docs/content/docs/plugins/api-key/reference.mdx` (+1 -0) 📝 `docs/content/docs/plugins/chargebee.mdx` (+4 -0) 📝 `docs/content/docs/plugins/device-authorization.mdx` (+1 -0) 📝 `docs/content/docs/plugins/jwt.mdx` (+1 -0) 📝 `docs/content/docs/plugins/last-login-method.mdx` (+1 -0) 📝 `docs/content/docs/plugins/oauth-provider.mdx` (+4 -0) 📝 `docs/content/docs/plugins/oidc-provider.mdx` (+3 -0) 📝 `docs/content/docs/plugins/organization.mdx` (+11 -0) 📝 `docs/content/docs/plugins/passkey.mdx` (+1 -0) 📝 `docs/content/docs/plugins/phone-number.mdx` (+1 -0) 📝 `docs/content/docs/plugins/scim.mdx` (+2 -0) 📝 `docs/content/docs/plugins/sso.mdx` (+2 -0) 📝 `docs/content/docs/plugins/stripe.mdx` (+3 -0) 📝 `docs/content/docs/plugins/username.mdx` (+1 -0) </details> ### 📄 Description This PR closes #9061 by adding table names for most of the tables in the documentation in generated SQL, making said SQL actually accurate. - **Add `name` for database tables in core schema** - **add table names for all tabels except in the migration guide** <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Added explicit table names to `<DatabaseTable>` examples across core and plugin docs so generated SQL matches real schema names. Also fixed a wrong `session` table reference and removed stray commas causing MDX parsing errors. - **Bug Fixes** - Added `name="..."` to all `<DatabaseTable>` blocks for core tables (`user`, `session`, `account`, `verification`) and plugins: Anonymous, Rate Limit, OAuth/OIDC Provider, Organization, API Key, JWT, Passkey, Device Authorization, 2FA, Phone Number, Username, SSO, SCIM, Chargebee, Stripe, Admin, Last Login Method. - Removed trailing commas to avoid MDX parsing issues and corrected the `session` table name in Organization docs. <sup>Written for commit a0b8411d969251f7a29115201de72cc16949600b. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-13 10:37:58 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#16656