/* eslint-disable*/ 'use strict'; module.exports = dc => { const DataTypes = dc.ORM; const sequelize = dc.orm; const MetadataDatabase = sequelize.define("metadataDatabase", { id: { type: DataTypes.INTEGER, allowNull: false, defaultValue: null, comment: "唯一标识", primaryKey: true, field: "id", autoIncrement: true, unique: "t_metadata_database_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 }, type: { type: DataTypes.STRING, allowNull: false, defaultValue: null, comment: "元数据类型", primaryKey: false, field: "type", autoIncrement: false }, description: { type: DataTypes.STRING, allowNull: true, defaultValue: null, comment: "描述(详情)", primaryKey: false, field: "description", autoIncrement: false }, attributesParam: { type: DataTypes.JSONB, allowNull: true, defaultValue: null, comment: "属性", primaryKey: false, field: "attributes", autoIncrement: false }, catalog: { type: DataTypes.INTEGER, allowNull: true, defaultValue: null, comment: "资源目录", primaryKey: false, field: "catalog", autoIncrement: false, references: { key: "id", model: "tResourceCatalog" } }, parent: { type: DataTypes.INTEGER, allowNull: true, defaultValue: null, comment: "父级元数据", primaryKey: false, field: "parent", 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.INTEGER, allowNull: true, defaultValue: null, comment: "修改时间", primaryKey: false, field: "update_at", autoIncrement: false } }, { tableName: "t_metadata_database", comment: "", indexes: [] }); dc.models.MetadataDatabase = MetadataDatabase; return MetadataDatabase; };