Go · 60075 bytes Raw Blame History
1 // Code generated by sqlc. DO NOT EDIT.
2 // versions:
3 // sqlc v1.31.1
4
5 package pullsdb
6
7 import (
8 "database/sql/driver"
9 "fmt"
10 "net/netip"
11
12 "github.com/jackc/pgx/v5/pgtype"
13 )
14
15 type CheckConclusion string
16
17 const (
18 CheckConclusionSuccess CheckConclusion = "success"
19 CheckConclusionFailure CheckConclusion = "failure"
20 CheckConclusionNeutral CheckConclusion = "neutral"
21 CheckConclusionCancelled CheckConclusion = "cancelled"
22 CheckConclusionSkipped CheckConclusion = "skipped"
23 CheckConclusionTimedOut CheckConclusion = "timed_out"
24 CheckConclusionActionRequired CheckConclusion = "action_required"
25 CheckConclusionStale CheckConclusion = "stale"
26 )
27
28 func (e *CheckConclusion) Scan(src interface{}) error {
29 switch s := src.(type) {
30 case []byte:
31 *e = CheckConclusion(s)
32 case string:
33 *e = CheckConclusion(s)
34 default:
35 return fmt.Errorf("unsupported scan type for CheckConclusion: %T", src)
36 }
37 return nil
38 }
39
40 type NullCheckConclusion struct {
41 CheckConclusion CheckConclusion
42 Valid bool // Valid is true if CheckConclusion is not NULL
43 }
44
45 // Scan implements the Scanner interface.
46 func (ns *NullCheckConclusion) Scan(value interface{}) error {
47 if value == nil {
48 ns.CheckConclusion, ns.Valid = "", false
49 return nil
50 }
51 ns.Valid = true
52 return ns.CheckConclusion.Scan(value)
53 }
54
55 // Value implements the driver Valuer interface.
56 func (ns NullCheckConclusion) Value() (driver.Value, error) {
57 if !ns.Valid {
58 return nil, nil
59 }
60 return string(ns.CheckConclusion), nil
61 }
62
63 type CheckStatus string
64
65 const (
66 CheckStatusQueued CheckStatus = "queued"
67 CheckStatusInProgress CheckStatus = "in_progress"
68 CheckStatusCompleted CheckStatus = "completed"
69 CheckStatusPending CheckStatus = "pending"
70 )
71
72 func (e *CheckStatus) Scan(src interface{}) error {
73 switch s := src.(type) {
74 case []byte:
75 *e = CheckStatus(s)
76 case string:
77 *e = CheckStatus(s)
78 default:
79 return fmt.Errorf("unsupported scan type for CheckStatus: %T", src)
80 }
81 return nil
82 }
83
84 type NullCheckStatus struct {
85 CheckStatus CheckStatus
86 Valid bool // Valid is true if CheckStatus is not NULL
87 }
88
89 // Scan implements the Scanner interface.
90 func (ns *NullCheckStatus) Scan(value interface{}) error {
91 if value == nil {
92 ns.CheckStatus, ns.Valid = "", false
93 return nil
94 }
95 ns.Valid = true
96 return ns.CheckStatus.Scan(value)
97 }
98
99 // Value implements the driver Valuer interface.
100 func (ns NullCheckStatus) Value() (driver.Value, error) {
101 if !ns.Valid {
102 return nil, nil
103 }
104 return string(ns.CheckStatus), nil
105 }
106
107 type CollabRole string
108
109 const (
110 CollabRoleRead CollabRole = "read"
111 CollabRoleTriage CollabRole = "triage"
112 CollabRoleWrite CollabRole = "write"
113 CollabRoleMaintain CollabRole = "maintain"
114 CollabRoleAdmin CollabRole = "admin"
115 )
116
117 func (e *CollabRole) Scan(src interface{}) error {
118 switch s := src.(type) {
119 case []byte:
120 *e = CollabRole(s)
121 case string:
122 *e = CollabRole(s)
123 default:
124 return fmt.Errorf("unsupported scan type for CollabRole: %T", src)
125 }
126 return nil
127 }
128
129 type NullCollabRole struct {
130 CollabRole CollabRole
131 Valid bool // Valid is true if CollabRole is not NULL
132 }
133
134 // Scan implements the Scanner interface.
135 func (ns *NullCollabRole) Scan(value interface{}) error {
136 if value == nil {
137 ns.CollabRole, ns.Valid = "", false
138 return nil
139 }
140 ns.Valid = true
141 return ns.CollabRole.Scan(value)
142 }
143
144 // Value implements the driver Valuer interface.
145 func (ns NullCollabRole) Value() (driver.Value, error) {
146 if !ns.Valid {
147 return nil, nil
148 }
149 return string(ns.CollabRole), nil
150 }
151
152 type IssueKind string
153
154 const (
155 IssueKindIssue IssueKind = "issue"
156 IssueKindPr IssueKind = "pr"
157 )
158
159 func (e *IssueKind) Scan(src interface{}) error {
160 switch s := src.(type) {
161 case []byte:
162 *e = IssueKind(s)
163 case string:
164 *e = IssueKind(s)
165 default:
166 return fmt.Errorf("unsupported scan type for IssueKind: %T", src)
167 }
168 return nil
169 }
170
171 type NullIssueKind struct {
172 IssueKind IssueKind
173 Valid bool // Valid is true if IssueKind is not NULL
174 }
175
176 // Scan implements the Scanner interface.
177 func (ns *NullIssueKind) Scan(value interface{}) error {
178 if value == nil {
179 ns.IssueKind, ns.Valid = "", false
180 return nil
181 }
182 ns.Valid = true
183 return ns.IssueKind.Scan(value)
184 }
185
186 // Value implements the driver Valuer interface.
187 func (ns NullIssueKind) Value() (driver.Value, error) {
188 if !ns.Valid {
189 return nil, nil
190 }
191 return string(ns.IssueKind), nil
192 }
193
194 type IssueRefSource string
195
196 const (
197 IssueRefSourceCommentBody IssueRefSource = "comment_body"
198 IssueRefSourceIssueBody IssueRefSource = "issue_body"
199 IssueRefSourceCommitMessage IssueRefSource = "commit_message"
200 )
201
202 func (e *IssueRefSource) Scan(src interface{}) error {
203 switch s := src.(type) {
204 case []byte:
205 *e = IssueRefSource(s)
206 case string:
207 *e = IssueRefSource(s)
208 default:
209 return fmt.Errorf("unsupported scan type for IssueRefSource: %T", src)
210 }
211 return nil
212 }
213
214 type NullIssueRefSource struct {
215 IssueRefSource IssueRefSource
216 Valid bool // Valid is true if IssueRefSource is not NULL
217 }
218
219 // Scan implements the Scanner interface.
220 func (ns *NullIssueRefSource) Scan(value interface{}) error {
221 if value == nil {
222 ns.IssueRefSource, ns.Valid = "", false
223 return nil
224 }
225 ns.Valid = true
226 return ns.IssueRefSource.Scan(value)
227 }
228
229 // Value implements the driver Valuer interface.
230 func (ns NullIssueRefSource) Value() (driver.Value, error) {
231 if !ns.Valid {
232 return nil, nil
233 }
234 return string(ns.IssueRefSource), nil
235 }
236
237 type IssueState string
238
239 const (
240 IssueStateOpen IssueState = "open"
241 IssueStateClosed IssueState = "closed"
242 )
243
244 func (e *IssueState) Scan(src interface{}) error {
245 switch s := src.(type) {
246 case []byte:
247 *e = IssueState(s)
248 case string:
249 *e = IssueState(s)
250 default:
251 return fmt.Errorf("unsupported scan type for IssueState: %T", src)
252 }
253 return nil
254 }
255
256 type NullIssueState struct {
257 IssueState IssueState
258 Valid bool // Valid is true if IssueState is not NULL
259 }
260
261 // Scan implements the Scanner interface.
262 func (ns *NullIssueState) Scan(value interface{}) error {
263 if value == nil {
264 ns.IssueState, ns.Valid = "", false
265 return nil
266 }
267 ns.Valid = true
268 return ns.IssueState.Scan(value)
269 }
270
271 // Value implements the driver Valuer interface.
272 func (ns NullIssueState) Value() (driver.Value, error) {
273 if !ns.Valid {
274 return nil, nil
275 }
276 return string(ns.IssueState), nil
277 }
278
279 type IssueStateReason string
280
281 const (
282 IssueStateReasonCompleted IssueStateReason = "completed"
283 IssueStateReasonNotPlanned IssueStateReason = "not_planned"
284 IssueStateReasonReopened IssueStateReason = "reopened"
285 IssueStateReasonDuplicate IssueStateReason = "duplicate"
286 )
287
288 func (e *IssueStateReason) Scan(src interface{}) error {
289 switch s := src.(type) {
290 case []byte:
291 *e = IssueStateReason(s)
292 case string:
293 *e = IssueStateReason(s)
294 default:
295 return fmt.Errorf("unsupported scan type for IssueStateReason: %T", src)
296 }
297 return nil
298 }
299
300 type NullIssueStateReason struct {
301 IssueStateReason IssueStateReason
302 Valid bool // Valid is true if IssueStateReason is not NULL
303 }
304
305 // Scan implements the Scanner interface.
306 func (ns *NullIssueStateReason) Scan(value interface{}) error {
307 if value == nil {
308 ns.IssueStateReason, ns.Valid = "", false
309 return nil
310 }
311 ns.Valid = true
312 return ns.IssueStateReason.Scan(value)
313 }
314
315 // Value implements the driver Valuer interface.
316 func (ns NullIssueStateReason) Value() (driver.Value, error) {
317 if !ns.Valid {
318 return nil, nil
319 }
320 return string(ns.IssueStateReason), nil
321 }
322
323 type MilestoneState string
324
325 const (
326 MilestoneStateOpen MilestoneState = "open"
327 MilestoneStateClosed MilestoneState = "closed"
328 )
329
330 func (e *MilestoneState) Scan(src interface{}) error {
331 switch s := src.(type) {
332 case []byte:
333 *e = MilestoneState(s)
334 case string:
335 *e = MilestoneState(s)
336 default:
337 return fmt.Errorf("unsupported scan type for MilestoneState: %T", src)
338 }
339 return nil
340 }
341
342 type NullMilestoneState struct {
343 MilestoneState MilestoneState
344 Valid bool // Valid is true if MilestoneState is not NULL
345 }
346
347 // Scan implements the Scanner interface.
348 func (ns *NullMilestoneState) Scan(value interface{}) error {
349 if value == nil {
350 ns.MilestoneState, ns.Valid = "", false
351 return nil
352 }
353 ns.Valid = true
354 return ns.MilestoneState.Scan(value)
355 }
356
357 // Value implements the driver Valuer interface.
358 func (ns NullMilestoneState) Value() (driver.Value, error) {
359 if !ns.Valid {
360 return nil, nil
361 }
362 return string(ns.MilestoneState), nil
363 }
364
365 type NotificationThreadKind string
366
367 const (
368 NotificationThreadKindIssue NotificationThreadKind = "issue"
369 NotificationThreadKindPr NotificationThreadKind = "pr"
370 )
371
372 func (e *NotificationThreadKind) Scan(src interface{}) error {
373 switch s := src.(type) {
374 case []byte:
375 *e = NotificationThreadKind(s)
376 case string:
377 *e = NotificationThreadKind(s)
378 default:
379 return fmt.Errorf("unsupported scan type for NotificationThreadKind: %T", src)
380 }
381 return nil
382 }
383
384 type NullNotificationThreadKind struct {
385 NotificationThreadKind NotificationThreadKind
386 Valid bool // Valid is true if NotificationThreadKind is not NULL
387 }
388
389 // Scan implements the Scanner interface.
390 func (ns *NullNotificationThreadKind) Scan(value interface{}) error {
391 if value == nil {
392 ns.NotificationThreadKind, ns.Valid = "", false
393 return nil
394 }
395 ns.Valid = true
396 return ns.NotificationThreadKind.Scan(value)
397 }
398
399 // Value implements the driver Valuer interface.
400 func (ns NullNotificationThreadKind) Value() (driver.Value, error) {
401 if !ns.Valid {
402 return nil, nil
403 }
404 return string(ns.NotificationThreadKind), nil
405 }
406
407 type OrgPlan string
408
409 const (
410 OrgPlanFree OrgPlan = "free"
411 OrgPlanTeam OrgPlan = "team"
412 OrgPlanEnterprise OrgPlan = "enterprise"
413 )
414
415 func (e *OrgPlan) Scan(src interface{}) error {
416 switch s := src.(type) {
417 case []byte:
418 *e = OrgPlan(s)
419 case string:
420 *e = OrgPlan(s)
421 default:
422 return fmt.Errorf("unsupported scan type for OrgPlan: %T", src)
423 }
424 return nil
425 }
426
427 type NullOrgPlan struct {
428 OrgPlan OrgPlan
429 Valid bool // Valid is true if OrgPlan is not NULL
430 }
431
432 // Scan implements the Scanner interface.
433 func (ns *NullOrgPlan) Scan(value interface{}) error {
434 if value == nil {
435 ns.OrgPlan, ns.Valid = "", false
436 return nil
437 }
438 ns.Valid = true
439 return ns.OrgPlan.Scan(value)
440 }
441
442 // Value implements the driver Valuer interface.
443 func (ns NullOrgPlan) Value() (driver.Value, error) {
444 if !ns.Valid {
445 return nil, nil
446 }
447 return string(ns.OrgPlan), nil
448 }
449
450 type OrgRole string
451
452 const (
453 OrgRoleOwner OrgRole = "owner"
454 OrgRoleMember OrgRole = "member"
455 )
456
457 func (e *OrgRole) Scan(src interface{}) error {
458 switch s := src.(type) {
459 case []byte:
460 *e = OrgRole(s)
461 case string:
462 *e = OrgRole(s)
463 default:
464 return fmt.Errorf("unsupported scan type for OrgRole: %T", src)
465 }
466 return nil
467 }
468
469 type NullOrgRole struct {
470 OrgRole OrgRole
471 Valid bool // Valid is true if OrgRole is not NULL
472 }
473
474 // Scan implements the Scanner interface.
475 func (ns *NullOrgRole) Scan(value interface{}) error {
476 if value == nil {
477 ns.OrgRole, ns.Valid = "", false
478 return nil
479 }
480 ns.Valid = true
481 return ns.OrgRole.Scan(value)
482 }
483
484 // Value implements the driver Valuer interface.
485 func (ns NullOrgRole) Value() (driver.Value, error) {
486 if !ns.Valid {
487 return nil, nil
488 }
489 return string(ns.OrgRole), nil
490 }
491
492 type PrFileStatus string
493
494 const (
495 PrFileStatusAdded PrFileStatus = "added"
496 PrFileStatusModified PrFileStatus = "modified"
497 PrFileStatusDeleted PrFileStatus = "deleted"
498 PrFileStatusRenamed PrFileStatus = "renamed"
499 PrFileStatusCopied PrFileStatus = "copied"
500 )
501
502 func (e *PrFileStatus) Scan(src interface{}) error {
503 switch s := src.(type) {
504 case []byte:
505 *e = PrFileStatus(s)
506 case string:
507 *e = PrFileStatus(s)
508 default:
509 return fmt.Errorf("unsupported scan type for PrFileStatus: %T", src)
510 }
511 return nil
512 }
513
514 type NullPrFileStatus struct {
515 PrFileStatus PrFileStatus
516 Valid bool // Valid is true if PrFileStatus is not NULL
517 }
518
519 // Scan implements the Scanner interface.
520 func (ns *NullPrFileStatus) Scan(value interface{}) error {
521 if value == nil {
522 ns.PrFileStatus, ns.Valid = "", false
523 return nil
524 }
525 ns.Valid = true
526 return ns.PrFileStatus.Scan(value)
527 }
528
529 // Value implements the driver Valuer interface.
530 func (ns NullPrFileStatus) Value() (driver.Value, error) {
531 if !ns.Valid {
532 return nil, nil
533 }
534 return string(ns.PrFileStatus), nil
535 }
536
537 type PrMergeMethod string
538
539 const (
540 PrMergeMethodMerge PrMergeMethod = "merge"
541 PrMergeMethodSquash PrMergeMethod = "squash"
542 PrMergeMethodRebase PrMergeMethod = "rebase"
543 )
544
545 func (e *PrMergeMethod) Scan(src interface{}) error {
546 switch s := src.(type) {
547 case []byte:
548 *e = PrMergeMethod(s)
549 case string:
550 *e = PrMergeMethod(s)
551 default:
552 return fmt.Errorf("unsupported scan type for PrMergeMethod: %T", src)
553 }
554 return nil
555 }
556
557 type NullPrMergeMethod struct {
558 PrMergeMethod PrMergeMethod
559 Valid bool // Valid is true if PrMergeMethod is not NULL
560 }
561
562 // Scan implements the Scanner interface.
563 func (ns *NullPrMergeMethod) Scan(value interface{}) error {
564 if value == nil {
565 ns.PrMergeMethod, ns.Valid = "", false
566 return nil
567 }
568 ns.Valid = true
569 return ns.PrMergeMethod.Scan(value)
570 }
571
572 // Value implements the driver Valuer interface.
573 func (ns NullPrMergeMethod) Value() (driver.Value, error) {
574 if !ns.Valid {
575 return nil, nil
576 }
577 return string(ns.PrMergeMethod), nil
578 }
579
580 type PrMergeableState string
581
582 const (
583 PrMergeableStateUnknown PrMergeableState = "unknown"
584 PrMergeableStateClean PrMergeableState = "clean"
585 PrMergeableStateDirty PrMergeableState = "dirty"
586 PrMergeableStateBlocked PrMergeableState = "blocked"
587 PrMergeableStateBehind PrMergeableState = "behind"
588 )
589
590 func (e *PrMergeableState) Scan(src interface{}) error {
591 switch s := src.(type) {
592 case []byte:
593 *e = PrMergeableState(s)
594 case string:
595 *e = PrMergeableState(s)
596 default:
597 return fmt.Errorf("unsupported scan type for PrMergeableState: %T", src)
598 }
599 return nil
600 }
601
602 type NullPrMergeableState struct {
603 PrMergeableState PrMergeableState
604 Valid bool // Valid is true if PrMergeableState is not NULL
605 }
606
607 // Scan implements the Scanner interface.
608 func (ns *NullPrMergeableState) Scan(value interface{}) error {
609 if value == nil {
610 ns.PrMergeableState, ns.Valid = "", false
611 return nil
612 }
613 ns.Valid = true
614 return ns.PrMergeableState.Scan(value)
615 }
616
617 // Value implements the driver Valuer interface.
618 func (ns NullPrMergeableState) Value() (driver.Value, error) {
619 if !ns.Valid {
620 return nil, nil
621 }
622 return string(ns.PrMergeableState), nil
623 }
624
625 type PrReviewSide string
626
627 const (
628 PrReviewSideLeft PrReviewSide = "left"
629 PrReviewSideRight PrReviewSide = "right"
630 )
631
632 func (e *PrReviewSide) Scan(src interface{}) error {
633 switch s := src.(type) {
634 case []byte:
635 *e = PrReviewSide(s)
636 case string:
637 *e = PrReviewSide(s)
638 default:
639 return fmt.Errorf("unsupported scan type for PrReviewSide: %T", src)
640 }
641 return nil
642 }
643
644 type NullPrReviewSide struct {
645 PrReviewSide PrReviewSide
646 Valid bool // Valid is true if PrReviewSide is not NULL
647 }
648
649 // Scan implements the Scanner interface.
650 func (ns *NullPrReviewSide) Scan(value interface{}) error {
651 if value == nil {
652 ns.PrReviewSide, ns.Valid = "", false
653 return nil
654 }
655 ns.Valid = true
656 return ns.PrReviewSide.Scan(value)
657 }
658
659 // Value implements the driver Valuer interface.
660 func (ns NullPrReviewSide) Value() (driver.Value, error) {
661 if !ns.Valid {
662 return nil, nil
663 }
664 return string(ns.PrReviewSide), nil
665 }
666
667 type PrReviewState string
668
669 const (
670 PrReviewStateComment PrReviewState = "comment"
671 PrReviewStateApprove PrReviewState = "approve"
672 PrReviewStateRequestChanges PrReviewState = "request_changes"
673 )
674
675 func (e *PrReviewState) Scan(src interface{}) error {
676 switch s := src.(type) {
677 case []byte:
678 *e = PrReviewState(s)
679 case string:
680 *e = PrReviewState(s)
681 default:
682 return fmt.Errorf("unsupported scan type for PrReviewState: %T", src)
683 }
684 return nil
685 }
686
687 type NullPrReviewState struct {
688 PrReviewState PrReviewState
689 Valid bool // Valid is true if PrReviewState is not NULL
690 }
691
692 // Scan implements the Scanner interface.
693 func (ns *NullPrReviewState) Scan(value interface{}) error {
694 if value == nil {
695 ns.PrReviewState, ns.Valid = "", false
696 return nil
697 }
698 ns.Valid = true
699 return ns.PrReviewState.Scan(value)
700 }
701
702 // Value implements the driver Valuer interface.
703 func (ns NullPrReviewState) Value() (driver.Value, error) {
704 if !ns.Valid {
705 return nil, nil
706 }
707 return string(ns.PrReviewState), nil
708 }
709
710 type PrincipalKind string
711
712 const (
713 PrincipalKindUser PrincipalKind = "user"
714 PrincipalKindOrg PrincipalKind = "org"
715 )
716
717 func (e *PrincipalKind) Scan(src interface{}) error {
718 switch s := src.(type) {
719 case []byte:
720 *e = PrincipalKind(s)
721 case string:
722 *e = PrincipalKind(s)
723 default:
724 return fmt.Errorf("unsupported scan type for PrincipalKind: %T", src)
725 }
726 return nil
727 }
728
729 type NullPrincipalKind struct {
730 PrincipalKind PrincipalKind
731 Valid bool // Valid is true if PrincipalKind is not NULL
732 }
733
734 // Scan implements the Scanner interface.
735 func (ns *NullPrincipalKind) Scan(value interface{}) error {
736 if value == nil {
737 ns.PrincipalKind, ns.Valid = "", false
738 return nil
739 }
740 ns.Valid = true
741 return ns.PrincipalKind.Scan(value)
742 }
743
744 // Value implements the driver Valuer interface.
745 func (ns NullPrincipalKind) Value() (driver.Value, error) {
746 if !ns.Valid {
747 return nil, nil
748 }
749 return string(ns.PrincipalKind), nil
750 }
751
752 type RepoInitStatus string
753
754 const (
755 RepoInitStatusInitialized RepoInitStatus = "initialized"
756 RepoInitStatusInitPending RepoInitStatus = "init_pending"
757 RepoInitStatusInitFailed RepoInitStatus = "init_failed"
758 )
759
760 func (e *RepoInitStatus) Scan(src interface{}) error {
761 switch s := src.(type) {
762 case []byte:
763 *e = RepoInitStatus(s)
764 case string:
765 *e = RepoInitStatus(s)
766 default:
767 return fmt.Errorf("unsupported scan type for RepoInitStatus: %T", src)
768 }
769 return nil
770 }
771
772 type NullRepoInitStatus struct {
773 RepoInitStatus RepoInitStatus
774 Valid bool // Valid is true if RepoInitStatus is not NULL
775 }
776
777 // Scan implements the Scanner interface.
778 func (ns *NullRepoInitStatus) Scan(value interface{}) error {
779 if value == nil {
780 ns.RepoInitStatus, ns.Valid = "", false
781 return nil
782 }
783 ns.Valid = true
784 return ns.RepoInitStatus.Scan(value)
785 }
786
787 // Value implements the driver Valuer interface.
788 func (ns NullRepoInitStatus) Value() (driver.Value, error) {
789 if !ns.Valid {
790 return nil, nil
791 }
792 return string(ns.RepoInitStatus), nil
793 }
794
795 type RepoVisibility string
796
797 const (
798 RepoVisibilityPublic RepoVisibility = "public"
799 RepoVisibilityPrivate RepoVisibility = "private"
800 )
801
802 func (e *RepoVisibility) Scan(src interface{}) error {
803 switch s := src.(type) {
804 case []byte:
805 *e = RepoVisibility(s)
806 case string:
807 *e = RepoVisibility(s)
808 default:
809 return fmt.Errorf("unsupported scan type for RepoVisibility: %T", src)
810 }
811 return nil
812 }
813
814 type NullRepoVisibility struct {
815 RepoVisibility RepoVisibility
816 Valid bool // Valid is true if RepoVisibility is not NULL
817 }
818
819 // Scan implements the Scanner interface.
820 func (ns *NullRepoVisibility) Scan(value interface{}) error {
821 if value == nil {
822 ns.RepoVisibility, ns.Valid = "", false
823 return nil
824 }
825 ns.Valid = true
826 return ns.RepoVisibility.Scan(value)
827 }
828
829 // Value implements the driver Valuer interface.
830 func (ns NullRepoVisibility) Value() (driver.Value, error) {
831 if !ns.Valid {
832 return nil, nil
833 }
834 return string(ns.RepoVisibility), nil
835 }
836
837 type TeamPrivacy string
838
839 const (
840 TeamPrivacyVisible TeamPrivacy = "visible"
841 TeamPrivacySecret TeamPrivacy = "secret"
842 )
843
844 func (e *TeamPrivacy) Scan(src interface{}) error {
845 switch s := src.(type) {
846 case []byte:
847 *e = TeamPrivacy(s)
848 case string:
849 *e = TeamPrivacy(s)
850 default:
851 return fmt.Errorf("unsupported scan type for TeamPrivacy: %T", src)
852 }
853 return nil
854 }
855
856 type NullTeamPrivacy struct {
857 TeamPrivacy TeamPrivacy
858 Valid bool // Valid is true if TeamPrivacy is not NULL
859 }
860
861 // Scan implements the Scanner interface.
862 func (ns *NullTeamPrivacy) Scan(value interface{}) error {
863 if value == nil {
864 ns.TeamPrivacy, ns.Valid = "", false
865 return nil
866 }
867 ns.Valid = true
868 return ns.TeamPrivacy.Scan(value)
869 }
870
871 // Value implements the driver Valuer interface.
872 func (ns NullTeamPrivacy) Value() (driver.Value, error) {
873 if !ns.Valid {
874 return nil, nil
875 }
876 return string(ns.TeamPrivacy), nil
877 }
878
879 type TeamRepoRole string
880
881 const (
882 TeamRepoRoleRead TeamRepoRole = "read"
883 TeamRepoRoleTriage TeamRepoRole = "triage"
884 TeamRepoRoleWrite TeamRepoRole = "write"
885 TeamRepoRoleMaintain TeamRepoRole = "maintain"
886 TeamRepoRoleAdmin TeamRepoRole = "admin"
887 )
888
889 func (e *TeamRepoRole) Scan(src interface{}) error {
890 switch s := src.(type) {
891 case []byte:
892 *e = TeamRepoRole(s)
893 case string:
894 *e = TeamRepoRole(s)
895 default:
896 return fmt.Errorf("unsupported scan type for TeamRepoRole: %T", src)
897 }
898 return nil
899 }
900
901 type NullTeamRepoRole struct {
902 TeamRepoRole TeamRepoRole
903 Valid bool // Valid is true if TeamRepoRole is not NULL
904 }
905
906 // Scan implements the Scanner interface.
907 func (ns *NullTeamRepoRole) Scan(value interface{}) error {
908 if value == nil {
909 ns.TeamRepoRole, ns.Valid = "", false
910 return nil
911 }
912 ns.Valid = true
913 return ns.TeamRepoRole.Scan(value)
914 }
915
916 // Value implements the driver Valuer interface.
917 func (ns NullTeamRepoRole) Value() (driver.Value, error) {
918 if !ns.Valid {
919 return nil, nil
920 }
921 return string(ns.TeamRepoRole), nil
922 }
923
924 type TeamRole string
925
926 const (
927 TeamRoleMember TeamRole = "member"
928 TeamRoleMaintainer TeamRole = "maintainer"
929 )
930
931 func (e *TeamRole) Scan(src interface{}) error {
932 switch s := src.(type) {
933 case []byte:
934 *e = TeamRole(s)
935 case string:
936 *e = TeamRole(s)
937 default:
938 return fmt.Errorf("unsupported scan type for TeamRole: %T", src)
939 }
940 return nil
941 }
942
943 type NullTeamRole struct {
944 TeamRole TeamRole
945 Valid bool // Valid is true if TeamRole is not NULL
946 }
947
948 // Scan implements the Scanner interface.
949 func (ns *NullTeamRole) Scan(value interface{}) error {
950 if value == nil {
951 ns.TeamRole, ns.Valid = "", false
952 return nil
953 }
954 ns.Valid = true
955 return ns.TeamRole.Scan(value)
956 }
957
958 // Value implements the driver Valuer interface.
959 func (ns NullTeamRole) Value() (driver.Value, error) {
960 if !ns.Valid {
961 return nil, nil
962 }
963 return string(ns.TeamRole), nil
964 }
965
966 type TransactionalEmailStatus string
967
968 const (
969 TransactionalEmailStatusQueued TransactionalEmailStatus = "queued"
970 TransactionalEmailStatusSent TransactionalEmailStatus = "sent"
971 TransactionalEmailStatusSoftBounced TransactionalEmailStatus = "soft_bounced"
972 TransactionalEmailStatusHardBounced TransactionalEmailStatus = "hard_bounced"
973 TransactionalEmailStatusDropped TransactionalEmailStatus = "dropped"
974 )
975
976 func (e *TransactionalEmailStatus) Scan(src interface{}) error {
977 switch s := src.(type) {
978 case []byte:
979 *e = TransactionalEmailStatus(s)
980 case string:
981 *e = TransactionalEmailStatus(s)
982 default:
983 return fmt.Errorf("unsupported scan type for TransactionalEmailStatus: %T", src)
984 }
985 return nil
986 }
987
988 type NullTransactionalEmailStatus struct {
989 TransactionalEmailStatus TransactionalEmailStatus
990 Valid bool // Valid is true if TransactionalEmailStatus is not NULL
991 }
992
993 // Scan implements the Scanner interface.
994 func (ns *NullTransactionalEmailStatus) Scan(value interface{}) error {
995 if value == nil {
996 ns.TransactionalEmailStatus, ns.Valid = "", false
997 return nil
998 }
999 ns.Valid = true
1000 return ns.TransactionalEmailStatus.Scan(value)
1001 }
1002
1003 // Value implements the driver Valuer interface.
1004 func (ns NullTransactionalEmailStatus) Value() (driver.Value, error) {
1005 if !ns.Valid {
1006 return nil, nil
1007 }
1008 return string(ns.TransactionalEmailStatus), nil
1009 }
1010
1011 type TransferPrincipalKind string
1012
1013 const (
1014 TransferPrincipalKindUser TransferPrincipalKind = "user"
1015 TransferPrincipalKindOrg TransferPrincipalKind = "org"
1016 )
1017
1018 func (e *TransferPrincipalKind) Scan(src interface{}) error {
1019 switch s := src.(type) {
1020 case []byte:
1021 *e = TransferPrincipalKind(s)
1022 case string:
1023 *e = TransferPrincipalKind(s)
1024 default:
1025 return fmt.Errorf("unsupported scan type for TransferPrincipalKind: %T", src)
1026 }
1027 return nil
1028 }
1029
1030 type NullTransferPrincipalKind struct {
1031 TransferPrincipalKind TransferPrincipalKind
1032 Valid bool // Valid is true if TransferPrincipalKind is not NULL
1033 }
1034
1035 // Scan implements the Scanner interface.
1036 func (ns *NullTransferPrincipalKind) Scan(value interface{}) error {
1037 if value == nil {
1038 ns.TransferPrincipalKind, ns.Valid = "", false
1039 return nil
1040 }
1041 ns.Valid = true
1042 return ns.TransferPrincipalKind.Scan(value)
1043 }
1044
1045 // Value implements the driver Valuer interface.
1046 func (ns NullTransferPrincipalKind) Value() (driver.Value, error) {
1047 if !ns.Valid {
1048 return nil, nil
1049 }
1050 return string(ns.TransferPrincipalKind), nil
1051 }
1052
1053 type TransferStatus string
1054
1055 const (
1056 TransferStatusPending TransferStatus = "pending"
1057 TransferStatusAccepted TransferStatus = "accepted"
1058 TransferStatusDeclined TransferStatus = "declined"
1059 TransferStatusCanceled TransferStatus = "canceled"
1060 TransferStatusExpired TransferStatus = "expired"
1061 )
1062
1063 func (e *TransferStatus) Scan(src interface{}) error {
1064 switch s := src.(type) {
1065 case []byte:
1066 *e = TransferStatus(s)
1067 case string:
1068 *e = TransferStatus(s)
1069 default:
1070 return fmt.Errorf("unsupported scan type for TransferStatus: %T", src)
1071 }
1072 return nil
1073 }
1074
1075 type NullTransferStatus struct {
1076 TransferStatus TransferStatus
1077 Valid bool // Valid is true if TransferStatus is not NULL
1078 }
1079
1080 // Scan implements the Scanner interface.
1081 func (ns *NullTransferStatus) Scan(value interface{}) error {
1082 if value == nil {
1083 ns.TransferStatus, ns.Valid = "", false
1084 return nil
1085 }
1086 ns.Valid = true
1087 return ns.TransferStatus.Scan(value)
1088 }
1089
1090 // Value implements the driver Valuer interface.
1091 func (ns NullTransferStatus) Value() (driver.Value, error) {
1092 if !ns.Valid {
1093 return nil, nil
1094 }
1095 return string(ns.TransferStatus), nil
1096 }
1097
1098 type TrendingKind string
1099
1100 const (
1101 TrendingKindRepos TrendingKind = "repos"
1102 TrendingKindUsers TrendingKind = "users"
1103 )
1104
1105 func (e *TrendingKind) Scan(src interface{}) error {
1106 switch s := src.(type) {
1107 case []byte:
1108 *e = TrendingKind(s)
1109 case string:
1110 *e = TrendingKind(s)
1111 default:
1112 return fmt.Errorf("unsupported scan type for TrendingKind: %T", src)
1113 }
1114 return nil
1115 }
1116
1117 type NullTrendingKind struct {
1118 TrendingKind TrendingKind
1119 Valid bool // Valid is true if TrendingKind is not NULL
1120 }
1121
1122 // Scan implements the Scanner interface.
1123 func (ns *NullTrendingKind) Scan(value interface{}) error {
1124 if value == nil {
1125 ns.TrendingKind, ns.Valid = "", false
1126 return nil
1127 }
1128 ns.Valid = true
1129 return ns.TrendingKind.Scan(value)
1130 }
1131
1132 // Value implements the driver Valuer interface.
1133 func (ns NullTrendingKind) Value() (driver.Value, error) {
1134 if !ns.Valid {
1135 return nil, nil
1136 }
1137 return string(ns.TrendingKind), nil
1138 }
1139
1140 type TrendingScope string
1141
1142 const (
1143 TrendingScopeDay TrendingScope = "day"
1144 TrendingScopeWeek TrendingScope = "week"
1145 TrendingScopeMonth TrendingScope = "month"
1146 )
1147
1148 func (e *TrendingScope) Scan(src interface{}) error {
1149 switch s := src.(type) {
1150 case []byte:
1151 *e = TrendingScope(s)
1152 case string:
1153 *e = TrendingScope(s)
1154 default:
1155 return fmt.Errorf("unsupported scan type for TrendingScope: %T", src)
1156 }
1157 return nil
1158 }
1159
1160 type NullTrendingScope struct {
1161 TrendingScope TrendingScope
1162 Valid bool // Valid is true if TrendingScope is not NULL
1163 }
1164
1165 // Scan implements the Scanner interface.
1166 func (ns *NullTrendingScope) Scan(value interface{}) error {
1167 if value == nil {
1168 ns.TrendingScope, ns.Valid = "", false
1169 return nil
1170 }
1171 ns.Valid = true
1172 return ns.TrendingScope.Scan(value)
1173 }
1174
1175 // Value implements the driver Valuer interface.
1176 func (ns NullTrendingScope) Value() (driver.Value, error) {
1177 if !ns.Valid {
1178 return nil, nil
1179 }
1180 return string(ns.TrendingScope), nil
1181 }
1182
1183 type WatchLevel string
1184
1185 const (
1186 WatchLevelAll WatchLevel = "all"
1187 WatchLevelParticipating WatchLevel = "participating"
1188 WatchLevelIgnore WatchLevel = "ignore"
1189 )
1190
1191 func (e *WatchLevel) Scan(src interface{}) error {
1192 switch s := src.(type) {
1193 case []byte:
1194 *e = WatchLevel(s)
1195 case string:
1196 *e = WatchLevel(s)
1197 default:
1198 return fmt.Errorf("unsupported scan type for WatchLevel: %T", src)
1199 }
1200 return nil
1201 }
1202
1203 type NullWatchLevel struct {
1204 WatchLevel WatchLevel
1205 Valid bool // Valid is true if WatchLevel is not NULL
1206 }
1207
1208 // Scan implements the Scanner interface.
1209 func (ns *NullWatchLevel) Scan(value interface{}) error {
1210 if value == nil {
1211 ns.WatchLevel, ns.Valid = "", false
1212 return nil
1213 }
1214 ns.Valid = true
1215 return ns.WatchLevel.Scan(value)
1216 }
1217
1218 // Value implements the driver Valuer interface.
1219 func (ns NullWatchLevel) Value() (driver.Value, error) {
1220 if !ns.Valid {
1221 return nil, nil
1222 }
1223 return string(ns.WatchLevel), nil
1224 }
1225
1226 type WebhookContentType string
1227
1228 const (
1229 WebhookContentTypeJson WebhookContentType = "json"
1230 WebhookContentTypeForm WebhookContentType = "form"
1231 )
1232
1233 func (e *WebhookContentType) Scan(src interface{}) error {
1234 switch s := src.(type) {
1235 case []byte:
1236 *e = WebhookContentType(s)
1237 case string:
1238 *e = WebhookContentType(s)
1239 default:
1240 return fmt.Errorf("unsupported scan type for WebhookContentType: %T", src)
1241 }
1242 return nil
1243 }
1244
1245 type NullWebhookContentType struct {
1246 WebhookContentType WebhookContentType
1247 Valid bool // Valid is true if WebhookContentType is not NULL
1248 }
1249
1250 // Scan implements the Scanner interface.
1251 func (ns *NullWebhookContentType) Scan(value interface{}) error {
1252 if value == nil {
1253 ns.WebhookContentType, ns.Valid = "", false
1254 return nil
1255 }
1256 ns.Valid = true
1257 return ns.WebhookContentType.Scan(value)
1258 }
1259
1260 // Value implements the driver Valuer interface.
1261 func (ns NullWebhookContentType) Value() (driver.Value, error) {
1262 if !ns.Valid {
1263 return nil, nil
1264 }
1265 return string(ns.WebhookContentType), nil
1266 }
1267
1268 type WebhookDeliveryStatus string
1269
1270 const (
1271 WebhookDeliveryStatusPending WebhookDeliveryStatus = "pending"
1272 WebhookDeliveryStatusSucceeded WebhookDeliveryStatus = "succeeded"
1273 WebhookDeliveryStatusFailedRetry WebhookDeliveryStatus = "failed_retry"
1274 WebhookDeliveryStatusFailedPermanent WebhookDeliveryStatus = "failed_permanent"
1275 )
1276
1277 func (e *WebhookDeliveryStatus) Scan(src interface{}) error {
1278 switch s := src.(type) {
1279 case []byte:
1280 *e = WebhookDeliveryStatus(s)
1281 case string:
1282 *e = WebhookDeliveryStatus(s)
1283 default:
1284 return fmt.Errorf("unsupported scan type for WebhookDeliveryStatus: %T", src)
1285 }
1286 return nil
1287 }
1288
1289 type NullWebhookDeliveryStatus struct {
1290 WebhookDeliveryStatus WebhookDeliveryStatus
1291 Valid bool // Valid is true if WebhookDeliveryStatus is not NULL
1292 }
1293
1294 // Scan implements the Scanner interface.
1295 func (ns *NullWebhookDeliveryStatus) Scan(value interface{}) error {
1296 if value == nil {
1297 ns.WebhookDeliveryStatus, ns.Valid = "", false
1298 return nil
1299 }
1300 ns.Valid = true
1301 return ns.WebhookDeliveryStatus.Scan(value)
1302 }
1303
1304 // Value implements the driver Valuer interface.
1305 func (ns NullWebhookDeliveryStatus) Value() (driver.Value, error) {
1306 if !ns.Valid {
1307 return nil, nil
1308 }
1309 return string(ns.WebhookDeliveryStatus), nil
1310 }
1311
1312 type WebhookOwnerKind string
1313
1314 const (
1315 WebhookOwnerKindRepo WebhookOwnerKind = "repo"
1316 WebhookOwnerKindOrg WebhookOwnerKind = "org"
1317 )
1318
1319 func (e *WebhookOwnerKind) Scan(src interface{}) error {
1320 switch s := src.(type) {
1321 case []byte:
1322 *e = WebhookOwnerKind(s)
1323 case string:
1324 *e = WebhookOwnerKind(s)
1325 default:
1326 return fmt.Errorf("unsupported scan type for WebhookOwnerKind: %T", src)
1327 }
1328 return nil
1329 }
1330
1331 type NullWebhookOwnerKind struct {
1332 WebhookOwnerKind WebhookOwnerKind
1333 Valid bool // Valid is true if WebhookOwnerKind is not NULL
1334 }
1335
1336 // Scan implements the Scanner interface.
1337 func (ns *NullWebhookOwnerKind) Scan(value interface{}) error {
1338 if value == nil {
1339 ns.WebhookOwnerKind, ns.Valid = "", false
1340 return nil
1341 }
1342 ns.Valid = true
1343 return ns.WebhookOwnerKind.Scan(value)
1344 }
1345
1346 // Value implements the driver Valuer interface.
1347 func (ns NullWebhookOwnerKind) Value() (driver.Value, error) {
1348 if !ns.Valid {
1349 return nil, nil
1350 }
1351 return string(ns.WebhookOwnerKind), nil
1352 }
1353
1354 type WorkflowJobStatus string
1355
1356 const (
1357 WorkflowJobStatusQueued WorkflowJobStatus = "queued"
1358 WorkflowJobStatusRunning WorkflowJobStatus = "running"
1359 WorkflowJobStatusCompleted WorkflowJobStatus = "completed"
1360 WorkflowJobStatusCancelled WorkflowJobStatus = "cancelled"
1361 WorkflowJobStatusSkipped WorkflowJobStatus = "skipped"
1362 )
1363
1364 func (e *WorkflowJobStatus) Scan(src interface{}) error {
1365 switch s := src.(type) {
1366 case []byte:
1367 *e = WorkflowJobStatus(s)
1368 case string:
1369 *e = WorkflowJobStatus(s)
1370 default:
1371 return fmt.Errorf("unsupported scan type for WorkflowJobStatus: %T", src)
1372 }
1373 return nil
1374 }
1375
1376 type NullWorkflowJobStatus struct {
1377 WorkflowJobStatus WorkflowJobStatus
1378 Valid bool // Valid is true if WorkflowJobStatus is not NULL
1379 }
1380
1381 // Scan implements the Scanner interface.
1382 func (ns *NullWorkflowJobStatus) Scan(value interface{}) error {
1383 if value == nil {
1384 ns.WorkflowJobStatus, ns.Valid = "", false
1385 return nil
1386 }
1387 ns.Valid = true
1388 return ns.WorkflowJobStatus.Scan(value)
1389 }
1390
1391 // Value implements the driver Valuer interface.
1392 func (ns NullWorkflowJobStatus) Value() (driver.Value, error) {
1393 if !ns.Valid {
1394 return nil, nil
1395 }
1396 return string(ns.WorkflowJobStatus), nil
1397 }
1398
1399 type WorkflowRunEvent string
1400
1401 const (
1402 WorkflowRunEventPush WorkflowRunEvent = "push"
1403 WorkflowRunEventPullRequest WorkflowRunEvent = "pull_request"
1404 WorkflowRunEventSchedule WorkflowRunEvent = "schedule"
1405 WorkflowRunEventWorkflowDispatch WorkflowRunEvent = "workflow_dispatch"
1406 )
1407
1408 func (e *WorkflowRunEvent) Scan(src interface{}) error {
1409 switch s := src.(type) {
1410 case []byte:
1411 *e = WorkflowRunEvent(s)
1412 case string:
1413 *e = WorkflowRunEvent(s)
1414 default:
1415 return fmt.Errorf("unsupported scan type for WorkflowRunEvent: %T", src)
1416 }
1417 return nil
1418 }
1419
1420 type NullWorkflowRunEvent struct {
1421 WorkflowRunEvent WorkflowRunEvent
1422 Valid bool // Valid is true if WorkflowRunEvent is not NULL
1423 }
1424
1425 // Scan implements the Scanner interface.
1426 func (ns *NullWorkflowRunEvent) Scan(value interface{}) error {
1427 if value == nil {
1428 ns.WorkflowRunEvent, ns.Valid = "", false
1429 return nil
1430 }
1431 ns.Valid = true
1432 return ns.WorkflowRunEvent.Scan(value)
1433 }
1434
1435 // Value implements the driver Valuer interface.
1436 func (ns NullWorkflowRunEvent) Value() (driver.Value, error) {
1437 if !ns.Valid {
1438 return nil, nil
1439 }
1440 return string(ns.WorkflowRunEvent), nil
1441 }
1442
1443 type WorkflowRunStatus string
1444
1445 const (
1446 WorkflowRunStatusQueued WorkflowRunStatus = "queued"
1447 WorkflowRunStatusRunning WorkflowRunStatus = "running"
1448 WorkflowRunStatusCompleted WorkflowRunStatus = "completed"
1449 WorkflowRunStatusCancelled WorkflowRunStatus = "cancelled"
1450 )
1451
1452 func (e *WorkflowRunStatus) Scan(src interface{}) error {
1453 switch s := src.(type) {
1454 case []byte:
1455 *e = WorkflowRunStatus(s)
1456 case string:
1457 *e = WorkflowRunStatus(s)
1458 default:
1459 return fmt.Errorf("unsupported scan type for WorkflowRunStatus: %T", src)
1460 }
1461 return nil
1462 }
1463
1464 type NullWorkflowRunStatus struct {
1465 WorkflowRunStatus WorkflowRunStatus
1466 Valid bool // Valid is true if WorkflowRunStatus is not NULL
1467 }
1468
1469 // Scan implements the Scanner interface.
1470 func (ns *NullWorkflowRunStatus) Scan(value interface{}) error {
1471 if value == nil {
1472 ns.WorkflowRunStatus, ns.Valid = "", false
1473 return nil
1474 }
1475 ns.Valid = true
1476 return ns.WorkflowRunStatus.Scan(value)
1477 }
1478
1479 // Value implements the driver Valuer interface.
1480 func (ns NullWorkflowRunStatus) Value() (driver.Value, error) {
1481 if !ns.Valid {
1482 return nil, nil
1483 }
1484 return string(ns.WorkflowRunStatus), nil
1485 }
1486
1487 type WorkflowRunnerStatus string
1488
1489 const (
1490 WorkflowRunnerStatusIdle WorkflowRunnerStatus = "idle"
1491 WorkflowRunnerStatusBusy WorkflowRunnerStatus = "busy"
1492 WorkflowRunnerStatusOffline WorkflowRunnerStatus = "offline"
1493 )
1494
1495 func (e *WorkflowRunnerStatus) Scan(src interface{}) error {
1496 switch s := src.(type) {
1497 case []byte:
1498 *e = WorkflowRunnerStatus(s)
1499 case string:
1500 *e = WorkflowRunnerStatus(s)
1501 default:
1502 return fmt.Errorf("unsupported scan type for WorkflowRunnerStatus: %T", src)
1503 }
1504 return nil
1505 }
1506
1507 type NullWorkflowRunnerStatus struct {
1508 WorkflowRunnerStatus WorkflowRunnerStatus
1509 Valid bool // Valid is true if WorkflowRunnerStatus is not NULL
1510 }
1511
1512 // Scan implements the Scanner interface.
1513 func (ns *NullWorkflowRunnerStatus) Scan(value interface{}) error {
1514 if value == nil {
1515 ns.WorkflowRunnerStatus, ns.Valid = "", false
1516 return nil
1517 }
1518 ns.Valid = true
1519 return ns.WorkflowRunnerStatus.Scan(value)
1520 }
1521
1522 // Value implements the driver Valuer interface.
1523 func (ns NullWorkflowRunnerStatus) Value() (driver.Value, error) {
1524 if !ns.Valid {
1525 return nil, nil
1526 }
1527 return string(ns.WorkflowRunnerStatus), nil
1528 }
1529
1530 type WorkflowStepStatus string
1531
1532 const (
1533 WorkflowStepStatusQueued WorkflowStepStatus = "queued"
1534 WorkflowStepStatusRunning WorkflowStepStatus = "running"
1535 WorkflowStepStatusCompleted WorkflowStepStatus = "completed"
1536 WorkflowStepStatusCancelled WorkflowStepStatus = "cancelled"
1537 WorkflowStepStatusSkipped WorkflowStepStatus = "skipped"
1538 )
1539
1540 func (e *WorkflowStepStatus) Scan(src interface{}) error {
1541 switch s := src.(type) {
1542 case []byte:
1543 *e = WorkflowStepStatus(s)
1544 case string:
1545 *e = WorkflowStepStatus(s)
1546 default:
1547 return fmt.Errorf("unsupported scan type for WorkflowStepStatus: %T", src)
1548 }
1549 return nil
1550 }
1551
1552 type NullWorkflowStepStatus struct {
1553 WorkflowStepStatus WorkflowStepStatus
1554 Valid bool // Valid is true if WorkflowStepStatus is not NULL
1555 }
1556
1557 // Scan implements the Scanner interface.
1558 func (ns *NullWorkflowStepStatus) Scan(value interface{}) error {
1559 if value == nil {
1560 ns.WorkflowStepStatus, ns.Valid = "", false
1561 return nil
1562 }
1563 ns.Valid = true
1564 return ns.WorkflowStepStatus.Scan(value)
1565 }
1566
1567 // Value implements the driver Valuer interface.
1568 func (ns NullWorkflowStepStatus) Value() (driver.Value, error) {
1569 if !ns.Valid {
1570 return nil, nil
1571 }
1572 return string(ns.WorkflowStepStatus), nil
1573 }
1574
1575 type ActionsVariable struct {
1576 ID int64
1577 RepoID pgtype.Int8
1578 OrgID pgtype.Int8
1579 Name string
1580 Value string
1581 CreatedByUserID pgtype.Int8
1582 CreatedAt pgtype.Timestamptz
1583 UpdatedAt pgtype.Timestamptz
1584 }
1585
1586 type AuthAuditLog struct {
1587 ID int64
1588 ActorID pgtype.Int8
1589 Action string
1590 TargetType string
1591 TargetID pgtype.Int8
1592 Meta []byte
1593 CreatedAt pgtype.Timestamptz
1594 }
1595
1596 type AuthThrottle struct {
1597 ID int64
1598 Scope string
1599 Identifier string
1600 Hits int32
1601 WindowStartedAt pgtype.Timestamptz
1602 }
1603
1604 type BranchProtectionRule struct {
1605 ID int64
1606 RepoID int64
1607 Pattern string
1608 PreventForcePush bool
1609 PreventDeletion bool
1610 RequirePrForPush bool
1611 AllowedPusherUserIds []int64
1612 RequireSignedCommits bool
1613 StatusChecksRequired []string
1614 CreatedAt pgtype.Timestamptz
1615 UpdatedAt pgtype.Timestamptz
1616 CreatedByUserID pgtype.Int8
1617 RequiredReviewCount int32
1618 DismissStaleReviewsOnPush bool
1619 RequireCodeOwnerReview bool
1620 DismissStaleStatusChecksOnPush bool
1621 }
1622
1623 type CheckRun struct {
1624 ID int64
1625 SuiteID int64
1626 RepoID int64
1627 HeadSha string
1628 Name string
1629 Status CheckStatus
1630 Conclusion NullCheckConclusion
1631 StartedAt pgtype.Timestamptz
1632 CompletedAt pgtype.Timestamptz
1633 DetailsUrl string
1634 Output []byte
1635 ExternalID pgtype.Text
1636 CreatedAt pgtype.Timestamptz
1637 UpdatedAt pgtype.Timestamptz
1638 }
1639
1640 type CheckSuite struct {
1641 ID int64
1642 RepoID int64
1643 HeadSha string
1644 AppSlug string
1645 Status CheckStatus
1646 Conclusion NullCheckConclusion
1647 CreatedAt pgtype.Timestamptz
1648 UpdatedAt pgtype.Timestamptz
1649 }
1650
1651 type CodeSearchContent struct {
1652 RepoID int64
1653 RefName string
1654 Path string
1655 ContentTsv interface{}
1656 ContentTrgm string
1657 }
1658
1659 type CodeSearchPath struct {
1660 RepoID int64
1661 RefName string
1662 Path string
1663 Tsv interface{}
1664 }
1665
1666 type DomainEvent struct {
1667 ID int64
1668 ActorUserID pgtype.Int8
1669 Kind string
1670 RepoID pgtype.Int8
1671 SourceKind string
1672 SourceID int64
1673 Public bool
1674 Payload []byte
1675 CreatedAt pgtype.Timestamptz
1676 }
1677
1678 type DomainEventsProcessed struct {
1679 Consumer string
1680 LastEventID int64
1681 UpdatedAt pgtype.Timestamptz
1682 }
1683
1684 type EmailVerification struct {
1685 ID int64
1686 UserEmailID int64
1687 TokenHash []byte
1688 ExpiresAt pgtype.Timestamptz
1689 UsedAt pgtype.Timestamptz
1690 CreatedAt pgtype.Timestamptz
1691 }
1692
1693 type Follow struct {
1694 ID int64
1695 FollowerUserID int64
1696 FolloweeUserID pgtype.Int8
1697 FolloweeOrgID pgtype.Int8
1698 FollowedAt pgtype.Timestamptz
1699 }
1700
1701 type Issue struct {
1702 ID int64
1703 RepoID int64
1704 Number int64
1705 Kind IssueKind
1706 Title string
1707 Body string
1708 BodyHtmlCached pgtype.Text
1709 MdPipelineVersion int32
1710 AuthorUserID pgtype.Int8
1711 State IssueState
1712 StateReason NullIssueStateReason
1713 Locked bool
1714 LockReason pgtype.Text
1715 MilestoneID pgtype.Int8
1716 CreatedAt pgtype.Timestamptz
1717 UpdatedAt pgtype.Timestamptz
1718 EditedAt pgtype.Timestamptz
1719 ClosedAt pgtype.Timestamptz
1720 ClosedByUserID pgtype.Int8
1721 }
1722
1723 type IssueAssignee struct {
1724 IssueID int64
1725 UserID int64
1726 AssignedAt pgtype.Timestamptz
1727 AssignedByUserID pgtype.Int8
1728 }
1729
1730 type IssueComment struct {
1731 ID int64
1732 IssueID int64
1733 AuthorUserID pgtype.Int8
1734 Body string
1735 BodyHtmlCached pgtype.Text
1736 MdPipelineVersion int32
1737 CreatedAt pgtype.Timestamptz
1738 UpdatedAt pgtype.Timestamptz
1739 EditedAt pgtype.Timestamptz
1740 }
1741
1742 type IssueEvent struct {
1743 ID int64
1744 IssueID int64
1745 ActorUserID pgtype.Int8
1746 Kind string
1747 Meta []byte
1748 RefTargetID pgtype.Int8
1749 CreatedAt pgtype.Timestamptz
1750 }
1751
1752 type IssueLabel struct {
1753 IssueID int64
1754 LabelID int64
1755 AppliedAt pgtype.Timestamptz
1756 AppliedByUserID pgtype.Int8
1757 }
1758
1759 type IssueReference struct {
1760 ID int64
1761 SourceIssueID pgtype.Int8
1762 TargetIssueID int64
1763 SourceKind IssueRefSource
1764 SourceObjectID pgtype.Int8
1765 CreatedAt pgtype.Timestamptz
1766 }
1767
1768 type IssuesSearch struct {
1769 IssueID int64
1770 RepoID int64
1771 Kind IssueKind
1772 State IssueState
1773 AuthorUserID pgtype.Int8
1774 Tsv interface{}
1775 }
1776
1777 type Job struct {
1778 ID int64
1779 Kind string
1780 Payload []byte
1781 RunAt pgtype.Timestamptz
1782 Attempts int32
1783 MaxAttempts int32
1784 LastError pgtype.Text
1785 LockedBy pgtype.Text
1786 LockedAt pgtype.Timestamptz
1787 CompletedAt pgtype.Timestamptz
1788 FailedAt pgtype.Timestamptz
1789 CreatedAt pgtype.Timestamptz
1790 }
1791
1792 type Label struct {
1793 ID int64
1794 RepoID int64
1795 Name string
1796 Color string
1797 Description string
1798 CreatedAt pgtype.Timestamptz
1799 }
1800
1801 type Meta struct {
1802 Key string
1803 Value []byte
1804 UpdatedAt pgtype.Timestamptz
1805 }
1806
1807 type Milestone struct {
1808 ID int64
1809 RepoID int64
1810 Title string
1811 Description string
1812 State MilestoneState
1813 DueOn pgtype.Timestamptz
1814 CreatedAt pgtype.Timestamptz
1815 ClosedAt pgtype.Timestamptz
1816 }
1817
1818 type Notification struct {
1819 ID int64
1820 RecipientUserID int64
1821 Kind string
1822 Reason string
1823 RepoID pgtype.Int8
1824 ThreadKind NullNotificationThreadKind
1825 ThreadID pgtype.Int8
1826 SourceEventID pgtype.Int8
1827 Unread bool
1828 LastEventAt pgtype.Timestamptz
1829 LastActorUserID pgtype.Int8
1830 Summary []byte
1831 CreatedAt pgtype.Timestamptz
1832 UpdatedAt pgtype.Timestamptz
1833 }
1834
1835 type NotificationEmailLog struct {
1836 ID int64
1837 RecipientUserID int64
1838 NotificationID pgtype.Int8
1839 ThreadKind NullNotificationThreadKind
1840 ThreadID pgtype.Int8
1841 SentAt pgtype.Timestamptz
1842 MessageID pgtype.Text
1843 }
1844
1845 type NotificationThread struct {
1846 RecipientUserID int64
1847 ThreadKind NotificationThreadKind
1848 ThreadID int64
1849 Subscribed bool
1850 Reason string
1851 UpdatedAt pgtype.Timestamptz
1852 }
1853
1854 type Org struct {
1855 ID int64
1856 Slug string
1857 DisplayName string
1858 Description string
1859 AvatarObjectKey pgtype.Text
1860 Location string
1861 Website string
1862 BillingEmail string
1863 Plan OrgPlan
1864 AllowMemberRepoCreate bool
1865 CreatedByUserID pgtype.Int8
1866 SuspendedAt pgtype.Timestamptz
1867 SuspendedReason pgtype.Text
1868 DeletedAt pgtype.Timestamptz
1869 CreatedAt pgtype.Timestamptz
1870 UpdatedAt pgtype.Timestamptz
1871 }
1872
1873 type OrgGithubImport struct {
1874 ID int64
1875 OrgID int64
1876 SourceHost string
1877 SourceOrg string
1878 RequestedByUserID pgtype.Int8
1879 Status string
1880 IncludePrivate bool
1881 TokenPresent bool
1882 TokenCiphertext []byte
1883 TokenNonce []byte
1884 TotalCount int32
1885 LastError pgtype.Text
1886 StartedAt pgtype.Timestamptz
1887 CompletedAt pgtype.Timestamptz
1888 CreatedAt pgtype.Timestamptz
1889 UpdatedAt pgtype.Timestamptz
1890 }
1891
1892 type OrgGithubImportRepo struct {
1893 ID int64
1894 ImportID int64
1895 GithubID pgtype.Int8
1896 SourceFullName string
1897 SourceName string
1898 TargetName string
1899 CloneUrl string
1900 Description string
1901 DefaultBranch string
1902 TargetVisibility RepoVisibility
1903 IsPrivate bool
1904 IsFork bool
1905 Status string
1906 RepoID pgtype.Int8
1907 LastError pgtype.Text
1908 StartedAt pgtype.Timestamptz
1909 CompletedAt pgtype.Timestamptz
1910 CreatedAt pgtype.Timestamptz
1911 UpdatedAt pgtype.Timestamptz
1912 }
1913
1914 type OrgInvitation struct {
1915 ID int64
1916 OrgID int64
1917 InvitedByUserID pgtype.Int8
1918 TargetUserID pgtype.Int8
1919 TargetEmail pgtype.Text
1920 Role OrgRole
1921 TokenHash []byte
1922 ExpiresAt pgtype.Timestamptz
1923 AcceptedAt pgtype.Timestamptz
1924 DeclinedAt pgtype.Timestamptz
1925 CanceledAt pgtype.Timestamptz
1926 CreatedAt pgtype.Timestamptz
1927 }
1928
1929 type OrgMember struct {
1930 OrgID int64
1931 UserID int64
1932 Role OrgRole
1933 InvitedByUserID pgtype.Int8
1934 JoinedAt pgtype.Timestamptz
1935 }
1936
1937 type PasswordReset struct {
1938 ID int64
1939 UserID int64
1940 TokenHash []byte
1941 ExpiresAt pgtype.Timestamptz
1942 UsedAt pgtype.Timestamptz
1943 CreatedAt pgtype.Timestamptz
1944 }
1945
1946 type PrReview struct {
1947 ID int64
1948 PrIssueID int64
1949 AuthorUserID pgtype.Int8
1950 State PrReviewState
1951 Body string
1952 BodyHtmlCached pgtype.Text
1953 SubmittedAt pgtype.Timestamptz
1954 DismissedAt pgtype.Timestamptz
1955 DismissedByUserID pgtype.Int8
1956 DismissalReason string
1957 }
1958
1959 type PrReviewComment struct {
1960 ID int64
1961 PrIssueID int64
1962 ReviewID pgtype.Int8
1963 AuthorUserID pgtype.Int8
1964 FilePath string
1965 Side PrReviewSide
1966 OriginalCommitSha string
1967 OriginalLine int32
1968 OriginalPosition int32
1969 CurrentPosition pgtype.Int4
1970 Body string
1971 BodyHtmlCached pgtype.Text
1972 InReplyToID pgtype.Int8
1973 Pending bool
1974 ResolvedAt pgtype.Timestamptz
1975 ResolvedByUserID pgtype.Int8
1976 CreatedAt pgtype.Timestamptz
1977 UpdatedAt pgtype.Timestamptz
1978 EditedAt pgtype.Timestamptz
1979 }
1980
1981 type PrReviewRequest struct {
1982 ID int64
1983 PrIssueID int64
1984 RequestedUserID pgtype.Int8
1985 RequestedTeamID pgtype.Int8
1986 RequestedByUserID pgtype.Int8
1987 RequestedAt pgtype.Timestamptz
1988 DismissedAt pgtype.Timestamptz
1989 SatisfiedByReviewID pgtype.Int8
1990 }
1991
1992 type Principal struct {
1993 Slug string
1994 Kind PrincipalKind
1995 ID int64
1996 }
1997
1998 type ProfilePin struct {
1999 SetID int64
2000 RepoID int64
2001 Position int32
2002 PinnedAt pgtype.Timestamptz
2003 }
2004
2005 type ProfilePinSet struct {
2006 ID int64
2007 OwnerUserID pgtype.Int8
2008 OwnerOrgID pgtype.Int8
2009 UpdatedAt pgtype.Timestamptz
2010 }
2011
2012 type PullRequest struct {
2013 IssueID int64
2014 BaseRef string
2015 HeadRef string
2016 HeadRepoID int64
2017 BaseOid string
2018 HeadOid string
2019 Draft bool
2020 Mergeable pgtype.Bool
2021 MergeableState PrMergeableState
2022 MergeCommitSha pgtype.Text
2023 MergedAt pgtype.Timestamptz
2024 MergedByUserID pgtype.Int8
2025 MergeMethod NullPrMergeMethod
2026 BaseOidAtMerge pgtype.Text
2027 HeadOidAtMerge pgtype.Text
2028 LastSynchronizedAt pgtype.Timestamptz
2029 }
2030
2031 type PullRequestCommit struct {
2032 PrID int64
2033 Sha string
2034 Position int32
2035 AuthorName string
2036 AuthorEmail string
2037 CommitterName string
2038 CommitterEmail string
2039 Subject string
2040 Body string
2041 AuthoredAt pgtype.Timestamptz
2042 CommittedAt pgtype.Timestamptz
2043 }
2044
2045 type PullRequestFile struct {
2046 PrID int64
2047 Path string
2048 Status PrFileStatus
2049 OldPath pgtype.Text
2050 Additions int32
2051 Deletions int32
2052 Changes int32
2053 }
2054
2055 type PushEvent struct {
2056 ID int64
2057 RepoID int64
2058 PusherUserID pgtype.Int8
2059 BeforeSha string
2060 AfterSha string
2061 Ref string
2062 Protocol string
2063 RequestID string
2064 ProcessedAt pgtype.Timestamptz
2065 CreatedAt pgtype.Timestamptz
2066 }
2067
2068 type RateLimit struct {
2069 Scope string
2070 Key string
2071 Hits int32
2072 WindowStartedAt pgtype.Timestamptz
2073 }
2074
2075 type Repo struct {
2076 ID int64
2077 OwnerUserID pgtype.Int8
2078 OwnerOrgID pgtype.Int8
2079 Name string
2080 Description string
2081 Visibility RepoVisibility
2082 DefaultBranch string
2083 IsArchived bool
2084 ArchivedAt pgtype.Timestamptz
2085 DeletedAt pgtype.Timestamptz
2086 DiskUsedBytes int64
2087 ForkOfRepoID pgtype.Int8
2088 LicenseKey pgtype.Text
2089 PrimaryLanguage pgtype.Text
2090 HasIssues bool
2091 HasPulls bool
2092 CreatedAt pgtype.Timestamptz
2093 UpdatedAt pgtype.Timestamptz
2094 DefaultBranchOid pgtype.Text
2095 AllowSquashMerge bool
2096 AllowRebaseMerge bool
2097 AllowMergeCommit bool
2098 DefaultMergeMethod PrMergeMethod
2099 StarCount int64
2100 WatcherCount int64
2101 ForkCount int64
2102 InitStatus RepoInitStatus
2103 LastIndexedOid pgtype.Text
2104 }
2105
2106 type RepoCollaborator struct {
2107 RepoID int64
2108 UserID int64
2109 Role CollabRole
2110 AddedAt pgtype.Timestamptz
2111 AddedByUserID pgtype.Int8
2112 }
2113
2114 type RepoIssueCounter struct {
2115 RepoID int64
2116 NextNumber int64
2117 }
2118
2119 type RepoRedirect struct {
2120 OldOwnerUserID pgtype.Int8
2121 OldOwnerOrgID pgtype.Int8
2122 OldName string
2123 RepoID int64
2124 RedirectedAt pgtype.Timestamptz
2125 }
2126
2127 type RepoSourceRemote struct {
2128 RepoID int64
2129 RemoteUrl string
2130 LastFetchedAt pgtype.Timestamptz
2131 LastError pgtype.Text
2132 CreatedAt pgtype.Timestamptz
2133 UpdatedAt pgtype.Timestamptz
2134 }
2135
2136 type RepoTopic struct {
2137 RepoID int64
2138 Topic string
2139 CreatedAt pgtype.Timestamptz
2140 }
2141
2142 type RepoTransferRequest struct {
2143 ID int64
2144 RepoID int64
2145 FromUserID int64
2146 ToPrincipalKind TransferPrincipalKind
2147 ToPrincipalID int64
2148 CreatedBy int64
2149 CreatedAt pgtype.Timestamptz
2150 ExpiresAt pgtype.Timestamptz
2151 Status TransferStatus
2152 AcceptedAt pgtype.Timestamptz
2153 DeclinedAt pgtype.Timestamptz
2154 CanceledAt pgtype.Timestamptz
2155 }
2156
2157 type ReposSearch struct {
2158 RepoID int64
2159 Tsv interface{}
2160 }
2161
2162 type RunnerJwtUsed struct {
2163 Jti string
2164 RunnerID int64
2165 JobID int64
2166 RunID int64
2167 RepoID int64
2168 ExpiresAt pgtype.Timestamptz
2169 UsedAt pgtype.Timestamptz
2170 }
2171
2172 type RunnerToken struct {
2173 ID int64
2174 RunnerID int64
2175 TokenHash []byte
2176 ExpiresAt pgtype.Timestamptz
2177 RevokedAt pgtype.Timestamptz
2178 CreatedAt pgtype.Timestamptz
2179 }
2180
2181 type SignupIpThrottle struct {
2182 Cidr netip.Addr
2183 Hits int32
2184 WindowStartedAt pgtype.Timestamptz
2185 }
2186
2187 type Star struct {
2188 UserID int64
2189 RepoID int64
2190 StarredAt pgtype.Timestamptz
2191 }
2192
2193 type Team struct {
2194 ID int64
2195 OrgID int64
2196 Slug string
2197 DisplayName string
2198 Description string
2199 ParentTeamID pgtype.Int8
2200 Privacy TeamPrivacy
2201 CreatedByUserID pgtype.Int8
2202 CreatedAt pgtype.Timestamptz
2203 UpdatedAt pgtype.Timestamptz
2204 }
2205
2206 type TeamMember struct {
2207 TeamID int64
2208 UserID int64
2209 Role TeamRole
2210 AddedByUserID pgtype.Int8
2211 AddedAt pgtype.Timestamptz
2212 }
2213
2214 type TeamRepoAccess struct {
2215 TeamID int64
2216 RepoID int64
2217 Role TeamRepoRole
2218 AddedByUserID pgtype.Int8
2219 AddedAt pgtype.Timestamptz
2220 }
2221
2222 type TransactionalEmailLog struct {
2223 ID int64
2224 RecipientUserID pgtype.Int8
2225 RecipientEmail string
2226 Kind string
2227 Subject string
2228 ProviderID string
2229 Status TransactionalEmailStatus
2230 ErrorSummary pgtype.Text
2231 SentAt pgtype.Timestamptz
2232 DeliveredAt pgtype.Timestamptz
2233 }
2234
2235 type TrendingSnapshot struct {
2236 ID int64
2237 Scope TrendingScope
2238 Kind TrendingKind
2239 CapturedAt pgtype.Timestamptz
2240 Payload []byte
2241 }
2242
2243 type User struct {
2244 ID int64
2245 Username string
2246 DisplayName string
2247 PrimaryEmailID pgtype.Int8
2248 PasswordHash string
2249 PasswordAlgo string
2250 PasswordUpdatedAt pgtype.Timestamptz
2251 EmailVerified bool
2252 LastLoginAt pgtype.Timestamptz
2253 SuspendedAt pgtype.Timestamptz
2254 SuspendedReason pgtype.Text
2255 DeletedAt pgtype.Timestamptz
2256 CreatedAt pgtype.Timestamptz
2257 UpdatedAt pgtype.Timestamptz
2258 Bio string
2259 Location string
2260 Website string
2261 Company string
2262 Pronouns string
2263 AvatarObjectKey pgtype.Text
2264 Theme string
2265 SessionEpoch int32
2266 IsSiteAdmin bool
2267 IncludePrivateContributions bool
2268 }
2269
2270 type UserEmail struct {
2271 ID int64
2272 UserID int64
2273 Email string
2274 IsPrimary bool
2275 Verified bool
2276 VerificationTokenHash []byte
2277 VerificationSentAt pgtype.Timestamptz
2278 VerifiedAt pgtype.Timestamptz
2279 CreatedAt pgtype.Timestamptz
2280 }
2281
2282 type UserNotificationPref struct {
2283 UserID int64
2284 Key string
2285 Value []byte
2286 UpdatedAt pgtype.Timestamptz
2287 }
2288
2289 type UserRecoveryCode struct {
2290 ID int64
2291 UserID int64
2292 CodeHash []byte
2293 UsedAt pgtype.Timestamptz
2294 GeneratedAt pgtype.Timestamptz
2295 CreatedAt pgtype.Timestamptz
2296 }
2297
2298 type UserSshKey struct {
2299 ID int64
2300 UserID int64
2301 Title string
2302 FingerprintSha256 string
2303 KeyType string
2304 KeyBits int32
2305 PublicKey string
2306 LastUsedAt pgtype.Timestamptz
2307 LastUsedIp *netip.Addr
2308 CreatedAt pgtype.Timestamptz
2309 }
2310
2311 type UserToken struct {
2312 ID int64
2313 UserID int64
2314 Name string
2315 TokenHash []byte
2316 TokenPrefix string
2317 Scopes []string
2318 ExpiresAt pgtype.Timestamptz
2319 LastUsedAt pgtype.Timestamptz
2320 LastUsedIp *netip.Addr
2321 RevokedAt pgtype.Timestamptz
2322 CreatedAt pgtype.Timestamptz
2323 }
2324
2325 type UserTotp struct {
2326 ID int64
2327 UserID int64
2328 SecretEncrypted []byte
2329 SecretNonce []byte
2330 ConfirmedAt pgtype.Timestamptz
2331 LastUsedCounter int64
2332 CreatedAt pgtype.Timestamptz
2333 UpdatedAt pgtype.Timestamptz
2334 }
2335
2336 type UsernameRedirect struct {
2337 OldUsername string
2338 UserID int64
2339 ChangedAt pgtype.Timestamptz
2340 }
2341
2342 type UsersSearch struct {
2343 UserID int64
2344 Tsv interface{}
2345 }
2346
2347 type Watch struct {
2348 UserID int64
2349 RepoID int64
2350 Level WatchLevel
2351 UpdatedAt pgtype.Timestamptz
2352 }
2353
2354 type Webhook struct {
2355 ID int64
2356 OwnerKind WebhookOwnerKind
2357 OwnerID int64
2358 Url string
2359 ContentType WebhookContentType
2360 Events []string
2361 SecretCiphertext []byte
2362 SecretNonce []byte
2363 Active bool
2364 SslVerification bool
2365 ConsecutiveFailures int32
2366 AutoDisableThreshold int32
2367 DisabledAt pgtype.Timestamptz
2368 DisabledReason pgtype.Text
2369 LastSuccessAt pgtype.Timestamptz
2370 LastFailureAt pgtype.Timestamptz
2371 CreatedByUserID pgtype.Int8
2372 CreatedAt pgtype.Timestamptz
2373 UpdatedAt pgtype.Timestamptz
2374 }
2375
2376 type WebhookDelivery struct {
2377 ID int64
2378 WebhookID int64
2379 EventKind string
2380 EventID pgtype.Int8
2381 DeliveryUuid pgtype.UUID
2382 Payload []byte
2383 RequestHeaders []byte
2384 RequestBody []byte
2385 ResponseStatus pgtype.Int4
2386 ResponseHeaders []byte
2387 ResponseBody []byte
2388 ResponseTruncated bool
2389 StartedAt pgtype.Timestamptz
2390 CompletedAt pgtype.Timestamptz
2391 Attempt int32
2392 MaxAttempts int32
2393 NextRetryAt pgtype.Timestamptz
2394 Status WebhookDeliveryStatus
2395 IdempotencyKey string
2396 ErrorSummary pgtype.Text
2397 RedeliverOf pgtype.Int8
2398 }
2399
2400 type WebhookEventsPending struct {
2401 ID int64
2402 RepoID int64
2403 EventKind string
2404 Payload []byte
2405 CreatedAt pgtype.Timestamptz
2406 }
2407
2408 type WorkflowArtifact struct {
2409 ID int64
2410 RunID int64
2411 Name string
2412 ObjectKey string
2413 ByteCount int64
2414 ExpiresAt pgtype.Timestamptz
2415 CreatedAt pgtype.Timestamptz
2416 }
2417
2418 type WorkflowJob struct {
2419 ID int64
2420 RunID int64
2421 JobIndex int32
2422 JobKey string
2423 JobName string
2424 RunsOn string
2425 RunnerID pgtype.Int8
2426 NeedsJobs []string
2427 IfExpr string
2428 TimeoutMinutes int32
2429 Permissions []byte
2430 JobEnv []byte
2431 Status WorkflowJobStatus
2432 Conclusion NullCheckConclusion
2433 CancelRequested bool
2434 StartedAt pgtype.Timestamptz
2435 CompletedAt pgtype.Timestamptz
2436 Version int32
2437 CreatedAt pgtype.Timestamptz
2438 UpdatedAt pgtype.Timestamptz
2439 }
2440
2441 type WorkflowJobSecretMask struct {
2442 JobID int64
2443 Ciphertext []byte
2444 Nonce []byte
2445 CreatedAt pgtype.Timestamptz
2446 }
2447
2448 type WorkflowRun struct {
2449 ID int64
2450 RepoID int64
2451 RunIndex int64
2452 WorkflowFile string
2453 WorkflowName string
2454 HeadSha string
2455 HeadRef string
2456 Event WorkflowRunEvent
2457 EventPayload []byte
2458 ActorUserID pgtype.Int8
2459 ParentRunID pgtype.Int8
2460 ConcurrencyGroup string
2461 Status WorkflowRunStatus
2462 Conclusion NullCheckConclusion
2463 Pinned bool
2464 NeedApproval bool
2465 ApprovedByUserID pgtype.Int8
2466 StartedAt pgtype.Timestamptz
2467 CompletedAt pgtype.Timestamptz
2468 Version int32
2469 CreatedAt pgtype.Timestamptz
2470 UpdatedAt pgtype.Timestamptz
2471 TriggerEventID string
2472 }
2473
2474 type WorkflowRunner struct {
2475 ID int64
2476 Name string
2477 Labels []string
2478 Capacity int32
2479 Status WorkflowRunnerStatus
2480 LastHeartbeatAt pgtype.Timestamptz
2481 RegisteredByUserID pgtype.Int8
2482 CreatedAt pgtype.Timestamptz
2483 UpdatedAt pgtype.Timestamptz
2484 }
2485
2486 type WorkflowSecret struct {
2487 ID int64
2488 RepoID pgtype.Int8
2489 OrgID pgtype.Int8
2490 Name string
2491 Ciphertext []byte
2492 Nonce []byte
2493 CreatedByUserID pgtype.Int8
2494 CreatedAt pgtype.Timestamptz
2495 UpdatedAt pgtype.Timestamptz
2496 }
2497
2498 type WorkflowStep struct {
2499 ID int64
2500 JobID int64
2501 StepIndex int32
2502 StepID string
2503 StepName string
2504 IfExpr string
2505 RunCommand string
2506 UsesAlias string
2507 WorkingDirectory string
2508 StepEnv []byte
2509 ContinueOnError bool
2510 Status WorkflowStepStatus
2511 Conclusion NullCheckConclusion
2512 LogObjectKey pgtype.Text
2513 LogByteCount int64
2514 StartedAt pgtype.Timestamptz
2515 CompletedAt pgtype.Timestamptz
2516 Version int32
2517 CreatedAt pgtype.Timestamptz
2518 UpdatedAt pgtype.Timestamptz
2519 StepWith []byte
2520 }
2521
2522 type WorkflowStepLogChunk struct {
2523 ID int64
2524 StepID int64
2525 Seq int32
2526 Chunk []byte
2527 CreatedAt pgtype.Timestamptz
2528 }
2529