Let Cards players delete their account and read a privacy notice

Add a Compte section with a privacy notice and a confirmed deletion that
anonymises the player row, erases their possessions and cancels open trades.
The public contact comes from CARDS_PRIVACY_CONTACT, which production now
requires before enabling the game. The admin E2E no longer relies on a pull
from the previous test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-11-05 18:05:41 +01:00
parent 155187d01f
commit e60fbd4e9b
16 changed files with 319 additions and 10 deletions

View file

@ -187,6 +187,10 @@ const MIGRATIONS = [
ALTER TABLE shop_settings ADD COLUMN shop_pack_share INTEGER NOT NULL DEFAULT 50 CHECK (shop_pack_share BETWEEN 0 AND 100);
INSERT OR IGNORE INTO collection_states(collection_id, active, updated_at, updated_by) VALUES ('stardust', 1, 0, NULL);
INSERT OR IGNORE INTO drop_rates(collection_id, rarity_weights_json, updated_at, updated_by) VALUES ('stardust', '{"common":64,"rare":24,"epic":8,"legendary":3,"mythic":1}', 0, NULL);
`,
// Suppression de compte : la ligne du joueur reste, anonymisée, car les ouvertures, échanges et journaux y font référence.
`
ALTER TABLE players ADD COLUMN deleted_at INTEGER;
`
];