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