重庆新增表

This commit is contained in:
liang.chao 2024-08-09 11:30:43 +08:00
parent b9c41ba26c
commit 9f990d7bb5
1 changed files with 42 additions and 11 deletions

View File

@ -5,15 +5,46 @@
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for calc_project_month
-- ----------------------------
DROP TABLE IF EXISTS `calc_project_month`;
CREATE TABLE `calc_project_month` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`MONTH` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`ID`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 55 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = COMPACT;
-- auto-generated definition
create table project_month_costs
(
id int auto_increment comment '主键id'
primary key,
agreement_id int null comment '协议id',
slt_month_id int null comment '结算记录关联id',
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 '结算金额'
);
SET FOREIGN_KEY_CHECKS = 1;
-- 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 '月结算记录关联表';