Files
flatrender/backend/db/migrations/24_identity_daily_render_reset.sql
T

12 lines
559 B
SQL
Raw 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;