%PDF- %PDF-
| Direktori : /home/opti/workflow/src/migrations/ |
| Current File : /home/opti/workflow/src/migrations/20190401140831-create-employee-salary-component.js |
'use strict';
module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.createTable('EmployeeSalaryComponents', {
id: {
allowNull: false,
autoIncrement: true,
primaryKey: true,
type: Sequelize.INTEGER
},
uuid: {
type: Sequelize.UUID
},
orgId: {
type: Sequelize.INTEGER
},
userId: {
type: Sequelize.INTEGER
},
salaryComponentId: {
type: Sequelize.INTEGER
},
employeeSalaryId: {
type: Sequelize.INTEGER
},
type: {
type: Sequelize.INTEGER
},
value: {
type: Sequelize.DECIMAL
},
createdBy: {
type: Sequelize.INTEGER
},
createdAt: {
allowNull: false,
type: Sequelize.DATE
},
updatedAt: {
allowNull: false,
type: Sequelize.DATE
}
});
},
down: (queryInterface, Sequelize) => {
return queryInterface.dropTable('EmployeeSalaryComponents');
}
};