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