-- 合同发起模块字段补丁
-- 适用场景：如果你已经执行过旧版 zgwl_contract_launch_oracle.sql，再执行本文件补齐本次新增字段。
-- 如果是新库，直接执行 zgwl_contract_launch_oracle.sql 即可，不需要执行本补丁。

ALTER TABLE SEAL_CONTRACT_LAUNCH_MAIN ADD SIGNING_SUBJECT_CODE VARCHAR2(500 CHAR);
COMMENT ON COLUMN SEAL_CONTRACT_LAUNCH_MAIN.SIGNING_SUBJECT_CODE IS '签约主体编码，多个用逗号分隔';

ALTER TABLE SEAL_CONTRACT_LAUNCH_MAIN ADD DATE_TYPE VARCHAR2(10 CHAR);
COMMENT ON COLUMN SEAL_CONTRACT_LAUNCH_MAIN.DATE_TYPE IS '固定期间日期类型：0年 1月 2日';

ALTER TABLE SEAL_CONTRACT_LAUNCH_MAIN ADD PUSH_URL VARCHAR2(500 CHAR);
COMMENT ON COLUMN SEAL_CONTRACT_LAUNCH_MAIN.PUSH_URL IS '法务审批回调地址';

ALTER TABLE SEAL_CONTRACT_LAUNCH_MAIN ADD EW_AMOUNT_TYPE VARCHAR2(100 CHAR);
COMMENT ON COLUMN SEAL_CONTRACT_LAUNCH_MAIN.EW_AMOUNT_TYPE IS '额外金额类型：DJ定金 YJ押金 YFK预付款 BZJ保证金';

ALTER TABLE SEAL_CONTRACT_LAUNCH_MAIN ADD DJ_AMOUNT NUMBER(20, 2);
COMMENT ON COLUMN SEAL_CONTRACT_LAUNCH_MAIN.DJ_AMOUNT IS '定金金额';

ALTER TABLE SEAL_CONTRACT_LAUNCH_MAIN ADD YJ_AMOUNT NUMBER(20, 2);
COMMENT ON COLUMN SEAL_CONTRACT_LAUNCH_MAIN.YJ_AMOUNT IS '押金金额';

ALTER TABLE SEAL_CONTRACT_LAUNCH_MAIN ADD YFK_AMOUNT NUMBER(20, 2);
COMMENT ON COLUMN SEAL_CONTRACT_LAUNCH_MAIN.YFK_AMOUNT IS '预付款金额';

ALTER TABLE SEAL_CONTRACT_LAUNCH_MAIN ADD BZJ_AMOUNT NUMBER(20, 2);
COMMENT ON COLUMN SEAL_CONTRACT_LAUNCH_MAIN.BZJ_AMOUNT IS '保证金金额';

ALTER TABLE SEAL_CONTRACT_LAUNCH_PLAN ADD PLAN_SUBJECT_CODE VARCHAR2(100 CHAR);
COMMENT ON COLUMN SEAL_CONTRACT_LAUNCH_PLAN.PLAN_SUBJECT_CODE IS '所属主体编码';

ALTER TABLE SEAL_CONTRACT_LAUNCH_PLAN ADD PLAN_SUBJECT_NAME VARCHAR2(200 CHAR);
COMMENT ON COLUMN SEAL_CONTRACT_LAUNCH_PLAN.PLAN_SUBJECT_NAME IS '所属主体名称';
