Answers for "sequelize how to set unique field"

2

set unique true sequelize

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

Browse Popular Code Answers by Language