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