UNPKG

spark-property-manager

Version:
37 lines (36 loc) 788 B
'use strict'; module.exports = { up: (queryInterface, Sequelize) => { return queryInterface.createTable('payment_method', { id: { allowNull: false, autoIncrement: true, primaryKey: true, type: Sequelize.INTEGER }, account_number: { type: Sequelize.STRING }, description: { type: Sequelize.TEXT }, type_id: { type: Sequelize.INTEGER, references: { model: 'payment_type', key: 'id' } }, company_id: { type: Sequelize.INTEGER, references: { model: 'company', key: 'id' } } }); }, down: (queryInterface, Sequelize) => { return queryInterface.dropTable('payment_method'); } };