%PDF- %PDF-
| Direktori : /home/opti/workflow/src/migrations/ |
| Current File : /home/opti/workflow/src/migrations/20190219114757-create-organisation-structure.js |
'use strict';
module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.createTable('OrganisationStructures', {
id: {
allowNull: false,
autoIncrement: true,
primaryKey: true,
type: Sequelize.INTEGER
},
structureId: {
type: Sequelize.INTEGER
},
orgId: {
type: Sequelize.INTEGER
},
parentId: {
type: Sequelize.INTEGER
},
order: {
type: Sequelize.INTEGER
},
createdAt: {
allowNull: false,
type: Sequelize.DATE
},
updatedAt: {
allowNull: false,
type: Sequelize.DATE
}
});
},
down: (queryInterface, Sequelize) => {
return queryInterface.dropTable('OrganisationStructures');
}
};