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.
43 lines
1.0 KiB
43 lines
1.0 KiB
/* eslint-disable*/
|
|
'use strict';
|
|
|
|
module.exports = dc => {
|
|
const DataTypes = dc.ORM;
|
|
const sequelize = dc.orm;
|
|
const ProjectBind = sequelize.define("project_bind", {
|
|
id: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: true,
|
|
field: "id",
|
|
autoIncrement: true,
|
|
},
|
|
axyProjectId: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: '安心云项目id',
|
|
primaryKey: false,
|
|
field: "axy_project_id",
|
|
autoIncrement: false
|
|
},
|
|
structureId: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: '结构物id',
|
|
primaryKey: false,
|
|
field: "structure_id",
|
|
autoIncrement: false
|
|
},
|
|
|
|
}, {
|
|
tableName: "project_bind",
|
|
comment: "",
|
|
indexes: []
|
|
});
|
|
dc.models.ProjectBind = ProjectBind;
|
|
return ProjectBind;
|
|
};
|