begin; set search_path to public; -- 商机表补充实际签约金额字段 -- 说明: -- 1. 为 crm_opportunity 增加 actual_signed_amount 字段。 -- 2. 字段类型为 numeric(18, 2),允许为空,便于区分“未签约”和“已签约但金额为 0”。 -- 3. 可重复执行。 alter table if exists crm_opportunity add column if not exists actual_signed_amount numeric(18, 2); comment on column crm_opportunity.actual_signed_amount is '实际签约金额'; commit;