%PDF-
%PDF-
Mini Shell
Mini Shell
'use strict';
module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.createTable('WorkShifts', {
id: {
allowNull: false,
autoIncrement: true,
primaryKey: true,
type: Sequelize.INTEGER
},
orgId: {
type: Sequelize.INTEGER
},
title: {
type: Sequelize.STRING
},
description: {
type: Sequelize.STRING
},
from: {
type: Sequelize.TIME
},
to: {
type: Sequelize.TIME
},
uuid: {
type: Sequelize.UUID
},
createdAt: {
allowNull: false,
type: Sequelize.DATE
},
updatedAt: {
allowNull: false,
type: Sequelize.DATE
}
});
},
down: (queryInterface, Sequelize) => {
return queryInterface.dropTable('WorkShifts');
}
};
Zerion Mini Shell 1.0