Skip to content

Default to existing through table if inverse m2m assoc exists#130

Merged
tomjschuster merged 2 commits intomainfrom
mutual-join-table
Feb 17, 2026
Merged

Default to existing through table if inverse m2m assoc exists#130
tomjschuster merged 2 commits intomainfrom
mutual-join-table

Conversation

@tomjschuster
Copy link
Copy Markdown
Owner

resolve #129

When configuring a many-to-many association to use a through table, default to the table of the inverse many-to-many association if one exists. If one doesn't exist, use the existing default logic of concatenating the source and target model names.

use.inverse.assoc.table.name.mov

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Feb 1, 2026

Deploying sequelize-ui with  Cloudflare Pages  Cloudflare Pages

Latest commit: ab99e11
Status: ✅  Deploy successful!
Preview URL: https://5c4cde37.sequelize-ui.pages.dev
Branch Preview URL: https://mutual-join-table.sequelize-ui.pages.dev

View logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When creating a many-to-many relationship the relationships stated use different names for through value/join table name

1 participant