/* eslint-disable*/ 'use strict'; module.exports = dc => { const DataTypes = dc.ORM; const sequelize = dc.orm; const ResourceCatalog = sequelize.define("resourceCatalog", { id: { type: DataTypes.INTEGER, allowNull: false, defaultValue: null, comment: "唯一标识", primaryKey: true, field: "id", autoIncrement: true, unique: "t_resource_catalog_id_uindex" }, name: { type: DataTypes.STRING, allowNull: false, defaultValue: null, comment: "名称", primaryKey: false, field: "name", autoIncrement: false }, code: { type: DataTypes.STRING, allowNull: false, defaultValue: null, comment: "代码", primaryKey: false, field: "code", autoIncrement: false }, description: { type: DataTypes.STRING, allowNull: true, defaultValue: null, comment: "描述", primaryKey: false, field: "description", autoIncrement: false }, parent: { type: DataTypes.INTEGER, allowNull: true, defaultValue: null, comment: "父级目录", primaryKey: false, field: "parent", autoIncrement: false } }, { tableName: "t_resource_catalog", comment: "", indexes: [] }); dc.models.ResourceCatalog = ResourceCatalog; return ResourceCatalog; };