feat(visibility): add the candidate publication, hiding and search status contract

This commit is contained in:
shira committed 2026-10-07 00:15:52 +03:00
1 parent 4436f626a3
commit 0529601021
87 files changed
+21456 -83

No files matched your search

@@ -42,6 +42,30 @@ type AssessmentFamily struct {
RetiredBy pgtype.Text
}
type CandidateEffectivePublication struct {
UserID pgtype.UUID
Fields []string
PublishedAt pgtype.Timestamptz
Version int64
}
type CandidateHiddenOrganization struct {
UserID pgtype.UUID
OrganizationID pgtype.UUID
HiddenAt pgtype.Timestamptz
}
type CandidatePrivacyEvent struct {
ID pgtype.UUID
UserID pgtype.UUID
Kind string
OccurredAt pgtype.Timestamptz
Fields []string
ConsentRecordID pgtype.UUID
ConsentPurpose pgtype.Text
OrganizationID pgtype.UUID
}
type CandidateProfile struct {
UserID pgtype.UUID
Version int64
@@ -62,6 +86,30 @@ type CandidateProfileClaim struct {
ConfirmedAt pgtype.Timestamptz
}
type CandidatePublication struct {
UserID pgtype.UUID
State string
Fields []string
ConsentRecordID pgtype.UUID
ConsentPurpose pgtype.Text
PublishedAt pgtype.Timestamptz
ClosedAt pgtype.Timestamptz
Version int64
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type CandidateSearchStatus struct {
UserID pgtype.UUID
Status string
ConfirmedAt pgtype.Timestamptz
LapsesAt pgtype.Timestamptz
PolicyVersionID pgtype.UUID
Version int64
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type ConsentRecord struct {
ID pgtype.UUID
SubjectID pgtype.UUID