|
@@ -71,12 +71,12 @@ async function initDatabase() {
|
|
status ENUM('pending', 'approved', 'rejected') DEFAULT 'pending' COMMENT '状态',
|
|
status ENUM('pending', 'approved', 'rejected') DEFAULT 'pending' COMMENT '状态',
|
|
fee_rate DECIMAL(5,2) DEFAULT NULL COMMENT '费率',
|
|
fee_rate DECIMAL(5,2) DEFAULT NULL COMMENT '费率',
|
|
exchange_rate DECIMAL(10,4) DEFAULT NULL COMMENT '汇率',
|
|
exchange_rate DECIMAL(10,4) DEFAULT NULL COMMENT '汇率',
|
|
- totalDeposit DECIMAL(10,2) DEFAULT 0 COMMENT '总入款人民币金额',
|
|
|
|
- totalWithdrawal DECIMAL(10,2) DEFAULT 0 COMMENT '总下发人民币金额',
|
|
|
|
- depositFee DECIMAL(10,2) DEFAULT 0 COMMENT '入款手续费',
|
|
|
|
- withdrawalFee DECIMAL(10,2) DEFAULT 0 COMMENT '下发手续费',
|
|
|
|
- totalUDeposit DECIMAL(10,2) DEFAULT 0 COMMENT '总入款usdt金额',
|
|
|
|
- totalUWithdrawal DECIMAL(10,2) DEFAULT 0 COMMENT '总下发usdt金额',
|
|
|
|
|
|
+ total_deposit DECIMAL(10,2) DEFAULT 0 COMMENT '总入款人民币金额',
|
|
|
|
+ total_withdrawal DECIMAL(10,2) DEFAULT 0 COMMENT '总下发人民币金额',
|
|
|
|
+ deposit_fee DECIMAL(10,2) DEFAULT 0 COMMENT '入款手续费',
|
|
|
|
+ withdrawal_fee DECIMAL(10,2) DEFAULT 0 COMMENT '下发手续费',
|
|
|
|
+ total_u_deposit DECIMAL(10,2) DEFAULT 0 COMMENT '总入款usdt金额',
|
|
|
|
+ total_u_withdrawal DECIMAL(10,2) DEFAULT 0 COMMENT '总下发usdt金额',
|
|
FOREIGN KEY (operator_id) REFERENCES users(id),
|
|
FOREIGN KEY (operator_id) REFERENCES users(id),
|
|
FOREIGN KEY (responder_id) REFERENCES users(id),
|
|
FOREIGN KEY (responder_id) REFERENCES users(id),
|
|
FOREIGN KEY (group_id) REFERENCES groups(group_id),
|
|
FOREIGN KEY (group_id) REFERENCES groups(group_id),
|