Go · 58610 bytes Raw Blame History
1 // Code generated by sqlc. DO NOT EDIT.
2 // versions:
3 // sqlc v1.31.1
4
5 package webhookdb
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 OrgInvitation struct {
1874 ID int64
1875 OrgID int64
1876 InvitedByUserID pgtype.Int8
1877 TargetUserID pgtype.Int8
1878 TargetEmail pgtype.Text
1879 Role OrgRole
1880 TokenHash []byte
1881 ExpiresAt pgtype.Timestamptz
1882 AcceptedAt pgtype.Timestamptz
1883 DeclinedAt pgtype.Timestamptz
1884 CanceledAt pgtype.Timestamptz
1885 CreatedAt pgtype.Timestamptz
1886 }
1887
1888 type OrgMember struct {
1889 OrgID int64
1890 UserID int64
1891 Role OrgRole
1892 InvitedByUserID pgtype.Int8
1893 JoinedAt pgtype.Timestamptz
1894 }
1895
1896 type PasswordReset struct {
1897 ID int64
1898 UserID int64
1899 TokenHash []byte
1900 ExpiresAt pgtype.Timestamptz
1901 UsedAt pgtype.Timestamptz
1902 CreatedAt pgtype.Timestamptz
1903 }
1904
1905 type PrReview struct {
1906 ID int64
1907 PrIssueID int64
1908 AuthorUserID pgtype.Int8
1909 State PrReviewState
1910 Body string
1911 BodyHtmlCached pgtype.Text
1912 SubmittedAt pgtype.Timestamptz
1913 DismissedAt pgtype.Timestamptz
1914 DismissedByUserID pgtype.Int8
1915 DismissalReason string
1916 }
1917
1918 type PrReviewComment struct {
1919 ID int64
1920 PrIssueID int64
1921 ReviewID pgtype.Int8
1922 AuthorUserID pgtype.Int8
1923 FilePath string
1924 Side PrReviewSide
1925 OriginalCommitSha string
1926 OriginalLine int32
1927 OriginalPosition int32
1928 CurrentPosition pgtype.Int4
1929 Body string
1930 BodyHtmlCached pgtype.Text
1931 InReplyToID pgtype.Int8
1932 Pending bool
1933 ResolvedAt pgtype.Timestamptz
1934 ResolvedByUserID pgtype.Int8
1935 CreatedAt pgtype.Timestamptz
1936 UpdatedAt pgtype.Timestamptz
1937 EditedAt pgtype.Timestamptz
1938 }
1939
1940 type PrReviewRequest struct {
1941 ID int64
1942 PrIssueID int64
1943 RequestedUserID pgtype.Int8
1944 RequestedTeamID pgtype.Int8
1945 RequestedByUserID pgtype.Int8
1946 RequestedAt pgtype.Timestamptz
1947 DismissedAt pgtype.Timestamptz
1948 SatisfiedByReviewID pgtype.Int8
1949 }
1950
1951 type Principal struct {
1952 Slug string
1953 Kind PrincipalKind
1954 ID int64
1955 }
1956
1957 type ProfilePin struct {
1958 SetID int64
1959 RepoID int64
1960 Position int32
1961 PinnedAt pgtype.Timestamptz
1962 }
1963
1964 type ProfilePinSet struct {
1965 ID int64
1966 OwnerUserID pgtype.Int8
1967 OwnerOrgID pgtype.Int8
1968 UpdatedAt pgtype.Timestamptz
1969 }
1970
1971 type PullRequest struct {
1972 IssueID int64
1973 BaseRef string
1974 HeadRef string
1975 HeadRepoID int64
1976 BaseOid string
1977 HeadOid string
1978 Draft bool
1979 Mergeable pgtype.Bool
1980 MergeableState PrMergeableState
1981 MergeCommitSha pgtype.Text
1982 MergedAt pgtype.Timestamptz
1983 MergedByUserID pgtype.Int8
1984 MergeMethod NullPrMergeMethod
1985 BaseOidAtMerge pgtype.Text
1986 HeadOidAtMerge pgtype.Text
1987 LastSynchronizedAt pgtype.Timestamptz
1988 }
1989
1990 type PullRequestCommit struct {
1991 PrID int64
1992 Sha string
1993 Position int32
1994 AuthorName string
1995 AuthorEmail string
1996 CommitterName string
1997 CommitterEmail string
1998 Subject string
1999 Body string
2000 AuthoredAt pgtype.Timestamptz
2001 CommittedAt pgtype.Timestamptz
2002 }
2003
2004 type PullRequestFile struct {
2005 PrID int64
2006 Path string
2007 Status PrFileStatus
2008 OldPath pgtype.Text
2009 Additions int32
2010 Deletions int32
2011 Changes int32
2012 }
2013
2014 type PushEvent struct {
2015 ID int64
2016 RepoID int64
2017 PusherUserID pgtype.Int8
2018 BeforeSha string
2019 AfterSha string
2020 Ref string
2021 Protocol string
2022 RequestID string
2023 ProcessedAt pgtype.Timestamptz
2024 CreatedAt pgtype.Timestamptz
2025 }
2026
2027 type RateLimit struct {
2028 Scope string
2029 Key string
2030 Hits int32
2031 WindowStartedAt pgtype.Timestamptz
2032 }
2033
2034 type Repo struct {
2035 ID int64
2036 OwnerUserID pgtype.Int8
2037 OwnerOrgID pgtype.Int8
2038 Name string
2039 Description string
2040 Visibility RepoVisibility
2041 DefaultBranch string
2042 IsArchived bool
2043 ArchivedAt pgtype.Timestamptz
2044 DeletedAt pgtype.Timestamptz
2045 DiskUsedBytes int64
2046 ForkOfRepoID pgtype.Int8
2047 LicenseKey pgtype.Text
2048 PrimaryLanguage pgtype.Text
2049 HasIssues bool
2050 HasPulls bool
2051 CreatedAt pgtype.Timestamptz
2052 UpdatedAt pgtype.Timestamptz
2053 DefaultBranchOid pgtype.Text
2054 AllowSquashMerge bool
2055 AllowRebaseMerge bool
2056 AllowMergeCommit bool
2057 DefaultMergeMethod PrMergeMethod
2058 StarCount int64
2059 WatcherCount int64
2060 ForkCount int64
2061 InitStatus RepoInitStatus
2062 LastIndexedOid pgtype.Text
2063 }
2064
2065 type RepoCollaborator struct {
2066 RepoID int64
2067 UserID int64
2068 Role CollabRole
2069 AddedAt pgtype.Timestamptz
2070 AddedByUserID pgtype.Int8
2071 }
2072
2073 type RepoIssueCounter struct {
2074 RepoID int64
2075 NextNumber int64
2076 }
2077
2078 type RepoRedirect struct {
2079 OldOwnerUserID pgtype.Int8
2080 OldOwnerOrgID pgtype.Int8
2081 OldName string
2082 RepoID int64
2083 RedirectedAt pgtype.Timestamptz
2084 }
2085
2086 type RepoSourceRemote struct {
2087 RepoID int64
2088 RemoteUrl string
2089 LastFetchedAt pgtype.Timestamptz
2090 LastError pgtype.Text
2091 CreatedAt pgtype.Timestamptz
2092 UpdatedAt pgtype.Timestamptz
2093 }
2094
2095 type RepoTopic struct {
2096 RepoID int64
2097 Topic string
2098 CreatedAt pgtype.Timestamptz
2099 }
2100
2101 type RepoTransferRequest struct {
2102 ID int64
2103 RepoID int64
2104 FromUserID int64
2105 ToPrincipalKind TransferPrincipalKind
2106 ToPrincipalID int64
2107 CreatedBy int64
2108 CreatedAt pgtype.Timestamptz
2109 ExpiresAt pgtype.Timestamptz
2110 Status TransferStatus
2111 AcceptedAt pgtype.Timestamptz
2112 DeclinedAt pgtype.Timestamptz
2113 CanceledAt pgtype.Timestamptz
2114 }
2115
2116 type ReposSearch struct {
2117 RepoID int64
2118 Tsv interface{}
2119 }
2120
2121 type RunnerJwtUsed struct {
2122 Jti string
2123 RunnerID int64
2124 JobID int64
2125 RunID int64
2126 RepoID int64
2127 ExpiresAt pgtype.Timestamptz
2128 UsedAt pgtype.Timestamptz
2129 }
2130
2131 type RunnerToken struct {
2132 ID int64
2133 RunnerID int64
2134 TokenHash []byte
2135 ExpiresAt pgtype.Timestamptz
2136 RevokedAt pgtype.Timestamptz
2137 CreatedAt pgtype.Timestamptz
2138 }
2139
2140 type SignupIpThrottle struct {
2141 Cidr netip.Addr
2142 Hits int32
2143 WindowStartedAt pgtype.Timestamptz
2144 }
2145
2146 type Star struct {
2147 UserID int64
2148 RepoID int64
2149 StarredAt pgtype.Timestamptz
2150 }
2151
2152 type Team struct {
2153 ID int64
2154 OrgID int64
2155 Slug string
2156 DisplayName string
2157 Description string
2158 ParentTeamID pgtype.Int8
2159 Privacy TeamPrivacy
2160 CreatedByUserID pgtype.Int8
2161 CreatedAt pgtype.Timestamptz
2162 UpdatedAt pgtype.Timestamptz
2163 }
2164
2165 type TeamMember struct {
2166 TeamID int64
2167 UserID int64
2168 Role TeamRole
2169 AddedByUserID pgtype.Int8
2170 AddedAt pgtype.Timestamptz
2171 }
2172
2173 type TeamRepoAccess struct {
2174 TeamID int64
2175 RepoID int64
2176 Role TeamRepoRole
2177 AddedByUserID pgtype.Int8
2178 AddedAt pgtype.Timestamptz
2179 }
2180
2181 type TransactionalEmailLog struct {
2182 ID int64
2183 RecipientUserID pgtype.Int8
2184 RecipientEmail string
2185 Kind string
2186 Subject string
2187 ProviderID string
2188 Status TransactionalEmailStatus
2189 ErrorSummary pgtype.Text
2190 SentAt pgtype.Timestamptz
2191 DeliveredAt pgtype.Timestamptz
2192 }
2193
2194 type TrendingSnapshot struct {
2195 ID int64
2196 Scope TrendingScope
2197 Kind TrendingKind
2198 CapturedAt pgtype.Timestamptz
2199 Payload []byte
2200 }
2201
2202 type User struct {
2203 ID int64
2204 Username string
2205 DisplayName string
2206 PrimaryEmailID pgtype.Int8
2207 PasswordHash string
2208 PasswordAlgo string
2209 PasswordUpdatedAt pgtype.Timestamptz
2210 EmailVerified bool
2211 LastLoginAt pgtype.Timestamptz
2212 SuspendedAt pgtype.Timestamptz
2213 SuspendedReason pgtype.Text
2214 DeletedAt pgtype.Timestamptz
2215 CreatedAt pgtype.Timestamptz
2216 UpdatedAt pgtype.Timestamptz
2217 Bio string
2218 Location string
2219 Website string
2220 Company string
2221 Pronouns string
2222 AvatarObjectKey pgtype.Text
2223 Theme string
2224 SessionEpoch int32
2225 IsSiteAdmin bool
2226 }
2227
2228 type UserEmail struct {
2229 ID int64
2230 UserID int64
2231 Email string
2232 IsPrimary bool
2233 Verified bool
2234 VerificationTokenHash []byte
2235 VerificationSentAt pgtype.Timestamptz
2236 VerifiedAt pgtype.Timestamptz
2237 CreatedAt pgtype.Timestamptz
2238 }
2239
2240 type UserNotificationPref struct {
2241 UserID int64
2242 Key string
2243 Value []byte
2244 UpdatedAt pgtype.Timestamptz
2245 }
2246
2247 type UserRecoveryCode struct {
2248 ID int64
2249 UserID int64
2250 CodeHash []byte
2251 UsedAt pgtype.Timestamptz
2252 GeneratedAt pgtype.Timestamptz
2253 CreatedAt pgtype.Timestamptz
2254 }
2255
2256 type UserSshKey struct {
2257 ID int64
2258 UserID int64
2259 Title string
2260 FingerprintSha256 string
2261 KeyType string
2262 KeyBits int32
2263 PublicKey string
2264 LastUsedAt pgtype.Timestamptz
2265 LastUsedIp *netip.Addr
2266 CreatedAt pgtype.Timestamptz
2267 }
2268
2269 type UserToken struct {
2270 ID int64
2271 UserID int64
2272 Name string
2273 TokenHash []byte
2274 TokenPrefix string
2275 Scopes []string
2276 ExpiresAt pgtype.Timestamptz
2277 LastUsedAt pgtype.Timestamptz
2278 LastUsedIp *netip.Addr
2279 RevokedAt pgtype.Timestamptz
2280 CreatedAt pgtype.Timestamptz
2281 }
2282
2283 type UserTotp struct {
2284 ID int64
2285 UserID int64
2286 SecretEncrypted []byte
2287 SecretNonce []byte
2288 ConfirmedAt pgtype.Timestamptz
2289 LastUsedCounter int64
2290 CreatedAt pgtype.Timestamptz
2291 UpdatedAt pgtype.Timestamptz
2292 }
2293
2294 type UsernameRedirect struct {
2295 OldUsername string
2296 UserID int64
2297 ChangedAt pgtype.Timestamptz
2298 }
2299
2300 type UsersSearch struct {
2301 UserID int64
2302 Tsv interface{}
2303 }
2304
2305 type Watch struct {
2306 UserID int64
2307 RepoID int64
2308 Level WatchLevel
2309 UpdatedAt pgtype.Timestamptz
2310 }
2311
2312 type Webhook struct {
2313 ID int64
2314 OwnerKind WebhookOwnerKind
2315 OwnerID int64
2316 Url string
2317 ContentType WebhookContentType
2318 Events []string
2319 SecretCiphertext []byte
2320 SecretNonce []byte
2321 Active bool
2322 SslVerification bool
2323 ConsecutiveFailures int32
2324 AutoDisableThreshold int32
2325 DisabledAt pgtype.Timestamptz
2326 DisabledReason pgtype.Text
2327 LastSuccessAt pgtype.Timestamptz
2328 LastFailureAt pgtype.Timestamptz
2329 CreatedByUserID pgtype.Int8
2330 CreatedAt pgtype.Timestamptz
2331 UpdatedAt pgtype.Timestamptz
2332 }
2333
2334 type WebhookDelivery struct {
2335 ID int64
2336 WebhookID int64
2337 EventKind string
2338 EventID pgtype.Int8
2339 DeliveryUuid pgtype.UUID
2340 Payload []byte
2341 RequestHeaders []byte
2342 RequestBody []byte
2343 ResponseStatus pgtype.Int4
2344 ResponseHeaders []byte
2345 ResponseBody []byte
2346 ResponseTruncated bool
2347 StartedAt pgtype.Timestamptz
2348 CompletedAt pgtype.Timestamptz
2349 Attempt int32
2350 MaxAttempts int32
2351 NextRetryAt pgtype.Timestamptz
2352 Status WebhookDeliveryStatus
2353 IdempotencyKey string
2354 ErrorSummary pgtype.Text
2355 RedeliverOf pgtype.Int8
2356 }
2357
2358 type WebhookEventsPending struct {
2359 ID int64
2360 RepoID int64
2361 EventKind string
2362 Payload []byte
2363 CreatedAt pgtype.Timestamptz
2364 }
2365
2366 type WorkflowArtifact struct {
2367 ID int64
2368 RunID int64
2369 Name string
2370 ObjectKey string
2371 ByteCount int64
2372 ExpiresAt pgtype.Timestamptz
2373 CreatedAt pgtype.Timestamptz
2374 }
2375
2376 type WorkflowJob struct {
2377 ID int64
2378 RunID int64
2379 JobIndex int32
2380 JobKey string
2381 JobName string
2382 RunsOn string
2383 RunnerID pgtype.Int8
2384 NeedsJobs []string
2385 IfExpr string
2386 TimeoutMinutes int32
2387 Permissions []byte
2388 JobEnv []byte
2389 Status WorkflowJobStatus
2390 Conclusion NullCheckConclusion
2391 CancelRequested bool
2392 StartedAt pgtype.Timestamptz
2393 CompletedAt pgtype.Timestamptz
2394 Version int32
2395 CreatedAt pgtype.Timestamptz
2396 UpdatedAt pgtype.Timestamptz
2397 }
2398
2399 type WorkflowRun struct {
2400 ID int64
2401 RepoID int64
2402 RunIndex int64
2403 WorkflowFile string
2404 WorkflowName string
2405 HeadSha string
2406 HeadRef string
2407 Event WorkflowRunEvent
2408 EventPayload []byte
2409 ActorUserID pgtype.Int8
2410 ParentRunID pgtype.Int8
2411 ConcurrencyGroup string
2412 Status WorkflowRunStatus
2413 Conclusion NullCheckConclusion
2414 Pinned bool
2415 NeedApproval bool
2416 ApprovedByUserID pgtype.Int8
2417 StartedAt pgtype.Timestamptz
2418 CompletedAt pgtype.Timestamptz
2419 Version int32
2420 CreatedAt pgtype.Timestamptz
2421 UpdatedAt pgtype.Timestamptz
2422 TriggerEventID string
2423 }
2424
2425 type WorkflowRunner struct {
2426 ID int64
2427 Name string
2428 Labels []string
2429 Capacity int32
2430 Status WorkflowRunnerStatus
2431 LastHeartbeatAt pgtype.Timestamptz
2432 RegisteredByUserID pgtype.Int8
2433 CreatedAt pgtype.Timestamptz
2434 UpdatedAt pgtype.Timestamptz
2435 }
2436
2437 type WorkflowSecret struct {
2438 ID int64
2439 RepoID pgtype.Int8
2440 OrgID pgtype.Int8
2441 Name string
2442 Ciphertext []byte
2443 Nonce []byte
2444 CreatedByUserID pgtype.Int8
2445 CreatedAt pgtype.Timestamptz
2446 UpdatedAt pgtype.Timestamptz
2447 }
2448
2449 type WorkflowStep struct {
2450 ID int64
2451 JobID int64
2452 StepIndex int32
2453 StepID string
2454 StepName string
2455 IfExpr string
2456 RunCommand string
2457 UsesAlias string
2458 WorkingDirectory string
2459 StepEnv []byte
2460 ContinueOnError bool
2461 Status WorkflowStepStatus
2462 Conclusion NullCheckConclusion
2463 LogObjectKey pgtype.Text
2464 LogByteCount int64
2465 StartedAt pgtype.Timestamptz
2466 CompletedAt pgtype.Timestamptz
2467 Version int32
2468 CreatedAt pgtype.Timestamptz
2469 UpdatedAt pgtype.Timestamptz
2470 StepWith []byte
2471 }
2472
2473 type WorkflowStepLogChunk struct {
2474 ID int64
2475 StepID int64
2476 Seq int32
2477 Chunk []byte
2478 CreatedAt pgtype.Timestamptz
2479 }
2480