core: redeem badge codes (#7438)

This commit is contained in:
spaced4ndy
2026-09-01 12:06:51 +00:00
committed by GitHub
parent ed2cf1d98f
commit 3ddf17dce5
28 changed files with 1408 additions and 96 deletions
@@ -996,7 +996,7 @@ CREATE TABLE badge_code_redemptions(
purchase_priv_key BLOB NOT NULL,
master_key BLOB NOT NULL,
created_at TEXT NOT NULL,
UNIQUE(code)
UNIQUE(user_id, code)
) STRICT;
CREATE INDEX contact_profiles_index ON contact_profiles(
display_name,