
ALTER TABLE "act_sale_code"
    ADD COLUMN "order_id" int4,
    ADD COLUMN "box_type" varchar(16),
    ADD COLUMN "box_num" int4 DEFAULT 1;

COMMENT ON COLUMN "act_sale_code"."box_type" IS '类型,箱:CARTON;盒:BOX';

COMMENT ON COLUMN "act_sale_code"."box_num" IS '箱(盒)数';

COMMENT ON COLUMN "act_sale_code"."order_id" IS '关联订单id';

ALTER TABLE "sale_code_record"
    ADD COLUMN "box_type" varchar(16),
    ADD COLUMN "box_num" int4 DEFAULT 1;

COMMENT ON COLUMN "sale_code_record"."box_type" IS '核销类型,箱:CARTON;盒:BOX';

COMMENT ON COLUMN "sale_code_record"."box_num" IS '核销箱(盒)数';