50 lines
1.9 KiB
SQL
50 lines
1.9 KiB
SQL
/*
|
|
月度结算索引表
|
|
*/
|
|
|
|
SET NAMES utf8mb4;
|
|
SET FOREIGN_KEY_CHECKS = 0;
|
|
|
|
-- auto-generated definition
|
|
create table project_month_costs
|
|
(
|
|
id int auto_increment comment '主键id'
|
|
primary key,
|
|
agreement_id int null comment '协议id',
|
|
task_id int not null comment '结算记录关联taskId',
|
|
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 '结算金额'
|
|
);
|
|
|
|
|
|
-- 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 '月结算记录关联表'; |