%PDF- %PDF-
Direktori : /home/opti/workflow/src/models/ |
Current File : /home/opti/workflow/src/models/certificateType.js |
'use strict'; module.exports = (sequelize, DataTypes) => { const CertificateType= sequelize.define('CertificateType', { id: { type: DataTypes.INTEGER, primaryKey: true }, name: DataTypes.STRING, createdBy: DataTypes.INTEGER, }, {}); CertificateType.associate = function(models) { // associations can be defined here CertificateType.hasMany(models.Certificate, {foreignKey: 'id', as: 'Certificate'}); } return CertificateType; }