|
@ -2,96 +2,96 @@ |
|
|
'use strict'; |
|
|
'use strict'; |
|
|
|
|
|
|
|
|
module.exports = dc => { |
|
|
module.exports = dc => { |
|
|
const DataTypes = dc.ORM; |
|
|
const DataTypes = dc.ORM; |
|
|
const sequelize = dc.orm; |
|
|
const sequelize = dc.orm; |
|
|
const ProjectCorrelation = sequelize.define("projectCorrelation", { |
|
|
const ProjectCorrelation = sequelize.define("projectCorrelation", { |
|
|
id: { |
|
|
id: { |
|
|
type: DataTypes.INTEGER, |
|
|
type: DataTypes.INTEGER, |
|
|
allowNull: false, |
|
|
allowNull: false, |
|
|
defaultValue: null, |
|
|
defaultValue: null, |
|
|
comment: null, |
|
|
comment: null, |
|
|
primaryKey: true, |
|
|
primaryKey: true, |
|
|
field: "id", |
|
|
field: "id", |
|
|
autoIncrement: true, |
|
|
autoIncrement: true, |
|
|
unique: "project_correlation_id_uindex" |
|
|
unique: "project_correlation_id_uindex" |
|
|
}, |
|
|
}, |
|
|
anxinProjectId: { |
|
|
anxinProjectId: { |
|
|
type: DataTypes.ARRAY(DataTypes.INTEGER), |
|
|
type: DataTypes.ARRAY(DataTypes.INTEGER), |
|
|
allowNull: false, |
|
|
allowNull: false, |
|
|
defaultValue: null, |
|
|
defaultValue: null, |
|
|
comment: null, |
|
|
comment: null, |
|
|
primaryKey: false, |
|
|
primaryKey: false, |
|
|
field: "anxin_project_id", |
|
|
field: "anxin_project_id", |
|
|
autoIncrement: false |
|
|
autoIncrement: false |
|
|
}, |
|
|
}, |
|
|
createTime: { |
|
|
createTime: { |
|
|
type: DataTypes.DATE, |
|
|
type: DataTypes.DATE, |
|
|
allowNull: false, |
|
|
allowNull: false, |
|
|
defaultValue: null, |
|
|
defaultValue: null, |
|
|
comment: null, |
|
|
comment: null, |
|
|
primaryKey: false, |
|
|
primaryKey: false, |
|
|
field: "create_time", |
|
|
field: "create_time", |
|
|
autoIncrement: false |
|
|
autoIncrement: false |
|
|
}, |
|
|
}, |
|
|
createUser: { |
|
|
createUser: { |
|
|
type: DataTypes.INTEGER, |
|
|
type: DataTypes.INTEGER, |
|
|
allowNull: false, |
|
|
allowNull: false, |
|
|
defaultValue: null, |
|
|
defaultValue: null, |
|
|
comment: null, |
|
|
comment: null, |
|
|
primaryKey: false, |
|
|
primaryKey: false, |
|
|
field: "create_user", |
|
|
field: "create_user", |
|
|
autoIncrement: false |
|
|
autoIncrement: false |
|
|
}, |
|
|
}, |
|
|
name: { |
|
|
name: { |
|
|
type: DataTypes.STRING, |
|
|
type: DataTypes.STRING, |
|
|
allowNull: true, |
|
|
allowNull: true, |
|
|
defaultValue: null, |
|
|
defaultValue: null, |
|
|
comment: null, |
|
|
comment: null, |
|
|
primaryKey: false, |
|
|
primaryKey: false, |
|
|
field: "name", |
|
|
field: "name", |
|
|
autoIncrement: false |
|
|
autoIncrement: false |
|
|
}, |
|
|
}, |
|
|
pepProjectId: { |
|
|
pepProjectId: { |
|
|
type: DataTypes.INTEGER, |
|
|
type: DataTypes.INTEGER, |
|
|
allowNull: true, |
|
|
allowNull: true, |
|
|
defaultValue: null, |
|
|
defaultValue: null, |
|
|
comment: null, |
|
|
comment: null, |
|
|
primaryKey: false, |
|
|
primaryKey: false, |
|
|
field: "pep_project_id", |
|
|
field: "pep_project_id", |
|
|
autoIncrement: false |
|
|
autoIncrement: false |
|
|
}, |
|
|
}, |
|
|
del: { |
|
|
del: { |
|
|
type: DataTypes.BOOLEAN, |
|
|
type: DataTypes.BOOLEAN, |
|
|
allowNull: true, |
|
|
allowNull: true, |
|
|
defaultValue: null, |
|
|
defaultValue: null, |
|
|
comment: null, |
|
|
comment: null, |
|
|
primaryKey: false, |
|
|
primaryKey: false, |
|
|
field: "del", |
|
|
field: "del", |
|
|
autoIncrement: false |
|
|
autoIncrement: false |
|
|
}, |
|
|
}, |
|
|
updateTime: { |
|
|
updateTime: { |
|
|
type: DataTypes.DATE, |
|
|
type: DataTypes.DATE, |
|
|
allowNull: false, |
|
|
allowNull: false, |
|
|
defaultValue: null, |
|
|
defaultValue: null, |
|
|
comment: null, |
|
|
comment: null, |
|
|
primaryKey: false, |
|
|
primaryKey: false, |
|
|
field: "update_time", |
|
|
field: "update_time", |
|
|
autoIncrement: false |
|
|
autoIncrement: false |
|
|
}, |
|
|
}, |
|
|
mappingClass: { |
|
|
mappingClass: { |
|
|
type: DataTypes.STRING, |
|
|
type: DataTypes.STRING, |
|
|
allowNull: true, |
|
|
allowNull: true, |
|
|
defaultValue: null, |
|
|
defaultValue: null, |
|
|
comment: null, |
|
|
comment: null, |
|
|
primaryKey: false, |
|
|
primaryKey: false, |
|
|
field: "mapping_class", |
|
|
field: "mapping_class", |
|
|
autoIncrement: false |
|
|
autoIncrement: false |
|
|
}, |
|
|
}, |
|
|
}, { |
|
|
}, { |
|
|
tableName: "project_correlation", |
|
|
tableName: "project_correlation", |
|
|
comment: "", |
|
|
comment: "", |
|
|
indexes: [] |
|
|
indexes: [] |
|
|
}); |
|
|
}); |
|
|
dc.models.ProjectCorrelation = ProjectCorrelation; |
|
|
dc.models.ProjectCorrelation = ProjectCorrelation; |
|
|
return ProjectCorrelation; |
|
|
return ProjectCorrelation; |
|
|
}; |
|
|
}; |