Files
Ucharify_api/app/models/organizations.model.js
2019-01-15 23:14:05 -08:00

15 lines
439 B
JavaScript

module.exports = (sequelize, DataTypes) => {
const Organizations = sequelize.define('organizations', {
id: {
type: DataTypes.INTEGER,
primaryKey: true,
autoIncrement: true
},
name: { type: DataTypes.STRING, allowNull: false },
short_description: DataTypes.STRING,
primary_cause: { type: DataTypes.STRING, allowNull: false },
primary_region: { type: DataTypes.STRING, allowNull: false }
});
return Organizations;
};