Leon Tonhäuser c9d3f3d1dc feat: reset editorial usage data; fix hard delete FK order
Admins can now wipe an editorial's usage footprint (usages, download
events, billing reports incl. items and related audit rows) so test
accounts no longer pollute dashboard statistics. Grants, price, status
and login stay untouched; the action is confirmed by typing the
editorial name.

Hard delete previously failed with FK violations as soon as a usage had
ever been billed or an address saved:
- billing_report_items (restrict -> usages) were never deleted
- billing_address_versions were deleted before the referencing
  current_billing_address_version_id and their self-referencing
  superseded_by_id, both restrict

Both are now handled in correct FK order inside the transaction; the
audit trail of the deleted editorial is purged and verification tokens
are removed.
2026-08-25 01:28:34 +02:00
2026-08-11 16:17:34 +02:00
2026-08-10 17:54:19 +02:00
S
Description
No description provided
1.7 MiB
0 Stars 1 Watchers 0 Forks
Languages
TypeScript 98.4%
CSS 1.3%
Shell 0.2%
Dockerfile 0.1%