This commit is contained in:
777
2025-12-05 15:13:41 +08:00
parent c91ede94a1
commit 34a8ea444c
4 changed files with 125 additions and 1 deletions

View File

@@ -6,6 +6,31 @@ ALTER TABLE cai_recharge_order
ADD COLUMN `distribution` tinyint default 0 not null comment '是否參與分銷';
CREATE TABLE `cai_account_delete` (
`id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '子账户ID',
`user_id` bigint unsigned NOT NULL COMMENT '用户ID',
`usercode` varchar(10) NOT NULL COMMENT '用户Code',
`coin` bigint NOT NULL DEFAULT '0' COMMENT '当前彩币数量',
`income_coin` bigint NOT NULL DEFAULT '0' COMMENT '收益的彩币数量',
`total_buy_money` decimal(20,2) NOT NULL DEFAULT '0.00' COMMENT '充值总额',
`total_buy_coin` bigint NOT NULL DEFAULT '0' COMMENT '充值彩贝总额',
`total_trd_money` decimal(20,2) NOT NULL DEFAULT '0.00' COMMENT '三方充值总额',
`message_income_coin` bigint NOT NULL DEFAULT '0' COMMENT '聊天收入',
`video_income_coin` bigint NOT NULL DEFAULT '0' COMMENT '视频收入',
`gift_income_coin` bigint NOT NULL DEFAULT '0' COMMENT '礼物收入',
`guard_income_coin` bigint NOT NULL DEFAULT '0' COMMENT '守护收入',
`union_income_coin` bigint NOT NULL DEFAULT '0' COMMENT '工会收入',
`status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '账户锁定 0 正常 1 锁定',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`anchor_total_coin` bigint DEFAULT '0' COMMENT '主播总收入',
`points` bigint NOT NULL DEFAULT '0' COMMENT '积分',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC COMMENT='用户账户备份';
ALTER TABLE cai_user_info
ADD COLUMN point_rate decimal(7, 2) default 0.00 not null comment '积分分销比例';
ALTER TABLE cai_recharge_order