feat(worker-platform): add worker withdrawal blacklist and admin actions

This commit is contained in:
yml2213
2026-09-13 11:32:42 +08:00
parent 18ac95ca27
commit 061a5d897f
15 changed files with 405 additions and 7 deletions
@@ -0,0 +1,13 @@
-- 打手提现黑名单:
-- 1) is_withdrawal_blacklisted: 是否被列入提现黑名单(默认 false)
-- 2) withdrawal_blacklist_reason: 拉黑原因/备注
-- 3) withdrawal_blacklisted_at: 列入黑名单的时间
ALTER TABLE worker_users
ADD COLUMN IF NOT EXISTS is_withdrawal_blacklisted BOOLEAN NOT NULL DEFAULT FALSE,
ADD COLUMN IF NOT EXISTS withdrawal_blacklist_reason TEXT NULL,
ADD COLUMN IF NOT EXISTS withdrawal_blacklisted_at TIMESTAMPTZ NULL;
CREATE INDEX IF NOT EXISTS idx_worker_users_withdrawal_blacklisted
ON worker_users (is_withdrawal_blacklisted)
WHERE is_withdrawal_blacklisted = TRUE;