/* 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, }, projectId: { field: "project_id", type: DataTypes.INTEGER, allowNull: true, }, }, { tableName: "patrol_record", comment: "", indexes: [] }); dc.models.PatrolRecord = PatrolRecord; return PatrolRecord; };