Go · 67329 bytes Raw Blame History
1 // Code generated by sqlc. DO NOT EDIT.
2 // versions:
3 // sqlc v1.31.1
4
5 package pullsdb
6
7 import (
8 "database/sql/driver"
9 "fmt"
10 "net/netip"
11
12 "github.com/jackc/pgx/v5/pgtype"
13 )
14
15 type 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 DomainEvent struct {
1893 ID int64
1894 ActorUserID pgtype.Int8
1895 Kind string
1896 RepoID pgtype.Int8
1897 SourceKind string
1898 SourceID int64
1899 Public bool
1900 Payload []byte
1901 CreatedAt pgtype.Timestamptz
1902 }
1903
1904 type DomainEventsProcessed struct {
1905 Consumer string
1906 LastEventID int64
1907 UpdatedAt pgtype.Timestamptz
1908 }
1909
1910 type EmailVerification struct {
1911 ID int64
1912 UserEmailID int64
1913 TokenHash []byte
1914 ExpiresAt pgtype.Timestamptz
1915 UsedAt pgtype.Timestamptz
1916 CreatedAt pgtype.Timestamptz
1917 }
1918
1919 type Follow struct {
1920 ID int64
1921 FollowerUserID int64
1922 FolloweeUserID pgtype.Int8
1923 FolloweeOrgID pgtype.Int8
1924 FollowedAt pgtype.Timestamptz
1925 }
1926
1927 type Issue struct {
1928 ID int64
1929 RepoID int64
1930 Number int64
1931 Kind IssueKind
1932 Title string
1933 Body string
1934 BodyHtmlCached pgtype.Text
1935 MdPipelineVersion int32
1936 AuthorUserID pgtype.Int8
1937 State IssueState
1938 StateReason NullIssueStateReason
1939 Locked bool
1940 LockReason pgtype.Text
1941 MilestoneID pgtype.Int8
1942 CreatedAt pgtype.Timestamptz
1943 UpdatedAt pgtype.Timestamptz
1944 EditedAt pgtype.Timestamptz
1945 ClosedAt pgtype.Timestamptz
1946 ClosedByUserID pgtype.Int8
1947 }
1948
1949 type IssueAssignee struct {
1950 IssueID int64
1951 UserID int64
1952 AssignedAt pgtype.Timestamptz
1953 AssignedByUserID pgtype.Int8
1954 }
1955
1956 type IssueComment struct {
1957 ID int64
1958 IssueID int64
1959 AuthorUserID pgtype.Int8
1960 Body string
1961 BodyHtmlCached pgtype.Text
1962 MdPipelineVersion int32
1963 CreatedAt pgtype.Timestamptz
1964 UpdatedAt pgtype.Timestamptz
1965 EditedAt pgtype.Timestamptz
1966 }
1967
1968 type IssueEvent struct {
1969 ID int64
1970 IssueID int64
1971 ActorUserID pgtype.Int8
1972 Kind string
1973 Meta []byte
1974 RefTargetID pgtype.Int8
1975 CreatedAt pgtype.Timestamptz
1976 }
1977
1978 type IssueLabel struct {
1979 IssueID int64
1980 LabelID int64
1981 AppliedAt pgtype.Timestamptz
1982 AppliedByUserID pgtype.Int8
1983 }
1984
1985 type IssueReference struct {
1986 ID int64
1987 SourceIssueID pgtype.Int8
1988 TargetIssueID int64
1989 SourceKind IssueRefSource
1990 SourceObjectID pgtype.Int8
1991 CreatedAt pgtype.Timestamptz
1992 }
1993
1994 type IssuesSearch struct {
1995 IssueID int64
1996 RepoID int64
1997 Kind IssueKind
1998 State IssueState
1999 AuthorUserID pgtype.Int8
2000 Tsv interface{}
2001 }
2002
2003 type Job struct {
2004 ID int64
2005 Kind string
2006 Payload []byte
2007 RunAt pgtype.Timestamptz
2008 Attempts int32
2009 MaxAttempts int32
2010 LastError pgtype.Text
2011 LockedBy pgtype.Text
2012 LockedAt pgtype.Timestamptz
2013 CompletedAt pgtype.Timestamptz
2014 FailedAt pgtype.Timestamptz
2015 CreatedAt pgtype.Timestamptz
2016 }
2017
2018 type Label struct {
2019 ID int64
2020 RepoID int64
2021 Name string
2022 Color string
2023 Description string
2024 CreatedAt pgtype.Timestamptz
2025 }
2026
2027 type Meta struct {
2028 Key string
2029 Value []byte
2030 UpdatedAt pgtype.Timestamptz
2031 }
2032
2033 type Milestone struct {
2034 ID int64
2035 RepoID int64
2036 Title string
2037 Description string
2038 State MilestoneState
2039 DueOn pgtype.Timestamptz
2040 CreatedAt pgtype.Timestamptz
2041 ClosedAt pgtype.Timestamptz
2042 }
2043
2044 type Notification struct {
2045 ID int64
2046 RecipientUserID int64
2047 Kind string
2048 Reason string
2049 RepoID pgtype.Int8
2050 ThreadKind NullNotificationThreadKind
2051 ThreadID pgtype.Int8
2052 SourceEventID pgtype.Int8
2053 Unread bool
2054 LastEventAt pgtype.Timestamptz
2055 LastActorUserID pgtype.Int8
2056 Summary []byte
2057 CreatedAt pgtype.Timestamptz
2058 UpdatedAt pgtype.Timestamptz
2059 }
2060
2061 type NotificationEmailLog struct {
2062 ID int64
2063 RecipientUserID int64
2064 NotificationID pgtype.Int8
2065 ThreadKind NullNotificationThreadKind
2066 ThreadID pgtype.Int8
2067 SentAt pgtype.Timestamptz
2068 MessageID pgtype.Text
2069 }
2070
2071 type NotificationThread struct {
2072 RecipientUserID int64
2073 ThreadKind NotificationThreadKind
2074 ThreadID int64
2075 Subscribed bool
2076 Reason string
2077 UpdatedAt pgtype.Timestamptz
2078 }
2079
2080 type Org struct {
2081 ID int64
2082 Slug string
2083 DisplayName string
2084 Description string
2085 AvatarObjectKey pgtype.Text
2086 Location string
2087 Website string
2088 BillingEmail string
2089 Plan OrgPlan
2090 AllowMemberRepoCreate bool
2091 CreatedByUserID pgtype.Int8
2092 SuspendedAt pgtype.Timestamptz
2093 SuspendedReason pgtype.Text
2094 DeletedAt pgtype.Timestamptz
2095 CreatedAt pgtype.Timestamptz
2096 UpdatedAt pgtype.Timestamptz
2097 }
2098
2099 type OrgBillingState struct {
2100 OrgID int64
2101 Provider BillingProvider
2102 StripeCustomerID pgtype.Text
2103 StripeSubscriptionID pgtype.Text
2104 StripeSubscriptionItemID pgtype.Text
2105 Plan OrgPlan
2106 SubscriptionStatus BillingSubscriptionStatus
2107 BillableSeats int32
2108 SeatSnapshotAt pgtype.Timestamptz
2109 CurrentPeriodStart pgtype.Timestamptz
2110 CurrentPeriodEnd pgtype.Timestamptz
2111 CancelAtPeriodEnd bool
2112 TrialEnd pgtype.Timestamptz
2113 PastDueAt pgtype.Timestamptz
2114 CanceledAt pgtype.Timestamptz
2115 LockedAt pgtype.Timestamptz
2116 LockReason NullBillingLockReason
2117 GraceUntil pgtype.Timestamptz
2118 LastWebhookEventID string
2119 CreatedAt pgtype.Timestamptz
2120 UpdatedAt pgtype.Timestamptz
2121 }
2122
2123 type OrgGithubImport struct {
2124 ID int64
2125 OrgID int64
2126 SourceHost string
2127 SourceOrg string
2128 RequestedByUserID pgtype.Int8
2129 Status string
2130 IncludePrivate bool
2131 TokenPresent bool
2132 TokenCiphertext []byte
2133 TokenNonce []byte
2134 TotalCount int32
2135 LastError pgtype.Text
2136 StartedAt pgtype.Timestamptz
2137 CompletedAt pgtype.Timestamptz
2138 CreatedAt pgtype.Timestamptz
2139 UpdatedAt pgtype.Timestamptz
2140 }
2141
2142 type OrgGithubImportRepo struct {
2143 ID int64
2144 ImportID int64
2145 GithubID pgtype.Int8
2146 SourceFullName string
2147 SourceName string
2148 TargetName string
2149 CloneUrl string
2150 Description string
2151 DefaultBranch string
2152 TargetVisibility RepoVisibility
2153 IsPrivate bool
2154 IsFork bool
2155 Status string
2156 RepoID pgtype.Int8
2157 LastError pgtype.Text
2158 StartedAt pgtype.Timestamptz
2159 CompletedAt pgtype.Timestamptz
2160 CreatedAt pgtype.Timestamptz
2161 UpdatedAt pgtype.Timestamptz
2162 }
2163
2164 type OrgInvitation struct {
2165 ID int64
2166 OrgID int64
2167 InvitedByUserID pgtype.Int8
2168 TargetUserID pgtype.Int8
2169 TargetEmail pgtype.Text
2170 Role OrgRole
2171 TokenHash []byte
2172 ExpiresAt pgtype.Timestamptz
2173 AcceptedAt pgtype.Timestamptz
2174 DeclinedAt pgtype.Timestamptz
2175 CanceledAt pgtype.Timestamptz
2176 CreatedAt pgtype.Timestamptz
2177 }
2178
2179 type OrgMember struct {
2180 OrgID int64
2181 UserID int64
2182 Role OrgRole
2183 InvitedByUserID pgtype.Int8
2184 JoinedAt pgtype.Timestamptz
2185 }
2186
2187 type PasswordReset struct {
2188 ID int64
2189 UserID int64
2190 TokenHash []byte
2191 ExpiresAt pgtype.Timestamptz
2192 UsedAt pgtype.Timestamptz
2193 CreatedAt pgtype.Timestamptz
2194 }
2195
2196 type PrReview struct {
2197 ID int64
2198 PrIssueID int64
2199 AuthorUserID pgtype.Int8
2200 State PrReviewState
2201 Body string
2202 BodyHtmlCached pgtype.Text
2203 SubmittedAt pgtype.Timestamptz
2204 DismissedAt pgtype.Timestamptz
2205 DismissedByUserID pgtype.Int8
2206 DismissalReason string
2207 }
2208
2209 type PrReviewComment struct {
2210 ID int64
2211 PrIssueID int64
2212 ReviewID pgtype.Int8
2213 AuthorUserID pgtype.Int8
2214 FilePath string
2215 Side PrReviewSide
2216 OriginalCommitSha string
2217 OriginalLine int32
2218 OriginalPosition int32
2219 CurrentPosition pgtype.Int4
2220 Body string
2221 BodyHtmlCached pgtype.Text
2222 InReplyToID pgtype.Int8
2223 Pending bool
2224 ResolvedAt pgtype.Timestamptz
2225 ResolvedByUserID pgtype.Int8
2226 CreatedAt pgtype.Timestamptz
2227 UpdatedAt pgtype.Timestamptz
2228 EditedAt pgtype.Timestamptz
2229 }
2230
2231 type PrReviewRequest struct {
2232 ID int64
2233 PrIssueID int64
2234 RequestedUserID pgtype.Int8
2235 RequestedTeamID pgtype.Int8
2236 RequestedByUserID pgtype.Int8
2237 RequestedAt pgtype.Timestamptz
2238 DismissedAt pgtype.Timestamptz
2239 SatisfiedByReviewID pgtype.Int8
2240 }
2241
2242 type Principal struct {
2243 Slug string
2244 Kind PrincipalKind
2245 ID int64
2246 }
2247
2248 type ProfilePin struct {
2249 SetID int64
2250 RepoID int64
2251 Position int32
2252 PinnedAt pgtype.Timestamptz
2253 }
2254
2255 type ProfilePinSet struct {
2256 ID int64
2257 OwnerUserID pgtype.Int8
2258 OwnerOrgID pgtype.Int8
2259 UpdatedAt pgtype.Timestamptz
2260 }
2261
2262 type PullRequest struct {
2263 IssueID int64
2264 BaseRef string
2265 HeadRef string
2266 HeadRepoID int64
2267 BaseOid string
2268 HeadOid string
2269 Draft bool
2270 Mergeable pgtype.Bool
2271 MergeableState PrMergeableState
2272 MergeCommitSha pgtype.Text
2273 MergedAt pgtype.Timestamptz
2274 MergedByUserID pgtype.Int8
2275 MergeMethod NullPrMergeMethod
2276 BaseOidAtMerge pgtype.Text
2277 HeadOidAtMerge pgtype.Text
2278 LastSynchronizedAt pgtype.Timestamptz
2279 }
2280
2281 type PullRequestCommit struct {
2282 PrID int64
2283 Sha string
2284 Position int32
2285 AuthorName string
2286 AuthorEmail string
2287 CommitterName string
2288 CommitterEmail string
2289 Subject string
2290 Body string
2291 AuthoredAt pgtype.Timestamptz
2292 CommittedAt pgtype.Timestamptz
2293 }
2294
2295 type PullRequestFile struct {
2296 PrID int64
2297 Path string
2298 Status PrFileStatus
2299 OldPath pgtype.Text
2300 Additions int32
2301 Deletions int32
2302 Changes int32
2303 }
2304
2305 type PushEvent struct {
2306 ID int64
2307 RepoID int64
2308 PusherUserID pgtype.Int8
2309 BeforeSha string
2310 AfterSha string
2311 Ref string
2312 Protocol string
2313 RequestID string
2314 ProcessedAt pgtype.Timestamptz
2315 CreatedAt pgtype.Timestamptz
2316 }
2317
2318 type RateLimit struct {
2319 Scope string
2320 Key string
2321 Hits int32
2322 WindowStartedAt pgtype.Timestamptz
2323 }
2324
2325 type Repo struct {
2326 ID int64
2327 OwnerUserID pgtype.Int8
2328 OwnerOrgID pgtype.Int8
2329 Name string
2330 Description string
2331 Visibility RepoVisibility
2332 DefaultBranch string
2333 IsArchived bool
2334 ArchivedAt pgtype.Timestamptz
2335 DeletedAt pgtype.Timestamptz
2336 DiskUsedBytes int64
2337 ForkOfRepoID pgtype.Int8
2338 LicenseKey pgtype.Text
2339 PrimaryLanguage pgtype.Text
2340 HasIssues bool
2341 HasPulls bool
2342 CreatedAt pgtype.Timestamptz
2343 UpdatedAt pgtype.Timestamptz
2344 DefaultBranchOid pgtype.Text
2345 AllowSquashMerge bool
2346 AllowRebaseMerge bool
2347 AllowMergeCommit bool
2348 DefaultMergeMethod PrMergeMethod
2349 StarCount int64
2350 WatcherCount int64
2351 ForkCount int64
2352 InitStatus RepoInitStatus
2353 LastIndexedOid pgtype.Text
2354 }
2355
2356 type RepoCollaborator struct {
2357 RepoID int64
2358 UserID int64
2359 Role CollabRole
2360 AddedAt pgtype.Timestamptz
2361 AddedByUserID pgtype.Int8
2362 }
2363
2364 type RepoIssueCounter struct {
2365 RepoID int64
2366 NextNumber int64
2367 }
2368
2369 type RepoRedirect struct {
2370 OldOwnerUserID pgtype.Int8
2371 OldOwnerOrgID pgtype.Int8
2372 OldName string
2373 RepoID int64
2374 RedirectedAt pgtype.Timestamptz
2375 }
2376
2377 type RepoSourceRemote struct {
2378 RepoID int64
2379 RemoteUrl string
2380 LastFetchedAt pgtype.Timestamptz
2381 LastError pgtype.Text
2382 CreatedAt pgtype.Timestamptz
2383 UpdatedAt pgtype.Timestamptz
2384 }
2385
2386 type RepoTopic struct {
2387 RepoID int64
2388 Topic string
2389 CreatedAt pgtype.Timestamptz
2390 }
2391
2392 type RepoTransferRequest struct {
2393 ID int64
2394 RepoID int64
2395 FromUserID int64
2396 ToPrincipalKind TransferPrincipalKind
2397 ToPrincipalID int64
2398 CreatedBy int64
2399 CreatedAt pgtype.Timestamptz
2400 ExpiresAt pgtype.Timestamptz
2401 Status TransferStatus
2402 AcceptedAt pgtype.Timestamptz
2403 DeclinedAt pgtype.Timestamptz
2404 CanceledAt pgtype.Timestamptz
2405 }
2406
2407 type ReposSearch struct {
2408 RepoID int64
2409 Tsv interface{}
2410 }
2411
2412 type RunnerJwtUsed struct {
2413 Jti string
2414 RunnerID int64
2415 JobID int64
2416 RunID int64
2417 RepoID int64
2418 ExpiresAt pgtype.Timestamptz
2419 UsedAt pgtype.Timestamptz
2420 }
2421
2422 type RunnerToken struct {
2423 ID int64
2424 RunnerID int64
2425 TokenHash []byte
2426 ExpiresAt pgtype.Timestamptz
2427 RevokedAt pgtype.Timestamptz
2428 CreatedAt pgtype.Timestamptz
2429 }
2430
2431 type SignupIpThrottle struct {
2432 Cidr netip.Addr
2433 Hits int32
2434 WindowStartedAt pgtype.Timestamptz
2435 }
2436
2437 type Star struct {
2438 UserID int64
2439 RepoID int64
2440 StarredAt pgtype.Timestamptz
2441 }
2442
2443 type Team struct {
2444 ID int64
2445 OrgID int64
2446 Slug string
2447 DisplayName string
2448 Description string
2449 ParentTeamID pgtype.Int8
2450 Privacy TeamPrivacy
2451 CreatedByUserID pgtype.Int8
2452 CreatedAt pgtype.Timestamptz
2453 UpdatedAt pgtype.Timestamptz
2454 }
2455
2456 type TeamMember struct {
2457 TeamID int64
2458 UserID int64
2459 Role TeamRole
2460 AddedByUserID pgtype.Int8
2461 AddedAt pgtype.Timestamptz
2462 }
2463
2464 type TeamRepoAccess struct {
2465 TeamID int64
2466 RepoID int64
2467 Role TeamRepoRole
2468 AddedByUserID pgtype.Int8
2469 AddedAt pgtype.Timestamptz
2470 }
2471
2472 type TransactionalEmailLog struct {
2473 ID int64
2474 RecipientUserID pgtype.Int8
2475 RecipientEmail string
2476 Kind string
2477 Subject string
2478 ProviderID string
2479 Status TransactionalEmailStatus
2480 ErrorSummary pgtype.Text
2481 SentAt pgtype.Timestamptz
2482 DeliveredAt pgtype.Timestamptz
2483 }
2484
2485 type TrendingSnapshot struct {
2486 ID int64
2487 Scope TrendingScope
2488 Kind TrendingKind
2489 CapturedAt pgtype.Timestamptz
2490 Payload []byte
2491 }
2492
2493 type User struct {
2494 ID int64
2495 Username string
2496 DisplayName string
2497 PrimaryEmailID pgtype.Int8
2498 PasswordHash string
2499 PasswordAlgo string
2500 PasswordUpdatedAt pgtype.Timestamptz
2501 EmailVerified bool
2502 LastLoginAt pgtype.Timestamptz
2503 SuspendedAt pgtype.Timestamptz
2504 SuspendedReason pgtype.Text
2505 DeletedAt pgtype.Timestamptz
2506 CreatedAt pgtype.Timestamptz
2507 UpdatedAt pgtype.Timestamptz
2508 Bio string
2509 Location string
2510 Website string
2511 Company string
2512 Pronouns string
2513 AvatarObjectKey pgtype.Text
2514 Theme string
2515 SessionEpoch int32
2516 IsSiteAdmin bool
2517 IncludePrivateContributions bool
2518 }
2519
2520 type UserEmail struct {
2521 ID int64
2522 UserID int64
2523 Email string
2524 IsPrimary bool
2525 Verified bool
2526 VerificationTokenHash []byte
2527 VerificationSentAt pgtype.Timestamptz
2528 VerifiedAt pgtype.Timestamptz
2529 CreatedAt pgtype.Timestamptz
2530 }
2531
2532 type UserNotificationPref struct {
2533 UserID int64
2534 Key string
2535 Value []byte
2536 UpdatedAt pgtype.Timestamptz
2537 }
2538
2539 type UserRecoveryCode struct {
2540 ID int64
2541 UserID int64
2542 CodeHash []byte
2543 UsedAt pgtype.Timestamptz
2544 GeneratedAt pgtype.Timestamptz
2545 CreatedAt pgtype.Timestamptz
2546 }
2547
2548 type UserSshKey struct {
2549 ID int64
2550 UserID int64
2551 Title string
2552 FingerprintSha256 string
2553 KeyType string
2554 KeyBits int32
2555 PublicKey string
2556 LastUsedAt pgtype.Timestamptz
2557 LastUsedIp *netip.Addr
2558 CreatedAt pgtype.Timestamptz
2559 }
2560
2561 type UserToken struct {
2562 ID int64
2563 UserID int64
2564 Name string
2565 TokenHash []byte
2566 TokenPrefix string
2567 Scopes []string
2568 ExpiresAt pgtype.Timestamptz
2569 LastUsedAt pgtype.Timestamptz
2570 LastUsedIp *netip.Addr
2571 RevokedAt pgtype.Timestamptz
2572 CreatedAt pgtype.Timestamptz
2573 }
2574
2575 type UserTotp struct {
2576 ID int64
2577 UserID int64
2578 SecretEncrypted []byte
2579 SecretNonce []byte
2580 ConfirmedAt pgtype.Timestamptz
2581 LastUsedCounter int64
2582 CreatedAt pgtype.Timestamptz
2583 UpdatedAt pgtype.Timestamptz
2584 }
2585
2586 type UsernameRedirect struct {
2587 OldUsername string
2588 UserID int64
2589 ChangedAt pgtype.Timestamptz
2590 }
2591
2592 type UsersSearch struct {
2593 UserID int64
2594 Tsv interface{}
2595 }
2596
2597 type Watch struct {
2598 UserID int64
2599 RepoID int64
2600 Level WatchLevel
2601 UpdatedAt pgtype.Timestamptz
2602 }
2603
2604 type Webhook struct {
2605 ID int64
2606 OwnerKind WebhookOwnerKind
2607 OwnerID int64
2608 Url string
2609 ContentType WebhookContentType
2610 Events []string
2611 SecretCiphertext []byte
2612 SecretNonce []byte
2613 Active bool
2614 SslVerification bool
2615 ConsecutiveFailures int32
2616 AutoDisableThreshold int32
2617 DisabledAt pgtype.Timestamptz
2618 DisabledReason pgtype.Text
2619 LastSuccessAt pgtype.Timestamptz
2620 LastFailureAt pgtype.Timestamptz
2621 CreatedByUserID pgtype.Int8
2622 CreatedAt pgtype.Timestamptz
2623 UpdatedAt pgtype.Timestamptz
2624 }
2625
2626 type WebhookDelivery struct {
2627 ID int64
2628 WebhookID int64
2629 EventKind string
2630 EventID pgtype.Int8
2631 DeliveryUuid pgtype.UUID
2632 Payload []byte
2633 RequestHeaders []byte
2634 RequestBody []byte
2635 ResponseStatus pgtype.Int4
2636 ResponseHeaders []byte
2637 ResponseBody []byte
2638 ResponseTruncated bool
2639 StartedAt pgtype.Timestamptz
2640 CompletedAt pgtype.Timestamptz
2641 Attempt int32
2642 MaxAttempts int32
2643 NextRetryAt pgtype.Timestamptz
2644 Status WebhookDeliveryStatus
2645 IdempotencyKey string
2646 ErrorSummary pgtype.Text
2647 RedeliverOf pgtype.Int8
2648 }
2649
2650 type WebhookEventsPending struct {
2651 ID int64
2652 RepoID int64
2653 EventKind string
2654 Payload []byte
2655 CreatedAt pgtype.Timestamptz
2656 }
2657
2658 type WorkflowArtifact struct {
2659 ID int64
2660 RunID int64
2661 Name string
2662 ObjectKey string
2663 ByteCount int64
2664 ExpiresAt pgtype.Timestamptz
2665 CreatedAt pgtype.Timestamptz
2666 }
2667
2668 type WorkflowJob struct {
2669 ID int64
2670 RunID int64
2671 JobIndex int32
2672 JobKey string
2673 JobName string
2674 RunsOn string
2675 RunnerID pgtype.Int8
2676 NeedsJobs []string
2677 IfExpr string
2678 TimeoutMinutes int32
2679 Permissions []byte
2680 JobEnv []byte
2681 Status WorkflowJobStatus
2682 Conclusion NullCheckConclusion
2683 CancelRequested bool
2684 StartedAt pgtype.Timestamptz
2685 CompletedAt pgtype.Timestamptz
2686 Version int32
2687 CreatedAt pgtype.Timestamptz
2688 UpdatedAt pgtype.Timestamptz
2689 }
2690
2691 type WorkflowJobSecretMask struct {
2692 JobID int64
2693 Ciphertext []byte
2694 Nonce []byte
2695 CreatedAt pgtype.Timestamptz
2696 }
2697
2698 type WorkflowRun struct {
2699 ID int64
2700 RepoID int64
2701 RunIndex int64
2702 WorkflowFile string
2703 WorkflowName string
2704 HeadSha string
2705 HeadRef string
2706 Event WorkflowRunEvent
2707 EventPayload []byte
2708 ActorUserID pgtype.Int8
2709 ParentRunID pgtype.Int8
2710 ConcurrencyGroup string
2711 Status WorkflowRunStatus
2712 Conclusion NullCheckConclusion
2713 Pinned bool
2714 NeedApproval bool
2715 ApprovedByUserID pgtype.Int8
2716 StartedAt pgtype.Timestamptz
2717 CompletedAt pgtype.Timestamptz
2718 Version int32
2719 CreatedAt pgtype.Timestamptz
2720 UpdatedAt pgtype.Timestamptz
2721 TriggerEventID string
2722 }
2723
2724 type WorkflowRunner struct {
2725 ID int64
2726 Name string
2727 Labels []string
2728 Capacity int32
2729 Status WorkflowRunnerStatus
2730 LastHeartbeatAt pgtype.Timestamptz
2731 RegisteredByUserID pgtype.Int8
2732 CreatedAt pgtype.Timestamptz
2733 UpdatedAt pgtype.Timestamptz
2734 }
2735
2736 type WorkflowSecret struct {
2737 ID int64
2738 RepoID pgtype.Int8
2739 OrgID pgtype.Int8
2740 Name string
2741 Ciphertext []byte
2742 Nonce []byte
2743 CreatedByUserID pgtype.Int8
2744 CreatedAt pgtype.Timestamptz
2745 UpdatedAt pgtype.Timestamptz
2746 }
2747
2748 type WorkflowStep struct {
2749 ID int64
2750 JobID int64
2751 StepIndex int32
2752 StepID string
2753 StepName string
2754 IfExpr string
2755 RunCommand string
2756 UsesAlias string
2757 WorkingDirectory string
2758 StepEnv []byte
2759 ContinueOnError bool
2760 Status WorkflowStepStatus
2761 Conclusion NullCheckConclusion
2762 LogObjectKey pgtype.Text
2763 LogByteCount int64
2764 StartedAt pgtype.Timestamptz
2765 CompletedAt pgtype.Timestamptz
2766 Version int32
2767 CreatedAt pgtype.Timestamptz
2768 UpdatedAt pgtype.Timestamptz
2769 StepWith []byte
2770 }
2771
2772 type WorkflowStepLogChunk struct {
2773 ID int64
2774 StepID int64
2775 Seq int32
2776 Chunk []byte
2777 CreatedAt pgtype.Timestamptz
2778 }
2779