feat: 迭代

This commit is contained in:
2026-05-26 21:27:48 +08:00
parent 4c7a1e06a8
commit d1147713f8
43 changed files with 1137 additions and 883 deletions
+2 -2
View File
@@ -648,7 +648,7 @@ CREATE TABLE IF NOT EXISTS `merchant_accounts` (
-- 3. 系统总账户表(记录整个系统的资金流入流出)
CREATE TABLE IF NOT EXISTS `system_accounts` (
`id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '账户ID',
`account_name` VARCHAR(50) NOT NULL COMMENT '账户名称(如:主账户',
`account_name` VARCHAR(50) NOT NULL COMMENT '账户名称(如:SYSTEM_MAIN',
`balance` DECIMAL(12,2) NOT NULL DEFAULT 0.00 COMMENT '可用余额(total_income - total_refund - total_withdrawn',
`total_income` DECIMAL(12,2) NOT NULL DEFAULT 0.00 COMMENT '累计收入(用户实付总额)',
`total_refund` DECIMAL(12,2) NOT NULL DEFAULT 0.00 COMMENT '累计退款',
@@ -665,7 +665,7 @@ CREATE TABLE IF NOT EXISTS `system_accounts` (
-- 4. 平台账户表(记录平台净收益)
CREATE TABLE IF NOT EXISTS `platform_accounts` (
`id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '账户ID',
`account_name` VARCHAR(50) NOT NULL COMMENT '账户名称(如:主账户、备用账户',
`account_name` VARCHAR(50) NOT NULL COMMENT '账户名称(如:PLATFORM_MAIN、PLATFORM_BACKUP',
`balance` DECIMAL(12,2) NOT NULL DEFAULT 0.00 COMMENT '可用余额(平台净收益 = total_income - total_expense',
`frozen_balance` DECIMAL(12,2) NOT NULL DEFAULT 0.00 COMMENT '冻结余额(提现中)',
`total_income` DECIMAL(12,2) NOT NULL DEFAULT 0.00 COMMENT '累计收入(服务费收入)',