rwadurian/backend/services/wallet-service/prisma/migrations
hailin 251fee4f1e feat(wallet-service): add offline settlement deduction feature
Add new functionality for admins to automatically deduct all settled
earnings when creating special deductions with amount=0, marking
each record to prevent duplicate deductions.

- Add OfflineSettlementDeduction model to track deducted records
- Add API endpoints for querying unprocessed settlements and executing batch deduction
- Add mode selection UI in admin-web pending-actions
- Add offline settlement card display in mobile-app special deduction page

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-04 06:56:39 -08:00
..
20241204000000_init fix(wallet-service): 修复 account_sequence 类型从 BIGINT 改为 VARCHAR(20) 2025-12-12 18:46:37 -08:00
20241210000001_add_processed_events feat(sync): implement Outbox Pattern for reward-service to wallet-service sync 2025-12-10 23:26:49 -08:00
20241213000000_seed_system_accounts fix: 统一推荐码生成逻辑 - 由 identity-service 单点生成 2025-12-13 01:14:56 -08:00
20241214000000_add_pending_rewards feat: 省市团队账户及待领取奖励逐笔追踪 2025-12-13 03:32:47 -08:00
20241214100000_add_share_right_pool_account feat(wallet-service): 新增分享权益池账户S0000000005 2025-12-13 18:53:21 -08:00
20241216000000_add_version_column fix(db): 添加缺失的数据库迁移文件 2025-12-15 21:53:31 -08:00
20241222000000_add_withdrawal_fee_config feat: 多项业务功能增强 2025-12-22 19:00:02 -08:00
20241223000000_add_has_planted feat: 已认种用户分享权益直接进入可结算状态 2025-12-22 21:10:49 -08:00
20241223100000_add_internal_transfer_fields feat: 实现ID-to-ID内部转账功能 2025-12-22 22:22:47 -08:00
20260103100000_add_fiat_withdrawal feat(fiat-withdrawal): add complete fiat withdrawal system 2026-01-03 06:39:11 -08:00
20260104000000_add_offline_settlement_deductions feat(wallet-service): add offline settlement deduction feature 2026-01-04 06:56:39 -08:00