%PDF- %PDF-
| Direktori : /home/opti/workflow/src/migrations/ |
| Current File : /home/opti/workflow/src/migrations/20190219161027-create-billing-account.js |
//TODO: remove contactId from null
'use strict';
module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.createTable('BillingAccounts', {
id: {
allowNull: false,
autoIncrement: true,
primaryKey: true,
type: Sequelize.INTEGER
},
accountLimit: {
type: Sequelize.DECIMAL
},
description: {
type: Sequelize.TEXT
},
invoiceId: {
type: Sequelize.INTEGER
},
contactId: {
type: Sequelize.INTEGER,
allowNull: true,
},
paymentApplication: {
type: Sequelize.INTEGER,
allowNull: true,
},
createdAt: {
allowNull: false,
type: Sequelize.DATE
},
updatedAt: {
allowNull: true,
type: Sequelize.DATE
}
});
},
down: (queryInterface, Sequelize) => {
return queryInterface.dropTable('BillingAccounts');
}
};