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