using the sequelize auto index file for model/db config

This commit is contained in:
Arjun Patel
2019-03-16 21:55:50 -07:00
parent 661828bab2
commit 52c284f02a
6 changed files with 91 additions and 30 deletions
+8
View File
@@ -10,6 +10,14 @@ module.exports = (sequelize, DataTypes) => {
},
name: { type: DataTypes.STRING, allowNull: false },
short_description: { type: DataTypes.STRING, allowNull: false },
total_received: {
type: DataTypes.INTEGER,
defaultValue: 0
},
total_donors: {
type: DataTypes.INTEGER,
defaultValue: 0
},
primary_contact_email: {
type: DataTypes.STRING,