Add domestic vendor push infrastructure

This commit is contained in:
2026-07-26 01:45:59 +08:00
parent 7cca34b331
commit 0738953e6d
77 changed files with 6470 additions and 855 deletions
@@ -9,6 +9,18 @@ public class AccountDataEraser(AppDbContext db)
{
await using var transaction =
await db.Database.BeginTransactionAsync(ct);
await db.PushMessages
.Where(message => message.TargetUserId == userId)
.ExecuteDeleteAsync(ct);
await db.PushDevices
.Where(device => device.UserId == userId)
.ExecuteDeleteAsync(ct);
await db.UserPushPreferences
.Where(preference => preference.UserId == userId)
.ExecuteDeleteAsync(ct);
await db.BudgetNotificationReceipts
.Where(receipt => receipt.UserId == userId)
.ExecuteDeleteAsync(ct);
await db.ChatMessages
.Where(message => message.UserId == userId)
.ExecuteDeleteAsync(ct);