Files
kryptkeeper/internal/db/migrations/sqlite/000321_team_request_counters.up.sql
bpmforge e0d82a4ed0 Kryptkeeper 1.0.0
First stable release. Notes: docs/release/RELEASE_NOTES_v1.0.0.md
Lab record: docs/release/LIVE_RESULTS_v1.0.0.md
2026-10-19 14:43:23 -04:00

9 lines
327 B
SQL

-- W33-21: per-team monthly issuance counters. team_id is "<tenant>/<team>";
-- period is the UTC month "YYYY-MM". Reserve is one atomic upsert.
CREATE TABLE IF NOT EXISTS team_request_counters (
team_id TEXT NOT NULL,
period TEXT NOT NULL,
count INTEGER NOT NULL DEFAULT 0,
PRIMARY KEY (team_id, period)
);