%PDF- %PDF-
| Direktori : /home/opti/workflow/src/models/ |
| Current File : /home/opti/workflow/src/models/workshift.js |
'use strict';
module.exports = (sequelize, DataTypes) => {
const WorkShift = sequelize.define('WorkShift', {
orgId: {
type: DataTypes.UUID,
defaultValue: DataTypes.UUIDV4
},
title: DataTypes.STRING,
description: DataTypes.STRING,
from: DataTypes.TIME,
to: DataTypes.TIME,
uuid: {
type: DataTypes.UUID,
defaultValue: DataTypes.UUIDV4
}
}, {});
WorkShift.associate = function(models) {
// associations can be defined here
};
return WorkShift;
};