sequelize-typescript
sequelize-typescript copied to clipboard
problem : two column doesn't unique together
Issue
Hi I need unique combination of two columns in a table. example: first name and last name together
Versions
- sequelize: ^6.11.0
- sequelize-typescript: ^2.1.1
- typescript: ^4.5.2
Actual behavior
Related code
https://tipsfordev.com/how-to-define-unique-index-on-multiple-columns-in-sequelize