dbpatch/202408/南网仓储/calc_project_month_20240803...

50 lines
1.9 KiB
MySQL
Raw Normal View History

2024-08-09 11:22:31 +08:00
/*
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
2024-08-09 11:30:43 +08:00
-- auto-generated definition
create table project_month_costs
(
id int auto_increment comment '主键id'
primary key,
agreement_id int null comment '协议id',
2024-08-14 15:57:56 +08:00
task_id int not null comment '结算记录关联taskId',
2024-08-09 11:30:43 +08:00
unit_id int null comment '单位id',
project_id int null comment '工程id',
month varchar(255) null comment '结算月份',
cost_bearing_party varchar(255) null comment '费用承担方',
costs varchar(255) null comment '结算金额'
);
2024-08-09 11:22:31 +08:00
2024-08-09 11:30:43 +08:00
-- auto-generated definition
create table project_month_detail
(
id int auto_increment comment '主键id'
primary key,
type_id int null comment '类型id',
ma_id int null comment '编码id',
unit varchar(10) null comment '单位',
start_time datetime null comment '开始日期',
end_time datetime null comment '结束日期',
slt_days varchar(10) null comment '结算天数',
slt_costs varchar(255) null comment '结算金额',
month_temporarily_costs varchar(255) null comment '本月暂计金额',
pro_month_cost_id int null comment '月结算关联id',
num varchar(10) null comment '数量',
lease_price decimal(10, 2) null comment '单价'
);
-- auto-generated definition
create table slt_project_month
(
id int auto_increment comment '主键id'
primary key,
month varchar(20) null comment '月份',
create_time datetime null comment '创建时间'
)
comment '月结算记录关联表';