spark-property-manager
Version:
Spark Real Estate Management Application
23 lines (22 loc) • 474 B
JavaScript
;
module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.createTable('company', {
id: {
allowNull: false,
autoIncrement: true,
primaryKey: true,
type: Sequelize.INTEGER
},
name: {
type: Sequelize.STRING
},
phone: {
type: Sequelize.STRING
}
});
},
down: (queryInterface, Sequelize) => {
return queryInterface.dropTable('company');
}
};