/* eslint-disable*/ 'use strict'; module.exports = dc => { const DataTypes = dc.ORM; const sequelize = dc.orm; const UserResource = sequelize.define("userResource", { id: { type: DataTypes.INTEGER, allowNull: false, defaultValue: null, comment: null, primaryKey: true, field: "id", autoIncrement: true, }, userId: { type: DataTypes.INTEGER, allowNull: false, defaultValue: null, comment: null, primaryKey: false, field: "user_id", autoIncrement: false, references: { key: "id", model: "t_user" } }, resourceCode: { type: DataTypes.STRING, allowNull: false, defaultValue: null, comment: null, primaryKey: false, field: "resource_code", autoIncrement: false, references: { key: "code", model: "t_resource" } } }, { tableName: "t_user_resource", comment: "", indexes: [] }); dc.models.UserResource = UserResource; return UserResource; };