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

@@ -8,6 +8,33 @@ import (
"github.com/jackc/pgx/v5/pgtype"
)
type ConsentRecord struct {
ID pgtype.UUID
SubjectID pgtype.UUID
Purpose string
TextVersion string
TextHash []byte
PublishedTextHash []byte
Source string
OrganizationID pgtype.UUID
OrganizationName pgtype.Text
FieldSet []string
InvitationID pgtype.UUID
InvitationTermsVersion pgtype.Int8
GrantedAt pgtype.Timestamptz
RevokedAt pgtype.Timestamptz
RevocationSource pgtype.Text
}
type ConsentText struct {
Purpose string
Version string
Body string
BodySha256 []byte
Kind string
PublishedAt pgtype.Timestamptz
}
type ConsumerDeadLetter struct {
ID int64
ConsumerName string