Feature Request: Add modelName Option to organization Plugin #180

Closed
opened 2026-03-13 07:36:28 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @wh5938316 on GitHub (Nov 5, 2024).

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). 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.
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

@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#180