database changes and initial causes and regions

This commit is contained in:
Arjun Patel
2019-03-13 22:50:20 -07:00
parent ac5d5db1ff
commit acf6421251
6 changed files with 165 additions and 18 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ module.exports = (sequelize, DataTypes) => {
primaryKey: true,
autoIncrement: true
},
name: { type: DataTypes.STRING, allowNull: false }
name: { type: DataTypes.STRING, allowNull: false, unique: true }
});
return Cause;
};