diff --git a/backend/services/wallet-service/prisma/migrations/20241213000000_seed_system_accounts/migration.sql b/backend/services/wallet-service/prisma/migrations/20241213000000_seed_system_accounts/migration.sql index 33640fda..bc05bb5d 100644 --- a/backend/services/wallet-service/prisma/migrations/20241213000000_seed_system_accounts/migration.sql +++ b/backend/services/wallet-service/prisma/migrations/20241213000000_seed_system_accounts/migration.sql @@ -39,3 +39,19 @@ INSERT INTO "wallet_accounts" ( ) VALUES ( 'S0000000004', -4, 'ACTIVE', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP ) ON CONFLICT ("account_sequence") DO NOTHING; + +-- S0000000005: 分享权益池 (Share Right Pool) +-- Receives: 无推荐人用户的分享权益 500 USDT per tree +INSERT INTO "wallet_accounts" ( + "account_sequence", "user_id", "status", "created_at", "updated_at" +) VALUES ( + 'S0000000005', -5, 'ACTIVE', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP +) ON CONFLICT ("account_sequence") DO NOTHING; + +-- S0000000006: 手续费归集账户 (Fee Collection Account) +-- Receives: 所有提现(区块链提现、法币提现)产生的手续费 +INSERT INTO "wallet_accounts" ( + "account_sequence", "user_id", "status", "created_at", "updated_at" +) VALUES ( + 'S0000000006', -6, 'ACTIVE', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP +) ON CONFLICT ("account_sequence") DO NOTHING; diff --git a/backend/services/wallet-service/prisma/migrations/20260106000000_add_fee_collection_account/migration.sql b/backend/services/wallet-service/prisma/migrations/20260106000000_add_fee_collection_account/migration.sql index 0ed3a256..32a6b14e 100644 --- a/backend/services/wallet-service/prisma/migrations/20260106000000_add_fee_collection_account/migration.sql +++ b/backend/services/wallet-service/prisma/migrations/20260106000000_add_fee_collection_account/migration.sql @@ -1,33 +1,11 @@ --- 手续费归集账户 (Fee Collection Account) --- S0000000006: 手续费归集账户 (user_id = -6) --- 用于归集所有提现(区块链提现、法币提现)产生的手续费 +-- Add fee collection account for withdrawal fees +-- All withdrawal fees (blockchain and fiat) are collected into this dedicated account +-- This enables transparent tracking and reporting of fee income +-- S0000000006: 手续费归集账户 (Fee Collection Account) +-- Receives: 所有提现(区块链提现、法币提现)产生的手续费 INSERT INTO "wallet_accounts" ( - "account_sequence", "user_id", "status", - "usdt_available", "usdt_frozen", - "dst_available", "dst_frozen", - "bnb_available", "bnb_frozen", - "og_available", "og_frozen", - "rwad_available", "rwad_frozen", - "hashpower", - "pending_usdt", "pending_hashpower", "pending_expire_at", - "settleable_usdt", "settleable_hashpower", - "settled_total_usdt", "settled_total_hashpower", - "expired_total_usdt", "expired_total_hashpower", - "has_planted", "version", - "created_at", "updated_at" + "account_sequence", "user_id", "status", "created_at", "updated_at" ) VALUES ( - 'S0000000006', -6, 'ACTIVE', - 0, 0, - 0, 0, - 0, 0, - 0, 0, - 0, 0, - 0, - 0, 0, NULL, - 0, 0, - 0, 0, - 0, 0, - false, 0, - CURRENT_TIMESTAMP, CURRENT_TIMESTAMP + 'S0000000006', -6, 'ACTIVE', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP ) ON CONFLICT ("account_sequence") DO NOTHING;