%PDF- %PDF-
| Direktori : /home/opti/workflow/src/migrations/ |
| Current File : /home/opti/workflow/src/migrations/20190219162513-create-payment-history.js |
'use strict';
module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.createTable('PaymentHistories', {
id: {
allowNull: false,
autoIncrement: true,
primaryKey: true,
type: Sequelize.INTEGER
},
paymentId: {
type: Sequelize.INTEGER
},
orgId: {
type: Sequelize.INTEGER
},
message: {
type: Sequelize.INTEGER
},
statusId: {
type: Sequelize.INTEGER
},
madeBy: {
type: Sequelize.STRING
},
createdAt: {
allowNull: false,
type: Sequelize.DATE
},
updatedAt: {
allowNull: false,
type: Sequelize.DATE
}
});
},
down: (queryInterface, Sequelize) => {
return queryInterface.dropTable('InvoiceHistories');
}
};