十批新增sql.sql 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. alter table ctr_main
  2. add excluding_total_amount double null comment '不含税合同金额';
  3. alter table ctr_main
  4. add warranty_terms varchar(2000) null comment '质保及运维条款';
  5. alter table ctr_main
  6. add warranty_period varchar(255) null comment '质保期';
  7. alter table ctr_main
  8. add by_grp varchar(255) null comment '备用';
  9. CREATE TABLE `ctr_main_detail` (
  10. `id` varchar(50) NOT NULL,
  11. `ctr_main_id` varchar(50) DEFAULT NULL COMMENT '合同ID',
  12. `pro_id` varchar(50) DEFAULT NULL COMMENT '项目ID',
  13. `income_type` varchar(50) DEFAULT NULL COMMENT '收入类型',
  14. `num` double DEFAULT NULL COMMENT '数据',
  15. `included_unit_price` double DEFAULT NULL COMMENT '含税单价',
  16. `excluding_unit_price` double DEFAULT NULL COMMENT '不含税单价',
  17. `installment_income_date` date DEFAULT NULL COMMENT '分期收入登记日期',
  18. `created_by` varchar(64) DEFAULT NULL COMMENT '创建',
  19. `created_at` datetime DEFAULT NULL COMMENT '创建时间',
  20. `updated_by` varchar(64) DEFAULT NULL COMMENT '更新人',
  21. `updated_at` datetime DEFAULT NULL COMMENT '更新时间',
  22. `tax_rate` double DEFAULT NULL COMMENT '税率',
  23. `group_id` varchar(50) DEFAULT NULL,
  24. `included_amount` double DEFAULT NULL COMMENT '含税金额(元)',
  25. `excluding_amount` double DEFAULT NULL COMMENT '不含税金额',
  26. PRIMARY KEY (`id`)
  27. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='合同信息';
  28. alter table out_order_main
  29. add excluding_order_amount double null comment '采购金额(不含税)';
  30. alter table out_order_pay
  31. add excluding_pay_amount double null comment '支付金额(不含税)';