new model/table

This commit is contained in:
Arjun Patel
2019-03-02 16:36:22 -08:00
parent 571c3931c2
commit 5b6e97bac9
3 changed files with 19 additions and 2 deletions
+4 -1
View File
@@ -6,7 +6,8 @@ module.exports = models => {
Region,
Organization,
Charge,
PaymentPlan
PaymentPlan,
OrgBank
} = models;
Donor.hasMany(Grant, { foreignKey: 'donor_id' });
@@ -39,4 +40,6 @@ module.exports = models => {
Grant.hasOne(PaymentPlan, {
foreignKey: 'grant_id'
});
Organization.hasOne(OrgBank);
};