module.exports = (sequelize, DataTypes) => { const Organization = sequelize.define('organizations', { id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true }, name: { type: DataTypes.STRING, allowNull: false }, email: { type: DataTypes.STRING, validate: { isEmail: true }, allowNull: false }, password: { type: DataTypes.STRING, allowNull: false }, verified: { type: DataTypes.BOOLEAN, allowNull: false, defaultValue: false }, short_description: DataTypes.STRING, primary_cause: { type: DataTypes.STRING, allowNull: false }, primary_region: { type: DataTypes.STRING, allowNull: false }, rating: { type: DataTypes.INTEGER, defaultValue: 0, allowNull: false } }); return Organization; };