政务数据资源中心(Government data Resource center) 03专项3期主要建设内容
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

124 lines
3.6 KiB

2 years ago
/* eslint-disable*/
'use strict';
module.exports = dc => {
const DataTypes = dc.ORM;
const sequelize = dc.orm;
const BusinessMetadataDatabase = sequelize.define("businessMetadataDatabase", {
id: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: null,
comment: "唯一标识",
primaryKey: true,
field: "id",
autoIncrement: true,
unique: "t_business_metadata_database_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
},
metadataDatabase: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: null,
comment: "库表元数据",
primaryKey: false,
field: "metadata_database",
autoIncrement: false,
references: {
key: "id",
model: "tMetadataDatabase"
}
}
}, {
tableName: "t_business_metadata_database",
comment: "",
indexes: []
});
dc.models.BusinessMetadataDatabase = BusinessMetadataDatabase;
return BusinessMetadataDatabase;
};