fixing amount for each separate organization
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
module.exports = (sequelize, DataTypes) => {
|
||||
const GrantsOrganizations = sequelize.define('grants_organizations', {
|
||||
id: {
|
||||
type: DataTypes.INTEGER,
|
||||
primaryKey: true,
|
||||
autoIncrement: true
|
||||
},
|
||||
amount: {
|
||||
type: DataTypes.INTEGER,
|
||||
allowNull: false
|
||||
}
|
||||
});
|
||||
return GrantsOrganizations;
|
||||
};
|
||||
@@ -4,8 +4,7 @@ module.exports = (sequelize, DataTypes) => {
|
||||
type: DataTypes.INTEGER,
|
||||
primaryKey: true,
|
||||
autoIncrement: true
|
||||
},
|
||||
|
||||
}
|
||||
});
|
||||
return OrgBank;
|
||||
};
|
||||
Reference in New Issue
Block a user