/* 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 }, name: { type: DataTypes.STRING, allowNull: true, defaultValue: null, comment: "权限名称", primaryKey: false, field: "name", autoIncrement: false }, code: { type: DataTypes.STRING, allowNull: true, defaultValue: null, comment: "权限码", primaryKey: false, field: "code", autoIncrement: false }, parentId: { type: DataTypes.INTEGER, allowNull: true, defaultValue: null, comment: "父级id", primaryKey: false, field: "parent_id", autoIncrement: false }, createTime: { type: DataTypes.DATE, allowNull: true, defaultValue: null, comment: "创建时间", primaryKey: false, field: "create_time", autoIncrement: false }, order: { type: DataTypes.INTEGER, allowNull: true, defaultValue: null, comment: null, primaryKey: false, field: "order", autoIncrement: false } }, { tableName: "resource", comment: "", indexes: [] }); dc.models.Resource = Resource; return Resource; };