-- 046_worker_freeze_reason.sql —— 记录账号冻结原因，避免被普通审核备注覆盖。

ALTER TABLE worker_users
  ADD COLUMN IF NOT EXISTS frozen_reason TEXT NOT NULL DEFAULT '';

ALTER TABLE worker_users
  ADD COLUMN IF NOT EXISTS frozen_at TIMESTAMPTZ;

COMMENT ON COLUMN worker_users.frozen_reason IS '最近一次冻结账号的原因或备注';
COMMENT ON COLUMN worker_users.frozen_at IS '最近一次冻结账号的时间';
