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
1.4m articles
1.4m replys
5 comments
57.0k users