What is the correct way to represent a hierarchy in a sequelize model? #13131
Unanswered
nexun
asked this question in
Help & Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need to create an order model with different attributes depending on the type (maintenance order, general order, etc ...), what I don't understand is how to do this "hierarchy" since the orders have attributes in common but they also have others that are specific to the type (for example the machine in the maintenance order). I found libraries like sequelize-hierarchy but I don't know if it is the correct way to solve this problem. Any ideas? Thanks!
"express": "^4.17.1",
"sequelize": "^6.3.5",
"node":"^14.16.0"
Beta Was this translation helpful? Give feedback.
All reactions