四好公路
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.

467 lines
11 KiB

3 years ago
/* eslint-disable*/
3 years ago
'use strict';
module.exports = dc => {
const DataTypes = dc.ORM;
const sequelize = dc.orm;
const Report = sequelize.define("report", {
id: {
index: 1,
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: null,
comment: null,
primaryKey: true,
field: "id",
autoIncrement: true,
unique: "report_id_uindex"
},
reportType: {
index: 2,
type: DataTypes.STRING,
allowNull: false,
defaultValue: null,
comment: "上报类型",
primaryKey: false,
field: "report_type",
autoIncrement: false
},
projectType: {
index: 3,
type: DataTypes.STRING,
allowNull: false,
defaultValue: null,
comment: "工程类型",
primaryKey: false,
field: "project_type",
autoIncrement: false
},
road: {
index: 4,
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: '所属道路',
primaryKey: false,
field: "road",
autoIncrement: false
},
roadSectionStart: {
index: 5,
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: '开始路段',
primaryKey: false,
field: "road_section_start",
autoIncrement: false
},
roadSectionEnd: {
index: 6,
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: '结束路段',
primaryKey: false,
field: "road_section_end",
autoIncrement: false
},
longitude: {
index: 7,
type: DataTypes.DOUBLE,
allowNull: true,
defaultValue: null,
comment: '经度',
primaryKey: false,
field: "longitude",
autoIncrement: false
},
latitude: {
index: 8,
type: DataTypes.DOUBLE,
allowNull: true,
defaultValue: null,
comment: '纬度',
primaryKey: false,
field: "latitude",
autoIncrement: false
},
content: {
index: 9,
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: '具体内容',
primaryKey: false,
field: "content",
autoIncrement: false
},
scenePic: {
index: 10,
type: DataTypes.ARRAY(DataTypes.STRING),
allowNull: true,
defaultValue: null,
comment: null,
primaryKey: false,
field: "scene_pic",
autoIncrement: false
},
conserveBeforePic: {
index: 11,
type: DataTypes.ARRAY(DataTypes.STRING),
allowNull: true,
defaultValue: null,
comment: null,
primaryKey: false,
field: "conserve_before_pic",
autoIncrement: false
},
conserveUnderwayPic: {
index: 12,
type: DataTypes.ARRAY(DataTypes.STRING),
allowNull: true,
defaultValue: null,
comment: null,
primaryKey: false,
field: "conserve_underway_pic",
autoIncrement: false
},
conserveAfterPic: {
index: 13,
type: DataTypes.ARRAY(DataTypes.STRING),
allowNull: true,
defaultValue: null,
comment: null,
primaryKey: false,
field: "conserve_after_pic",
autoIncrement: false
},
userId: {
index: 14,
type: DataTypes.INTEGER,
allowNull: true,
defaultValue: null,
comment: null,
primaryKey: false,
field: "user_id",
autoIncrement: false
},
time: {
index: 15,
type: DataTypes.DATE,
allowNull: false,
defaultValue: null,
comment: '创建日期',
primaryKey: false,
field: "time",
autoIncrement: false
},
address: {
index: 16,
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: '具体位置',
primaryKey: false,
field: "address",
autoIncrement: false
},
projectName: {
index: 17,
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "工程名称",
primaryKey: false,
field: "project_name",
autoIncrement: false
},
handleState: {
index: 18,
type: DataTypes.STRING,
allowNull: false,
defaultValue: "已处理",
// comment: "处理状态",
primaryKey: false,
field: "handle_state",
autoIncrement: false
},
codeRoad: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: null,
primaryKey: false,
field: "code_road",
autoIncrement: false
},
performerId: {
type: DataTypes.INTEGER,
allowNull: true,
defaultValue: null,
comment: "执行者",
primaryKey: false,
field: "performer_id",
autoIncrement: false
},
handleContent: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "",
primaryKey: false,
field: "handle_content",
autoIncrement: false
},
handlePic: {
type: DataTypes.ARRAY(DataTypes.STRING),
allowNull: true,
defaultValue: null,
comment: null,
primaryKey: false,
field: "handle_pic",
autoIncrement: false
},
videoUrl: {
type: DataTypes.ARRAY(DataTypes.STRING),
allowNull: true,
defaultValue: null,
comment: null,
primaryKey: false,
field: "video_url",
autoIncrement: false
},
roadType: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "路面类型",
primaryKey: false,
field: "road_type",
autoIncrement: false
},
roadWidth: {
type: DataTypes.DOUBLE,
allowNull: true,
defaultValue: null,
comment: "路面宽度",
primaryKey: false,
field: "road_width",
autoIncrement: false
},
wrongLane: {
type: DataTypes.DOUBLE,
allowNull: true,
defaultValue: null,
comment: "错车道",
primaryKey: false,
field: "wrong_lane",
autoIncrement: false
},
roadsideTrees: {
type: DataTypes.DOUBLE,
allowNull: true,
defaultValue: null,
comment: "行道树",
primaryKey: false,
field: "roadside_trees",
autoIncrement: false
},
roadsideDitch: {
type: DataTypes.DOUBLE,
allowNull: true,
defaultValue: null,
comment: "边沟",
primaryKey: false,
field: "roadside_ditch",
autoIncrement: false
},
guardrail: {
type: DataTypes.DOUBLE,
allowNull: true,
defaultValue: null,
comment: "护栏",
primaryKey: false,
field: "guardrail",
autoIncrement: false
},
roadMarking: {
type: DataTypes.DOUBLE,
allowNull: true,
defaultValue: null,
comment: "标线",
primaryKey: false,
field: "road_marking",
autoIncrement: false
},
maintenanceStaffCount: {
type: DataTypes.INTEGER,
allowNull: true,
defaultValue: null,
comment: "养护人员人数",
primaryKey: false,
field: "maintenance_staff_count",
autoIncrement: false
},
shoulderRepair: {
type: DataTypes.DOUBLE,
allowNull: true,
defaultValue: null,
comment: "修整路肩",
primaryKey: false,
field: "shoulder_repair",
autoIncrement: false
},
ditchCleaning: {
type: DataTypes.DOUBLE,
allowNull: true,
defaultValue: null,
comment: "清理边沟",
primaryKey: false,
field: "ditch_cleaning",
autoIncrement: false
},
asphaltRepair: {
type: DataTypes.DOUBLE,
allowNull: true,
defaultValue: null,
comment: "修补沥青路面",
primaryKey: false,
field: "asphalt_repair",
autoIncrement: false
},
concreteRepair: {
type: DataTypes.DOUBLE,
allowNull: true,
defaultValue: null,
comment: "修补水泥路面",
primaryKey: false,
field: "concrete_repair",
autoIncrement: false
},
grassMowing: {
type: DataTypes.DOUBLE,
allowNull: true,
defaultValue: null,
comment: "除草",
primaryKey: false,
field: "grass_mowing",
autoIncrement: false
},
treeWhitening: {
type: DataTypes.DOUBLE,
allowNull: true,
defaultValue: null,
comment: "树刷白",
primaryKey: false,
field: "tree_whitening",
autoIncrement: false
},
pileWhitening: {
type: DataTypes.DOUBLE,
allowNull: true,
defaultValue: null,
comment: "桩刷白",
primaryKey: false,
field: "pile_whitening",
autoIncrement: false
},
guardrailMaintenance: {
type: DataTypes.DOUBLE,
allowNull: true,
defaultValue: null,
comment: "维护护栏",
primaryKey: false,
field: "guardrail_maintenance",
autoIncrement: false
},
endHeadRepair: {
type: DataTypes.DOUBLE,
allowNull: true,
defaultValue: null,
comment: "修复端头",
primaryKey: false,
field: "end_head_repair",
autoIncrement: false
},
inspectionNoException: {
type: DataTypes.BOOLEAN,
allowNull: true,
defaultValue: null,
comment: "巡查无异常",
primaryKey: false,
field: "inspection_no_exception",
autoIncrement: false
},
roadDamage: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "路面损坏",
primaryKey: false,
field: "road_damage",
autoIncrement: false
},
securityDamage: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "安防损坏",
primaryKey: false,
field: "security_damage",
autoIncrement: false
},
bridgeDamage: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "桥梁损坏",
primaryKey: false,
field: "bridge_damage",
autoIncrement: false
},
culvertDamage: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "涵洞损坏",
primaryKey: false,
field: "culvert_damage",
autoIncrement: false
},
securityDeficiency: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "安防缺失",
primaryKey: false,
field: "security_deficiency",
autoIncrement: false
},
encounteredEnvironment: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "路遇环境",
primaryKey: false,
field: "encountered_environment",
autoIncrement: false
},
otherDescription: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "其他描述",
primaryKey: false,
field: "other_description",
autoIncrement: false
}
}, {
tableName: "report",
comment: "",
indexes: []
});
dc.models.Report = Report;
return Report;
3 years ago
};