政务数据资源中心(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.
 
 
 
 

67 lines
1.8 KiB

/* eslint-disable*/
'use strict';
module.exports = dc => {
const DataTypes = dc.ORM;
const sequelize = dc.orm;
const DataSecuritySpecification = sequelize.define("dataSecuritySpecification", {
id: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: null,
comment: "唯一标识",
primaryKey: true,
field: "id",
autoIncrement: true,
unique: "t_data_security_specification_id_uindex"
},
fileName: {
type: DataTypes.STRING,
allowNull: false,
defaultValue: null,
comment: "文件名",
primaryKey: false,
field: "file_name",
autoIncrement: false,
},
tags: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "标签",
primaryKey: false,
field: "tags",
autoIncrement: false,
},
createAt: {
type: DataTypes.DATE,
allowNull: false,
defaultValue: null,
comment: "文件创建时间",
primaryKey: false,
field: "create_at",
autoIncrement: false,
},
path: {
type: DataTypes.STRING,
allowNull: false,
defaultValue: null,
comment: "文件路径",
primaryKey: false,
field: "path",
autoIncrement: false,
},
}, {
tableName: "t_data_security_specification",
comment: "",
indexes: []
});
dc.models.DataSecuritySpecification = DataSecuritySpecification;
// const { StandardDoc } = dc.models;
// BusinessRule.belongsTo(StandardDoc, { foreignKey: 'ruleBasis', targetKey: 'id' });
// MetadataDatabase.hasMany(TagDatabase, { foreignKey: 'database', sourceKey: 'id' });
return DataSecuritySpecification;
};