-- 添加现病史相关字段到诊单表
-- 执行此SQL前请备份数据

ALTER TABLE `zyt_tcm_diagnosis` 
ADD COLUMN `appetite` varchar(50) DEFAULT '' COMMENT '口腔感觉：干/苦/腻' AFTER `past_history`,
ADD COLUMN `water_intake` varchar(50) DEFAULT '' COMMENT '每日饮水量：1瓶/1.5瓶/3瓶/4瓶' AFTER `appetite`,
ADD COLUMN `diet_condition` varchar(100) DEFAULT '' COMMENT '饮食情况：多食/纳呆/胃胀/胃痛/反酸/食欲减退' AFTER `water_intake`,
ADD COLUMN `weight_change` varchar(50) DEFAULT '' COMMENT '近一个月内体重变化：瘦5斤/瘦10斤/瘦10斤以上' AFTER `diet_condition`,
ADD COLUMN `body_feeling` varchar(100) DEFAULT '' COMMENT '肢体感觉：麻木/乏力/疼痛/畏寒/烧热' AFTER `weight_change`,
ADD COLUMN `sleep_condition` varchar(100) DEFAULT '' COMMENT '睡眠情况：入睡难/容易醒/早醒/多梦' AFTER `body_feeling`,
ADD COLUMN `eye_condition` varchar(100) DEFAULT '' COMMENT '眼睛情况：模糊/干涩/流泪/飞蚊症/出血' AFTER `sleep_condition`,
ADD COLUMN `head_feeling` varchar(100) DEFAULT '' COMMENT '头部感觉：疲劳困倦/头晕/头痛/耳鸣' AFTER `eye_condition`,
ADD COLUMN `sweat_condition` varchar(100) DEFAULT '' COMMENT '出汗情况：日间出汗/夜间出汗/汗粘/多汗' AFTER `head_feeling`,
ADD COLUMN `skin_condition` varchar(100) DEFAULT '' COMMENT '皮肤情况：干燥/瘙痒/脱皮/水肿/湿疹' AFTER `sweat_condition`,
ADD COLUMN `urine_condition` varchar(100) DEFAULT '' COMMENT '小便情况：尿急/尿黄/有泡/尿频/尿痛/夜尿多' AFTER `skin_condition`,
ADD COLUMN `stool_condition` varchar(100) DEFAULT '' COMMENT '大便情况：干燥/便秘/粘腻/腹泻' AFTER `urine_condition`,
ADD COLUMN `kidney_condition` varchar(100) DEFAULT '' COMMENT '腰肾情况：酸胀/疼痛/腰痛/性功能下降' AFTER `stool_condition`,
ADD COLUMN `fatty_liver_degree` varchar(50) DEFAULT '' COMMENT '脂肪肝程度：轻度/中度/重度' AFTER `kidney_condition`;

-- 验证字段添加
DESC zyt_tcm_diagnosis;
