%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/opti/workflow/src/models/
Upload File :
Create Path :
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;
};

Zerion Mini Shell 1.0