Answers for "make unique: true in sequlize model"

2

set unique true sequelize

key: {
    // needs to be unique
    type: DataTypes.UUID,
    allowNull: false,
    unique: true
}
Posted by: Guest on July-30-2020

Code answers related to "make unique: true in sequlize model"

Browse Popular Code Answers by Language