/* eslint-disable*/ 'use strict'; module.exports = dc => { const DataTypes = dc.ORM; const sequelize = dc.orm; const MetadataRestapi = sequelize.define("metadataRestapi", { id: { type: DataTypes.INTEGER, allowNull: false, defaultValue: null, comment: "唯一标识", primaryKey: true, field: "id", autoIncrement: true, unique: "t_metadata_restapi_id_uindex" }, name: { type: DataTypes.STRING, allowNull: false, defaultValue: null, comment: "接口名称", primaryKey: false, field: "name", autoIncrement: false }, url: { type: DataTypes.STRING, allowNull: false, defaultValue: null, comment: "接口路由", primaryKey: false, field: "url", autoIncrement: false }, method: { type: DataTypes.STRING, allowNull: false, defaultValue: null, comment: "请求方法", primaryKey: false, field: "method", autoIncrement: false }, queryParam: { type: DataTypes.STRING, allowNull: true, defaultValue: null, comment: "查询参数", primaryKey: false, field: "query_param", autoIncrement: false }, bodyParam: { type: DataTypes.JSONB, allowNull: true, defaultValue: null, comment: "请求实体", primaryKey: false, field: "body_param", autoIncrement: false }, return: { type: DataTypes.JSONB, allowNull: true, defaultValue: null, comment: "接口返回值", primaryKey: false, field: "return", autoIncrement: false }, enabled: { type: DataTypes.BOOLEAN, allowNull: true, defaultValue: null, comment: "是否已启用", primaryKey: false, field: "enabled", autoIncrement: false }, attributesParam: { type: DataTypes.JSONB, allowNull: true, defaultValue: null, comment: "属性", primaryKey: false, field: "attributes", autoIncrement: false }, catalog: { type: DataTypes.INTEGER, allowNull: false, defaultValue: null, comment: "资源目录", primaryKey: false, field: "catalog", autoIncrement: false, references: { key: "id", model: "tResourceCatalog" } }, createBy: { type: DataTypes.INTEGER, allowNull: false, defaultValue: null, comment: "创建者", primaryKey: false, field: "create_by", autoIncrement: false, references: { key: "id", model: "tUser" } }, createAt: { type: DataTypes.DATE, allowNull: false, defaultValue: null, comment: "创建时间", primaryKey: false, field: "create_at", autoIncrement: false }, updateAt: { type: DataTypes.DATE, allowNull: true, defaultValue: null, comment: "修改时间", primaryKey: false, field: "update_at", autoIncrement: false }, catalogKey: { type: DataTypes.STRING, allowNull: false, defaultValue: null, comment: null, primaryKey: false, field: "catalogKey", autoIncrement: false } }, { tableName: "t_metadata_restapi", comment: "", indexes: [] }); dc.models.MetadataRestapi = MetadataRestapi; return MetadataRestapi; };