UNPKG

spark-property-manager

Version:
23 lines (22 loc) 474 B
'use strict'; 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'); } };