Files

12 lines
559 B
SQL
Raw Permalink Normal View History

-- =====================================================================
-- IDENTITY SCHEMA — Part 24: daily render-quota reset timestamp
-- Supports lazy daily reset of DailyRemainRenderCount. Convention:
-- max_daily_render_count = 0 ⇒ UNLIMITED (no enforcement) — so existing
-- users (all 0/0) keep rendering until an admin sets a real limit.
-- =====================================================================
SET search_path TO identity, public;
ALTER TABLE identity.users
ADD COLUMN IF NOT EXISTS daily_renders_reset_at TIMESTAMPTZ;