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.
 
 
 
 

55 lines
1.4 KiB

/* eslint-disable*/
'use strict';
module.exports = dc => {
const DataTypes = dc.ORM;
const sequelize = dc.orm;
const PatrolRecord = sequelize.define("PatrolRecord", {
id: {
field: "id",
type: DataTypes.INTEGER,
allowNull: false,
primaryKey: true,
autoIncrement: true,
},
patrolPlanId: {
field: "patrol_plan_id",
type: DataTypes.INTEGER,
allowNull: false,
primaryKey: false,
autoIncrement: false
},
lastInspectionTime: {
field: "last_inspection_time",
type: DataTypes.DATE,
allowNull: true,
},
inspectionTime: {
field: "inspection_time",
type: DataTypes.DATE,
allowNull: true,
},
points: {
field: "points",
type: DataTypes.JSONB,
allowNull: true,
},
alarm: {
field: "alarm",
type: DataTypes.BOOLEAN,
allowNull: false,
defaultValue: false,
},
pointId: {
field: "point_id",
type: DataTypes.INTEGER,
allowNull: false,
},
}, {
tableName: "patrol_record",
comment: "",
indexes: []
});
dc.models.PatrolRecord = PatrolRecord;
return PatrolRecord;
};