feat(sbc): make submissions atomic and durable
CI / Build, lint & test (push) Failing after 52s

This commit is contained in:
funman300
2026-08-18 18:26:23 +00:00
parent 637a21eac1
commit 271c3639ed
7 changed files with 1264 additions and 85 deletions
+9
View File
@@ -0,0 +1,9 @@
-- Core owns durable per-profile working squads for SBC challenges. The FIFA17
-- adapter maps its numeric challenge id to the opaque generic sbc_id.
CREATE TABLE sbc_challenge_squads (
profile_id TEXT NOT NULL REFERENCES profiles(id),
sbc_id TEXT NOT NULL,
owned_card_ids TEXT NOT NULL,
updated_at TEXT NOT NULL,
PRIMARY KEY (profile_id, sbc_id)
);