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.
51 lines
1.2 KiB
51 lines
1.2 KiB
/* eslint-disable*/
|
|
'use strict';
|
|
|
|
module.exports = dc => {
|
|
const DataTypes = dc.ORM;
|
|
const sequelize = dc.orm;
|
|
const PatrolTemplateCheckItems = sequelize.define("patrolTemplateCheckItems", {
|
|
id: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: true,
|
|
field: "id",
|
|
autoIncrement: true,
|
|
unique: "patrol_template_check_items_id_uindex"
|
|
},
|
|
templateId: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: false,
|
|
field: "template_id",
|
|
autoIncrement: false,
|
|
references: {
|
|
key: "id",
|
|
model: "patrolTemplate"
|
|
}
|
|
},
|
|
checkItemsId: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: false,
|
|
field: "check_items_id",
|
|
autoIncrement: false,
|
|
references: {
|
|
key: "id",
|
|
model: "checkItems"
|
|
}
|
|
}
|
|
}, {
|
|
tableName: "patrol_template_check_items",
|
|
comment: "",
|
|
indexes: []
|
|
});
|
|
dc.models.PatrolTemplateCheckItems = PatrolTemplateCheckItems;
|
|
return PatrolTemplateCheckItems;
|
|
};
|