/* eslint-disable*/ 'use strict'; module.exports = dc => { const DataTypes = dc.ORM; const sequelize = dc.orm; const BusinessMetadataRestapi = sequelize.define("businessMetadataRestapi", { id: { type: DataTypes.INTEGER, allowNull: false, defaultValue: null, comment: "唯一标识", primaryKey: true, field: "id", autoIncrement: true, unique: "t_business_metadata_restapi_id_uindex" }, resourceName: { type: DataTypes.STRING, allowNull: false, defaultValue: null, comment: "信息资源名称", primaryKey: false, field: "resource_name", autoIncrement: false }, resourceAbstract: { type: DataTypes.STRING, allowNull: false, defaultValue: null, comment: "信息资源摘要", primaryKey: false, field: "resource_abstract", autoIncrement: false }, resourceProvider: { type: DataTypes.STRING, allowNull: false, defaultValue: null, comment: "信息资源提供方", primaryKey: false, field: "resource_provider", autoIncrement: false }, resourceCategory: { type: DataTypes.STRING, allowNull: false, defaultValue: null, comment: "信息资源分类", primaryKey: false, field: "resource_category", autoIncrement: false }, resourceId: { type: DataTypes.STRING, allowNull: false, defaultValue: null, comment: "信息资源标识符", primaryKey: false, field: "resource_id", autoIncrement: false }, metadataId: { type: DataTypes.STRING, allowNull: false, defaultValue: null, comment: "元数据标识符", primaryKey: false, field: "metadata_id", autoIncrement: false }, 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 }, metadataRestapiId: { type: DataTypes.INTEGER, allowNull: false, defaultValue: null, comment: "接口元数据", primaryKey: false, field: "metadata_restapi", autoIncrement: false, references: { key: "id", model: "tMetadataRestapi" } } }, { tableName: "t_business_metadata_restapi", comment: "", indexes: [] }); dc.models.BusinessMetadataRestapi = BusinessMetadataRestapi; return BusinessMetadataRestapi; };