/* eslint-disable*/ 'use strict'; module.exports = dc => { const DataTypes = dc.ORM; const sequelize = dc.orm; const RoleResource = sequelize.define("roleResource", { id: { type: DataTypes.INTEGER, allowNull: false, defaultValue: null, comment: null, primaryKey: true, field: "id", autoIncrement: true, unique: "role_resource_id_uindex" }, roleId: { type: DataTypes.INTEGER, allowNull: false, defaultValue: null, comment: null, primaryKey: false, field: "role_id", autoIncrement: false, references: { key: "id", model: "tRole" } }, resourceCode: { type: DataTypes.STRING, allowNull: false, defaultValue: null, comment: null, primaryKey: false, field: "resource_code", autoIncrement: false } }, { tableName: "role_resource", comment: "", indexes: [] }); dc.models.RoleResource = RoleResource; return RoleResource; };