Extend a model with its own table #16010
Answered
by
ephys
Falci
asked this question in
Help & Questions
-
Would it be possible to extend a model, in a way that the generic model has its own table and can have associations? Example:
I would expect this to generate 4 tables, one for each. |
Beta Was this translation helpful? Give feedback.
Answered by
ephys
May 17, 2023
Replies: 1 comment 2 replies
-
See #6502 This will be part of Sequelize 7, and is already possible in Sequelize 6 if you use sequelize-typescript |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ah unfortunately we don't support relationship-based inheritance. We generate a complete table for each of them
relationship-based inheritance is a feature that may be added in a future update