associations and adding more routes and structure

This commit is contained in:
Arjun Patel
2019-01-15 22:08:54 -08:00
parent b453c78c00
commit a4e4394329
11 changed files with 100 additions and 19 deletions
+5
View File
@@ -0,0 +1,5 @@
module.exports = models => {
const { Donors, Grants } = models;
Donors.hasMany(Grants, { foreignKey: 'donor_id' });
};