@@ -0,0 +1,1404 @@ |
| 1 | +// Code generated by sqlc. DO NOT EDIT. |
| 2 | +// versions: |
| 3 | +// sqlc v1.31.1 |
| 4 | + |
| 5 | +package notifdb |
| 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 PrFileStatus string |
| 408 | + |
| 409 | +const ( |
| 410 | + PrFileStatusAdded PrFileStatus = "added" |
| 411 | + PrFileStatusModified PrFileStatus = "modified" |
| 412 | + PrFileStatusDeleted PrFileStatus = "deleted" |
| 413 | + PrFileStatusRenamed PrFileStatus = "renamed" |
| 414 | + PrFileStatusCopied PrFileStatus = "copied" |
| 415 | +) |
| 416 | + |
| 417 | +func (e *PrFileStatus) Scan(src interface{}) error { |
| 418 | + switch s := src.(type) { |
| 419 | + case []byte: |
| 420 | + *e = PrFileStatus(s) |
| 421 | + case string: |
| 422 | + *e = PrFileStatus(s) |
| 423 | + default: |
| 424 | + return fmt.Errorf("unsupported scan type for PrFileStatus: %T", src) |
| 425 | + } |
| 426 | + return nil |
| 427 | +} |
| 428 | + |
| 429 | +type NullPrFileStatus struct { |
| 430 | + PrFileStatus PrFileStatus |
| 431 | + Valid bool // Valid is true if PrFileStatus is not NULL |
| 432 | +} |
| 433 | + |
| 434 | +// Scan implements the Scanner interface. |
| 435 | +func (ns *NullPrFileStatus) Scan(value interface{}) error { |
| 436 | + if value == nil { |
| 437 | + ns.PrFileStatus, ns.Valid = "", false |
| 438 | + return nil |
| 439 | + } |
| 440 | + ns.Valid = true |
| 441 | + return ns.PrFileStatus.Scan(value) |
| 442 | +} |
| 443 | + |
| 444 | +// Value implements the driver Valuer interface. |
| 445 | +func (ns NullPrFileStatus) Value() (driver.Value, error) { |
| 446 | + if !ns.Valid { |
| 447 | + return nil, nil |
| 448 | + } |
| 449 | + return string(ns.PrFileStatus), nil |
| 450 | +} |
| 451 | + |
| 452 | +type PrMergeMethod string |
| 453 | + |
| 454 | +const ( |
| 455 | + PrMergeMethodMerge PrMergeMethod = "merge" |
| 456 | + PrMergeMethodSquash PrMergeMethod = "squash" |
| 457 | + PrMergeMethodRebase PrMergeMethod = "rebase" |
| 458 | +) |
| 459 | + |
| 460 | +func (e *PrMergeMethod) Scan(src interface{}) error { |
| 461 | + switch s := src.(type) { |
| 462 | + case []byte: |
| 463 | + *e = PrMergeMethod(s) |
| 464 | + case string: |
| 465 | + *e = PrMergeMethod(s) |
| 466 | + default: |
| 467 | + return fmt.Errorf("unsupported scan type for PrMergeMethod: %T", src) |
| 468 | + } |
| 469 | + return nil |
| 470 | +} |
| 471 | + |
| 472 | +type NullPrMergeMethod struct { |
| 473 | + PrMergeMethod PrMergeMethod |
| 474 | + Valid bool // Valid is true if PrMergeMethod is not NULL |
| 475 | +} |
| 476 | + |
| 477 | +// Scan implements the Scanner interface. |
| 478 | +func (ns *NullPrMergeMethod) Scan(value interface{}) error { |
| 479 | + if value == nil { |
| 480 | + ns.PrMergeMethod, ns.Valid = "", false |
| 481 | + return nil |
| 482 | + } |
| 483 | + ns.Valid = true |
| 484 | + return ns.PrMergeMethod.Scan(value) |
| 485 | +} |
| 486 | + |
| 487 | +// Value implements the driver Valuer interface. |
| 488 | +func (ns NullPrMergeMethod) Value() (driver.Value, error) { |
| 489 | + if !ns.Valid { |
| 490 | + return nil, nil |
| 491 | + } |
| 492 | + return string(ns.PrMergeMethod), nil |
| 493 | +} |
| 494 | + |
| 495 | +type PrMergeableState string |
| 496 | + |
| 497 | +const ( |
| 498 | + PrMergeableStateUnknown PrMergeableState = "unknown" |
| 499 | + PrMergeableStateClean PrMergeableState = "clean" |
| 500 | + PrMergeableStateDirty PrMergeableState = "dirty" |
| 501 | + PrMergeableStateBlocked PrMergeableState = "blocked" |
| 502 | + PrMergeableStateBehind PrMergeableState = "behind" |
| 503 | +) |
| 504 | + |
| 505 | +func (e *PrMergeableState) Scan(src interface{}) error { |
| 506 | + switch s := src.(type) { |
| 507 | + case []byte: |
| 508 | + *e = PrMergeableState(s) |
| 509 | + case string: |
| 510 | + *e = PrMergeableState(s) |
| 511 | + default: |
| 512 | + return fmt.Errorf("unsupported scan type for PrMergeableState: %T", src) |
| 513 | + } |
| 514 | + return nil |
| 515 | +} |
| 516 | + |
| 517 | +type NullPrMergeableState struct { |
| 518 | + PrMergeableState PrMergeableState |
| 519 | + Valid bool // Valid is true if PrMergeableState is not NULL |
| 520 | +} |
| 521 | + |
| 522 | +// Scan implements the Scanner interface. |
| 523 | +func (ns *NullPrMergeableState) Scan(value interface{}) error { |
| 524 | + if value == nil { |
| 525 | + ns.PrMergeableState, ns.Valid = "", false |
| 526 | + return nil |
| 527 | + } |
| 528 | + ns.Valid = true |
| 529 | + return ns.PrMergeableState.Scan(value) |
| 530 | +} |
| 531 | + |
| 532 | +// Value implements the driver Valuer interface. |
| 533 | +func (ns NullPrMergeableState) Value() (driver.Value, error) { |
| 534 | + if !ns.Valid { |
| 535 | + return nil, nil |
| 536 | + } |
| 537 | + return string(ns.PrMergeableState), nil |
| 538 | +} |
| 539 | + |
| 540 | +type PrReviewSide string |
| 541 | + |
| 542 | +const ( |
| 543 | + PrReviewSideLeft PrReviewSide = "left" |
| 544 | + PrReviewSideRight PrReviewSide = "right" |
| 545 | +) |
| 546 | + |
| 547 | +func (e *PrReviewSide) Scan(src interface{}) error { |
| 548 | + switch s := src.(type) { |
| 549 | + case []byte: |
| 550 | + *e = PrReviewSide(s) |
| 551 | + case string: |
| 552 | + *e = PrReviewSide(s) |
| 553 | + default: |
| 554 | + return fmt.Errorf("unsupported scan type for PrReviewSide: %T", src) |
| 555 | + } |
| 556 | + return nil |
| 557 | +} |
| 558 | + |
| 559 | +type NullPrReviewSide struct { |
| 560 | + PrReviewSide PrReviewSide |
| 561 | + Valid bool // Valid is true if PrReviewSide is not NULL |
| 562 | +} |
| 563 | + |
| 564 | +// Scan implements the Scanner interface. |
| 565 | +func (ns *NullPrReviewSide) Scan(value interface{}) error { |
| 566 | + if value == nil { |
| 567 | + ns.PrReviewSide, ns.Valid = "", false |
| 568 | + return nil |
| 569 | + } |
| 570 | + ns.Valid = true |
| 571 | + return ns.PrReviewSide.Scan(value) |
| 572 | +} |
| 573 | + |
| 574 | +// Value implements the driver Valuer interface. |
| 575 | +func (ns NullPrReviewSide) Value() (driver.Value, error) { |
| 576 | + if !ns.Valid { |
| 577 | + return nil, nil |
| 578 | + } |
| 579 | + return string(ns.PrReviewSide), nil |
| 580 | +} |
| 581 | + |
| 582 | +type PrReviewState string |
| 583 | + |
| 584 | +const ( |
| 585 | + PrReviewStateComment PrReviewState = "comment" |
| 586 | + PrReviewStateApprove PrReviewState = "approve" |
| 587 | + PrReviewStateRequestChanges PrReviewState = "request_changes" |
| 588 | +) |
| 589 | + |
| 590 | +func (e *PrReviewState) Scan(src interface{}) error { |
| 591 | + switch s := src.(type) { |
| 592 | + case []byte: |
| 593 | + *e = PrReviewState(s) |
| 594 | + case string: |
| 595 | + *e = PrReviewState(s) |
| 596 | + default: |
| 597 | + return fmt.Errorf("unsupported scan type for PrReviewState: %T", src) |
| 598 | + } |
| 599 | + return nil |
| 600 | +} |
| 601 | + |
| 602 | +type NullPrReviewState struct { |
| 603 | + PrReviewState PrReviewState |
| 604 | + Valid bool // Valid is true if PrReviewState is not NULL |
| 605 | +} |
| 606 | + |
| 607 | +// Scan implements the Scanner interface. |
| 608 | +func (ns *NullPrReviewState) Scan(value interface{}) error { |
| 609 | + if value == nil { |
| 610 | + ns.PrReviewState, ns.Valid = "", false |
| 611 | + return nil |
| 612 | + } |
| 613 | + ns.Valid = true |
| 614 | + return ns.PrReviewState.Scan(value) |
| 615 | +} |
| 616 | + |
| 617 | +// Value implements the driver Valuer interface. |
| 618 | +func (ns NullPrReviewState) Value() (driver.Value, error) { |
| 619 | + if !ns.Valid { |
| 620 | + return nil, nil |
| 621 | + } |
| 622 | + return string(ns.PrReviewState), nil |
| 623 | +} |
| 624 | + |
| 625 | +type RepoInitStatus string |
| 626 | + |
| 627 | +const ( |
| 628 | + RepoInitStatusInitialized RepoInitStatus = "initialized" |
| 629 | + RepoInitStatusInitPending RepoInitStatus = "init_pending" |
| 630 | + RepoInitStatusInitFailed RepoInitStatus = "init_failed" |
| 631 | +) |
| 632 | + |
| 633 | +func (e *RepoInitStatus) Scan(src interface{}) error { |
| 634 | + switch s := src.(type) { |
| 635 | + case []byte: |
| 636 | + *e = RepoInitStatus(s) |
| 637 | + case string: |
| 638 | + *e = RepoInitStatus(s) |
| 639 | + default: |
| 640 | + return fmt.Errorf("unsupported scan type for RepoInitStatus: %T", src) |
| 641 | + } |
| 642 | + return nil |
| 643 | +} |
| 644 | + |
| 645 | +type NullRepoInitStatus struct { |
| 646 | + RepoInitStatus RepoInitStatus |
| 647 | + Valid bool // Valid is true if RepoInitStatus is not NULL |
| 648 | +} |
| 649 | + |
| 650 | +// Scan implements the Scanner interface. |
| 651 | +func (ns *NullRepoInitStatus) Scan(value interface{}) error { |
| 652 | + if value == nil { |
| 653 | + ns.RepoInitStatus, ns.Valid = "", false |
| 654 | + return nil |
| 655 | + } |
| 656 | + ns.Valid = true |
| 657 | + return ns.RepoInitStatus.Scan(value) |
| 658 | +} |
| 659 | + |
| 660 | +// Value implements the driver Valuer interface. |
| 661 | +func (ns NullRepoInitStatus) Value() (driver.Value, error) { |
| 662 | + if !ns.Valid { |
| 663 | + return nil, nil |
| 664 | + } |
| 665 | + return string(ns.RepoInitStatus), nil |
| 666 | +} |
| 667 | + |
| 668 | +type RepoVisibility string |
| 669 | + |
| 670 | +const ( |
| 671 | + RepoVisibilityPublic RepoVisibility = "public" |
| 672 | + RepoVisibilityPrivate RepoVisibility = "private" |
| 673 | +) |
| 674 | + |
| 675 | +func (e *RepoVisibility) Scan(src interface{}) error { |
| 676 | + switch s := src.(type) { |
| 677 | + case []byte: |
| 678 | + *e = RepoVisibility(s) |
| 679 | + case string: |
| 680 | + *e = RepoVisibility(s) |
| 681 | + default: |
| 682 | + return fmt.Errorf("unsupported scan type for RepoVisibility: %T", src) |
| 683 | + } |
| 684 | + return nil |
| 685 | +} |
| 686 | + |
| 687 | +type NullRepoVisibility struct { |
| 688 | + RepoVisibility RepoVisibility |
| 689 | + Valid bool // Valid is true if RepoVisibility is not NULL |
| 690 | +} |
| 691 | + |
| 692 | +// Scan implements the Scanner interface. |
| 693 | +func (ns *NullRepoVisibility) Scan(value interface{}) error { |
| 694 | + if value == nil { |
| 695 | + ns.RepoVisibility, ns.Valid = "", false |
| 696 | + return nil |
| 697 | + } |
| 698 | + ns.Valid = true |
| 699 | + return ns.RepoVisibility.Scan(value) |
| 700 | +} |
| 701 | + |
| 702 | +// Value implements the driver Valuer interface. |
| 703 | +func (ns NullRepoVisibility) Value() (driver.Value, error) { |
| 704 | + if !ns.Valid { |
| 705 | + return nil, nil |
| 706 | + } |
| 707 | + return string(ns.RepoVisibility), nil |
| 708 | +} |
| 709 | + |
| 710 | +type TransferPrincipalKind string |
| 711 | + |
| 712 | +const ( |
| 713 | + TransferPrincipalKindUser TransferPrincipalKind = "user" |
| 714 | + TransferPrincipalKindOrg TransferPrincipalKind = "org" |
| 715 | +) |
| 716 | + |
| 717 | +func (e *TransferPrincipalKind) Scan(src interface{}) error { |
| 718 | + switch s := src.(type) { |
| 719 | + case []byte: |
| 720 | + *e = TransferPrincipalKind(s) |
| 721 | + case string: |
| 722 | + *e = TransferPrincipalKind(s) |
| 723 | + default: |
| 724 | + return fmt.Errorf("unsupported scan type for TransferPrincipalKind: %T", src) |
| 725 | + } |
| 726 | + return nil |
| 727 | +} |
| 728 | + |
| 729 | +type NullTransferPrincipalKind struct { |
| 730 | + TransferPrincipalKind TransferPrincipalKind |
| 731 | + Valid bool // Valid is true if TransferPrincipalKind is not NULL |
| 732 | +} |
| 733 | + |
| 734 | +// Scan implements the Scanner interface. |
| 735 | +func (ns *NullTransferPrincipalKind) Scan(value interface{}) error { |
| 736 | + if value == nil { |
| 737 | + ns.TransferPrincipalKind, ns.Valid = "", false |
| 738 | + return nil |
| 739 | + } |
| 740 | + ns.Valid = true |
| 741 | + return ns.TransferPrincipalKind.Scan(value) |
| 742 | +} |
| 743 | + |
| 744 | +// Value implements the driver Valuer interface. |
| 745 | +func (ns NullTransferPrincipalKind) Value() (driver.Value, error) { |
| 746 | + if !ns.Valid { |
| 747 | + return nil, nil |
| 748 | + } |
| 749 | + return string(ns.TransferPrincipalKind), nil |
| 750 | +} |
| 751 | + |
| 752 | +type TransferStatus string |
| 753 | + |
| 754 | +const ( |
| 755 | + TransferStatusPending TransferStatus = "pending" |
| 756 | + TransferStatusAccepted TransferStatus = "accepted" |
| 757 | + TransferStatusDeclined TransferStatus = "declined" |
| 758 | + TransferStatusCanceled TransferStatus = "canceled" |
| 759 | + TransferStatusExpired TransferStatus = "expired" |
| 760 | +) |
| 761 | + |
| 762 | +func (e *TransferStatus) Scan(src interface{}) error { |
| 763 | + switch s := src.(type) { |
| 764 | + case []byte: |
| 765 | + *e = TransferStatus(s) |
| 766 | + case string: |
| 767 | + *e = TransferStatus(s) |
| 768 | + default: |
| 769 | + return fmt.Errorf("unsupported scan type for TransferStatus: %T", src) |
| 770 | + } |
| 771 | + return nil |
| 772 | +} |
| 773 | + |
| 774 | +type NullTransferStatus struct { |
| 775 | + TransferStatus TransferStatus |
| 776 | + Valid bool // Valid is true if TransferStatus is not NULL |
| 777 | +} |
| 778 | + |
| 779 | +// Scan implements the Scanner interface. |
| 780 | +func (ns *NullTransferStatus) Scan(value interface{}) error { |
| 781 | + if value == nil { |
| 782 | + ns.TransferStatus, ns.Valid = "", false |
| 783 | + return nil |
| 784 | + } |
| 785 | + ns.Valid = true |
| 786 | + return ns.TransferStatus.Scan(value) |
| 787 | +} |
| 788 | + |
| 789 | +// Value implements the driver Valuer interface. |
| 790 | +func (ns NullTransferStatus) Value() (driver.Value, error) { |
| 791 | + if !ns.Valid { |
| 792 | + return nil, nil |
| 793 | + } |
| 794 | + return string(ns.TransferStatus), nil |
| 795 | +} |
| 796 | + |
| 797 | +type WatchLevel string |
| 798 | + |
| 799 | +const ( |
| 800 | + WatchLevelAll WatchLevel = "all" |
| 801 | + WatchLevelParticipating WatchLevel = "participating" |
| 802 | + WatchLevelIgnore WatchLevel = "ignore" |
| 803 | +) |
| 804 | + |
| 805 | +func (e *WatchLevel) Scan(src interface{}) error { |
| 806 | + switch s := src.(type) { |
| 807 | + case []byte: |
| 808 | + *e = WatchLevel(s) |
| 809 | + case string: |
| 810 | + *e = WatchLevel(s) |
| 811 | + default: |
| 812 | + return fmt.Errorf("unsupported scan type for WatchLevel: %T", src) |
| 813 | + } |
| 814 | + return nil |
| 815 | +} |
| 816 | + |
| 817 | +type NullWatchLevel struct { |
| 818 | + WatchLevel WatchLevel |
| 819 | + Valid bool // Valid is true if WatchLevel is not NULL |
| 820 | +} |
| 821 | + |
| 822 | +// Scan implements the Scanner interface. |
| 823 | +func (ns *NullWatchLevel) Scan(value interface{}) error { |
| 824 | + if value == nil { |
| 825 | + ns.WatchLevel, ns.Valid = "", false |
| 826 | + return nil |
| 827 | + } |
| 828 | + ns.Valid = true |
| 829 | + return ns.WatchLevel.Scan(value) |
| 830 | +} |
| 831 | + |
| 832 | +// Value implements the driver Valuer interface. |
| 833 | +func (ns NullWatchLevel) Value() (driver.Value, error) { |
| 834 | + if !ns.Valid { |
| 835 | + return nil, nil |
| 836 | + } |
| 837 | + return string(ns.WatchLevel), nil |
| 838 | +} |
| 839 | + |
| 840 | +type AuthAuditLog struct { |
| 841 | + ID int64 |
| 842 | + ActorID pgtype.Int8 |
| 843 | + Action string |
| 844 | + TargetType string |
| 845 | + TargetID pgtype.Int8 |
| 846 | + Meta []byte |
| 847 | + CreatedAt pgtype.Timestamptz |
| 848 | +} |
| 849 | + |
| 850 | +type AuthThrottle struct { |
| 851 | + ID int64 |
| 852 | + Scope string |
| 853 | + Identifier string |
| 854 | + Hits int32 |
| 855 | + WindowStartedAt pgtype.Timestamptz |
| 856 | +} |
| 857 | + |
| 858 | +type BranchProtectionRule struct { |
| 859 | + ID int64 |
| 860 | + RepoID int64 |
| 861 | + Pattern string |
| 862 | + PreventForcePush bool |
| 863 | + PreventDeletion bool |
| 864 | + RequirePrForPush bool |
| 865 | + AllowedPusherUserIds []int64 |
| 866 | + RequireSignedCommits bool |
| 867 | + StatusChecksRequired []string |
| 868 | + CreatedAt pgtype.Timestamptz |
| 869 | + UpdatedAt pgtype.Timestamptz |
| 870 | + CreatedByUserID pgtype.Int8 |
| 871 | + RequiredReviewCount int32 |
| 872 | + DismissStaleReviewsOnPush bool |
| 873 | + RequireCodeOwnerReview bool |
| 874 | + DismissStaleStatusChecksOnPush bool |
| 875 | +} |
| 876 | + |
| 877 | +type CheckRun struct { |
| 878 | + ID int64 |
| 879 | + SuiteID int64 |
| 880 | + RepoID int64 |
| 881 | + HeadSha string |
| 882 | + Name string |
| 883 | + Status CheckStatus |
| 884 | + Conclusion NullCheckConclusion |
| 885 | + StartedAt pgtype.Timestamptz |
| 886 | + CompletedAt pgtype.Timestamptz |
| 887 | + DetailsUrl string |
| 888 | + Output []byte |
| 889 | + ExternalID pgtype.Text |
| 890 | + CreatedAt pgtype.Timestamptz |
| 891 | + UpdatedAt pgtype.Timestamptz |
| 892 | +} |
| 893 | + |
| 894 | +type CheckSuite struct { |
| 895 | + ID int64 |
| 896 | + RepoID int64 |
| 897 | + HeadSha string |
| 898 | + AppSlug string |
| 899 | + Status CheckStatus |
| 900 | + Conclusion NullCheckConclusion |
| 901 | + CreatedAt pgtype.Timestamptz |
| 902 | + UpdatedAt pgtype.Timestamptz |
| 903 | +} |
| 904 | + |
| 905 | +type CodeSearchContent struct { |
| 906 | + RepoID int64 |
| 907 | + RefName string |
| 908 | + Path string |
| 909 | + ContentTsv interface{} |
| 910 | + ContentTrgm string |
| 911 | +} |
| 912 | + |
| 913 | +type CodeSearchPath struct { |
| 914 | + RepoID int64 |
| 915 | + RefName string |
| 916 | + Path string |
| 917 | + Tsv interface{} |
| 918 | +} |
| 919 | + |
| 920 | +type DomainEvent struct { |
| 921 | + ID int64 |
| 922 | + ActorUserID pgtype.Int8 |
| 923 | + Kind string |
| 924 | + RepoID pgtype.Int8 |
| 925 | + SourceKind string |
| 926 | + SourceID int64 |
| 927 | + Public bool |
| 928 | + Payload []byte |
| 929 | + CreatedAt pgtype.Timestamptz |
| 930 | +} |
| 931 | + |
| 932 | +type DomainEventsProcessed struct { |
| 933 | + Consumer string |
| 934 | + LastEventID int64 |
| 935 | + UpdatedAt pgtype.Timestamptz |
| 936 | +} |
| 937 | + |
| 938 | +type EmailVerification struct { |
| 939 | + ID int64 |
| 940 | + UserEmailID int64 |
| 941 | + TokenHash []byte |
| 942 | + ExpiresAt pgtype.Timestamptz |
| 943 | + UsedAt pgtype.Timestamptz |
| 944 | + CreatedAt pgtype.Timestamptz |
| 945 | +} |
| 946 | + |
| 947 | +type Issue struct { |
| 948 | + ID int64 |
| 949 | + RepoID int64 |
| 950 | + Number int64 |
| 951 | + Kind IssueKind |
| 952 | + Title string |
| 953 | + Body string |
| 954 | + BodyHtmlCached pgtype.Text |
| 955 | + MdPipelineVersion int32 |
| 956 | + AuthorUserID pgtype.Int8 |
| 957 | + State IssueState |
| 958 | + StateReason NullIssueStateReason |
| 959 | + Locked bool |
| 960 | + LockReason pgtype.Text |
| 961 | + MilestoneID pgtype.Int8 |
| 962 | + CreatedAt pgtype.Timestamptz |
| 963 | + UpdatedAt pgtype.Timestamptz |
| 964 | + EditedAt pgtype.Timestamptz |
| 965 | + ClosedAt pgtype.Timestamptz |
| 966 | + ClosedByUserID pgtype.Int8 |
| 967 | +} |
| 968 | + |
| 969 | +type IssueAssignee struct { |
| 970 | + IssueID int64 |
| 971 | + UserID int64 |
| 972 | + AssignedAt pgtype.Timestamptz |
| 973 | + AssignedByUserID pgtype.Int8 |
| 974 | +} |
| 975 | + |
| 976 | +type IssueComment struct { |
| 977 | + ID int64 |
| 978 | + IssueID int64 |
| 979 | + AuthorUserID pgtype.Int8 |
| 980 | + Body string |
| 981 | + BodyHtmlCached pgtype.Text |
| 982 | + MdPipelineVersion int32 |
| 983 | + CreatedAt pgtype.Timestamptz |
| 984 | + UpdatedAt pgtype.Timestamptz |
| 985 | + EditedAt pgtype.Timestamptz |
| 986 | +} |
| 987 | + |
| 988 | +type IssueEvent struct { |
| 989 | + ID int64 |
| 990 | + IssueID int64 |
| 991 | + ActorUserID pgtype.Int8 |
| 992 | + Kind string |
| 993 | + Meta []byte |
| 994 | + RefTargetID pgtype.Int8 |
| 995 | + CreatedAt pgtype.Timestamptz |
| 996 | +} |
| 997 | + |
| 998 | +type IssueLabel struct { |
| 999 | + IssueID int64 |
| 1000 | + LabelID int64 |
| 1001 | + AppliedAt pgtype.Timestamptz |
| 1002 | + AppliedByUserID pgtype.Int8 |
| 1003 | +} |
| 1004 | + |
| 1005 | +type IssueReference struct { |
| 1006 | + ID int64 |
| 1007 | + SourceIssueID pgtype.Int8 |
| 1008 | + TargetIssueID int64 |
| 1009 | + SourceKind IssueRefSource |
| 1010 | + SourceObjectID pgtype.Int8 |
| 1011 | + CreatedAt pgtype.Timestamptz |
| 1012 | +} |
| 1013 | + |
| 1014 | +type IssuesSearch struct { |
| 1015 | + IssueID int64 |
| 1016 | + RepoID int64 |
| 1017 | + Kind IssueKind |
| 1018 | + State IssueState |
| 1019 | + AuthorUserID pgtype.Int8 |
| 1020 | + Tsv interface{} |
| 1021 | +} |
| 1022 | + |
| 1023 | +type Job struct { |
| 1024 | + ID int64 |
| 1025 | + Kind string |
| 1026 | + Payload []byte |
| 1027 | + RunAt pgtype.Timestamptz |
| 1028 | + Attempts int32 |
| 1029 | + MaxAttempts int32 |
| 1030 | + LastError pgtype.Text |
| 1031 | + LockedBy pgtype.Text |
| 1032 | + LockedAt pgtype.Timestamptz |
| 1033 | + CompletedAt pgtype.Timestamptz |
| 1034 | + FailedAt pgtype.Timestamptz |
| 1035 | + CreatedAt pgtype.Timestamptz |
| 1036 | +} |
| 1037 | + |
| 1038 | +type Label struct { |
| 1039 | + ID int64 |
| 1040 | + RepoID int64 |
| 1041 | + Name string |
| 1042 | + Color string |
| 1043 | + Description string |
| 1044 | + CreatedAt pgtype.Timestamptz |
| 1045 | +} |
| 1046 | + |
| 1047 | +type Meta struct { |
| 1048 | + Key string |
| 1049 | + Value []byte |
| 1050 | + UpdatedAt pgtype.Timestamptz |
| 1051 | +} |
| 1052 | + |
| 1053 | +type Milestone struct { |
| 1054 | + ID int64 |
| 1055 | + RepoID int64 |
| 1056 | + Title string |
| 1057 | + Description string |
| 1058 | + State MilestoneState |
| 1059 | + DueOn pgtype.Timestamptz |
| 1060 | + CreatedAt pgtype.Timestamptz |
| 1061 | + ClosedAt pgtype.Timestamptz |
| 1062 | +} |
| 1063 | + |
| 1064 | +type Notification struct { |
| 1065 | + ID int64 |
| 1066 | + RecipientUserID int64 |
| 1067 | + Kind string |
| 1068 | + Reason string |
| 1069 | + RepoID pgtype.Int8 |
| 1070 | + ThreadKind NullNotificationThreadKind |
| 1071 | + ThreadID pgtype.Int8 |
| 1072 | + SourceEventID pgtype.Int8 |
| 1073 | + Unread bool |
| 1074 | + LastEventAt pgtype.Timestamptz |
| 1075 | + LastActorUserID pgtype.Int8 |
| 1076 | + Summary []byte |
| 1077 | + CreatedAt pgtype.Timestamptz |
| 1078 | + UpdatedAt pgtype.Timestamptz |
| 1079 | +} |
| 1080 | + |
| 1081 | +type NotificationEmailLog struct { |
| 1082 | + ID int64 |
| 1083 | + RecipientUserID int64 |
| 1084 | + NotificationID pgtype.Int8 |
| 1085 | + ThreadKind NullNotificationThreadKind |
| 1086 | + ThreadID pgtype.Int8 |
| 1087 | + SentAt pgtype.Timestamptz |
| 1088 | + MessageID pgtype.Text |
| 1089 | +} |
| 1090 | + |
| 1091 | +type NotificationThread struct { |
| 1092 | + RecipientUserID int64 |
| 1093 | + ThreadKind NotificationThreadKind |
| 1094 | + ThreadID int64 |
| 1095 | + Subscribed bool |
| 1096 | + Reason string |
| 1097 | + UpdatedAt pgtype.Timestamptz |
| 1098 | +} |
| 1099 | + |
| 1100 | +type PasswordReset struct { |
| 1101 | + ID int64 |
| 1102 | + UserID int64 |
| 1103 | + TokenHash []byte |
| 1104 | + ExpiresAt pgtype.Timestamptz |
| 1105 | + UsedAt pgtype.Timestamptz |
| 1106 | + CreatedAt pgtype.Timestamptz |
| 1107 | +} |
| 1108 | + |
| 1109 | +type PrReview struct { |
| 1110 | + ID int64 |
| 1111 | + PrIssueID int64 |
| 1112 | + AuthorUserID pgtype.Int8 |
| 1113 | + State PrReviewState |
| 1114 | + Body string |
| 1115 | + BodyHtmlCached pgtype.Text |
| 1116 | + SubmittedAt pgtype.Timestamptz |
| 1117 | + DismissedAt pgtype.Timestamptz |
| 1118 | + DismissedByUserID pgtype.Int8 |
| 1119 | + DismissalReason string |
| 1120 | +} |
| 1121 | + |
| 1122 | +type PrReviewComment struct { |
| 1123 | + ID int64 |
| 1124 | + PrIssueID int64 |
| 1125 | + ReviewID pgtype.Int8 |
| 1126 | + AuthorUserID pgtype.Int8 |
| 1127 | + FilePath string |
| 1128 | + Side PrReviewSide |
| 1129 | + OriginalCommitSha string |
| 1130 | + OriginalLine int32 |
| 1131 | + OriginalPosition int32 |
| 1132 | + CurrentPosition pgtype.Int4 |
| 1133 | + Body string |
| 1134 | + BodyHtmlCached pgtype.Text |
| 1135 | + InReplyToID pgtype.Int8 |
| 1136 | + Pending bool |
| 1137 | + ResolvedAt pgtype.Timestamptz |
| 1138 | + ResolvedByUserID pgtype.Int8 |
| 1139 | + CreatedAt pgtype.Timestamptz |
| 1140 | + UpdatedAt pgtype.Timestamptz |
| 1141 | + EditedAt pgtype.Timestamptz |
| 1142 | +} |
| 1143 | + |
| 1144 | +type PrReviewRequest struct { |
| 1145 | + ID int64 |
| 1146 | + PrIssueID int64 |
| 1147 | + RequestedUserID pgtype.Int8 |
| 1148 | + RequestedTeamID pgtype.Int8 |
| 1149 | + RequestedByUserID pgtype.Int8 |
| 1150 | + RequestedAt pgtype.Timestamptz |
| 1151 | + DismissedAt pgtype.Timestamptz |
| 1152 | + SatisfiedByReviewID pgtype.Int8 |
| 1153 | +} |
| 1154 | + |
| 1155 | +type PullRequest struct { |
| 1156 | + IssueID int64 |
| 1157 | + BaseRef string |
| 1158 | + HeadRef string |
| 1159 | + HeadRepoID int64 |
| 1160 | + BaseOid string |
| 1161 | + HeadOid string |
| 1162 | + Draft bool |
| 1163 | + Mergeable pgtype.Bool |
| 1164 | + MergeableState PrMergeableState |
| 1165 | + MergeCommitSha pgtype.Text |
| 1166 | + MergedAt pgtype.Timestamptz |
| 1167 | + MergedByUserID pgtype.Int8 |
| 1168 | + MergeMethod NullPrMergeMethod |
| 1169 | + BaseOidAtMerge pgtype.Text |
| 1170 | + HeadOidAtMerge pgtype.Text |
| 1171 | + LastSynchronizedAt pgtype.Timestamptz |
| 1172 | +} |
| 1173 | + |
| 1174 | +type PullRequestCommit struct { |
| 1175 | + PrID int64 |
| 1176 | + Sha string |
| 1177 | + Position int32 |
| 1178 | + AuthorName string |
| 1179 | + AuthorEmail string |
| 1180 | + CommitterName string |
| 1181 | + CommitterEmail string |
| 1182 | + Subject string |
| 1183 | + Body string |
| 1184 | + AuthoredAt pgtype.Timestamptz |
| 1185 | + CommittedAt pgtype.Timestamptz |
| 1186 | +} |
| 1187 | + |
| 1188 | +type PullRequestFile struct { |
| 1189 | + PrID int64 |
| 1190 | + Path string |
| 1191 | + Status PrFileStatus |
| 1192 | + OldPath pgtype.Text |
| 1193 | + Additions int32 |
| 1194 | + Deletions int32 |
| 1195 | + Changes int32 |
| 1196 | +} |
| 1197 | + |
| 1198 | +type PushEvent struct { |
| 1199 | + ID int64 |
| 1200 | + RepoID int64 |
| 1201 | + PusherUserID pgtype.Int8 |
| 1202 | + BeforeSha string |
| 1203 | + AfterSha string |
| 1204 | + Ref string |
| 1205 | + Protocol string |
| 1206 | + RequestID string |
| 1207 | + ProcessedAt pgtype.Timestamptz |
| 1208 | + CreatedAt pgtype.Timestamptz |
| 1209 | +} |
| 1210 | + |
| 1211 | +type Repo struct { |
| 1212 | + ID int64 |
| 1213 | + OwnerUserID pgtype.Int8 |
| 1214 | + OwnerOrgID pgtype.Int8 |
| 1215 | + Name string |
| 1216 | + Description string |
| 1217 | + Visibility RepoVisibility |
| 1218 | + DefaultBranch string |
| 1219 | + IsArchived bool |
| 1220 | + ArchivedAt pgtype.Timestamptz |
| 1221 | + DeletedAt pgtype.Timestamptz |
| 1222 | + DiskUsedBytes int64 |
| 1223 | + ForkOfRepoID pgtype.Int8 |
| 1224 | + LicenseKey pgtype.Text |
| 1225 | + PrimaryLanguage pgtype.Text |
| 1226 | + HasIssues bool |
| 1227 | + HasPulls bool |
| 1228 | + CreatedAt pgtype.Timestamptz |
| 1229 | + UpdatedAt pgtype.Timestamptz |
| 1230 | + DefaultBranchOid pgtype.Text |
| 1231 | + AllowSquashMerge bool |
| 1232 | + AllowRebaseMerge bool |
| 1233 | + AllowMergeCommit bool |
| 1234 | + DefaultMergeMethod PrMergeMethod |
| 1235 | + StarCount int64 |
| 1236 | + WatcherCount int64 |
| 1237 | + ForkCount int64 |
| 1238 | + InitStatus RepoInitStatus |
| 1239 | + LastIndexedOid pgtype.Text |
| 1240 | +} |
| 1241 | + |
| 1242 | +type RepoCollaborator struct { |
| 1243 | + RepoID int64 |
| 1244 | + UserID int64 |
| 1245 | + Role CollabRole |
| 1246 | + AddedAt pgtype.Timestamptz |
| 1247 | + AddedByUserID pgtype.Int8 |
| 1248 | +} |
| 1249 | + |
| 1250 | +type RepoIssueCounter struct { |
| 1251 | + RepoID int64 |
| 1252 | + NextNumber int64 |
| 1253 | +} |
| 1254 | + |
| 1255 | +type RepoRedirect struct { |
| 1256 | + OldOwnerUserID pgtype.Int8 |
| 1257 | + OldOwnerOrgID pgtype.Int8 |
| 1258 | + OldName string |
| 1259 | + RepoID int64 |
| 1260 | + RedirectedAt pgtype.Timestamptz |
| 1261 | +} |
| 1262 | + |
| 1263 | +type RepoTransferRequest struct { |
| 1264 | + ID int64 |
| 1265 | + RepoID int64 |
| 1266 | + FromUserID int64 |
| 1267 | + ToPrincipalKind TransferPrincipalKind |
| 1268 | + ToPrincipalID int64 |
| 1269 | + CreatedBy int64 |
| 1270 | + CreatedAt pgtype.Timestamptz |
| 1271 | + ExpiresAt pgtype.Timestamptz |
| 1272 | + Status TransferStatus |
| 1273 | + AcceptedAt pgtype.Timestamptz |
| 1274 | + DeclinedAt pgtype.Timestamptz |
| 1275 | + CanceledAt pgtype.Timestamptz |
| 1276 | +} |
| 1277 | + |
| 1278 | +type ReposSearch struct { |
| 1279 | + RepoID int64 |
| 1280 | + Tsv interface{} |
| 1281 | +} |
| 1282 | + |
| 1283 | +type Star struct { |
| 1284 | + UserID int64 |
| 1285 | + RepoID int64 |
| 1286 | + StarredAt pgtype.Timestamptz |
| 1287 | +} |
| 1288 | + |
| 1289 | +type User struct { |
| 1290 | + ID int64 |
| 1291 | + Username string |
| 1292 | + DisplayName string |
| 1293 | + PrimaryEmailID pgtype.Int8 |
| 1294 | + PasswordHash string |
| 1295 | + PasswordAlgo string |
| 1296 | + PasswordUpdatedAt pgtype.Timestamptz |
| 1297 | + EmailVerified bool |
| 1298 | + LastLoginAt pgtype.Timestamptz |
| 1299 | + SuspendedAt pgtype.Timestamptz |
| 1300 | + SuspendedReason pgtype.Text |
| 1301 | + DeletedAt pgtype.Timestamptz |
| 1302 | + CreatedAt pgtype.Timestamptz |
| 1303 | + UpdatedAt pgtype.Timestamptz |
| 1304 | + Bio string |
| 1305 | + Location string |
| 1306 | + Website string |
| 1307 | + Company string |
| 1308 | + Pronouns string |
| 1309 | + AvatarObjectKey pgtype.Text |
| 1310 | + Theme string |
| 1311 | + SessionEpoch int32 |
| 1312 | +} |
| 1313 | + |
| 1314 | +type UserEmail struct { |
| 1315 | + ID int64 |
| 1316 | + UserID int64 |
| 1317 | + Email string |
| 1318 | + IsPrimary bool |
| 1319 | + Verified bool |
| 1320 | + VerificationTokenHash []byte |
| 1321 | + VerificationSentAt pgtype.Timestamptz |
| 1322 | + VerifiedAt pgtype.Timestamptz |
| 1323 | + CreatedAt pgtype.Timestamptz |
| 1324 | +} |
| 1325 | + |
| 1326 | +type UserNotificationPref struct { |
| 1327 | + UserID int64 |
| 1328 | + Key string |
| 1329 | + Value []byte |
| 1330 | + UpdatedAt pgtype.Timestamptz |
| 1331 | +} |
| 1332 | + |
| 1333 | +type UserRecoveryCode struct { |
| 1334 | + ID int64 |
| 1335 | + UserID int64 |
| 1336 | + CodeHash []byte |
| 1337 | + UsedAt pgtype.Timestamptz |
| 1338 | + GeneratedAt pgtype.Timestamptz |
| 1339 | + CreatedAt pgtype.Timestamptz |
| 1340 | +} |
| 1341 | + |
| 1342 | +type UserSshKey struct { |
| 1343 | + ID int64 |
| 1344 | + UserID int64 |
| 1345 | + Title string |
| 1346 | + FingerprintSha256 string |
| 1347 | + KeyType string |
| 1348 | + KeyBits int32 |
| 1349 | + PublicKey string |
| 1350 | + LastUsedAt pgtype.Timestamptz |
| 1351 | + LastUsedIp *netip.Addr |
| 1352 | + CreatedAt pgtype.Timestamptz |
| 1353 | +} |
| 1354 | + |
| 1355 | +type UserToken struct { |
| 1356 | + ID int64 |
| 1357 | + UserID int64 |
| 1358 | + Name string |
| 1359 | + TokenHash []byte |
| 1360 | + TokenPrefix string |
| 1361 | + Scopes []string |
| 1362 | + ExpiresAt pgtype.Timestamptz |
| 1363 | + LastUsedAt pgtype.Timestamptz |
| 1364 | + LastUsedIp *netip.Addr |
| 1365 | + RevokedAt pgtype.Timestamptz |
| 1366 | + CreatedAt pgtype.Timestamptz |
| 1367 | +} |
| 1368 | + |
| 1369 | +type UserTotp struct { |
| 1370 | + ID int64 |
| 1371 | + UserID int64 |
| 1372 | + SecretEncrypted []byte |
| 1373 | + SecretNonce []byte |
| 1374 | + ConfirmedAt pgtype.Timestamptz |
| 1375 | + LastUsedCounter int64 |
| 1376 | + CreatedAt pgtype.Timestamptz |
| 1377 | + UpdatedAt pgtype.Timestamptz |
| 1378 | +} |
| 1379 | + |
| 1380 | +type UsernameRedirect struct { |
| 1381 | + OldUsername string |
| 1382 | + UserID int64 |
| 1383 | + ChangedAt pgtype.Timestamptz |
| 1384 | +} |
| 1385 | + |
| 1386 | +type UsersSearch struct { |
| 1387 | + UserID int64 |
| 1388 | + Tsv interface{} |
| 1389 | +} |
| 1390 | + |
| 1391 | +type Watch struct { |
| 1392 | + UserID int64 |
| 1393 | + RepoID int64 |
| 1394 | + Level WatchLevel |
| 1395 | + UpdatedAt pgtype.Timestamptz |
| 1396 | +} |
| 1397 | + |
| 1398 | +type WebhookEventsPending struct { |
| 1399 | + ID int64 |
| 1400 | + RepoID int64 |
| 1401 | + EventKind string |
| 1402 | + Payload []byte |
| 1403 | + CreatedAt pgtype.Timestamptz |
| 1404 | +} |