sync_alter.js

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2021-05-29 02:00:01 +00:00
parent 6e15ee4b3c
commit b4d0b4b9d8
3 changed files with 177 additions and 10 deletions

View File

@@ -44,7 +44,8 @@ await sequelize.authenticate();
const IntegerNames = sequelize.define('IntegerNames', {
value: {
type: DataTypes.INTEGER,
allowNull: false
allowNull: false,
unique: true,
},
name: {
type: DataTypes.STRING,