/* eslint-disable*/ 'use strict'; module.exports = dc => { const DataTypes = dc.ORM; const sequelize = dc.orm; const Resource = sequelize.define("resource", { id: { type: DataTypes.INTEGER, allowNull: false, defaultValue: null, comment: null, primaryKey: true, field: "id", autoIncrement: true, unique: "resource_id_uindex" }, code: { type: DataTypes.STRING, allowNull: false, defaultValue: null, comment: null, primaryKey: false, field: "code", autoIncrement: false }, name: { type: DataTypes.STRING, allowNull: false, defaultValue: null, comment: null, primaryKey: false, field: "name", autoIncrement: false }, parentCode: { type: DataTypes.STRING, allowNull: true, defaultValue: null, comment: null, primaryKey: false, field: "parent_code", autoIncrement: false } }, { tableName: "resource", comment: "", indexes: [] }); dc.models.Resource = Resource; return Resource; };