Suppose I have two models that use the same ENUM type
status: { type: DataTypes.ENUM, values: [1,2,3,4], },
Sequelize creates two different types naming them enum_table_name_1_status AND enum_table_name_2_status
enum_table_name_1_status
enum_table_name_2_status
How can I use the same ENUM created for table_name_1 in the second table as well?
table_name_1
2.1m questions
2.1m answers
60 comments
57.0k users