/* eslint-disable*/ 'use strict'; module.exports = dc => { const DataTypes = dc.ORM; const sequelize = dc.orm; const PatrolPlan = sequelize.define("PatrolPlan", { id: { type: DataTypes.INTEGER, allowNull: false, defaultValue: null, comment: null, primaryKey: true, field: "id", autoIncrement: true, unique: "patrol_plan_id_uindex" }, name: { type: DataTypes.STRING, allowNull: false, defaultValue: null, comment: null, primaryKey: false, field: "name", autoIncrement: false }, way: { type: DataTypes.STRING, allowNull: true, defaultValue: null, comment: null, primaryKey: false, field: "way", autoIncrement: false }, structureId: { type: DataTypes.INTEGER, allowNull: true, defaultValue: null, comment: null, primaryKey: false, field: "structure_id", autoIncrement: false }, startTime: { type: DataTypes.DATE, allowNull: true, defaultValue: null, comment: null, primaryKey: false, field: "start_time", autoIncrement: false }, endTime: { type: DataTypes.DATE, allowNull: true, defaultValue: null, comment: null, primaryKey: false, field: "end_time", autoIncrement: false }, frequency: { type: DataTypes.STRING, allowNull: true, defaultValue: null, comment: null, primaryKey: false, field: "frequency", autoIncrement: false }, points: { type: DataTypes.JSONB, allowNull: true, defaultValue: null, comment: null, primaryKey: false, field: "points", autoIncrement: false }, userId: { type: DataTypes.INTEGER, allowNull: true, comment: null, primaryKey: false, field: "user_id", autoIncrement: false, }, patrolCount: { type: DataTypes.INTEGER, allowNull: false, defaultValue: 0, comment: null, primaryKey: false, field: "patrol_count", autoIncrement: false }, }, { tableName: "patrol_plan", comment: "", indexes: [] }); dc.models.PatrolPlan = PatrolPlan; return PatrolPlan; };