%PDF- %PDF-
| Direktori : /home/opti/workflow/src/models/ |
| Current File : /home/opti/workflow/src/models/structure.js |
'use strict';
module.exports = (sequelize, DataTypes) => {
const Structure = sequelize.define('Structure', {
name: DataTypes.STRING,
orgId: DataTypes.INTEGER,
createdAt: DataTypes.DATE,
updatedAt: DataTypes.DATE
}, {});
// Structure.hasMany(CompanyStructure, {/* foreignKey: 'structureId'*/ as :'companystructures'});
Structure.associate = function(models) {
// associations can be defined here
};
return Structure;
};