cleanup and working seed data
This commit is contained in:
@@ -7,7 +7,6 @@ module.exports = models => {
|
||||
Organization,
|
||||
Charge,
|
||||
PaymentPlan,
|
||||
OrgBank,
|
||||
GrantsOrganizations
|
||||
} = models;
|
||||
|
||||
@@ -41,6 +40,4 @@ module.exports = models => {
|
||||
Grant.hasOne(PaymentPlan, {
|
||||
foreignKey: 'grant_id'
|
||||
});
|
||||
|
||||
Organization.hasOne(OrgBank);
|
||||
};
|
||||
|
||||
@@ -7,7 +7,6 @@ const Sequelize = require('sequelize'),
|
||||
UserModel = require('../../models/user.model.js'),
|
||||
PaymentPlanModel = require('../../models/paymentplan.model'),
|
||||
ChargeModel = require('../../models/charge.model'),
|
||||
OrgBankModel = require('../../models/orgBank.model'),
|
||||
GrantsOrganizationsModel = require('../../models/grantsOrganizations.model'),
|
||||
associate = require('./associate');
|
||||
|
||||
@@ -46,7 +45,6 @@ const Organization = OrganizationModel(sequelize, Sequelize);
|
||||
const User = UserModel(sequelize, Sequelize);
|
||||
const Charge = ChargeModel(sequelize, Sequelize);
|
||||
const PaymentPlan = PaymentPlanModel(sequelize, Sequelize);
|
||||
const OrgBank = OrgBankModel(sequelize, Sequelize);
|
||||
const GrantsOrganizations = GrantsOrganizationsModel(sequelize, Sequelize);
|
||||
db.Donor = Donor;
|
||||
db.Grant = Grant;
|
||||
@@ -56,7 +54,6 @@ db.Organization = Organization;
|
||||
db.User = User;
|
||||
db.Charge = Charge;
|
||||
db.PaymentPlan = PaymentPlan;
|
||||
db.OrgBank = OrgBank;
|
||||
db.GrantsOrganizations = GrantsOrganizations;
|
||||
|
||||
// make associations with created models
|
||||
|
||||
@@ -15,16 +15,16 @@ exports.create = async (req, res, next) => {
|
||||
|
||||
address,
|
||||
city,
|
||||
state,
|
||||
country,
|
||||
state,
|
||||
zip,
|
||||
|
||||
primary_cause,
|
||||
primary_region,
|
||||
|
||||
ein,
|
||||
estimate_assets,
|
||||
estimate_year_operating_cost,
|
||||
estimate_asset_value,
|
||||
estimate_yearly_operating_cost,
|
||||
|
||||
isNonprofit,
|
||||
|
||||
@@ -82,16 +82,16 @@ exports.create = async (req, res, next) => {
|
||||
|
||||
address,
|
||||
city,
|
||||
state,
|
||||
country,
|
||||
state,
|
||||
zip,
|
||||
|
||||
primary_cause,
|
||||
primary_region,
|
||||
|
||||
ein,
|
||||
estimate_assets,
|
||||
estimate_year_operating_cost,
|
||||
estimate_asset_value,
|
||||
estimate_yearly_operating_cost,
|
||||
|
||||
isNonprofit,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user