-- 添加新字段
ALTER TABLE report
ADD COLUMN road_type VARCHAR(1024),
ADD COLUMN road_width FLOAT,
ADD COLUMN wrong_lane FLOAT,
ADD COLUMN roadside_trees FLOAT,
ADD COLUMN roadside_ditch FLOAT,
ADD COLUMN guardrail FLOAT,
ADD COLUMN road_marking FLOAT,
ADD COLUMN maintenance_staff_count INTEGER,
ADD COLUMN shoulder_repair FLOAT,
ADD COLUMN ditch_cleaning FLOAT,
ADD COLUMN asphalt_repair FLOAT,
ADD COLUMN concrete_repair FLOAT,
ADD COLUMN grass_mowing FLOAT,
ADD COLUMN tree_whitening FLOAT,
ADD COLUMN pile_whitening FLOAT,
ADD COLUMN guardrail_maintenance FLOAT,
ADD COLUMN end_head_repair FLOAT,
ADD COLUMN inspection_no_exception BOOLEAN,
ADD COLUMN road_damage VARCHAR(1024),
ADD COLUMN security_damage VARCHAR(1024),
ADD COLUMN bridge_damage VARCHAR(1024),
ADD COLUMN culvert_damage VARCHAR(1024),
ADD COLUMN security_deficiency VARCHAR(1024),
ADD COLUMN encountered_environment VARCHAR(1024),
ADD COLUMN other_description VARCHAR(1024);

-- 设置字段备注
COMMENT ON COLUMN report.road_type IS '路面类型';
COMMENT ON COLUMN report.road_width IS '路面宽度';
COMMENT ON COLUMN report.wrong_lane IS '错车道';
COMMENT ON COLUMN report.roadside_trees IS '行道树';
COMMENT ON COLUMN report.roadside_ditch IS '边沟';
COMMENT ON COLUMN report.guardrail IS '护栏';
COMMENT ON COLUMN report.road_marking IS '标线';
COMMENT ON COLUMN report.maintenance_staff_count IS '养护人员人数';
COMMENT ON COLUMN report.shoulder_repair IS '修整路肩';
COMMENT ON COLUMN report.ditch_cleaning IS '清理边沟';
COMMENT ON COLUMN report.asphalt_repair IS '修补沥青路面';
COMMENT ON COLUMN report.concrete_repair IS '修补水泥路面';
COMMENT ON COLUMN report.grass_mowing IS '除草';
COMMENT ON COLUMN report.tree_whitening IS '树刷白';
COMMENT ON COLUMN report.pile_whitening IS '桩刷白';
COMMENT ON COLUMN report.guardrail_maintenance IS '维护护栏';
COMMENT ON COLUMN report.end_head_repair IS '修复端头';
COMMENT ON COLUMN report.inspection_no_exception IS '巡查无异常';
COMMENT ON COLUMN report.road_damage IS '路面损坏';
COMMENT ON COLUMN report.security_damage IS '安防损坏';
COMMENT ON COLUMN report.bridge_damage IS '桥梁损坏';
COMMENT ON COLUMN report.culvert_damage IS '涵洞损坏';
COMMENT ON COLUMN report.security_deficiency IS '安防缺失';
COMMENT ON COLUMN report.encountered_environment IS '路遇环境';
COMMENT ON COLUMN report.other_description IS '其他描述';
