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.
70 lines
1.6 KiB
70 lines
1.6 KiB
2 years ago
|
/* eslint-disable*/
|
||
|
'use strict';
|
||
|
|
||
|
module.exports = dc => {
|
||
|
const DataTypes = dc.ORM;
|
||
|
const sequelize = dc.orm;
|
||
|
const ProjectCorrelation = sequelize.define("projectCorrelation", {
|
||
|
id: {
|
||
|
type: DataTypes.INTEGER,
|
||
|
allowNull: false,
|
||
|
defaultValue: null,
|
||
|
comment: null,
|
||
|
primaryKey: true,
|
||
|
field: "id",
|
||
|
autoIncrement: true,
|
||
|
unique: "project_correlation_id_uindex"
|
||
|
},
|
||
|
anxinProjectId: {
|
||
|
type: DataTypes.ARRAY(DataTypes.INTEGER),
|
||
|
allowNull: false,
|
||
|
defaultValue: null,
|
||
|
comment: null,
|
||
|
primaryKey: false,
|
||
|
field: "anxin_project_id",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
pepProjectId: {
|
||
|
type: DataTypes.ARRAY(DataTypes.INTEGER),
|
||
|
allowNull: false,
|
||
|
defaultValue: null,
|
||
|
comment: "项目管理的项目id",
|
||
|
primaryKey: false,
|
||
|
field: "pep_project_id",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
createTime: {
|
||
|
type: DataTypes.DATE,
|
||
|
allowNull: false,
|
||
|
defaultValue: null,
|
||
|
comment: null,
|
||
|
primaryKey: false,
|
||
|
field: "create_time",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
createUser: {
|
||
|
type: DataTypes.INTEGER,
|
||
|
allowNull: false,
|
||
|
defaultValue: null,
|
||
|
comment: null,
|
||
|
primaryKey: false,
|
||
|
field: "create_user",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
name: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: null,
|
||
|
primaryKey: false,
|
||
|
field: "name",
|
||
|
autoIncrement: false
|
||
|
}
|
||
|
}, {
|
||
|
tableName: "project_correlation",
|
||
|
comment: "",
|
||
|
indexes: []
|
||
|
});
|
||
|
dc.models.ProjectCorrelation = ProjectCorrelation;
|
||
|
return ProjectCorrelation;
|
||
|
};
|