// Code generated by sqlc. DO NOT EDIT. // versions: // sqlc v1.31.1 package issuesdb import ( "database/sql/driver" "fmt" "net/netip" "github.com/jackc/pgx/v5/pgtype" ) type CheckConclusion string const ( CheckConclusionSuccess CheckConclusion = "success" CheckConclusionFailure CheckConclusion = "failure" CheckConclusionNeutral CheckConclusion = "neutral" CheckConclusionCancelled CheckConclusion = "cancelled" CheckConclusionSkipped CheckConclusion = "skipped" CheckConclusionTimedOut CheckConclusion = "timed_out" CheckConclusionActionRequired CheckConclusion = "action_required" CheckConclusionStale CheckConclusion = "stale" ) func (e *CheckConclusion) Scan(src interface{}) error { switch s := src.(type) { case []byte: *e = CheckConclusion(s) case string: *e = CheckConclusion(s) default: return fmt.Errorf("unsupported scan type for CheckConclusion: %T", src) } return nil } type NullCheckConclusion struct { CheckConclusion CheckConclusion Valid bool // Valid is true if CheckConclusion is not NULL } // Scan implements the Scanner interface. func (ns *NullCheckConclusion) Scan(value interface{}) error { if value == nil { ns.CheckConclusion, ns.Valid = "", false return nil } ns.Valid = true return ns.CheckConclusion.Scan(value) } // Value implements the driver Valuer interface. func (ns NullCheckConclusion) Value() (driver.Value, error) { if !ns.Valid { return nil, nil } return string(ns.CheckConclusion), nil } type CheckStatus string const ( CheckStatusQueued CheckStatus = "queued" CheckStatusInProgress CheckStatus = "in_progress" CheckStatusCompleted CheckStatus = "completed" CheckStatusPending CheckStatus = "pending" ) func (e *CheckStatus) Scan(src interface{}) error { switch s := src.(type) { case []byte: *e = CheckStatus(s) case string: *e = CheckStatus(s) default: return fmt.Errorf("unsupported scan type for CheckStatus: %T", src) } return nil } type NullCheckStatus struct { CheckStatus CheckStatus Valid bool // Valid is true if CheckStatus is not NULL } // Scan implements the Scanner interface. func (ns *NullCheckStatus) Scan(value interface{}) error { if value == nil { ns.CheckStatus, ns.Valid = "", false return nil } ns.Valid = true return ns.CheckStatus.Scan(value) } // Value implements the driver Valuer interface. func (ns NullCheckStatus) Value() (driver.Value, error) { if !ns.Valid { return nil, nil } return string(ns.CheckStatus), nil } type CollabRole string const ( CollabRoleRead CollabRole = "read" CollabRoleTriage CollabRole = "triage" CollabRoleWrite CollabRole = "write" CollabRoleMaintain CollabRole = "maintain" CollabRoleAdmin CollabRole = "admin" ) func (e *CollabRole) Scan(src interface{}) error { switch s := src.(type) { case []byte: *e = CollabRole(s) case string: *e = CollabRole(s) default: return fmt.Errorf("unsupported scan type for CollabRole: %T", src) } return nil } type NullCollabRole struct { CollabRole CollabRole Valid bool // Valid is true if CollabRole is not NULL } // Scan implements the Scanner interface. func (ns *NullCollabRole) Scan(value interface{}) error { if value == nil { ns.CollabRole, ns.Valid = "", false return nil } ns.Valid = true return ns.CollabRole.Scan(value) } // Value implements the driver Valuer interface. func (ns NullCollabRole) Value() (driver.Value, error) { if !ns.Valid { return nil, nil } return string(ns.CollabRole), nil } type IssueKind string const ( IssueKindIssue IssueKind = "issue" IssueKindPr IssueKind = "pr" ) func (e *IssueKind) Scan(src interface{}) error { switch s := src.(type) { case []byte: *e = IssueKind(s) case string: *e = IssueKind(s) default: return fmt.Errorf("unsupported scan type for IssueKind: %T", src) } return nil } type NullIssueKind struct { IssueKind IssueKind Valid bool // Valid is true if IssueKind is not NULL } // Scan implements the Scanner interface. func (ns *NullIssueKind) Scan(value interface{}) error { if value == nil { ns.IssueKind, ns.Valid = "", false return nil } ns.Valid = true return ns.IssueKind.Scan(value) } // Value implements the driver Valuer interface. func (ns NullIssueKind) Value() (driver.Value, error) { if !ns.Valid { return nil, nil } return string(ns.IssueKind), nil } type IssueRefSource string const ( IssueRefSourceCommentBody IssueRefSource = "comment_body" IssueRefSourceIssueBody IssueRefSource = "issue_body" IssueRefSourceCommitMessage IssueRefSource = "commit_message" ) func (e *IssueRefSource) Scan(src interface{}) error { switch s := src.(type) { case []byte: *e = IssueRefSource(s) case string: *e = IssueRefSource(s) default: return fmt.Errorf("unsupported scan type for IssueRefSource: %T", src) } return nil } type NullIssueRefSource struct { IssueRefSource IssueRefSource Valid bool // Valid is true if IssueRefSource is not NULL } // Scan implements the Scanner interface. func (ns *NullIssueRefSource) Scan(value interface{}) error { if value == nil { ns.IssueRefSource, ns.Valid = "", false return nil } ns.Valid = true return ns.IssueRefSource.Scan(value) } // Value implements the driver Valuer interface. func (ns NullIssueRefSource) Value() (driver.Value, error) { if !ns.Valid { return nil, nil } return string(ns.IssueRefSource), nil } type IssueState string const ( IssueStateOpen IssueState = "open" IssueStateClosed IssueState = "closed" ) func (e *IssueState) Scan(src interface{}) error { switch s := src.(type) { case []byte: *e = IssueState(s) case string: *e = IssueState(s) default: return fmt.Errorf("unsupported scan type for IssueState: %T", src) } return nil } type NullIssueState struct { IssueState IssueState Valid bool // Valid is true if IssueState is not NULL } // Scan implements the Scanner interface. func (ns *NullIssueState) Scan(value interface{}) error { if value == nil { ns.IssueState, ns.Valid = "", false return nil } ns.Valid = true return ns.IssueState.Scan(value) } // Value implements the driver Valuer interface. func (ns NullIssueState) Value() (driver.Value, error) { if !ns.Valid { return nil, nil } return string(ns.IssueState), nil } type IssueStateReason string const ( IssueStateReasonCompleted IssueStateReason = "completed" IssueStateReasonNotPlanned IssueStateReason = "not_planned" IssueStateReasonReopened IssueStateReason = "reopened" IssueStateReasonDuplicate IssueStateReason = "duplicate" ) func (e *IssueStateReason) Scan(src interface{}) error { switch s := src.(type) { case []byte: *e = IssueStateReason(s) case string: *e = IssueStateReason(s) default: return fmt.Errorf("unsupported scan type for IssueStateReason: %T", src) } return nil } type NullIssueStateReason struct { IssueStateReason IssueStateReason Valid bool // Valid is true if IssueStateReason is not NULL } // Scan implements the Scanner interface. func (ns *NullIssueStateReason) Scan(value interface{}) error { if value == nil { ns.IssueStateReason, ns.Valid = "", false return nil } ns.Valid = true return ns.IssueStateReason.Scan(value) } // Value implements the driver Valuer interface. func (ns NullIssueStateReason) Value() (driver.Value, error) { if !ns.Valid { return nil, nil } return string(ns.IssueStateReason), nil } type MilestoneState string const ( MilestoneStateOpen MilestoneState = "open" MilestoneStateClosed MilestoneState = "closed" ) func (e *MilestoneState) Scan(src interface{}) error { switch s := src.(type) { case []byte: *e = MilestoneState(s) case string: *e = MilestoneState(s) default: return fmt.Errorf("unsupported scan type for MilestoneState: %T", src) } return nil } type NullMilestoneState struct { MilestoneState MilestoneState Valid bool // Valid is true if MilestoneState is not NULL } // Scan implements the Scanner interface. func (ns *NullMilestoneState) Scan(value interface{}) error { if value == nil { ns.MilestoneState, ns.Valid = "", false return nil } ns.Valid = true return ns.MilestoneState.Scan(value) } // Value implements the driver Valuer interface. func (ns NullMilestoneState) Value() (driver.Value, error) { if !ns.Valid { return nil, nil } return string(ns.MilestoneState), nil } type PrFileStatus string const ( PrFileStatusAdded PrFileStatus = "added" PrFileStatusModified PrFileStatus = "modified" PrFileStatusDeleted PrFileStatus = "deleted" PrFileStatusRenamed PrFileStatus = "renamed" PrFileStatusCopied PrFileStatus = "copied" ) func (e *PrFileStatus) Scan(src interface{}) error { switch s := src.(type) { case []byte: *e = PrFileStatus(s) case string: *e = PrFileStatus(s) default: return fmt.Errorf("unsupported scan type for PrFileStatus: %T", src) } return nil } type NullPrFileStatus struct { PrFileStatus PrFileStatus Valid bool // Valid is true if PrFileStatus is not NULL } // Scan implements the Scanner interface. func (ns *NullPrFileStatus) Scan(value interface{}) error { if value == nil { ns.PrFileStatus, ns.Valid = "", false return nil } ns.Valid = true return ns.PrFileStatus.Scan(value) } // Value implements the driver Valuer interface. func (ns NullPrFileStatus) Value() (driver.Value, error) { if !ns.Valid { return nil, nil } return string(ns.PrFileStatus), nil } type PrMergeMethod string const ( PrMergeMethodMerge PrMergeMethod = "merge" PrMergeMethodSquash PrMergeMethod = "squash" PrMergeMethodRebase PrMergeMethod = "rebase" ) func (e *PrMergeMethod) Scan(src interface{}) error { switch s := src.(type) { case []byte: *e = PrMergeMethod(s) case string: *e = PrMergeMethod(s) default: return fmt.Errorf("unsupported scan type for PrMergeMethod: %T", src) } return nil } type NullPrMergeMethod struct { PrMergeMethod PrMergeMethod Valid bool // Valid is true if PrMergeMethod is not NULL } // Scan implements the Scanner interface. func (ns *NullPrMergeMethod) Scan(value interface{}) error { if value == nil { ns.PrMergeMethod, ns.Valid = "", false return nil } ns.Valid = true return ns.PrMergeMethod.Scan(value) } // Value implements the driver Valuer interface. func (ns NullPrMergeMethod) Value() (driver.Value, error) { if !ns.Valid { return nil, nil } return string(ns.PrMergeMethod), nil } type PrMergeableState string const ( PrMergeableStateUnknown PrMergeableState = "unknown" PrMergeableStateClean PrMergeableState = "clean" PrMergeableStateDirty PrMergeableState = "dirty" PrMergeableStateBlocked PrMergeableState = "blocked" PrMergeableStateBehind PrMergeableState = "behind" ) func (e *PrMergeableState) Scan(src interface{}) error { switch s := src.(type) { case []byte: *e = PrMergeableState(s) case string: *e = PrMergeableState(s) default: return fmt.Errorf("unsupported scan type for PrMergeableState: %T", src) } return nil } type NullPrMergeableState struct { PrMergeableState PrMergeableState Valid bool // Valid is true if PrMergeableState is not NULL } // Scan implements the Scanner interface. func (ns *NullPrMergeableState) Scan(value interface{}) error { if value == nil { ns.PrMergeableState, ns.Valid = "", false return nil } ns.Valid = true return ns.PrMergeableState.Scan(value) } // Value implements the driver Valuer interface. func (ns NullPrMergeableState) Value() (driver.Value, error) { if !ns.Valid { return nil, nil } return string(ns.PrMergeableState), nil } type PrReviewSide string const ( PrReviewSideLeft PrReviewSide = "left" PrReviewSideRight PrReviewSide = "right" ) func (e *PrReviewSide) Scan(src interface{}) error { switch s := src.(type) { case []byte: *e = PrReviewSide(s) case string: *e = PrReviewSide(s) default: return fmt.Errorf("unsupported scan type for PrReviewSide: %T", src) } return nil } type NullPrReviewSide struct { PrReviewSide PrReviewSide Valid bool // Valid is true if PrReviewSide is not NULL } // Scan implements the Scanner interface. func (ns *NullPrReviewSide) Scan(value interface{}) error { if value == nil { ns.PrReviewSide, ns.Valid = "", false return nil } ns.Valid = true return ns.PrReviewSide.Scan(value) } // Value implements the driver Valuer interface. func (ns NullPrReviewSide) Value() (driver.Value, error) { if !ns.Valid { return nil, nil } return string(ns.PrReviewSide), nil } type PrReviewState string const ( PrReviewStateComment PrReviewState = "comment" PrReviewStateApprove PrReviewState = "approve" PrReviewStateRequestChanges PrReviewState = "request_changes" ) func (e *PrReviewState) Scan(src interface{}) error { switch s := src.(type) { case []byte: *e = PrReviewState(s) case string: *e = PrReviewState(s) default: return fmt.Errorf("unsupported scan type for PrReviewState: %T", src) } return nil } type NullPrReviewState struct { PrReviewState PrReviewState Valid bool // Valid is true if PrReviewState is not NULL } // Scan implements the Scanner interface. func (ns *NullPrReviewState) Scan(value interface{}) error { if value == nil { ns.PrReviewState, ns.Valid = "", false return nil } ns.Valid = true return ns.PrReviewState.Scan(value) } // Value implements the driver Valuer interface. func (ns NullPrReviewState) Value() (driver.Value, error) { if !ns.Valid { return nil, nil } return string(ns.PrReviewState), nil } type RepoInitStatus string const ( RepoInitStatusInitialized RepoInitStatus = "initialized" RepoInitStatusInitPending RepoInitStatus = "init_pending" RepoInitStatusInitFailed RepoInitStatus = "init_failed" ) func (e *RepoInitStatus) Scan(src interface{}) error { switch s := src.(type) { case []byte: *e = RepoInitStatus(s) case string: *e = RepoInitStatus(s) default: return fmt.Errorf("unsupported scan type for RepoInitStatus: %T", src) } return nil } type NullRepoInitStatus struct { RepoInitStatus RepoInitStatus Valid bool // Valid is true if RepoInitStatus is not NULL } // Scan implements the Scanner interface. func (ns *NullRepoInitStatus) Scan(value interface{}) error { if value == nil { ns.RepoInitStatus, ns.Valid = "", false return nil } ns.Valid = true return ns.RepoInitStatus.Scan(value) } // Value implements the driver Valuer interface. func (ns NullRepoInitStatus) Value() (driver.Value, error) { if !ns.Valid { return nil, nil } return string(ns.RepoInitStatus), nil } type RepoVisibility string const ( RepoVisibilityPublic RepoVisibility = "public" RepoVisibilityPrivate RepoVisibility = "private" ) func (e *RepoVisibility) Scan(src interface{}) error { switch s := src.(type) { case []byte: *e = RepoVisibility(s) case string: *e = RepoVisibility(s) default: return fmt.Errorf("unsupported scan type for RepoVisibility: %T", src) } return nil } type NullRepoVisibility struct { RepoVisibility RepoVisibility Valid bool // Valid is true if RepoVisibility is not NULL } // Scan implements the Scanner interface. func (ns *NullRepoVisibility) Scan(value interface{}) error { if value == nil { ns.RepoVisibility, ns.Valid = "", false return nil } ns.Valid = true return ns.RepoVisibility.Scan(value) } // Value implements the driver Valuer interface. func (ns NullRepoVisibility) Value() (driver.Value, error) { if !ns.Valid { return nil, nil } return string(ns.RepoVisibility), nil } type TransferPrincipalKind string const ( TransferPrincipalKindUser TransferPrincipalKind = "user" TransferPrincipalKindOrg TransferPrincipalKind = "org" ) func (e *TransferPrincipalKind) Scan(src interface{}) error { switch s := src.(type) { case []byte: *e = TransferPrincipalKind(s) case string: *e = TransferPrincipalKind(s) default: return fmt.Errorf("unsupported scan type for TransferPrincipalKind: %T", src) } return nil } type NullTransferPrincipalKind struct { TransferPrincipalKind TransferPrincipalKind Valid bool // Valid is true if TransferPrincipalKind is not NULL } // Scan implements the Scanner interface. func (ns *NullTransferPrincipalKind) Scan(value interface{}) error { if value == nil { ns.TransferPrincipalKind, ns.Valid = "", false return nil } ns.Valid = true return ns.TransferPrincipalKind.Scan(value) } // Value implements the driver Valuer interface. func (ns NullTransferPrincipalKind) Value() (driver.Value, error) { if !ns.Valid { return nil, nil } return string(ns.TransferPrincipalKind), nil } type TransferStatus string const ( TransferStatusPending TransferStatus = "pending" TransferStatusAccepted TransferStatus = "accepted" TransferStatusDeclined TransferStatus = "declined" TransferStatusCanceled TransferStatus = "canceled" TransferStatusExpired TransferStatus = "expired" ) func (e *TransferStatus) Scan(src interface{}) error { switch s := src.(type) { case []byte: *e = TransferStatus(s) case string: *e = TransferStatus(s) default: return fmt.Errorf("unsupported scan type for TransferStatus: %T", src) } return nil } type NullTransferStatus struct { TransferStatus TransferStatus Valid bool // Valid is true if TransferStatus is not NULL } // Scan implements the Scanner interface. func (ns *NullTransferStatus) Scan(value interface{}) error { if value == nil { ns.TransferStatus, ns.Valid = "", false return nil } ns.Valid = true return ns.TransferStatus.Scan(value) } // Value implements the driver Valuer interface. func (ns NullTransferStatus) Value() (driver.Value, error) { if !ns.Valid { return nil, nil } return string(ns.TransferStatus), nil } type WatchLevel string const ( WatchLevelAll WatchLevel = "all" WatchLevelParticipating WatchLevel = "participating" WatchLevelIgnore WatchLevel = "ignore" ) func (e *WatchLevel) Scan(src interface{}) error { switch s := src.(type) { case []byte: *e = WatchLevel(s) case string: *e = WatchLevel(s) default: return fmt.Errorf("unsupported scan type for WatchLevel: %T", src) } return nil } type NullWatchLevel struct { WatchLevel WatchLevel Valid bool // Valid is true if WatchLevel is not NULL } // Scan implements the Scanner interface. func (ns *NullWatchLevel) Scan(value interface{}) error { if value == nil { ns.WatchLevel, ns.Valid = "", false return nil } ns.Valid = true return ns.WatchLevel.Scan(value) } // Value implements the driver Valuer interface. func (ns NullWatchLevel) Value() (driver.Value, error) { if !ns.Valid { return nil, nil } return string(ns.WatchLevel), nil } type AuthAuditLog struct { ID int64 ActorID pgtype.Int8 Action string TargetType string TargetID pgtype.Int8 Meta []byte CreatedAt pgtype.Timestamptz } type AuthThrottle struct { ID int64 Scope string Identifier string Hits int32 WindowStartedAt pgtype.Timestamptz } type BranchProtectionRule struct { ID int64 RepoID int64 Pattern string PreventForcePush bool PreventDeletion bool RequirePrForPush bool AllowedPusherUserIds []int64 RequireSignedCommits bool StatusChecksRequired []string CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz CreatedByUserID pgtype.Int8 RequiredReviewCount int32 DismissStaleReviewsOnPush bool RequireCodeOwnerReview bool DismissStaleStatusChecksOnPush bool } type CheckRun struct { ID int64 SuiteID int64 RepoID int64 HeadSha string Name string Status CheckStatus Conclusion NullCheckConclusion StartedAt pgtype.Timestamptz CompletedAt pgtype.Timestamptz DetailsUrl string Output []byte ExternalID pgtype.Text CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz } type CheckSuite struct { ID int64 RepoID int64 HeadSha string AppSlug string Status CheckStatus Conclusion NullCheckConclusion CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz } type CodeSearchContent struct { RepoID int64 RefName string Path string ContentTsv interface{} ContentTrgm string } type CodeSearchPath struct { RepoID int64 RefName string Path string Tsv interface{} } type DomainEvent struct { ID int64 ActorUserID pgtype.Int8 Kind string RepoID pgtype.Int8 SourceKind string SourceID int64 Public bool Payload []byte CreatedAt pgtype.Timestamptz } type EmailVerification struct { ID int64 UserEmailID int64 TokenHash []byte ExpiresAt pgtype.Timestamptz UsedAt pgtype.Timestamptz CreatedAt pgtype.Timestamptz } type Issue struct { ID int64 RepoID int64 Number int64 Kind IssueKind Title string Body string BodyHtmlCached pgtype.Text MdPipelineVersion int32 AuthorUserID pgtype.Int8 State IssueState StateReason NullIssueStateReason Locked bool LockReason pgtype.Text MilestoneID pgtype.Int8 CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz EditedAt pgtype.Timestamptz ClosedAt pgtype.Timestamptz ClosedByUserID pgtype.Int8 } type IssueAssignee struct { IssueID int64 UserID int64 AssignedAt pgtype.Timestamptz AssignedByUserID pgtype.Int8 } type IssueComment struct { ID int64 IssueID int64 AuthorUserID pgtype.Int8 Body string BodyHtmlCached pgtype.Text MdPipelineVersion int32 CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz EditedAt pgtype.Timestamptz } type IssueEvent struct { ID int64 IssueID int64 ActorUserID pgtype.Int8 Kind string Meta []byte RefTargetID pgtype.Int8 CreatedAt pgtype.Timestamptz } type IssueLabel struct { IssueID int64 LabelID int64 AppliedAt pgtype.Timestamptz AppliedByUserID pgtype.Int8 } type IssueReference struct { ID int64 SourceIssueID pgtype.Int8 TargetIssueID int64 SourceKind IssueRefSource SourceObjectID pgtype.Int8 CreatedAt pgtype.Timestamptz } type IssuesSearch struct { IssueID int64 RepoID int64 Kind IssueKind State IssueState AuthorUserID pgtype.Int8 Tsv interface{} } type Job struct { ID int64 Kind string Payload []byte RunAt pgtype.Timestamptz Attempts int32 MaxAttempts int32 LastError pgtype.Text LockedBy pgtype.Text LockedAt pgtype.Timestamptz CompletedAt pgtype.Timestamptz FailedAt pgtype.Timestamptz CreatedAt pgtype.Timestamptz } type Label struct { ID int64 RepoID int64 Name string Color string Description string CreatedAt pgtype.Timestamptz } type Meta struct { Key string Value []byte UpdatedAt pgtype.Timestamptz } type Milestone struct { ID int64 RepoID int64 Title string Description string State MilestoneState DueOn pgtype.Timestamptz CreatedAt pgtype.Timestamptz ClosedAt pgtype.Timestamptz } type PasswordReset struct { ID int64 UserID int64 TokenHash []byte ExpiresAt pgtype.Timestamptz UsedAt pgtype.Timestamptz CreatedAt pgtype.Timestamptz } type PrReview struct { ID int64 PrIssueID int64 AuthorUserID pgtype.Int8 State PrReviewState Body string BodyHtmlCached pgtype.Text SubmittedAt pgtype.Timestamptz DismissedAt pgtype.Timestamptz DismissedByUserID pgtype.Int8 DismissalReason string } type PrReviewComment struct { ID int64 PrIssueID int64 ReviewID pgtype.Int8 AuthorUserID pgtype.Int8 FilePath string Side PrReviewSide OriginalCommitSha string OriginalLine int32 OriginalPosition int32 CurrentPosition pgtype.Int4 Body string BodyHtmlCached pgtype.Text InReplyToID pgtype.Int8 Pending bool ResolvedAt pgtype.Timestamptz ResolvedByUserID pgtype.Int8 CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz EditedAt pgtype.Timestamptz } type PrReviewRequest struct { ID int64 PrIssueID int64 RequestedUserID pgtype.Int8 RequestedTeamID pgtype.Int8 RequestedByUserID pgtype.Int8 RequestedAt pgtype.Timestamptz DismissedAt pgtype.Timestamptz SatisfiedByReviewID pgtype.Int8 } type PullRequest struct { IssueID int64 BaseRef string HeadRef string HeadRepoID int64 BaseOid string HeadOid string Draft bool Mergeable pgtype.Bool MergeableState PrMergeableState MergeCommitSha pgtype.Text MergedAt pgtype.Timestamptz MergedByUserID pgtype.Int8 MergeMethod NullPrMergeMethod BaseOidAtMerge pgtype.Text HeadOidAtMerge pgtype.Text LastSynchronizedAt pgtype.Timestamptz } type PullRequestCommit struct { PrID int64 Sha string Position int32 AuthorName string AuthorEmail string CommitterName string CommitterEmail string Subject string Body string AuthoredAt pgtype.Timestamptz CommittedAt pgtype.Timestamptz } type PullRequestFile struct { PrID int64 Path string Status PrFileStatus OldPath pgtype.Text Additions int32 Deletions int32 Changes int32 } type PushEvent struct { ID int64 RepoID int64 PusherUserID pgtype.Int8 BeforeSha string AfterSha string Ref string Protocol string RequestID string ProcessedAt pgtype.Timestamptz CreatedAt pgtype.Timestamptz } type Repo struct { ID int64 OwnerUserID pgtype.Int8 OwnerOrgID pgtype.Int8 Name string Description string Visibility RepoVisibility DefaultBranch string IsArchived bool ArchivedAt pgtype.Timestamptz DeletedAt pgtype.Timestamptz DiskUsedBytes int64 ForkOfRepoID pgtype.Int8 LicenseKey pgtype.Text PrimaryLanguage pgtype.Text HasIssues bool HasPulls bool CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz DefaultBranchOid pgtype.Text AllowSquashMerge bool AllowRebaseMerge bool AllowMergeCommit bool DefaultMergeMethod PrMergeMethod StarCount int64 WatcherCount int64 ForkCount int64 InitStatus RepoInitStatus LastIndexedOid pgtype.Text } type RepoCollaborator struct { RepoID int64 UserID int64 Role CollabRole AddedAt pgtype.Timestamptz AddedByUserID pgtype.Int8 } type RepoIssueCounter struct { RepoID int64 NextNumber int64 } type RepoRedirect struct { OldOwnerUserID pgtype.Int8 OldOwnerOrgID pgtype.Int8 OldName string RepoID int64 RedirectedAt pgtype.Timestamptz } type RepoTransferRequest struct { ID int64 RepoID int64 FromUserID int64 ToPrincipalKind TransferPrincipalKind ToPrincipalID int64 CreatedBy int64 CreatedAt pgtype.Timestamptz ExpiresAt pgtype.Timestamptz Status TransferStatus AcceptedAt pgtype.Timestamptz DeclinedAt pgtype.Timestamptz CanceledAt pgtype.Timestamptz } type ReposSearch struct { RepoID int64 Tsv interface{} } type Star struct { UserID int64 RepoID int64 StarredAt pgtype.Timestamptz } type User struct { ID int64 Username string DisplayName string PrimaryEmailID pgtype.Int8 PasswordHash string PasswordAlgo string PasswordUpdatedAt pgtype.Timestamptz EmailVerified bool LastLoginAt pgtype.Timestamptz SuspendedAt pgtype.Timestamptz SuspendedReason pgtype.Text DeletedAt pgtype.Timestamptz CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz Bio string Location string Website string Company string Pronouns string AvatarObjectKey pgtype.Text Theme string SessionEpoch int32 } type UserEmail struct { ID int64 UserID int64 Email string IsPrimary bool Verified bool VerificationTokenHash []byte VerificationSentAt pgtype.Timestamptz VerifiedAt pgtype.Timestamptz CreatedAt pgtype.Timestamptz } type UserNotificationPref struct { UserID int64 Key string Value []byte UpdatedAt pgtype.Timestamptz } type UserRecoveryCode struct { ID int64 UserID int64 CodeHash []byte UsedAt pgtype.Timestamptz GeneratedAt pgtype.Timestamptz CreatedAt pgtype.Timestamptz } type UserSshKey struct { ID int64 UserID int64 Title string FingerprintSha256 string KeyType string KeyBits int32 PublicKey string LastUsedAt pgtype.Timestamptz LastUsedIp *netip.Addr CreatedAt pgtype.Timestamptz } type UserToken struct { ID int64 UserID int64 Name string TokenHash []byte TokenPrefix string Scopes []string ExpiresAt pgtype.Timestamptz LastUsedAt pgtype.Timestamptz LastUsedIp *netip.Addr RevokedAt pgtype.Timestamptz CreatedAt pgtype.Timestamptz } type UserTotp struct { ID int64 UserID int64 SecretEncrypted []byte SecretNonce []byte ConfirmedAt pgtype.Timestamptz LastUsedCounter int64 CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz } type UsernameRedirect struct { OldUsername string UserID int64 ChangedAt pgtype.Timestamptz } type UsersSearch struct { UserID int64 Tsv interface{} } type Watch struct { UserID int64 RepoID int64 Level WatchLevel UpdatedAt pgtype.Timestamptz } type WebhookEventsPending struct { ID int64 RepoID int64 EventKind string Payload []byte CreatedAt pgtype.Timestamptz }