cmd/ismdb: include campaign ids from race rewards

This commit is contained in:
2026-11-09 15:02:18 -05:00
parent 6ca27e79bf
commit a67353f0b6
3 changed files with 36 additions and 0 deletions
+9
View File
@@ -1,6 +1,7 @@
DROP VIEW IF EXISTS gain_event;
DROP VIEW IF EXISTS gain_inspiration;
DROP VIEW IF EXISTS gain_support_card;
DROP VIEW IF EXISTS career_chara_count;
CREATE VIEW gain_event AS
SELECT
@@ -86,3 +87,11 @@ SELECT
gain_end_closer
FROM gain
WHERE source > 1;
CREATE VIEW career_chara_count AS
SELECT
trainer_id,
card_id,
COUNT(*)
FROM career
GROUP BY trainer_id, card_id;