feat(consent): add versioned append-only consent ledger C1-C5

This commit is contained in:
shira committed 2026-10-06 14:52:33 +03:00
1 parent 008254e44a
commit de49f93b0b
64 files changed
+9244 -132

No files matched your search

+3 -2
View File
@@ -70,8 +70,9 @@ func TestIdentityRepositories(t *testing.T) {
// Subtests share tables and run sequentially; each starts from empty tables.
reset := func(t *testing.T) {
t.Helper()
// The deliveries reference users, so TRUNCATE must name them too.
truncateTables(ctx, t, pool, slices.Concat(identityTables, deliveryTables)...)
// The deliveries and consent records reference users, so TRUNCATE
// must name them too.
truncateTables(ctx, t, pool, slices.Concat(identityTables, deliveryTables, consentTables)...)
}
t.Run("stores an account and finds it by ID and by any case of its email", func(t *testing.T) {