feat(worker-platform): add worker withdrawal blacklist and admin actions
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user