diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-12-31 16:59:12 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-12-31 16:59:12 +0100 |
| commit | 05a19fb2a801152bd54431ca3ac6e5493b0c24dc (patch) | |
| tree | e0f77e513e586d4e81c7283170c22a8d8f5559a9 /models/hero.js | |
| parent | 5ba42c3cd059d725a26b8d4967bc0278208e1e1b (diff) | |
| download | orm-release/2.22.0.tar.gz orm-release/2.22.0.zip | |
reimportrelease/2.22.0
Diffstat (limited to 'models/hero.js')
| -rw-r--r-- | models/hero.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/models/hero.js b/models/hero.js index 167e996..2bf6551 100644 --- a/models/hero.js +++ b/models/hero.js @@ -22,7 +22,8 @@ module.exports = function(sequelize, DataTypes) { }, name: { type: DataTypes.STRING(191), - allowNull: false + allowNull: false, + unique: true }, api_name: { type: DataTypes.STRING(191), |
