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.
124 lines
2.8 KiB
124 lines
2.8 KiB
/* eslint-disable*/
|
|
'use strict';
|
|
|
|
module.exports = dc => {
|
|
const DataTypes = dc.ORM;
|
|
const sequelize = dc.orm;
|
|
const xunCheckTask = sequelize.define("xuncheckTask", {
|
|
id: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: true,
|
|
field: "id",
|
|
autoIncrement: true
|
|
},
|
|
inspectiontaskname: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: false,
|
|
field: "inspectiontaskname",
|
|
comment: "巡检任务名",
|
|
autoIncrement: false
|
|
},
|
|
inspectionnum: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: false,
|
|
field: "inspectionnum",
|
|
comment: "巡检频次",
|
|
autoIncrement: false
|
|
},
|
|
taskperiod: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: false,
|
|
field: "taskperiod",
|
|
comment: "任务周期",
|
|
autoIncrement: false
|
|
},
|
|
checkContent: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: false,
|
|
field: "checkContent",
|
|
comment: "巡检点",
|
|
autoIncrement: false
|
|
},
|
|
contentList: {
|
|
type: DataTypes.JSONB,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: false,
|
|
comment: "巡检点列表",
|
|
field: "contentList",
|
|
autoIncrement: false
|
|
},
|
|
insectionuser: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: false,
|
|
field: "insectionuser",
|
|
comment: "巡检人员",
|
|
autoIncrement: false
|
|
},
|
|
status: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: false,
|
|
field: "status",
|
|
comment: "巡检状态",
|
|
autoIncrement: false
|
|
},
|
|
starTime: {
|
|
type: DataTypes.DATE,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: null,
|
|
comment: "巡检开始时间",
|
|
primaryKey: false,
|
|
field: "star_time",
|
|
autoIncrement: false
|
|
},
|
|
endTime: {
|
|
type: DataTypes.DATE,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: false,
|
|
field: "end_time",
|
|
comment: "巡检结束时间",
|
|
autoIncrement: false
|
|
},
|
|
path: {
|
|
type: DataTypes.JSONB,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: false,
|
|
field: "path",
|
|
comment: "文件路径",
|
|
autoIncrement: false
|
|
},
|
|
}, {
|
|
tableName: "t_xuncheck_tasks",
|
|
comment: "",
|
|
indexes: []
|
|
});
|
|
dc.models.xunCheckTask = xunCheckTask;
|
|
return xunCheckTask;
|
|
};
|