Add download stats, key deletion, batch creation, and newest-first listing.

Track landing downloads per platform/month, support admin delete and bulk key issue, and sort licenses by createdAtSec.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Ivan Fontosh
2026-07-02 00:21:21 +08:00
parent 4b568ceb56
commit 6d4b74d410
8 changed files with 349 additions and 32 deletions
+10 -3
View File
@@ -5,17 +5,24 @@
"sub": "lic_demo_default",
"pid": "dnd_player",
"maxDevices": 3,
"expiresAtSec": 1893456000
"expiresAtSec": 1893456000,
"createdAtSec": 1700000000
},
{
"key": "TTRPG-DEMO-PERIOD-KEY",
"sub": "lic_demo_period",
"pid": "dnd_player",
"maxDevices": 3,
"validDays": 365
"validDays": 365,
"createdAtSec": 1800000000
}
],
"revokedSubs": [],
"revokedKeys": [],
"activations": {}
"activations": {},
"downloadStats": {
"byMonth": {
"2026-07": { "windows": 0, "macos": 0, "linux": 0 }
}
}
}