// Code generated by sqlc. DO NOT EDIT. // versions: // sqlc v1.31.1 package sqlc import ( "github.com/jackc/pgx/v5/pgtype" ) type AccountDeletionRequest struct { ID pgtype.UUID SubjectID pgtype.UUID Status string RequestedAt pgtype.Timestamptz CompletedAt pgtype.Timestamptz } type AssessmentAnswerFamilyTotal struct { FamilyID pgtype.UUID KeyVersion int16 AnswerCount int32 } type AssessmentAnswerFingerprintHolder struct { FamilyID pgtype.UUID KeyVersion int16 AnswerFingerprint []byte Holders int32 } type AssessmentAnswerObservation struct { AttemptID pgtype.UUID ItemInstanceID pgtype.UUID UserID pgtype.UUID FamilyID pgtype.UUID VariantSeed int64 AnswerFormat string AnswerFingerprint []byte KeyVersion int16 ElapsedMs int32 MeasuredFromAnswer bool ObservedAt pgtype.Timestamptz } type AssessmentAttempt struct { ID pgtype.UUID UserID pgtype.UUID Kind string Mode string State string Outcome pgtype.Text BankCategory string Specialization pgtype.Text TargetGrade pgtype.Text TaskLanguage pgtype.Text RootAttemptID pgtype.UUID ProductPolicyVersionID pgtype.UUID ProductPolicyVersion int32 GradingPolicyVersionID pgtype.UUID OpeningID pgtype.UUID OpeningManifestSha256 []byte TrainingBindingID pgtype.UUID TrainingManifestSha256 []byte BankVersion string AlgorithmVersion string CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz ExpiresAt pgtype.Timestamptz ChainDeadline pgtype.Timestamptz IdleTimeoutSeconds int32 MaxSessions int32 SessionsUsed int32 SessionStartedAt pgtype.Timestamptz LastActivityAt pgtype.Timestamptz Version int64 EndedAt pgtype.Timestamptz } type AssessmentAttemptIdempotencyOutcome struct { ScopeHash []byte Operation string StatusCode int16 ProblemCode pgtype.Text ResponseSnapshot []byte ResponseSchemaVersion int16 CreatedAt pgtype.Timestamptz PendingItemIds []pgtype.UUID } type AssessmentAttemptItem struct { ID pgtype.UUID AttemptID pgtype.UUID Ordinal int32 FamilyID pgtype.UUID FamilyKey string FamilyVersion int32 FamilyContentSha256 []byte Variant []byte Answer []byte AnsweredAt pgtype.Timestamptz } type AssessmentAttemptOriginMark struct { ID pgtype.UUID AttemptID pgtype.UUID Source string ObservedAt pgtype.Timestamptz SessionDigest []byte NetworkDigest []byte KeyVersion int16 AgentDigest []byte } type AssessmentAttemptResult struct { AttemptID pgtype.UUID UserID pgtype.UUID ResultSnapshot []byte SchemaVersion int16 Kind string Mode string Outcome string ProductPolicyVersionID pgtype.UUID ProductPolicyVersion int32 GradingPolicyVersionID pgtype.UUID OpeningID pgtype.UUID OpeningManifestSha256 []byte TrainingBindingID pgtype.UUID TrainingManifestSha256 []byte BankVersion string AlgorithmVersion string RationaleRule string PassMarkBasisPoints pgtype.Int4 ScoredItems pgtype.Int2 RawScore pgtype.Int2 PassPoints pgtype.Int2 DecidedAt pgtype.Timestamptz CategoryDecision []byte CurrentConfirmedGrade pgtype.Text } type AssessmentAttemptReview struct { AttemptID pgtype.UUID PolicyVersionID pgtype.UUID Band string Reasons []string AnsweredItems int32 FastAnswers int32 DeviatingAnswers int32 ParallelAlternations int32 ExtraNetworks int32 MatchedIntegerItems int32 MatchedSequenceItems int32 DuplicateEvidenceBits int32 ClientFocusLossMs int64 ClientClipboardEvents int32 ClientFullscreenExits int32 EvaluatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz ExtraAgents int32 ClientScreenshotKeys int32 ClientDevtoolsOpens int32 } type AssessmentAttemptWorkLease struct { AttemptID pgtype.UUID HolderDigest []byte KeyVersion int16 AcquiredAt pgtype.Timestamptz RenewedAt pgtype.Timestamptz ReleasedAt pgtype.Timestamptz } type AssessmentCategoryCatalogBinding struct { OpeningID pgtype.UUID Specialization string Grade string TaskLanguages []string PublishedManifestSha256 []byte ReviewedBy string ReviewedAt pgtype.Timestamptz } type AssessmentCategoryOpening struct { ID pgtype.UUID Category string PolicyVersionID pgtype.UUID OpenedBy string RequiredFamilies int32 PublishedFamilies int32 OpenedAt pgtype.Timestamptz } type AssessmentFamily struct { ID pgtype.UUID FamilyKey string Version int32 Category string Specialization string Title string BundleName string Author string Reviewer pgtype.Text ReviewStatus string SeedGenerator []byte AnswerKey []byte Rubric []byte ContentSha256 []byte HashScheme int16 Lifecycle string CreatedAt pgtype.Timestamptz PublishedAt pgtype.Timestamptz PublishedBy pgtype.Text RetiredAt pgtype.Timestamptz RetiredBy pgtype.Text } type AssessmentLeakTrace struct { ID pgtype.UUID Actor string SearchedAt pgtype.Timestamptz TextDigest []byte KeyVersion int16 TextRunes int32 Status string Method pgtype.Text AttemptID pgtype.UUID Candidates int32 EvidenceBits int32 } type AssessmentPractice struct { ID pgtype.UUID AttemptID pgtype.UUID UserID pgtype.UUID Kind string Task []byte Status string FailureReason pgtype.Text SubmittedAt pgtype.Timestamptz CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz } type AssessmentPracticeJob struct { SubmissionID pgtype.UUID Mode string State string CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz FinishedAt pgtype.Timestamptz Generation int32 Attempts int32 AvailableAt pgtype.Timestamptz LeaseOwner pgtype.UUID LeaseExpiresAt pgtype.Timestamptz StartedAt pgtype.Timestamptz LastErrorClass pgtype.Text RunnerRunID pgtype.UUID } type AssessmentPracticeSubmission struct { ID pgtype.UUID PracticeID pgtype.UUID UserID pgtype.UUID Mode string Language string Source string SourceSha256 []byte CustomTests []byte IdempotencyScope []byte Result []byte ResultAt pgtype.Timestamptz CreatedAt pgtype.Timestamptz } type AssessmentReviewRead struct { ID pgtype.UUID AttemptID pgtype.UUID Actor string Found bool ReadAt pgtype.Timestamptz } type AssessmentSignalBatch struct { ID pgtype.UUID AttemptID pgtype.UUID ReceivedAt pgtype.Timestamptz EventCount int32 } type AssessmentSignalEvent struct { BatchID pgtype.UUID AttemptID pgtype.UUID Ordinal int32 ItemInstanceID pgtype.UUID Kind string OccurredAt pgtype.Timestamptz DurationMs pgtype.Int4 SizeBytes pgtype.Int4 } type AssessmentSignalIdempotencyOutcome struct { ScopeHash []byte AttemptID pgtype.UUID Status string AcceptedEvents int32 ReceivedAt pgtype.Timestamptz } type AssessmentSignalNoticeAcknowledgement struct { UserID pgtype.UUID NoticeVersion int32 AcknowledgedAt pgtype.Timestamptz } type AssessmentSyntheticCategoryReview struct { ID pgtype.UUID OpeningID pgtype.UUID Category string Source string OpeningManifestSha256 []byte ProductPolicyVersionID pgtype.UUID ProductPolicyVersion int32 ReviewedBy string ReviewedAt pgtype.Timestamptz } type AssessmentTrainingBankBinding struct { ID pgtype.UUID Category string ProductPolicyVersionID pgtype.UUID ItemCount int32 ManifestSha256 []byte FamilyManifest []byte ReviewedBy string CreatedAt pgtype.Timestamptz } type AssessmentTrainingBankBindingFamily struct { BindingID pgtype.UUID Ordinal int32 FamilyID pgtype.UUID FamilyKey string FamilyVersion int32 ContentSha256 []byte } type CandidateAssessmentCategory struct { CandidateID pgtype.UUID Specialization string Grade string SourceAttemptID pgtype.UUID SourceReviewID pgtype.UUID ProductPolicyVersionID pgtype.UUID ProductPolicyVersion int32 GradingPolicyVersionID pgtype.UUID OpeningID pgtype.UUID OpeningManifestSha256 []byte Source string CalibrationStatus string AssignedAt pgtype.Timestamptz } type CandidateCardAccessEvent struct { ID pgtype.UUID CandidateID pgtype.UUID OrganizationID pgtype.UUID ActorID pgtype.UUID Kind string FieldCodes []string OccurredAt pgtype.Timestamptz } 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 CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz } type CandidateProfileClaim struct { UserID pgtype.UUID Kind string Ordinal int16 Value []byte Status string Origin string TrustLevel int16 Quote pgtype.Text ExtractionVersion pgtype.Text ConfirmedAt pgtype.Timestamptz } type CandidateProfileHistory struct { UserID pgtype.UUID Version int64 ChangedAt pgtype.Timestamptz Snapshot []byte } type CandidateProfileOverlapConfirmation struct { UserID pgtype.UUID FirstIndex int16 SecondIndex int16 FirstStartedOn string FirstEndedOn pgtype.Text SecondStartedOn string SecondEndedOn pgtype.Text } type CandidateProjectRepository struct { CandidateID pgtype.UUID RepositoryKey string State string GithubID pgtype.Int8 Description pgtype.Text Topics []string Languages []string ReadmeExcerpt pgtype.Text RepositoryEtag pgtype.Text ReadmeEtag pgtype.Text FailureClass pgtype.Text CheckedAt pgtype.Timestamptz RequestedAt pgtype.Timestamptz CreatedAt pgtype.Timestamptz UpdatedAt 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 CandidateQuestionnaire struct { UserID pgtype.UUID Version int64 WorkFormats []string CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz } type CandidateQuestionnaireSpecialization struct { UserID pgtype.UUID Ordinal int16 Specialization string SelfAssessedGrade string TaskLanguages []string Stack []string CommercialMonths pgtype.Int4 AcademicMonths pgtype.Int4 } 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 CompanyCardViewQuotaUsage struct { OrganizationID pgtype.UUID CandidateID pgtype.UUID LastSeenAt pgtype.Timestamptz PolicyVersionID pgtype.UUID VerificationLevel string VerificationBasis string VerificationChangedAt pgtype.Timestamptz QuotaTier string } type CompanyInvitationQuotaUsage struct { OrganizationID pgtype.UUID InvitationID pgtype.UUID ReservedAt pgtype.Timestamptz PolicyVersionID pgtype.UUID VerificationLevel string VerificationBasis string VerificationChangedAt pgtype.Timestamptz QuotaTier string } 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 RegistrationVersion pgtype.Int8 } type ConsentText struct { Purpose string Version string Body string BodySha256 []byte Kind string PublishedAt pgtype.Timestamptz } type ConsumerDeadLetter struct { ID int64 ConsumerName string Topic string KafkaPartition int32 KafkaOffset int64 EventID pgtype.UUID EventType pgtype.Text ErrorClass string Reason string Attempts int32 ValueSize int32 ValueSha256 []byte DeadLetteredAt pgtype.Timestamptz } type ConsumerProcessedEvent struct { ConsumerName string EventID pgtype.UUID ProcessedAt pgtype.Timestamptz } type ContactGrant struct { ID pgtype.UUID OrganizationID pgtype.UUID CandidateID pgtype.UUID SourceInvitationID pgtype.UUID ConsentRecordID pgtype.UUID TermsVersion int64 Fields []string ConsentTextVersion string GrantedAt pgtype.Timestamptz RevokedAt pgtype.Timestamptz RevocationReason pgtype.Text } type Delivery struct { ID pgtype.UUID SourceEventID pgtype.UUID RecipientUserID pgtype.UUID RecipientEmail string Kind string TemplateVersion string Subject string TextBody string HtmlBody string ContentSha256 []byte Provider string ProviderAccount string IdempotencyKey string Status string AttemptCount int32 NextAttemptAt pgtype.Timestamptz LastAttemptAt pgtype.Timestamptz ProviderMessageID pgtype.Text Version int64 CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz // The token whose link the body carries; set for verification and password reset mail, NULL for notifications. The worker checks the token before it sends. EmailTokenID pgtype.UUID // Why a cancelled delivery was not sent; set exactly when the status is cancelled. CancelReason pgtype.Text // Lease owner of the sending worker that claimed the delivery; NULL when no worker holds it. ClaimOwner pgtype.UUID // When the lease of claim_owner expires; another worker may claim the delivery after it. ClaimedUntil pgtype.Timestamptz // When the first request of this delivery was started, by the database clock; the provider keeps the idempotency key for a window counted from here. FirstSendStartedAt pgtype.Timestamptz // Consecutive failures of the sending worker on this row (not provider answers); reset by a recorded attempt. FailureCount int32 // Set when the bodies of a token mail were cleared after the delivery reached a terminal status, so a database dump holds no live or dead token. BodyRedactedAt pgtype.Timestamptz // Database time of the latest audited operator authorization to retry a terminal unknown delivery; it does not replace the original send history. ManualRetryAuthorizedAt pgtype.Timestamptz // Database time when the first provider call of the latest manual authorization started; this is a single-use/recovery marker and never resets the provider deduplication window. ManualRetryStartedAt pgtype.Timestamptz // Attempt count when the latest provider call started. Equality with attempt_count means its result was not recorded; a greater attempt_count means a provider result was stored after that send-start. SendStartedAttemptCount pgtype.Int4 // The kind of record a notification is about; set only for a notification, NULL when it names none. The product sending worker re-checks its rights before the send. SubjectKind pgtype.Text // The record a notification is about; an opaque ID, never an address or a contact. SubjectID pgtype.UUID // The organization the subject record belongs to. SubjectOrganizationID pgtype.UUID } type DeliveryAttempt struct { DeliveryID pgtype.UUID AttemptNumber int32 AttemptedAt pgtype.Timestamptz Outcome string Rejection pgtype.Text ProviderCode pgtype.Text ProviderMessageID pgtype.Text RetryAfterNs int64 StatusAfter string NextAttemptAt pgtype.Timestamptz } // Append-only record of an operator decision to retry a terminal unknown mail delivery after its provider deduplication window. No foreign key so history survives account deletion. type DeliveryRetryDecision struct { DecisionID int64 // Opaque ID of the delivery whose current unknown attempt was authorized for another send cycle. DeliveryID pgtype.UUID AttemptCount int32 // Operator handle in the form operator:; never an email address or credential. Actor string // Must be true: after the provider key expires, reusing it does not guarantee deduplication. DuplicateRiskAcknowledged bool // True when this decision also cleared an expired worker lease after a manual send began but its result was not recorded. PreviousLeaseExpired bool DecidedAt pgtype.Timestamptz } type EmailToken struct { ID pgtype.UUID UserID pgtype.UUID Purpose string TokenHash []byte RegistrationVersion int64 CreatedAt pgtype.Timestamptz ExpiresAt pgtype.Timestamptz ConsumedAt pgtype.Timestamptz InvalidatedAt pgtype.Timestamptz PendingPasswordHash pgtype.Text PendingScenario pgtype.Text PendingOnboardingStep pgtype.Text // HMAC-SHA-256 of the six-digit verification code under a server-side key; NULL when the token carries no code or the code has ended. The code itself is never stored. CodeHash []byte // End of the code validity: the earlier of the token expiry and the code lifetime. NULL together with code_hash. CodeExpiresAt pgtype.Timestamptz // Wrong code or password attempts counted against the open code; the token is invalidated when the count reaches the limit of five. CodeFailedAttempts int16 } type Holding struct { ID pgtype.UUID FounderAccountID pgtype.UUID CreatedAt pgtype.Timestamptz } type IdempotencyRecord struct { ScopeHash []byte Fingerprint []byte CreatedAt pgtype.Timestamptz ExpiresAt pgtype.Timestamptz } type Invitation struct { ID pgtype.UUID OrganizationID pgtype.UUID CandidateID pgtype.UUID NeedID pgtype.UUID NeedRequirementsVersion pgtype.Int8 State string ExpiryReason pgtype.Text Version int64 TermsVersion int64 ResponsePeriodDays int16 PolicyVersionID pgtype.UUID ResponseDeadlineAt pgtype.Timestamptz SalaryRaiseUsed bool CreatedBy pgtype.UUID CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz DeliveredAt pgtype.Timestamptz ViewedAt pgtype.Timestamptz RespondedAt pgtype.Timestamptz } type InvitationAcceptResult struct { ScopeHash []byte InvitationID pgtype.UUID Outcome string } type InvitationCreationResult struct { ScopeHash []byte Snapshot []byte } type InvitationDecline struct { InvitationID pgtype.UUID OrganizationID pgtype.UUID Reason string Comment pgtype.Text DeclinedAt pgtype.Timestamptz } type InvitationDeclineResult struct { ScopeHash []byte InvitationID pgtype.UUID Outcome string } type InvitationEvent struct { ID pgtype.UUID InvitationID pgtype.UUID OrganizationID pgtype.UUID Version int64 TermsVersion int64 Kind string ActorID pgtype.UUID ChangedFields []string OccurredAt pgtype.Timestamptz } type InvitationSendResult struct { ScopeHash []byte OrganizationID pgtype.UUID InvitationID pgtype.UUID Outcome string Snapshot []byte } type InvitationTermsVersion struct { InvitationID pgtype.UUID OrganizationID pgtype.UUID Version int64 Terms []byte SalaryFrom int64 SalaryTo int64 SalaryCurrency string SalaryPeriod string SalaryTaxBasis string CreatedAt pgtype.Timestamptz } type MailQuotaReservation struct { ID pgtype.UUID DeliveryID pgtype.UUID Provider string ProviderAccount string DayStart pgtype.Date MonthStart pgtype.Date Recipients int64 ReservedAt pgtype.Timestamptz ReleasedAt pgtype.Timestamptz SettledOutcome pgtype.Text SettledAt pgtype.Timestamptz } type MailQuotaUsage struct { Provider string ProviderAccount string PeriodKind string PeriodStart pgtype.Date UsedRecipients int64 ProviderExhaustedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz } type MailRequest struct { ID pgtype.UUID RecipientUserID pgtype.UUID Kind string Subject string Body string LinkPath string CreatedAt pgtype.Timestamptz // The kind of record the notification is about, NULL when it names none; the sending worker checks the rights of that kind. SubjectKind pgtype.Text // The record the notification is about, for example the invitation; an opaque ID, never an address or a contact. SubjectID pgtype.UUID // The organization the subject record belongs to, for example the organization that sent the invitation. SubjectOrganizationID pgtype.UUID } type Membership struct { ID pgtype.UUID OrganizationID pgtype.UUID UserID pgtype.UUID Role string State string CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz } type NotificationInboxEvent struct { RecipientUserID pgtype.UUID EventID pgtype.UUID OrganizationID pgtype.UUID EventType string SchemaVersion int32 SourceType string SourceID pgtype.UUID OccurredAt pgtype.Timestamptz ReadAt pgtype.Timestamptz } type Organization struct { ID pgtype.UUID Name string Description pgtype.Text Sphere pgtype.Text ContactWebsite pgtype.Text ContactEmail pgtype.Text ContactPhone pgtype.Text ContactTelegram pgtype.Text VerificationLevel string VerificationBasis string VerificationChangedAt pgtype.Timestamptz Version int64 CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz HoldingID pgtype.UUID } type OrganizationCreationResult struct { ScopeHash []byte Snapshot []byte } type OrganizationNeed struct { ID pgtype.UUID OrganizationID pgtype.UUID CurrentVersion int64 RequirementsVersion int64 CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz } type OrganizationNeedCreationResult struct { ScopeHash []byte Snapshot []byte } type OrganizationNeedVersion struct { OrganizationID pgtype.UUID NeedID pgtype.UUID Version int64 Snapshot []byte } type OrganizationRepresentative struct { OrganizationID pgtype.UUID Ordinal int16 Name string JobTitle string } type OutboxEvent struct { Position pgtype.Int8 EventID pgtype.UUID EventType string SchemaVersion int32 AggregateType string AggregateID pgtype.UUID AggregateVersion int64 Payload []byte OccurredAt pgtype.Timestamptz 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 ScheduledJob struct { ID int64 Kind string DedupKey string Payload []byte DueAt pgtype.Timestamptz AvailableAt pgtype.Timestamptz Status string Attempts int32 MaxAttempts pgtype.Int4 LeaseOwner pgtype.UUID LeaseExpiresAt pgtype.Timestamptz StartedAt pgtype.Timestamptz LastErrorClass pgtype.Text CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz } type SemanticVector struct { SubjectKind string SubjectID pgtype.UUID CandidateID pgtype.UUID NeedID pgtype.UUID ModelID string ModelRevision string PromptVersion string ItemKey string ContentSha256 []byte LabelSha256 []byte Dimension int32 Vector []byte ComputedAt pgtype.Timestamptz } type Session struct { ID pgtype.UUID UserID pgtype.UUID TokenHash []byte CreatedAt pgtype.Timestamptz LastSeenAt pgtype.Timestamptz ExpiresAt pgtype.Timestamptz RevokedAt pgtype.Timestamptz } type SkillEvidenceFact struct { ID pgtype.UUID CandidateID pgtype.UUID Kind string SourceType string EventID pgtype.UUID ResultID pgtype.UUID Attribution string Trust int16 Grade string Basis string CalibrationStatus string OccurredAt pgtype.Timestamptz Visibility string RecordedAt pgtype.Timestamptz CreatedTxid int64 } type SkillEvidenceSkill struct { FactID pgtype.UUID SkillCode string } type SupportCase struct { ID pgtype.UUID CaseNumber string OwnerID pgtype.UUID CaseType string Status string Description string ObjectType pgtype.Text ObjectID pgtype.UUID AssessmentSpecialization pgtype.Text AssessmentGrade pgtype.Text ComplaintReason pgtype.Text RubricVersion pgtype.Int4 RubricOpeningID pgtype.UUID RubricPolicyVersionID pgtype.UUID TargetBusinessDays int32 TargetDueAt pgtype.Timestamptz TargetAnsweredAt pgtype.Timestamptz TargetPolicyVersion int32 TargetCalendarVersion int32 DecisionOutcome pgtype.Text DecisionReason pgtype.Text DecisionAt pgtype.Timestamptz CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz } type SupportCaseCreateOutcome struct { ScopeHash []byte OutcomeKind string CaseSnapshot []byte TargetWasLate pgtype.Bool CreatedAt pgtype.Timestamptz } type SupportCaseEvent struct { CaseID pgtype.UUID Sequence int32 EventKind string ActorKind string OccurredAt pgtype.Timestamptz Status pgtype.Text Message pgtype.Text } type SupportCaseRequestEvent struct { ID int64 OwnerID pgtype.UUID RequestedAt pgtype.Timestamptz } type User struct { ID pgtype.UUID Email string EmailNormalized string PasswordHash string Scenario string OnboardingStep string EmailVerifiedAt pgtype.Timestamptz RegistrationVersion int64 LastRegisteredAt pgtype.Timestamptz Version int64 CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz }