fixing get to post for org suggestions

This commit is contained in:
Arjun Patel
2019-01-20 22:51:08 -08:00
parent f5dd981152
commit 008800acdf
6 changed files with 15 additions and 12 deletions
+2 -1
View File
@@ -7,7 +7,8 @@ module.exports = (sequelize, DataTypes) => {
},
name: {
type: DataTypes.STRING,
allowNull: false
allowNull: false,
unique: true
},
amount: {
type: DataTypes.INTEGER,
+2 -1
View File
@@ -8,7 +8,8 @@ module.exports = (sequelize, DataTypes) => {
name: { type: DataTypes.STRING, allowNull: false },
short_description: DataTypes.STRING,
primary_cause: { type: DataTypes.STRING, allowNull: false },
primary_region: { type: DataTypes.STRING, allowNull: false }
primary_region: { type: DataTypes.STRING, allowNull: false },
rating: { type: DataTypes.INTEGER, defaultValue: 0, allowNull: false }
});
return Organization;
};