feat(policy): add immutable versioned product policy store

This commit is contained in:
shira committed 2026-10-06 01:52:39 +03:00
1 parent 0e2a3b02ab
commit 7a5105acc7
30 files changed
+3893 -37

No files matched your search

@@ -33,6 +33,18 @@ type OutboxEvent struct {
PublishedAt pgtype.Timestamptz
}
type PolicyVersion struct {
ID pgtype.UUID
PolicyKey string
Version int32
Kind string
EffectiveAt pgtype.Timestamptz
Author string
Document []byte
DocumentSha256 []byte
CreatedAt pgtype.Timestamptz
}
type Session struct {
ID pgtype.UUID
UserID pgtype.UUID