Account merge ledger: roll-forward-only Down guard, standing-at-write through one owner for every writer, one current Patron snapshot per membership, memberless Heimdall sign-in, intake and Stripe routing through one owner

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Heimdall 2026-11-14 04:58:26 +00:00
commit 537a477dc3
17 changed files with 405 additions and 54 deletions

View file

@ -1445,6 +1445,11 @@ namespace Bifrost.Web.Data.Migrations
b.HasIndex("MembershipId", "Kind", "IsCurrent");
b.HasIndex("MembershipId")
.IsUnique()
.HasDatabaseName("UX_TierSnapshots_MembershipId_CurrentPatron")
.HasFilter("\"Kind\" = 'Patron' AND \"IsCurrent\"");
b.ToTable("TierSnapshots");
});