[GH-ISSUE #420] Feature Request: Add modelName Option to organization Plugin #25587

Closed
opened 2026-04-17 15:51:23 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @wh5938316 on GitHub (Nov 5, 2024).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/420

I would like to request an enhancement for the organization plugin to include an option for modelName.

For example, I want to rename the organization table to team since organization has a different meaning in my project.

Ideally, just like the core schema, the organization plugin should also support setting a custom modelName.

Originally created by @wh5938316 on GitHub (Nov 5, 2024). Original GitHub issue: https://github.com/better-auth/better-auth/issues/420 I would like to request an enhancement for the organization plugin to include an option for modelName. For example, I want to rename the `organization` table to `team` since organization has a different meaning in my project. Ideally, just like the core schema, the organization plugin should also support setting a custom modelName.
GiteaMirror added the locked label 2026-04-17 15:51:23 -05:00
Author
Owner

@luxaritas commented on GitHub (Nov 11, 2024):

I'd like to advocate for modelName to be added to all plugins that add custom tables - I was interested in making all tables plural, but it gets a bit hairy handling plugins without it being an explicit parameter

Happy to PR this if the patch would be accepted, seems straightforward

<!-- gh-comment-id:2466999284 --> @luxaritas commented on GitHub (Nov 11, 2024): I'd like to advocate for modelName to be added to all plugins that add custom tables - I was interested in making all tables plural, but it gets a bit hairy handling plugins without it being an explicit parameter Happy to PR this if the patch would be accepted, seems straightforward
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#25587