module.exports = function (dc) { const StatsProcessNodes = dc.orm.define('statsProcessNodes', { processVersionId: { field: 'process_version_id', type: dc.ORM.INTEGER, primaryKey: true, unique: true, allowNull: false }, processId: { field: 'process_id', type: dc.ORM.INTEGER, allowNull: false }, processName: { field: 'process_name', type: dc.ORM.STRING, allowNull: false }, processNodesTotal: { field: 'process_nodes_total', type: dc.ORM.INTEGER, allowNull: false } }, { tableName: 'stats_process_nodes' }); dc.models.StatsProcessNodes = StatsProcessNodes; return StatsProcessNodes; };