alter table cmc_budget add column letter_expense	decimal(10,2) default null	comment '保函费用';
alter table cmc_budget add column letter_remark	varchar(255) default null	comment '保函费用备注';
alter table cmc_budget add column win_expense	decimal(10,2) default null	comment '中标服务费';
alter table cmc_budget add column win_remark	varchar(255) default null	comment '中标服务费备注';
alter table cmc_budget add column travel_expense	decimal(10,2) default null	comment '管理出差费用';
alter table cmc_budget add column travel_remark	varchar(255) default null	comment '管理出差费用备注';
alter table cmc_budget add column settle_adjust	decimal(10,2) default null	comment '内业核算绩效总额';

alter table cmc_budget_staff add column type	char(2) default null	comment '作业类别';
alter table cmc_budget_staff add column days_adjust	int default null	comment '核算天数';
alter table cmc_budget_staff add column performance	decimal(10,2) default null	comment '预算绩效';
alter table cmc_budget_staff add column performance_adjust	decimal(10,2) default null	comment '核算绩效';
alter table cmc_budget_staff add column coefficient	varchar(5) default null	comment '预算系数';
alter table cmc_budget_staff add column coefficient_adjust	varchar(5) default null	comment '核算系数';
alter table cmc_budget_staff add column amount	decimal(10,2) default null	comment '预算金额';
alter table cmc_budget_staff add column amount_adjust	decimal(10,2) default null	comment '核算金额';

alter table cmc_budget_car add column days_adjust	int default null	comment '核算天数';
alter table cmc_budget_car add column amount	decimal(10,2) default null	comment '预算金额';
alter table cmc_budget_car add column amount_adjust	decimal(10,2) default null	comment '核算金额';

alter table cmc_budget_device add column days_adjust	int default null	comment '核算天数';
alter table cmc_budget_device add column amount	decimal(10,2) default null	comment '预算金额';
alter table cmc_budget_device add column amount_adjust	decimal(10,2) default null	comment '核算金额';

DROP TABLE IF EXISTS `cmc_budget_site`;
CREATE TABLE `cmc_budget_site`  (
  `expense_id` int NOT NULL AUTO_INCREMENT COMMENT '现场开支id',
  `budget_id` char(19) DEFAULT NULL COMMENT '预算id',
  `name` varchar(255) DEFAULT NULL COMMENT '开支名称',
  `amount` decimal(10, 2) DEFAULT NULL COMMENT '开支金额',
  `amount_adjust` decimal(10, 2) DEFAULT NULL COMMENT '核算开支',
  `remark` varchar(255) DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`expense_id`)
) ENGINE = InnoDB comment 'cmc现场开支表';

DROP TABLE IF EXISTS `cmc_budget_other`;
CREATE TABLE `cmc_budget_other`  (
  `expense_id` int NOT NULL AUTO_INCREMENT COMMENT '现场开支id',
  `budget_id` char(19) DEFAULT NULL COMMENT '预算id',
  `name` varchar(255) DEFAULT NULL COMMENT '开支名称',
  `amount_adjust` decimal(10, 2) DEFAULT NULL COMMENT '核算开支',
  `remark` varchar(255) DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`expense_id`)
) ENGINE = InnoDB comment 'cmc预算外开支表';