limn-review 0.1.123

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (474) hide show
  1. package/LICENSE +110 -0
  2. package/README.md +133 -0
  3. package/dist/ai/runtime.js +535 -0
  4. package/dist/api/plugins/auth.js +169 -0
  5. package/dist/api/plugins/error-handler.js +114 -0
  6. package/dist/api/plugins/rate-limit.js +855 -0
  7. package/dist/api/plugins/security.js +321 -0
  8. package/dist/api/routes/activity.js +103 -0
  9. package/dist/api/routes/ai-runtime.js +67 -0
  10. package/dist/api/routes/auth.js +194 -0
  11. package/dist/api/routes/billing.js +209 -0
  12. package/dist/api/routes/bot-triage.js +1289 -0
  13. package/dist/api/routes/conflicts.js +730 -0
  14. package/dist/api/routes/contact.js +318 -0
  15. package/dist/api/routes/daily-brief.js +58 -0
  16. package/dist/api/routes/flow.js +71 -0
  17. package/dist/api/routes/health.js +7 -0
  18. package/dist/api/routes/insights.js +200 -0
  19. package/dist/api/routes/me.js +458 -0
  20. package/dist/api/routes/mentions.js +22 -0
  21. package/dist/api/routes/mergers.js +8 -0
  22. package/dist/api/routes/ml-labels.js +109 -0
  23. package/dist/api/routes/open-prs.js +35 -0
  24. package/dist/api/routes/prs.js +1633 -0
  25. package/dist/api/routes/reactions.js +217 -0
  26. package/dist/api/routes/repos.js +563 -0
  27. package/dist/api/routes/search.js +41 -0
  28. package/dist/api/routes/threads.js +118 -0
  29. package/dist/api/routes/timeline.js +150 -0
  30. package/dist/api/routes/users.js +67 -0
  31. package/dist/api/routes/webhooks.js +181 -0
  32. package/dist/api/routes/workspaces.js +322 -0
  33. package/dist/app.js +274 -0
  34. package/dist/ascii.js +19 -0
  35. package/dist/auth/account.js +482 -0
  36. package/dist/auth/crypto.js +46 -0
  37. package/dist/bot-triage/resolve.js +59 -0
  38. package/dist/cli.js +388 -0
  39. package/dist/coding/activity.js +80 -0
  40. package/dist/coding/agent.js +288 -0
  41. package/dist/coding/ai-fix/auto-fix.js +212 -0
  42. package/dist/coding/ai-fix/manager.js +370 -0
  43. package/dist/coding/ai-fix/persist.js +213 -0
  44. package/dist/coding/ai-fix/pr-context.js +58 -0
  45. package/dist/coding/ai-fix/prompts.js +138 -0
  46. package/dist/coding/ai-fix/review-seed.js +357 -0
  47. package/dist/coding/ai-fix/routes.js +425 -0
  48. package/dist/coding/git-ops.js +321 -0
  49. package/dist/coding/git.js +184 -0
  50. package/dist/coding/merge.js +262 -0
  51. package/dist/coding/safe-path.js +75 -0
  52. package/dist/coding/schema.js +43 -0
  53. package/dist/config.js +648 -0
  54. package/dist/conflict/diff.js +304 -0
  55. package/dist/conflict/git.js +118 -0
  56. package/dist/conflict/hash.js +73 -0
  57. package/dist/conflict/janitor.js +218 -0
  58. package/dist/conflict/land.js +675 -0
  59. package/dist/conflict/model-types.js +2 -0
  60. package/dist/conflict/model.js +1081 -0
  61. package/dist/conflict/parse.js +142 -0
  62. package/dist/conflict/seam.js +136 -0
  63. package/dist/conflict/session.js +532 -0
  64. package/dist/conflict/suggestion.js +398 -0
  65. package/dist/conflict/tokens.js +72 -0
  66. package/dist/data-dir.js +112 -0
  67. package/dist/db/actor-lanes.js +213 -0
  68. package/dist/db/automation-ids.js +97 -0
  69. package/dist/db/automation-output.js +349 -0
  70. package/dist/db/blast-radius-query.js +36 -0
  71. package/dist/db/blast-radius.js +226 -0
  72. package/dist/db/bot-dormancy.js +115 -0
  73. package/dist/db/bot-overlap.js +579 -0
  74. package/dist/db/bot-volume.js +722 -0
  75. package/dist/db/bot-window.js +35 -0
  76. package/dist/db/branch-queries.js +310 -0
  77. package/dist/db/change-shape.js +243 -0
  78. package/dist/db/changepoint.js +75 -0
  79. package/dist/db/cleanup.js +36 -0
  80. package/dist/db/client.js +102 -0
  81. package/dist/db/code-loc.js +388 -0
  82. package/dist/db/credits.js +79 -0
  83. package/dist/db/daily-brief.js +406 -0
  84. package/dist/db/dependency-cards.js +145 -0
  85. package/dist/db/erase-account.js +255 -0
  86. package/dist/db/export-account.js +189 -0
  87. package/dist/db/failing-checks.js +124 -0
  88. package/dist/db/file-coupling.js +197 -0
  89. package/dist/db/flow-detail.js +661 -0
  90. package/dist/db/flow-pointers.js +197 -0
  91. package/dist/db/flow-settings.js +67 -0
  92. package/dist/db/forecast.js +114 -0
  93. package/dist/db/line-overlap.js +81 -0
  94. package/dist/db/merge-queue.js +189 -0
  95. package/dist/db/migrate.js +17 -0
  96. package/dist/db/migrations/0000_purple_ben_grimm.sql +155 -0
  97. package/dist/db/migrations/0001_colorful_ozymandias.sql +31 -0
  98. package/dist/db/migrations/0002_famous_sersi.sql +9 -0
  99. package/dist/db/migrations/0003_clever_shinobi_shaw.sql +3 -0
  100. package/dist/db/migrations/0004_pale_scalphunter.sql +1 -0
  101. package/dist/db/migrations/0005_daffy_guardian.sql +2 -0
  102. package/dist/db/migrations/0006_cute_violations.sql +45 -0
  103. package/dist/db/migrations/0007_dark_anthem.sql +2 -0
  104. package/dist/db/migrations/0008_multitenant_accounts.sql +44 -0
  105. package/dist/db/migrations/0009_lean_bodies.sql +13 -0
  106. package/dist/db/migrations/0010_lean_bodies_nullable.sql +56 -0
  107. package/dist/db/migrations/0011_pr_diff_size.sql +10 -0
  108. package/dist/db/migrations/0012_findings_included_default.sql +7 -0
  109. package/dist/db/migrations/0013_review_routing.sql +9 -0
  110. package/dist/db/migrations/0014_account_last_active.sql +6 -0
  111. package/dist/db/migrations/0015_repos_inbox_watch.sql +9 -0
  112. package/dist/db/migrations/0016_repo_viewer_permission.sql +7 -0
  113. package/dist/db/migrations/0017_account_display_name.sql +7 -0
  114. package/dist/db/migrations/0018_finding_comment_kind.sql +7 -0
  115. package/dist/db/migrations/0019_finding_file_in_diff.sql +7 -0
  116. package/dist/db/migrations/0020_claude_review_cost_telemetry.sql +11 -0
  117. package/dist/db/migrations/0021_account_feed_last_seen.sql +7 -0
  118. package/dist/db/migrations/0022_ci_status_events.sql +21 -0
  119. package/dist/db/migrations/0023_ai_usage.sql +21 -0
  120. package/dist/db/migrations/0024_pr_head_ref_name.sql +6 -0
  121. package/dist/db/migrations/0025_account_billing.sql +7 -0
  122. package/dist/db/migrations/0026_ai_credit_allowance.sql +5 -0
  123. package/dist/db/migrations/0027_user_github_type.sql +6 -0
  124. package/dist/db/migrations/0028_bot_review_classification.sql +21 -0
  125. package/dist/db/migrations/0029_bot_mute_rules.sql +19 -0
  126. package/dist/db/migrations/0030_teams.sql +32 -0
  127. package/dist/db/migrations/0031_events_pr_idx.sql +7 -0
  128. package/dist/db/migrations/0032_benchmark_contributions.sql +29 -0
  129. package/dist/db/migrations/0033_thread_addressed_confidence.sql +9 -0
  130. package/dist/db/migrations/0034_thread_resolved_at.sql +6 -0
  131. package/dist/db/migrations/0035_pr_first_review_requested_at.sql +5 -0
  132. package/dist/db/migrations/0036_search_index.sql +25 -0
  133. package/dist/db/migrations/0037_author_indexes.sql +15 -0
  134. package/dist/db/migrations/0038_auto_merge_requests.sql +37 -0
  135. package/dist/db/migrations/0039_branch_status.sql +44 -0
  136. package/dist/db/migrations/0040_pr_review_decision.sql +10 -0
  137. package/dist/db/migrations/0041_branch_commit_detail.sql +38 -0
  138. package/dist/db/migrations/0042_repo_reviewers.sql +176 -0
  139. package/dist/db/migrations/0043_account_reviewers.sql +131 -0
  140. package/dist/db/migrations/0044_workspaces.sql +138 -0
  141. package/dist/db/migrations/0045_workspace_reviewers.sql +180 -0
  142. package/dist/db/migrations/0046_drop_inbox_watch.sql +25 -0
  143. package/dist/db/migrations/0047_ml_comment_labels.sql +40 -0
  144. package/dist/db/migrations/0048_ml_vendor_severity.sql +31 -0
  145. package/dist/db/migrations/0049_seat_pricing_repo_description.sql +21 -0
  146. package/dist/db/migrations/0050_users_app_slug.sql +12 -0
  147. package/dist/db/migrations/0051_auto_merge_queue.sql +17 -0
  148. package/dist/db/migrations/0052_trunk_ci_status_events.sql +43 -0
  149. package/dist/db/migrations/0053_automation_roles.sql +79 -0
  150. package/dist/db/migrations/0054_automation_vendor_kinds.sql +514 -0
  151. package/dist/db/migrations/0055_auto_merge_phase.sql +12 -0
  152. package/dist/db/migrations/0056_pr_mentions.sql +22 -0
  153. package/dist/db/migrations/0057_large_pr_threshold.sql +14 -0
  154. package/dist/db/migrations/0058_pending_mute.sql +53 -0
  155. package/dist/db/migrations/0059_merge_queue_state.sql +33 -0
  156. package/dist/db/migrations/0060_drop_my_turn_dismissals.sql +33 -0
  157. package/dist/db/migrations/0061_auto_merge_durable_anchors.sql +27 -0
  158. package/dist/db/migrations/0062_blast_radius_config.sql +21 -0
  159. package/dist/db/migrations/0063_repo_file_coupling.sql +33 -0
  160. package/dist/db/migrations/0064_pr_content_kind.sql +21 -0
  161. package/dist/db/migrations/0065_workspace_flow_settings.sql +13 -0
  162. package/dist/db/migrations/0066_review_request_events.sql +31 -0
  163. package/dist/db/migrations/0067_pr_security_signals.sql +86 -0
  164. package/dist/db/migrations/0068_my_turn_settings.sql +18 -0
  165. package/dist/db/migrations/0069_my_turn_dismissals.sql +41 -0
  166. package/dist/db/migrations/0070_claude_review_follow_up_ticket.sql +22 -0
  167. package/dist/db/migrations/0071_claude_review_trigger.sql +11 -0
  168. package/dist/db/migrations/0072_commit_message_headline.sql +13 -0
  169. package/dist/db/migrations/0073_claude_review_chat.sql +31 -0
  170. package/dist/db/migrations/0074_adopt_agentic_tables.sql +98 -0
  171. package/dist/db/migrations/0075_review_lens_drop_learnings.sql +15 -0
  172. package/dist/db/migrations/0076_claude_review_threads.sql +17 -0
  173. package/dist/db/migrations/0077_claude_review_ci_failures.sql +10 -0
  174. package/dist/db/migrations/0078_ai_fix_change_report.sql +17 -0
  175. package/dist/db/migrations/0079_claude_finding_story.sql +16 -0
  176. package/dist/db/migrations/meta/0000_snapshot.json +1116 -0
  177. package/dist/db/migrations/meta/0001_snapshot.json +1321 -0
  178. package/dist/db/migrations/meta/0002_snapshot.json +1375 -0
  179. package/dist/db/migrations/meta/0003_snapshot.json +1396 -0
  180. package/dist/db/migrations/meta/0004_snapshot.json +1416 -0
  181. package/dist/db/migrations/meta/0005_snapshot.json +1430 -0
  182. package/dist/db/migrations/meta/0006_snapshot.json +1745 -0
  183. package/dist/db/migrations/meta/0007_snapshot.json +1759 -0
  184. package/dist/db/migrations/meta/_journal.json +566 -0
  185. package/dist/db/migrations-pg/0000_tired_alex_power.sql +268 -0
  186. package/dist/db/migrations-pg/0001_dizzy_mockingbird.sql +3 -0
  187. package/dist/db/migrations-pg/0002_glorious_ikaris.sql +4 -0
  188. package/dist/db/migrations-pg/0003_melted_secret_warriors.sql +2 -0
  189. package/dist/db/migrations-pg/0004_numerous_triton.sql +1 -0
  190. package/dist/db/migrations-pg/0005_thick_blockbuster.sql +2 -0
  191. package/dist/db/migrations-pg/0006_majestic_dracula.sql +1 -0
  192. package/dist/db/migrations-pg/0007_same_human_torch.sql +2 -0
  193. package/dist/db/migrations-pg/0008_slimy_toxin.sql +1 -0
  194. package/dist/db/migrations-pg/0009_fuzzy_jubilee.sql +4 -0
  195. package/dist/db/migrations-pg/0010_late_hammerhead.sql +1 -0
  196. package/dist/db/migrations-pg/0011_happy_leech.sql +16 -0
  197. package/dist/db/migrations-pg/0012_woozy_captain_midlands.sql +16 -0
  198. package/dist/db/migrations-pg/0013_yielding_nicolaos.sql +1 -0
  199. package/dist/db/migrations-pg/0014_wakeful_bill_hollister.sql +2 -0
  200. package/dist/db/migrations-pg/0015_aspiring_black_tom.sql +1 -0
  201. package/dist/db/migrations-pg/0016_cute_ghost_rider.sql +30 -0
  202. package/dist/db/migrations-pg/0017_far_changeling.sql +24 -0
  203. package/dist/db/migrations-pg/0018_fancy_miss_america.sql +1 -0
  204. package/dist/db/migrations-pg/0019_benchmark_contributions.sql +22 -0
  205. package/dist/db/migrations-pg/0020_majestic_edwin_jarvis.sql +3 -0
  206. package/dist/db/migrations-pg/0021_green_salo.sql +1 -0
  207. package/dist/db/migrations-pg/0022_wise_baron_strucker.sql +1 -0
  208. package/dist/db/migrations-pg/0023_search_index.sql +19 -0
  209. package/dist/db/migrations-pg/0024_author_indexes.sql +9 -0
  210. package/dist/db/migrations-pg/0025_auto_merge_requests.sql +26 -0
  211. package/dist/db/migrations-pg/0026_branch_status.sql +32 -0
  212. package/dist/db/migrations-pg/0027_pr_review_decision.sql +5 -0
  213. package/dist/db/migrations-pg/0028_branch_commit_detail.sql +9 -0
  214. package/dist/db/migrations-pg/0029_repo_reviewers.sql +127 -0
  215. package/dist/db/migrations-pg/0030_account_reviewers.sql +77 -0
  216. package/dist/db/migrations-pg/0031_workspaces.sql +131 -0
  217. package/dist/db/migrations-pg/0032_workspace_reviewers.sql +165 -0
  218. package/dist/db/migrations-pg/0033_drop_inbox_watch.sql +14 -0
  219. package/dist/db/migrations-pg/0034_ml_comment_labels.sql +33 -0
  220. package/dist/db/migrations-pg/0035_ml_vendor_severity.sql +16 -0
  221. package/dist/db/migrations-pg/0036_seat_pricing_repo_description.sql +12 -0
  222. package/dist/db/migrations-pg/0037_users_app_slug.sql +9 -0
  223. package/dist/db/migrations-pg/0038_auto_merge_queue.sql +10 -0
  224. package/dist/db/migrations-pg/0039_trunk_ci_status_events.sql +27 -0
  225. package/dist/db/migrations-pg/0040_automation_roles.sql +63 -0
  226. package/dist/db/migrations-pg/0041_automation_vendor_kinds.sql +488 -0
  227. package/dist/db/migrations-pg/0042_auto_merge_phase.sql +8 -0
  228. package/dist/db/migrations-pg/0043_pr_mentions.sql +19 -0
  229. package/dist/db/migrations-pg/0044_large_pr_threshold.sql +6 -0
  230. package/dist/db/migrations-pg/0045_pending_mute.sql +26 -0
  231. package/dist/db/migrations-pg/0046_merge_queue_state.sql +18 -0
  232. package/dist/db/migrations-pg/0047_drop_my_turn_dismissals.sql +21 -0
  233. package/dist/db/migrations-pg/0048_auto_merge_durable_anchors.sql +27 -0
  234. package/dist/db/migrations-pg/0049_blast_radius_config.sql +8 -0
  235. package/dist/db/migrations-pg/0050_repo_file_coupling.sql +13 -0
  236. package/dist/db/migrations-pg/0051_pr_content_kind.sql +6 -0
  237. package/dist/db/migrations-pg/0052_workspace_flow_settings.sql +4 -0
  238. package/dist/db/migrations-pg/0053_review_request_events.sql +18 -0
  239. package/dist/db/migrations-pg/0054_pr_security_signals.sql +59 -0
  240. package/dist/db/migrations-pg/0055_my_turn_settings.sql +6 -0
  241. package/dist/db/migrations-pg/0056_my_turn_dismissals.sql +21 -0
  242. package/dist/db/migrations-pg/0057_claude_review_follow_up_ticket.sql +8 -0
  243. package/dist/db/migrations-pg/0058_claude_review_trigger.sql +4 -0
  244. package/dist/db/migrations-pg/0059_commit_message_headline.sql +3 -0
  245. package/dist/db/migrations-pg/0060_claude_review_chat.sql +24 -0
  246. package/dist/db/migrations-pg/0061_adopt_agentic_tables.sql +79 -0
  247. package/dist/db/migrations-pg/0062_review_lens_drop_learnings.sql +5 -0
  248. package/dist/db/migrations-pg/0063_claude_review_threads.sql +7 -0
  249. package/dist/db/migrations-pg/0064_claude_review_ci_failures.sql +4 -0
  250. package/dist/db/migrations-pg/0065_ai_fix_change_report.sql +9 -0
  251. package/dist/db/migrations-pg/0066_claude_finding_story.sql +7 -0
  252. package/dist/db/migrations-pg/meta/0000_snapshot.json +2137 -0
  253. package/dist/db/migrations-pg/meta/0001_snapshot.json +2143 -0
  254. package/dist/db/migrations-pg/meta/0002_snapshot.json +2170 -0
  255. package/dist/db/migrations-pg/meta/0003_snapshot.json +2182 -0
  256. package/dist/db/migrations-pg/meta/0004_snapshot.json +2188 -0
  257. package/dist/db/migrations-pg/meta/0005_snapshot.json +2201 -0
  258. package/dist/db/migrations-pg/meta/0006_snapshot.json +2207 -0
  259. package/dist/db/migrations-pg/meta/0007_snapshot.json +2219 -0
  260. package/dist/db/migrations-pg/meta/0008_snapshot.json +2226 -0
  261. package/dist/db/migrations-pg/meta/0009_snapshot.json +2250 -0
  262. package/dist/db/migrations-pg/meta/0010_snapshot.json +2256 -0
  263. package/dist/db/migrations-pg/meta/0011_snapshot.json +2412 -0
  264. package/dist/db/migrations-pg/meta/0012_snapshot.json +2528 -0
  265. package/dist/db/migrations-pg/meta/0013_snapshot.json +2534 -0
  266. package/dist/db/migrations-pg/meta/0014_snapshot.json +2547 -0
  267. package/dist/db/migrations-pg/meta/0015_snapshot.json +2553 -0
  268. package/dist/db/migrations-pg/meta/0016_snapshot.json +2774 -0
  269. package/dist/db/migrations-pg/meta/0017_snapshot.json +2999 -0
  270. package/dist/db/migrations-pg/meta/0018_snapshot.json +3020 -0
  271. package/dist/db/migrations-pg/meta/0020_snapshot.json +3228 -0
  272. package/dist/db/migrations-pg/meta/0021_snapshot.json +3234 -0
  273. package/dist/db/migrations-pg/meta/0022_snapshot.json +3240 -0
  274. package/dist/db/migrations-pg/meta/_journal.json +475 -0
  275. package/dist/db/ml-labels.js +1666 -0
  276. package/dist/db/my-turn-dismissals.js +343 -0
  277. package/dist/db/my-turn-settings.js +34 -0
  278. package/dist/db/pending-classify.js +46 -0
  279. package/dist/db/pending-mute.js +171 -0
  280. package/dist/db/pending-tabs.js +238 -0
  281. package/dist/db/period-metrics.js +820 -0
  282. package/dist/db/person-period.js +763 -0
  283. package/dist/db/pr-intervals.js +930 -0
  284. package/dist/db/pr-liveness.js +240 -0
  285. package/dist/db/pr-mentions.js +279 -0
  286. package/dist/db/pr-merge-queue-stamp.js +91 -0
  287. package/dist/db/queries.js +14631 -0
  288. package/dist/db/reaction-targets.js +94 -0
  289. package/dist/db/repo-activity.js +171 -0
  290. package/dist/db/retention.js +138 -0
  291. package/dist/db/review-threads-for-review.js +240 -0
  292. package/dist/db/run-migrations.js +24 -0
  293. package/dist/db/schema.pg.js +1220 -0
  294. package/dist/db/schema.sqlite.js +1801 -0
  295. package/dist/db/search.js +317 -0
  296. package/dist/db/security-alerts.js +218 -0
  297. package/dist/db/synthesis-input.js +565 -0
  298. package/dist/db/triage.js +320 -0
  299. package/dist/db/usage.js +63 -0
  300. package/dist/db/work-plan.js +1086 -0
  301. package/dist/db/working-hours.js +161 -0
  302. package/dist/feed/my-turn.js +122 -0
  303. package/dist/github/actions-logs.js +397 -0
  304. package/dist/github/auth.js +86 -0
  305. package/dist/github/branch-queries.js +229 -0
  306. package/dist/github/client.js +454 -0
  307. package/dist/github/codeowners.js +221 -0
  308. package/dist/github/commit-checks.js +105 -0
  309. package/dist/github/compare.js +110 -0
  310. package/dist/github/diff-anchor.js +227 -0
  311. package/dist/github/mutations.js +706 -0
  312. package/dist/github/pr-file-content.js +254 -0
  313. package/dist/github/pr-liveness.js +161 -0
  314. package/dist/github/queries.js +875 -0
  315. package/dist/github/rate-budget.js +129 -0
  316. package/dist/github/reactions.js +161 -0
  317. package/dist/github/reviewer-suggest.js +104 -0
  318. package/dist/github/team-reviewers.js +96 -0
  319. package/dist/index.js +184 -0
  320. package/dist/merge/auto-merge-runner.js +960 -0
  321. package/dist/ml/severity-client.js +218 -0
  322. package/dist/pr/detail-enricher.js +26 -0
  323. package/dist/pro/bind.js +302 -0
  324. package/dist/pro/contract.js +37 -0
  325. package/dist/pro/migrate.js +64 -0
  326. package/dist/review/agent-context.js +127 -0
  327. package/dist/review/agent.js +385 -0
  328. package/dist/review/agentic.js +59 -0
  329. package/dist/review/auth.js +94 -0
  330. package/dist/review/chat-agent.js +179 -0
  331. package/dist/review/claude-review/ai-ready.js +16 -0
  332. package/dist/review/claude-review/auto-settings.js +139 -0
  333. package/dist/review/claude-review/auto.js +244 -0
  334. package/dist/review/claude-review/chat.js +489 -0
  335. package/dist/review/claude-review/ci-failures.js +350 -0
  336. package/dist/review/claude-review/follow-up.js +310 -0
  337. package/dist/review/claude-review/manager.js +686 -0
  338. package/dist/review/claude-review/persist.js +996 -0
  339. package/dist/review/claude-review/prompts.js +357 -0
  340. package/dist/review/claude-review/routes.js +518 -0
  341. package/dist/review/claude-review/routing.js +61 -0
  342. package/dist/review/claude-review/specialists.js +190 -0
  343. package/dist/review/claude-review/threads.js +265 -0
  344. package/dist/review/claude-review/ticket.js +282 -0
  345. package/dist/review/clone-hygiene.js +380 -0
  346. package/dist/review/clone-manager.js +367 -0
  347. package/dist/review/llm.js +113 -0
  348. package/dist/review/model-options.js +48 -0
  349. package/dist/review/plugin-providers.js +12 -0
  350. package/dist/review/post-review.js +216 -0
  351. package/dist/review/post-seam.js +161 -0
  352. package/dist/review/prepare.js +168 -0
  353. package/dist/review/pricing.js +17 -0
  354. package/dist/review/schema.js +156 -0
  355. package/dist/review/submit-map.js +41 -0
  356. package/dist/review/usage.js +90 -0
  357. package/dist/shared/claude-review.js +335 -0
  358. package/dist/shared/conflict-fold.js +151 -0
  359. package/dist/shared/conflicts.js +30 -0
  360. package/dist/shared/flow-settings.js +191 -0
  361. package/dist/shared/index.js +8 -0
  362. package/dist/shared/my-turn-settings.js +238 -0
  363. package/dist/shared/pending-rules.js +281 -0
  364. package/dist/shared/product.js +54 -0
  365. package/dist/shared/types.js +896 -0
  366. package/dist/status.js +386 -0
  367. package/dist/sync/adaptive.js +185 -0
  368. package/dist/sync/app-attribution.js +66 -0
  369. package/dist/sync/auth-notices.js +36 -0
  370. package/dist/sync/backfill-ci-history.js +315 -0
  371. package/dist/sync/backfill-commit-headlines.js +136 -0
  372. package/dist/sync/backfill-pr-security.js +175 -0
  373. package/dist/sync/backfill-review-requests.js +97 -0
  374. package/dist/sync/benchmark-rollup.js +50 -0
  375. package/dist/sync/bot-detection.js +309 -0
  376. package/dist/sync/bot-resolution-markers.js +30 -0
  377. package/dist/sync/branch-status.js +634 -0
  378. package/dist/sync/classify-change-shape.js +150 -0
  379. package/dist/sync/commit-files.js +74 -0
  380. package/dist/sync/derive-thread-state.js +99 -0
  381. package/dist/sync/drain-review-threads.js +212 -0
  382. package/dist/sync/hydrate-detail.js +482 -0
  383. package/dist/sync/mention-scan.js +89 -0
  384. package/dist/sync/ml-enrichment.js +478 -0
  385. package/dist/sync/pr-change-signal.js +96 -0
  386. package/dist/sync/pr-liveness-sweep.js +139 -0
  387. package/dist/sync/pr-settle.js +381 -0
  388. package/dist/sync/refresh-pr.js +163 -0
  389. package/dist/sync/reparse-vendor-badges.js +495 -0
  390. package/dist/sync/resync-after-write.js +280 -0
  391. package/dist/sync/review-fingerprint.js +117 -0
  392. package/dist/sync/reviewer-behavior.js +103 -0
  393. package/dist/sync/reviewer-classify.js +503 -0
  394. package/dist/sync/routing-files.js +97 -0
  395. package/dist/sync/scheduled-jobs.js +12 -0
  396. package/dist/sync/scheduler.js +159 -0
  397. package/dist/sync/security-detect.js +521 -0
  398. package/dist/sync/sync-manager.js +750 -0
  399. package/dist/sync/sync-one-pr.js +205 -0
  400. package/dist/sync/sync-repo.js +400 -0
  401. package/dist/sync/unsettled-prs.js +506 -0
  402. package/dist/sync/upsert.js +1190 -0
  403. package/package.json +56 -0
  404. package/public/apple-touch-icon.png +0 -0
  405. package/public/assets/AiFixTab-CQP6PT5u.js +2 -0
  406. package/public/assets/ClaudeReviewTab-DQJ-58ZA.js +8 -0
  407. package/public/assets/PrBotBehaviourTab-CCnFrWbC.js +1 -0
  408. package/public/assets/archivo-latin-600-BN-JkNrl.woff2 +0 -0
  409. package/public/assets/highlight-BEHUn5zE.css +10 -0
  410. package/public/assets/highlight-CIIZLa6Z.js +12 -0
  411. package/public/assets/index-BDnYs6zg.js +73 -0
  412. package/public/assets/index-mCuI--RC.css +1 -0
  413. package/public/assets/markdown-I_JLLVAZ.js +32 -0
  414. package/public/assets/perfProbe-Da13EhTE.js +1 -0
  415. package/public/assets/tanstack-5qsxxaLe.js +17 -0
  416. package/public/assets/vis-C3BCkP5U.js +1280 -0
  417. package/public/assets/vis-ziCVehMy.css +1 -0
  418. package/public/favicon-16.png +0 -0
  419. package/public/favicon-32.png +0 -0
  420. package/public/favicon-48.png +0 -0
  421. package/public/favicon.svg +5 -0
  422. package/public/index.html +41 -0
  423. package/public-landing/apple-touch-icon.png +0 -0
  424. package/public-landing/assets/archivo-latin-500-BWmvx2Mg.woff2 +0 -0
  425. package/public-landing/assets/archivo-latin-600-BN-JkNrl.woff2 +0 -0
  426. package/public-landing/assets/index-CA3eEGXO.js +40 -0
  427. package/public-landing/assets/index-naQrQ6Fe.css +1 -0
  428. package/public-landing/assets/jetbrains-mono-latin-400-RruCX7RW.woff2 +0 -0
  429. package/public-landing/assets/newsreader-latin-400-DExrRRrN.woff2 +0 -0
  430. package/public-landing/assets/newsreader-latin-400-italic-b0I-AwbV.woff2 +0 -0
  431. package/public-landing/bots/index.html +156 -0
  432. package/public-landing/contact/index.html +156 -0
  433. package/public-landing/cookies/index.html +156 -0
  434. package/public-landing/demo/limn-walkthrough-poster.jpg +0 -0
  435. package/public-landing/demo/limn-walkthrough.cues.json +44 -0
  436. package/public-landing/demo/limn-walkthrough.mp4 +0 -0
  437. package/public-landing/favicon-16.png +0 -0
  438. package/public-landing/favicon-32.png +0 -0
  439. package/public-landing/favicon-48.png +0 -0
  440. package/public-landing/favicon.svg +5 -0
  441. package/public-landing/features/index.html +156 -0
  442. package/public-landing/for-developers/index.html +156 -0
  443. package/public-landing/for-managers/index.html +156 -0
  444. package/public-landing/how-it-works/index.html +156 -0
  445. package/public-landing/how-we-measure/index.html +156 -0
  446. package/public-landing/icon-192.png +0 -0
  447. package/public-landing/icon-512.png +0 -0
  448. package/public-landing/index.html +156 -0
  449. package/public-landing/insights/index.html +156 -0
  450. package/public-landing/og-image.png +0 -0
  451. package/public-landing/pricing/index.html +156 -0
  452. package/public-landing/privacy/index.html +156 -0
  453. package/public-landing/pro/index.html +156 -0
  454. package/public-landing/reviews/index.html +156 -0
  455. package/public-landing/robots.txt +8 -0
  456. package/public-landing/shots/benchmark.png +0 -0
  457. package/public-landing/shots/bot-roi.png +0 -0
  458. package/public-landing/shots/bot-settings.png +0 -0
  459. package/public-landing/shots/chronology.png +0 -0
  460. package/public-landing/shots/feed.png +0 -0
  461. package/public-landing/shots/flow-metrics.png +0 -0
  462. package/public-landing/shots/free-reports.png +0 -0
  463. package/public-landing/shots/pending-board.png +0 -0
  464. package/public-landing/shots/pending-card.png +0 -0
  465. package/public-landing/shots/period-report.png +0 -0
  466. package/public-landing/shots/pr-detail.png +0 -0
  467. package/public-landing/shots/pr-threads.png +0 -0
  468. package/public-landing/shots/reach.png +0 -0
  469. package/public-landing/shots/repo-rows.png +0 -0
  470. package/public-landing/shots/severity-findings.png +0 -0
  471. package/public-landing/shots/severity-strip.png +0 -0
  472. package/public-landing/site.webmanifest +14 -0
  473. package/public-landing/sitemap.xml +51 -0
  474. package/public-landing/terms/index.html +156 -0
@@ -0,0 +1,3228 @@
1
+ {
2
+ "id": "405bebc1-94c0-4446-9455-2631c74b7c22",
3
+ "prevId": "74920766-1f7c-4064-bfdc-5a4ac3b9ed73",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.accounts": {
8
+ "name": "accounts",
9
+ "schema": "",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "serial",
14
+ "primaryKey": true,
15
+ "notNull": true
16
+ },
17
+ "github_user_id": {
18
+ "name": "github_user_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "github_login": {
24
+ "name": "github_login",
25
+ "type": "text",
26
+ "primaryKey": false,
27
+ "notNull": true
28
+ },
29
+ "display_name": {
30
+ "name": "display_name",
31
+ "type": "text",
32
+ "primaryKey": false,
33
+ "notNull": false
34
+ },
35
+ "avatar_url": {
36
+ "name": "avatar_url",
37
+ "type": "text",
38
+ "primaryKey": false,
39
+ "notNull": false
40
+ },
41
+ "access_token_enc": {
42
+ "name": "access_token_enc",
43
+ "type": "text",
44
+ "primaryKey": false,
45
+ "notNull": false
46
+ },
47
+ "is_local": {
48
+ "name": "is_local",
49
+ "type": "boolean",
50
+ "primaryKey": false,
51
+ "notNull": true,
52
+ "default": false
53
+ },
54
+ "created_at": {
55
+ "name": "created_at",
56
+ "type": "timestamp with time zone",
57
+ "primaryKey": false,
58
+ "notNull": true,
59
+ "default": "now()"
60
+ },
61
+ "last_login_at": {
62
+ "name": "last_login_at",
63
+ "type": "timestamp with time zone",
64
+ "primaryKey": false,
65
+ "notNull": false
66
+ },
67
+ "last_active_at": {
68
+ "name": "last_active_at",
69
+ "type": "timestamp with time zone",
70
+ "primaryKey": false,
71
+ "notNull": false
72
+ },
73
+ "feed_last_seen_at": {
74
+ "name": "feed_last_seen_at",
75
+ "type": "timestamp with time zone",
76
+ "primaryKey": false,
77
+ "notNull": false
78
+ },
79
+ "plan": {
80
+ "name": "plan",
81
+ "type": "text",
82
+ "primaryKey": false,
83
+ "notNull": true,
84
+ "default": "'free'"
85
+ },
86
+ "stripe_customer_id": {
87
+ "name": "stripe_customer_id",
88
+ "type": "text",
89
+ "primaryKey": false,
90
+ "notNull": false
91
+ },
92
+ "ai_credit_allowance": {
93
+ "name": "ai_credit_allowance",
94
+ "type": "integer",
95
+ "primaryKey": false,
96
+ "notNull": false
97
+ },
98
+ "benchmark_opt_in": {
99
+ "name": "benchmark_opt_in",
100
+ "type": "boolean",
101
+ "primaryKey": false,
102
+ "notNull": true,
103
+ "default": false
104
+ }
105
+ },
106
+ "indexes": {},
107
+ "foreignKeys": {},
108
+ "compositePrimaryKeys": {},
109
+ "uniqueConstraints": {
110
+ "accounts_github_user_id_unique": {
111
+ "name": "accounts_github_user_id_unique",
112
+ "nullsNotDistinct": false,
113
+ "columns": [
114
+ "github_user_id"
115
+ ]
116
+ }
117
+ },
118
+ "policies": {},
119
+ "checkConstraints": {},
120
+ "isRLSEnabled": false
121
+ },
122
+ "public.ai_usage": {
123
+ "name": "ai_usage",
124
+ "schema": "",
125
+ "columns": {
126
+ "id": {
127
+ "name": "id",
128
+ "type": "serial",
129
+ "primaryKey": true,
130
+ "notNull": true
131
+ },
132
+ "account_id": {
133
+ "name": "account_id",
134
+ "type": "integer",
135
+ "primaryKey": false,
136
+ "notNull": true
137
+ },
138
+ "seam": {
139
+ "name": "seam",
140
+ "type": "text",
141
+ "primaryKey": false,
142
+ "notNull": true
143
+ },
144
+ "feature": {
145
+ "name": "feature",
146
+ "type": "text",
147
+ "primaryKey": false,
148
+ "notNull": true
149
+ },
150
+ "model": {
151
+ "name": "model",
152
+ "type": "text",
153
+ "primaryKey": false,
154
+ "notNull": true
155
+ },
156
+ "cost_usd": {
157
+ "name": "cost_usd",
158
+ "type": "double precision",
159
+ "primaryKey": false,
160
+ "notNull": true
161
+ },
162
+ "input_tokens": {
163
+ "name": "input_tokens",
164
+ "type": "integer",
165
+ "primaryKey": false,
166
+ "notNull": false
167
+ },
168
+ "output_tokens": {
169
+ "name": "output_tokens",
170
+ "type": "integer",
171
+ "primaryKey": false,
172
+ "notNull": false
173
+ },
174
+ "pr_id": {
175
+ "name": "pr_id",
176
+ "type": "integer",
177
+ "primaryKey": false,
178
+ "notNull": false
179
+ },
180
+ "repo_id": {
181
+ "name": "repo_id",
182
+ "type": "integer",
183
+ "primaryKey": false,
184
+ "notNull": false
185
+ },
186
+ "occurred_at": {
187
+ "name": "occurred_at",
188
+ "type": "timestamp with time zone",
189
+ "primaryKey": false,
190
+ "notNull": true,
191
+ "default": "now()"
192
+ }
193
+ },
194
+ "indexes": {
195
+ "au_account_occurred": {
196
+ "name": "au_account_occurred",
197
+ "columns": [
198
+ {
199
+ "expression": "account_id",
200
+ "isExpression": false,
201
+ "asc": true,
202
+ "nulls": "last"
203
+ },
204
+ {
205
+ "expression": "occurred_at",
206
+ "isExpression": false,
207
+ "asc": true,
208
+ "nulls": "last"
209
+ }
210
+ ],
211
+ "isUnique": false,
212
+ "concurrently": false,
213
+ "method": "btree",
214
+ "with": {}
215
+ }
216
+ },
217
+ "foreignKeys": {
218
+ "ai_usage_account_id_accounts_id_fk": {
219
+ "name": "ai_usage_account_id_accounts_id_fk",
220
+ "tableFrom": "ai_usage",
221
+ "tableTo": "accounts",
222
+ "columnsFrom": [
223
+ "account_id"
224
+ ],
225
+ "columnsTo": [
226
+ "id"
227
+ ],
228
+ "onDelete": "no action",
229
+ "onUpdate": "no action"
230
+ }
231
+ },
232
+ "compositePrimaryKeys": {},
233
+ "uniqueConstraints": {},
234
+ "policies": {},
235
+ "checkConstraints": {},
236
+ "isRLSEnabled": false
237
+ },
238
+ "public.benchmark_contributions": {
239
+ "name": "benchmark_contributions",
240
+ "schema": "",
241
+ "columns": {
242
+ "id": {
243
+ "name": "id",
244
+ "type": "serial",
245
+ "primaryKey": true,
246
+ "notNull": true
247
+ },
248
+ "account_id": {
249
+ "name": "account_id",
250
+ "type": "integer",
251
+ "primaryKey": false,
252
+ "notNull": true
253
+ },
254
+ "vendor_kind": {
255
+ "name": "vendor_kind",
256
+ "type": "text",
257
+ "primaryKey": false,
258
+ "notNull": true
259
+ },
260
+ "week_start": {
261
+ "name": "week_start",
262
+ "type": "timestamp with time zone",
263
+ "primaryKey": false,
264
+ "notNull": true
265
+ },
266
+ "threads": {
267
+ "name": "threads",
268
+ "type": "integer",
269
+ "primaryKey": false,
270
+ "notNull": true,
271
+ "default": 0
272
+ },
273
+ "comments": {
274
+ "name": "comments",
275
+ "type": "integer",
276
+ "primaryKey": false,
277
+ "notNull": true,
278
+ "default": 0
279
+ },
280
+ "acted_on": {
281
+ "name": "acted_on",
282
+ "type": "integer",
283
+ "primaryKey": false,
284
+ "notNull": true,
285
+ "default": 0
286
+ },
287
+ "untouched": {
288
+ "name": "untouched",
289
+ "type": "integer",
290
+ "primaryKey": false,
291
+ "notNull": true,
292
+ "default": 0
293
+ },
294
+ "human_follow": {
295
+ "name": "human_follow",
296
+ "type": "integer",
297
+ "primaryKey": false,
298
+ "notNull": true,
299
+ "default": 0
300
+ },
301
+ "oldest_untouched_days": {
302
+ "name": "oldest_untouched_days",
303
+ "type": "integer",
304
+ "primaryKey": false,
305
+ "notNull": false
306
+ },
307
+ "org_size_bucket": {
308
+ "name": "org_size_bucket",
309
+ "type": "text",
310
+ "primaryKey": false,
311
+ "notNull": true
312
+ },
313
+ "ml_metrics": {
314
+ "name": "ml_metrics",
315
+ "type": "text",
316
+ "primaryKey": false,
317
+ "notNull": false
318
+ },
319
+ "schema_version": {
320
+ "name": "schema_version",
321
+ "type": "integer",
322
+ "primaryKey": false,
323
+ "notNull": true,
324
+ "default": 1
325
+ },
326
+ "created_at": {
327
+ "name": "created_at",
328
+ "type": "timestamp with time zone",
329
+ "primaryKey": false,
330
+ "notNull": true,
331
+ "default": "now()"
332
+ }
333
+ },
334
+ "indexes": {
335
+ "bench_contrib_uniq": {
336
+ "name": "bench_contrib_uniq",
337
+ "columns": [
338
+ {
339
+ "expression": "account_id",
340
+ "isExpression": false,
341
+ "asc": true,
342
+ "nulls": "last"
343
+ },
344
+ {
345
+ "expression": "vendor_kind",
346
+ "isExpression": false,
347
+ "asc": true,
348
+ "nulls": "last"
349
+ },
350
+ {
351
+ "expression": "week_start",
352
+ "isExpression": false,
353
+ "asc": true,
354
+ "nulls": "last"
355
+ }
356
+ ],
357
+ "isUnique": true,
358
+ "concurrently": false,
359
+ "method": "btree",
360
+ "with": {}
361
+ },
362
+ "bench_contrib_account_idx": {
363
+ "name": "bench_contrib_account_idx",
364
+ "columns": [
365
+ {
366
+ "expression": "account_id",
367
+ "isExpression": false,
368
+ "asc": true,
369
+ "nulls": "last"
370
+ }
371
+ ],
372
+ "isUnique": false,
373
+ "concurrently": false,
374
+ "method": "btree",
375
+ "with": {}
376
+ },
377
+ "bench_contrib_cohort_idx": {
378
+ "name": "bench_contrib_cohort_idx",
379
+ "columns": [
380
+ {
381
+ "expression": "vendor_kind",
382
+ "isExpression": false,
383
+ "asc": true,
384
+ "nulls": "last"
385
+ },
386
+ {
387
+ "expression": "week_start",
388
+ "isExpression": false,
389
+ "asc": true,
390
+ "nulls": "last"
391
+ }
392
+ ],
393
+ "isUnique": false,
394
+ "concurrently": false,
395
+ "method": "btree",
396
+ "with": {}
397
+ }
398
+ },
399
+ "foreignKeys": {
400
+ "benchmark_contributions_account_id_accounts_id_fk": {
401
+ "name": "benchmark_contributions_account_id_accounts_id_fk",
402
+ "tableFrom": "benchmark_contributions",
403
+ "tableTo": "accounts",
404
+ "columnsFrom": [
405
+ "account_id"
406
+ ],
407
+ "columnsTo": [
408
+ "id"
409
+ ],
410
+ "onDelete": "cascade",
411
+ "onUpdate": "no action"
412
+ }
413
+ },
414
+ "compositePrimaryKeys": {},
415
+ "uniqueConstraints": {},
416
+ "policies": {},
417
+ "checkConstraints": {},
418
+ "isRLSEnabled": false
419
+ },
420
+ "public.bot_mute_rules": {
421
+ "name": "bot_mute_rules",
422
+ "schema": "",
423
+ "columns": {
424
+ "id": {
425
+ "name": "id",
426
+ "type": "serial",
427
+ "primaryKey": true,
428
+ "notNull": true
429
+ },
430
+ "account_id": {
431
+ "name": "account_id",
432
+ "type": "integer",
433
+ "primaryKey": false,
434
+ "notNull": true
435
+ },
436
+ "vendor_kind": {
437
+ "name": "vendor_kind",
438
+ "type": "text",
439
+ "primaryKey": false,
440
+ "notNull": false
441
+ },
442
+ "path_glob": {
443
+ "name": "path_glob",
444
+ "type": "text",
445
+ "primaryKey": false,
446
+ "notNull": false
447
+ },
448
+ "severity": {
449
+ "name": "severity",
450
+ "type": "text",
451
+ "primaryKey": false,
452
+ "notNull": false
453
+ },
454
+ "action": {
455
+ "name": "action",
456
+ "type": "text",
457
+ "primaryKey": false,
458
+ "notNull": true
459
+ },
460
+ "auto_resolve_days": {
461
+ "name": "auto_resolve_days",
462
+ "type": "integer",
463
+ "primaryKey": false,
464
+ "notNull": false
465
+ },
466
+ "created_at": {
467
+ "name": "created_at",
468
+ "type": "timestamp with time zone",
469
+ "primaryKey": false,
470
+ "notNull": true,
471
+ "default": "now()"
472
+ }
473
+ },
474
+ "indexes": {
475
+ "bmr_account_idx": {
476
+ "name": "bmr_account_idx",
477
+ "columns": [
478
+ {
479
+ "expression": "account_id",
480
+ "isExpression": false,
481
+ "asc": true,
482
+ "nulls": "last"
483
+ }
484
+ ],
485
+ "isUnique": false,
486
+ "concurrently": false,
487
+ "method": "btree",
488
+ "with": {}
489
+ }
490
+ },
491
+ "foreignKeys": {
492
+ "bot_mute_rules_account_id_accounts_id_fk": {
493
+ "name": "bot_mute_rules_account_id_accounts_id_fk",
494
+ "tableFrom": "bot_mute_rules",
495
+ "tableTo": "accounts",
496
+ "columnsFrom": [
497
+ "account_id"
498
+ ],
499
+ "columnsTo": [
500
+ "id"
501
+ ],
502
+ "onDelete": "no action",
503
+ "onUpdate": "no action"
504
+ }
505
+ },
506
+ "compositePrimaryKeys": {},
507
+ "uniqueConstraints": {},
508
+ "policies": {},
509
+ "checkConstraints": {},
510
+ "isRLSEnabled": false
511
+ },
512
+ "public.bot_review_classification": {
513
+ "name": "bot_review_classification",
514
+ "schema": "",
515
+ "columns": {
516
+ "id": {
517
+ "name": "id",
518
+ "type": "serial",
519
+ "primaryKey": true,
520
+ "notNull": true
521
+ },
522
+ "account_id": {
523
+ "name": "account_id",
524
+ "type": "integer",
525
+ "primaryKey": false,
526
+ "notNull": true
527
+ },
528
+ "author_user_id": {
529
+ "name": "author_user_id",
530
+ "type": "integer",
531
+ "primaryKey": false,
532
+ "notNull": true
533
+ },
534
+ "automated": {
535
+ "name": "automated",
536
+ "type": "boolean",
537
+ "primaryKey": false,
538
+ "notNull": true
539
+ },
540
+ "kind": {
541
+ "name": "kind",
542
+ "type": "text",
543
+ "primaryKey": false,
544
+ "notNull": false
545
+ },
546
+ "label": {
547
+ "name": "label",
548
+ "type": "text",
549
+ "primaryKey": false,
550
+ "notNull": false
551
+ },
552
+ "confidence": {
553
+ "name": "confidence",
554
+ "type": "text",
555
+ "primaryKey": false,
556
+ "notNull": true
557
+ },
558
+ "source": {
559
+ "name": "source",
560
+ "type": "text",
561
+ "primaryKey": false,
562
+ "notNull": true
563
+ },
564
+ "reasons_json": {
565
+ "name": "reasons_json",
566
+ "type": "jsonb",
567
+ "primaryKey": false,
568
+ "notNull": false
569
+ },
570
+ "updated_at": {
571
+ "name": "updated_at",
572
+ "type": "timestamp with time zone",
573
+ "primaryKey": false,
574
+ "notNull": true,
575
+ "default": "now()"
576
+ }
577
+ },
578
+ "indexes": {
579
+ "brc_account_author": {
580
+ "name": "brc_account_author",
581
+ "columns": [
582
+ {
583
+ "expression": "account_id",
584
+ "isExpression": false,
585
+ "asc": true,
586
+ "nulls": "last"
587
+ },
588
+ {
589
+ "expression": "author_user_id",
590
+ "isExpression": false,
591
+ "asc": true,
592
+ "nulls": "last"
593
+ }
594
+ ],
595
+ "isUnique": true,
596
+ "concurrently": false,
597
+ "method": "btree",
598
+ "with": {}
599
+ }
600
+ },
601
+ "foreignKeys": {
602
+ "bot_review_classification_account_id_accounts_id_fk": {
603
+ "name": "bot_review_classification_account_id_accounts_id_fk",
604
+ "tableFrom": "bot_review_classification",
605
+ "tableTo": "accounts",
606
+ "columnsFrom": [
607
+ "account_id"
608
+ ],
609
+ "columnsTo": [
610
+ "id"
611
+ ],
612
+ "onDelete": "no action",
613
+ "onUpdate": "no action"
614
+ },
615
+ "bot_review_classification_author_user_id_users_id_fk": {
616
+ "name": "bot_review_classification_author_user_id_users_id_fk",
617
+ "tableFrom": "bot_review_classification",
618
+ "tableTo": "users",
619
+ "columnsFrom": [
620
+ "author_user_id"
621
+ ],
622
+ "columnsTo": [
623
+ "id"
624
+ ],
625
+ "onDelete": "no action",
626
+ "onUpdate": "no action"
627
+ }
628
+ },
629
+ "compositePrimaryKeys": {},
630
+ "uniqueConstraints": {},
631
+ "policies": {},
632
+ "checkConstraints": {},
633
+ "isRLSEnabled": false
634
+ },
635
+ "public.ci_status_events": {
636
+ "name": "ci_status_events",
637
+ "schema": "",
638
+ "columns": {
639
+ "id": {
640
+ "name": "id",
641
+ "type": "serial",
642
+ "primaryKey": true,
643
+ "notNull": true
644
+ },
645
+ "account_id": {
646
+ "name": "account_id",
647
+ "type": "integer",
648
+ "primaryKey": false,
649
+ "notNull": true
650
+ },
651
+ "repo_id": {
652
+ "name": "repo_id",
653
+ "type": "integer",
654
+ "primaryKey": false,
655
+ "notNull": true
656
+ },
657
+ "pr_id": {
658
+ "name": "pr_id",
659
+ "type": "integer",
660
+ "primaryKey": false,
661
+ "notNull": true
662
+ },
663
+ "head_sha": {
664
+ "name": "head_sha",
665
+ "type": "text",
666
+ "primaryKey": false,
667
+ "notNull": true
668
+ },
669
+ "status": {
670
+ "name": "status",
671
+ "type": "text",
672
+ "primaryKey": false,
673
+ "notNull": true
674
+ },
675
+ "failing_checks": {
676
+ "name": "failing_checks",
677
+ "type": "jsonb",
678
+ "primaryKey": false,
679
+ "notNull": false
680
+ },
681
+ "observed_at": {
682
+ "name": "observed_at",
683
+ "type": "timestamp with time zone",
684
+ "primaryKey": false,
685
+ "notNull": true
686
+ }
687
+ },
688
+ "indexes": {
689
+ "cse_account_pr_observed": {
690
+ "name": "cse_account_pr_observed",
691
+ "columns": [
692
+ {
693
+ "expression": "account_id",
694
+ "isExpression": false,
695
+ "asc": true,
696
+ "nulls": "last"
697
+ },
698
+ {
699
+ "expression": "pr_id",
700
+ "isExpression": false,
701
+ "asc": true,
702
+ "nulls": "last"
703
+ },
704
+ {
705
+ "expression": "observed_at",
706
+ "isExpression": false,
707
+ "asc": true,
708
+ "nulls": "last"
709
+ }
710
+ ],
711
+ "isUnique": false,
712
+ "concurrently": false,
713
+ "method": "btree",
714
+ "with": {}
715
+ },
716
+ "cse_account_repo_observed": {
717
+ "name": "cse_account_repo_observed",
718
+ "columns": [
719
+ {
720
+ "expression": "account_id",
721
+ "isExpression": false,
722
+ "asc": true,
723
+ "nulls": "last"
724
+ },
725
+ {
726
+ "expression": "repo_id",
727
+ "isExpression": false,
728
+ "asc": true,
729
+ "nulls": "last"
730
+ },
731
+ {
732
+ "expression": "observed_at",
733
+ "isExpression": false,
734
+ "asc": true,
735
+ "nulls": "last"
736
+ }
737
+ ],
738
+ "isUnique": false,
739
+ "concurrently": false,
740
+ "method": "btree",
741
+ "with": {}
742
+ }
743
+ },
744
+ "foreignKeys": {
745
+ "ci_status_events_account_id_accounts_id_fk": {
746
+ "name": "ci_status_events_account_id_accounts_id_fk",
747
+ "tableFrom": "ci_status_events",
748
+ "tableTo": "accounts",
749
+ "columnsFrom": [
750
+ "account_id"
751
+ ],
752
+ "columnsTo": [
753
+ "id"
754
+ ],
755
+ "onDelete": "no action",
756
+ "onUpdate": "no action"
757
+ },
758
+ "ci_status_events_repo_id_repos_id_fk": {
759
+ "name": "ci_status_events_repo_id_repos_id_fk",
760
+ "tableFrom": "ci_status_events",
761
+ "tableTo": "repos",
762
+ "columnsFrom": [
763
+ "repo_id"
764
+ ],
765
+ "columnsTo": [
766
+ "id"
767
+ ],
768
+ "onDelete": "no action",
769
+ "onUpdate": "no action"
770
+ },
771
+ "ci_status_events_pr_id_pull_requests_id_fk": {
772
+ "name": "ci_status_events_pr_id_pull_requests_id_fk",
773
+ "tableFrom": "ci_status_events",
774
+ "tableTo": "pull_requests",
775
+ "columnsFrom": [
776
+ "pr_id"
777
+ ],
778
+ "columnsTo": [
779
+ "id"
780
+ ],
781
+ "onDelete": "no action",
782
+ "onUpdate": "no action"
783
+ }
784
+ },
785
+ "compositePrimaryKeys": {},
786
+ "uniqueConstraints": {},
787
+ "policies": {},
788
+ "checkConstraints": {},
789
+ "isRLSEnabled": false
790
+ },
791
+ "public.claude_review_findings": {
792
+ "name": "claude_review_findings",
793
+ "schema": "",
794
+ "columns": {
795
+ "id": {
796
+ "name": "id",
797
+ "type": "serial",
798
+ "primaryKey": true,
799
+ "notNull": true
800
+ },
801
+ "review_id": {
802
+ "name": "review_id",
803
+ "type": "integer",
804
+ "primaryKey": false,
805
+ "notNull": true
806
+ },
807
+ "path": {
808
+ "name": "path",
809
+ "type": "text",
810
+ "primaryKey": false,
811
+ "notNull": true
812
+ },
813
+ "line": {
814
+ "name": "line",
815
+ "type": "integer",
816
+ "primaryKey": false,
817
+ "notNull": false
818
+ },
819
+ "side": {
820
+ "name": "side",
821
+ "type": "text",
822
+ "primaryKey": false,
823
+ "notNull": true,
824
+ "default": "'RIGHT'"
825
+ },
826
+ "severity": {
827
+ "name": "severity",
828
+ "type": "text",
829
+ "primaryKey": false,
830
+ "notNull": true
831
+ },
832
+ "title": {
833
+ "name": "title",
834
+ "type": "text",
835
+ "primaryKey": false,
836
+ "notNull": true
837
+ },
838
+ "body": {
839
+ "name": "body",
840
+ "type": "text",
841
+ "primaryKey": false,
842
+ "notNull": true
843
+ },
844
+ "edited_body": {
845
+ "name": "edited_body",
846
+ "type": "text",
847
+ "primaryKey": false,
848
+ "notNull": false
849
+ },
850
+ "suggestion": {
851
+ "name": "suggestion",
852
+ "type": "text",
853
+ "primaryKey": false,
854
+ "notNull": false
855
+ },
856
+ "diff_hunk": {
857
+ "name": "diff_hunk",
858
+ "type": "text",
859
+ "primaryKey": false,
860
+ "notNull": false
861
+ },
862
+ "anchored": {
863
+ "name": "anchored",
864
+ "type": "boolean",
865
+ "primaryKey": false,
866
+ "notNull": true,
867
+ "default": true
868
+ },
869
+ "file_in_diff": {
870
+ "name": "file_in_diff",
871
+ "type": "boolean",
872
+ "primaryKey": false,
873
+ "notNull": true,
874
+ "default": true
875
+ },
876
+ "included": {
877
+ "name": "included",
878
+ "type": "boolean",
879
+ "primaryKey": false,
880
+ "notNull": true,
881
+ "default": false
882
+ },
883
+ "posted_at": {
884
+ "name": "posted_at",
885
+ "type": "timestamp with time zone",
886
+ "primaryKey": false,
887
+ "notNull": false
888
+ },
889
+ "github_comment_id": {
890
+ "name": "github_comment_id",
891
+ "type": "text",
892
+ "primaryKey": false,
893
+ "notNull": false
894
+ },
895
+ "posted_comment_kind": {
896
+ "name": "posted_comment_kind",
897
+ "type": "text",
898
+ "primaryKey": false,
899
+ "notNull": false
900
+ },
901
+ "created_at": {
902
+ "name": "created_at",
903
+ "type": "timestamp with time zone",
904
+ "primaryKey": false,
905
+ "notNull": true,
906
+ "default": "now()"
907
+ }
908
+ },
909
+ "indexes": {
910
+ "crf_review_idx": {
911
+ "name": "crf_review_idx",
912
+ "columns": [
913
+ {
914
+ "expression": "review_id",
915
+ "isExpression": false,
916
+ "asc": true,
917
+ "nulls": "last"
918
+ }
919
+ ],
920
+ "isUnique": false,
921
+ "concurrently": false,
922
+ "method": "btree",
923
+ "with": {}
924
+ }
925
+ },
926
+ "foreignKeys": {
927
+ "claude_review_findings_review_id_claude_reviews_id_fk": {
928
+ "name": "claude_review_findings_review_id_claude_reviews_id_fk",
929
+ "tableFrom": "claude_review_findings",
930
+ "tableTo": "claude_reviews",
931
+ "columnsFrom": [
932
+ "review_id"
933
+ ],
934
+ "columnsTo": [
935
+ "id"
936
+ ],
937
+ "onDelete": "no action",
938
+ "onUpdate": "no action"
939
+ }
940
+ },
941
+ "compositePrimaryKeys": {},
942
+ "uniqueConstraints": {},
943
+ "policies": {},
944
+ "checkConstraints": {},
945
+ "isRLSEnabled": false
946
+ },
947
+ "public.claude_reviews": {
948
+ "name": "claude_reviews",
949
+ "schema": "",
950
+ "columns": {
951
+ "id": {
952
+ "name": "id",
953
+ "type": "serial",
954
+ "primaryKey": true,
955
+ "notNull": true
956
+ },
957
+ "account_id": {
958
+ "name": "account_id",
959
+ "type": "integer",
960
+ "primaryKey": false,
961
+ "notNull": true
962
+ },
963
+ "pr_id": {
964
+ "name": "pr_id",
965
+ "type": "integer",
966
+ "primaryKey": false,
967
+ "notNull": true
968
+ },
969
+ "head_sha": {
970
+ "name": "head_sha",
971
+ "type": "text",
972
+ "primaryKey": false,
973
+ "notNull": true
974
+ },
975
+ "status": {
976
+ "name": "status",
977
+ "type": "text",
978
+ "primaryKey": false,
979
+ "notNull": true
980
+ },
981
+ "model": {
982
+ "name": "model",
983
+ "type": "text",
984
+ "primaryKey": false,
985
+ "notNull": true
986
+ },
987
+ "scope": {
988
+ "name": "scope",
989
+ "type": "text",
990
+ "primaryKey": false,
991
+ "notNull": false
992
+ },
993
+ "review_mode": {
994
+ "name": "review_mode",
995
+ "type": "text",
996
+ "primaryKey": false,
997
+ "notNull": false
998
+ },
999
+ "route_reason": {
1000
+ "name": "route_reason",
1001
+ "type": "jsonb",
1002
+ "primaryKey": false,
1003
+ "notNull": false
1004
+ },
1005
+ "summary": {
1006
+ "name": "summary",
1007
+ "type": "text",
1008
+ "primaryKey": false,
1009
+ "notNull": false
1010
+ },
1011
+ "verdict": {
1012
+ "name": "verdict",
1013
+ "type": "text",
1014
+ "primaryKey": false,
1015
+ "notNull": false
1016
+ },
1017
+ "user_body": {
1018
+ "name": "user_body",
1019
+ "type": "text",
1020
+ "primaryKey": false,
1021
+ "notNull": false
1022
+ },
1023
+ "user_verdict": {
1024
+ "name": "user_verdict",
1025
+ "type": "text",
1026
+ "primaryKey": false,
1027
+ "notNull": false
1028
+ },
1029
+ "cost_usd": {
1030
+ "name": "cost_usd",
1031
+ "type": "double precision",
1032
+ "primaryKey": false,
1033
+ "notNull": false
1034
+ },
1035
+ "input_tokens": {
1036
+ "name": "input_tokens",
1037
+ "type": "integer",
1038
+ "primaryKey": false,
1039
+ "notNull": false
1040
+ },
1041
+ "output_tokens": {
1042
+ "name": "output_tokens",
1043
+ "type": "integer",
1044
+ "primaryKey": false,
1045
+ "notNull": false
1046
+ },
1047
+ "cache_read_tokens": {
1048
+ "name": "cache_read_tokens",
1049
+ "type": "integer",
1050
+ "primaryKey": false,
1051
+ "notNull": false
1052
+ },
1053
+ "cache_creation_tokens": {
1054
+ "name": "cache_creation_tokens",
1055
+ "type": "integer",
1056
+ "primaryKey": false,
1057
+ "notNull": false
1058
+ },
1059
+ "num_turns": {
1060
+ "name": "num_turns",
1061
+ "type": "integer",
1062
+ "primaryKey": false,
1063
+ "notNull": false
1064
+ },
1065
+ "diff_bytes": {
1066
+ "name": "diff_bytes",
1067
+ "type": "integer",
1068
+ "primaryKey": false,
1069
+ "notNull": false
1070
+ },
1071
+ "diff_capped": {
1072
+ "name": "diff_capped",
1073
+ "type": "boolean",
1074
+ "primaryKey": false,
1075
+ "notNull": false
1076
+ },
1077
+ "error": {
1078
+ "name": "error",
1079
+ "type": "text",
1080
+ "primaryKey": false,
1081
+ "notNull": false
1082
+ },
1083
+ "excluded_files": {
1084
+ "name": "excluded_files",
1085
+ "type": "jsonb",
1086
+ "primaryKey": false,
1087
+ "notNull": false
1088
+ },
1089
+ "posted_review_id": {
1090
+ "name": "posted_review_id",
1091
+ "type": "text",
1092
+ "primaryKey": false,
1093
+ "notNull": false
1094
+ },
1095
+ "posted_at": {
1096
+ "name": "posted_at",
1097
+ "type": "timestamp with time zone",
1098
+ "primaryKey": false,
1099
+ "notNull": false
1100
+ },
1101
+ "created_at": {
1102
+ "name": "created_at",
1103
+ "type": "timestamp with time zone",
1104
+ "primaryKey": false,
1105
+ "notNull": true,
1106
+ "default": "now()"
1107
+ },
1108
+ "finished_at": {
1109
+ "name": "finished_at",
1110
+ "type": "timestamp with time zone",
1111
+ "primaryKey": false,
1112
+ "notNull": false
1113
+ }
1114
+ },
1115
+ "indexes": {
1116
+ "cr_pr_idx": {
1117
+ "name": "cr_pr_idx",
1118
+ "columns": [
1119
+ {
1120
+ "expression": "pr_id",
1121
+ "isExpression": false,
1122
+ "asc": true,
1123
+ "nulls": "last"
1124
+ }
1125
+ ],
1126
+ "isUnique": false,
1127
+ "concurrently": false,
1128
+ "method": "btree",
1129
+ "with": {}
1130
+ },
1131
+ "cr_pr_sha_idx": {
1132
+ "name": "cr_pr_sha_idx",
1133
+ "columns": [
1134
+ {
1135
+ "expression": "pr_id",
1136
+ "isExpression": false,
1137
+ "asc": true,
1138
+ "nulls": "last"
1139
+ },
1140
+ {
1141
+ "expression": "head_sha",
1142
+ "isExpression": false,
1143
+ "asc": true,
1144
+ "nulls": "last"
1145
+ }
1146
+ ],
1147
+ "isUnique": false,
1148
+ "concurrently": false,
1149
+ "method": "btree",
1150
+ "with": {}
1151
+ },
1152
+ "cr_account_idx": {
1153
+ "name": "cr_account_idx",
1154
+ "columns": [
1155
+ {
1156
+ "expression": "account_id",
1157
+ "isExpression": false,
1158
+ "asc": true,
1159
+ "nulls": "last"
1160
+ }
1161
+ ],
1162
+ "isUnique": false,
1163
+ "concurrently": false,
1164
+ "method": "btree",
1165
+ "with": {}
1166
+ }
1167
+ },
1168
+ "foreignKeys": {
1169
+ "claude_reviews_account_id_accounts_id_fk": {
1170
+ "name": "claude_reviews_account_id_accounts_id_fk",
1171
+ "tableFrom": "claude_reviews",
1172
+ "tableTo": "accounts",
1173
+ "columnsFrom": [
1174
+ "account_id"
1175
+ ],
1176
+ "columnsTo": [
1177
+ "id"
1178
+ ],
1179
+ "onDelete": "no action",
1180
+ "onUpdate": "no action"
1181
+ },
1182
+ "claude_reviews_pr_id_pull_requests_id_fk": {
1183
+ "name": "claude_reviews_pr_id_pull_requests_id_fk",
1184
+ "tableFrom": "claude_reviews",
1185
+ "tableTo": "pull_requests",
1186
+ "columnsFrom": [
1187
+ "pr_id"
1188
+ ],
1189
+ "columnsTo": [
1190
+ "id"
1191
+ ],
1192
+ "onDelete": "no action",
1193
+ "onUpdate": "no action"
1194
+ }
1195
+ },
1196
+ "compositePrimaryKeys": {},
1197
+ "uniqueConstraints": {},
1198
+ "policies": {},
1199
+ "checkConstraints": {},
1200
+ "isRLSEnabled": false
1201
+ },
1202
+ "public.commit_files": {
1203
+ "name": "commit_files",
1204
+ "schema": "",
1205
+ "columns": {
1206
+ "sha": {
1207
+ "name": "sha",
1208
+ "type": "text",
1209
+ "primaryKey": true,
1210
+ "notNull": true
1211
+ },
1212
+ "paths": {
1213
+ "name": "paths",
1214
+ "type": "jsonb",
1215
+ "primaryKey": false,
1216
+ "notNull": true
1217
+ },
1218
+ "fetched_at": {
1219
+ "name": "fetched_at",
1220
+ "type": "timestamp with time zone",
1221
+ "primaryKey": false,
1222
+ "notNull": true,
1223
+ "default": "now()"
1224
+ }
1225
+ },
1226
+ "indexes": {},
1227
+ "foreignKeys": {},
1228
+ "compositePrimaryKeys": {},
1229
+ "uniqueConstraints": {},
1230
+ "policies": {},
1231
+ "checkConstraints": {},
1232
+ "isRLSEnabled": false
1233
+ },
1234
+ "public.commits": {
1235
+ "name": "commits",
1236
+ "schema": "",
1237
+ "columns": {
1238
+ "id": {
1239
+ "name": "id",
1240
+ "type": "serial",
1241
+ "primaryKey": true,
1242
+ "notNull": true
1243
+ },
1244
+ "sha": {
1245
+ "name": "sha",
1246
+ "type": "text",
1247
+ "primaryKey": false,
1248
+ "notNull": true
1249
+ },
1250
+ "pr_id": {
1251
+ "name": "pr_id",
1252
+ "type": "integer",
1253
+ "primaryKey": false,
1254
+ "notNull": true
1255
+ },
1256
+ "author_id": {
1257
+ "name": "author_id",
1258
+ "type": "integer",
1259
+ "primaryKey": false,
1260
+ "notNull": false
1261
+ },
1262
+ "committer_id": {
1263
+ "name": "committer_id",
1264
+ "type": "integer",
1265
+ "primaryKey": false,
1266
+ "notNull": false
1267
+ },
1268
+ "message": {
1269
+ "name": "message",
1270
+ "type": "text",
1271
+ "primaryKey": false,
1272
+ "notNull": false
1273
+ },
1274
+ "committed_at": {
1275
+ "name": "committed_at",
1276
+ "type": "timestamp with time zone",
1277
+ "primaryKey": false,
1278
+ "notNull": true
1279
+ }
1280
+ },
1281
+ "indexes": {
1282
+ "commit_pr_idx": {
1283
+ "name": "commit_pr_idx",
1284
+ "columns": [
1285
+ {
1286
+ "expression": "pr_id",
1287
+ "isExpression": false,
1288
+ "asc": true,
1289
+ "nulls": "last"
1290
+ }
1291
+ ],
1292
+ "isUnique": false,
1293
+ "concurrently": false,
1294
+ "method": "btree",
1295
+ "with": {}
1296
+ },
1297
+ "commit_sha_pr_ux": {
1298
+ "name": "commit_sha_pr_ux",
1299
+ "columns": [
1300
+ {
1301
+ "expression": "sha",
1302
+ "isExpression": false,
1303
+ "asc": true,
1304
+ "nulls": "last"
1305
+ },
1306
+ {
1307
+ "expression": "pr_id",
1308
+ "isExpression": false,
1309
+ "asc": true,
1310
+ "nulls": "last"
1311
+ }
1312
+ ],
1313
+ "isUnique": true,
1314
+ "concurrently": false,
1315
+ "method": "btree",
1316
+ "with": {}
1317
+ }
1318
+ },
1319
+ "foreignKeys": {
1320
+ "commits_pr_id_pull_requests_id_fk": {
1321
+ "name": "commits_pr_id_pull_requests_id_fk",
1322
+ "tableFrom": "commits",
1323
+ "tableTo": "pull_requests",
1324
+ "columnsFrom": [
1325
+ "pr_id"
1326
+ ],
1327
+ "columnsTo": [
1328
+ "id"
1329
+ ],
1330
+ "onDelete": "no action",
1331
+ "onUpdate": "no action"
1332
+ },
1333
+ "commits_author_id_users_id_fk": {
1334
+ "name": "commits_author_id_users_id_fk",
1335
+ "tableFrom": "commits",
1336
+ "tableTo": "users",
1337
+ "columnsFrom": [
1338
+ "author_id"
1339
+ ],
1340
+ "columnsTo": [
1341
+ "id"
1342
+ ],
1343
+ "onDelete": "no action",
1344
+ "onUpdate": "no action"
1345
+ },
1346
+ "commits_committer_id_users_id_fk": {
1347
+ "name": "commits_committer_id_users_id_fk",
1348
+ "tableFrom": "commits",
1349
+ "tableTo": "users",
1350
+ "columnsFrom": [
1351
+ "committer_id"
1352
+ ],
1353
+ "columnsTo": [
1354
+ "id"
1355
+ ],
1356
+ "onDelete": "no action",
1357
+ "onUpdate": "no action"
1358
+ }
1359
+ },
1360
+ "compositePrimaryKeys": {},
1361
+ "uniqueConstraints": {},
1362
+ "policies": {},
1363
+ "checkConstraints": {},
1364
+ "isRLSEnabled": false
1365
+ },
1366
+ "public.events": {
1367
+ "name": "events",
1368
+ "schema": "",
1369
+ "columns": {
1370
+ "id": {
1371
+ "name": "id",
1372
+ "type": "serial",
1373
+ "primaryKey": true,
1374
+ "notNull": true
1375
+ },
1376
+ "account_id": {
1377
+ "name": "account_id",
1378
+ "type": "integer",
1379
+ "primaryKey": false,
1380
+ "notNull": true
1381
+ },
1382
+ "repo_id": {
1383
+ "name": "repo_id",
1384
+ "type": "integer",
1385
+ "primaryKey": false,
1386
+ "notNull": true
1387
+ },
1388
+ "actor_id": {
1389
+ "name": "actor_id",
1390
+ "type": "integer",
1391
+ "primaryKey": false,
1392
+ "notNull": false
1393
+ },
1394
+ "pr_id": {
1395
+ "name": "pr_id",
1396
+ "type": "integer",
1397
+ "primaryKey": false,
1398
+ "notNull": false
1399
+ },
1400
+ "type": {
1401
+ "name": "type",
1402
+ "type": "text",
1403
+ "primaryKey": false,
1404
+ "notNull": true
1405
+ },
1406
+ "occurred_at": {
1407
+ "name": "occurred_at",
1408
+ "type": "timestamp with time zone",
1409
+ "primaryKey": false,
1410
+ "notNull": true
1411
+ },
1412
+ "ref_table": {
1413
+ "name": "ref_table",
1414
+ "type": "text",
1415
+ "primaryKey": false,
1416
+ "notNull": false
1417
+ },
1418
+ "ref_id": {
1419
+ "name": "ref_id",
1420
+ "type": "integer",
1421
+ "primaryKey": false,
1422
+ "notNull": false
1423
+ },
1424
+ "dedupe_key": {
1425
+ "name": "dedupe_key",
1426
+ "type": "text",
1427
+ "primaryKey": false,
1428
+ "notNull": true
1429
+ }
1430
+ },
1431
+ "indexes": {
1432
+ "events_time_idx": {
1433
+ "name": "events_time_idx",
1434
+ "columns": [
1435
+ {
1436
+ "expression": "occurred_at",
1437
+ "isExpression": false,
1438
+ "asc": true,
1439
+ "nulls": "last"
1440
+ }
1441
+ ],
1442
+ "isUnique": false,
1443
+ "concurrently": false,
1444
+ "method": "btree",
1445
+ "with": {}
1446
+ },
1447
+ "events_repo_time_idx": {
1448
+ "name": "events_repo_time_idx",
1449
+ "columns": [
1450
+ {
1451
+ "expression": "repo_id",
1452
+ "isExpression": false,
1453
+ "asc": true,
1454
+ "nulls": "last"
1455
+ },
1456
+ {
1457
+ "expression": "occurred_at",
1458
+ "isExpression": false,
1459
+ "asc": true,
1460
+ "nulls": "last"
1461
+ }
1462
+ ],
1463
+ "isUnique": false,
1464
+ "concurrently": false,
1465
+ "method": "btree",
1466
+ "with": {}
1467
+ },
1468
+ "events_actor_idx": {
1469
+ "name": "events_actor_idx",
1470
+ "columns": [
1471
+ {
1472
+ "expression": "actor_id",
1473
+ "isExpression": false,
1474
+ "asc": true,
1475
+ "nulls": "last"
1476
+ }
1477
+ ],
1478
+ "isUnique": false,
1479
+ "concurrently": false,
1480
+ "method": "btree",
1481
+ "with": {}
1482
+ },
1483
+ "events_account_idx": {
1484
+ "name": "events_account_idx",
1485
+ "columns": [
1486
+ {
1487
+ "expression": "account_id",
1488
+ "isExpression": false,
1489
+ "asc": true,
1490
+ "nulls": "last"
1491
+ }
1492
+ ],
1493
+ "isUnique": false,
1494
+ "concurrently": false,
1495
+ "method": "btree",
1496
+ "with": {}
1497
+ },
1498
+ "events_pr_idx": {
1499
+ "name": "events_pr_idx",
1500
+ "columns": [
1501
+ {
1502
+ "expression": "pr_id",
1503
+ "isExpression": false,
1504
+ "asc": true,
1505
+ "nulls": "last"
1506
+ },
1507
+ {
1508
+ "expression": "occurred_at",
1509
+ "isExpression": false,
1510
+ "asc": true,
1511
+ "nulls": "last"
1512
+ }
1513
+ ],
1514
+ "isUnique": false,
1515
+ "concurrently": false,
1516
+ "method": "btree",
1517
+ "with": {}
1518
+ },
1519
+ "events_account_dedupe": {
1520
+ "name": "events_account_dedupe",
1521
+ "columns": [
1522
+ {
1523
+ "expression": "account_id",
1524
+ "isExpression": false,
1525
+ "asc": true,
1526
+ "nulls": "last"
1527
+ },
1528
+ {
1529
+ "expression": "dedupe_key",
1530
+ "isExpression": false,
1531
+ "asc": true,
1532
+ "nulls": "last"
1533
+ }
1534
+ ],
1535
+ "isUnique": true,
1536
+ "concurrently": false,
1537
+ "method": "btree",
1538
+ "with": {}
1539
+ }
1540
+ },
1541
+ "foreignKeys": {
1542
+ "events_account_id_accounts_id_fk": {
1543
+ "name": "events_account_id_accounts_id_fk",
1544
+ "tableFrom": "events",
1545
+ "tableTo": "accounts",
1546
+ "columnsFrom": [
1547
+ "account_id"
1548
+ ],
1549
+ "columnsTo": [
1550
+ "id"
1551
+ ],
1552
+ "onDelete": "no action",
1553
+ "onUpdate": "no action"
1554
+ },
1555
+ "events_repo_id_repos_id_fk": {
1556
+ "name": "events_repo_id_repos_id_fk",
1557
+ "tableFrom": "events",
1558
+ "tableTo": "repos",
1559
+ "columnsFrom": [
1560
+ "repo_id"
1561
+ ],
1562
+ "columnsTo": [
1563
+ "id"
1564
+ ],
1565
+ "onDelete": "no action",
1566
+ "onUpdate": "no action"
1567
+ },
1568
+ "events_actor_id_users_id_fk": {
1569
+ "name": "events_actor_id_users_id_fk",
1570
+ "tableFrom": "events",
1571
+ "tableTo": "users",
1572
+ "columnsFrom": [
1573
+ "actor_id"
1574
+ ],
1575
+ "columnsTo": [
1576
+ "id"
1577
+ ],
1578
+ "onDelete": "no action",
1579
+ "onUpdate": "no action"
1580
+ },
1581
+ "events_pr_id_pull_requests_id_fk": {
1582
+ "name": "events_pr_id_pull_requests_id_fk",
1583
+ "tableFrom": "events",
1584
+ "tableTo": "pull_requests",
1585
+ "columnsFrom": [
1586
+ "pr_id"
1587
+ ],
1588
+ "columnsTo": [
1589
+ "id"
1590
+ ],
1591
+ "onDelete": "no action",
1592
+ "onUpdate": "no action"
1593
+ }
1594
+ },
1595
+ "compositePrimaryKeys": {},
1596
+ "uniqueConstraints": {},
1597
+ "policies": {},
1598
+ "checkConstraints": {},
1599
+ "isRLSEnabled": false
1600
+ },
1601
+ "public.my_turn_dismissals": {
1602
+ "name": "my_turn_dismissals",
1603
+ "schema": "",
1604
+ "columns": {
1605
+ "id": {
1606
+ "name": "id",
1607
+ "type": "serial",
1608
+ "primaryKey": true,
1609
+ "notNull": true
1610
+ },
1611
+ "account_id": {
1612
+ "name": "account_id",
1613
+ "type": "integer",
1614
+ "primaryKey": false,
1615
+ "notNull": true
1616
+ },
1617
+ "kind": {
1618
+ "name": "kind",
1619
+ "type": "text",
1620
+ "primaryKey": false,
1621
+ "notNull": true
1622
+ },
1623
+ "ref_id": {
1624
+ "name": "ref_id",
1625
+ "type": "integer",
1626
+ "primaryKey": false,
1627
+ "notNull": true
1628
+ },
1629
+ "dismissed_at": {
1630
+ "name": "dismissed_at",
1631
+ "type": "timestamp with time zone",
1632
+ "primaryKey": false,
1633
+ "notNull": true
1634
+ }
1635
+ },
1636
+ "indexes": {
1637
+ "mtd_kind_ref_ux": {
1638
+ "name": "mtd_kind_ref_ux",
1639
+ "columns": [
1640
+ {
1641
+ "expression": "kind",
1642
+ "isExpression": false,
1643
+ "asc": true,
1644
+ "nulls": "last"
1645
+ },
1646
+ {
1647
+ "expression": "ref_id",
1648
+ "isExpression": false,
1649
+ "asc": true,
1650
+ "nulls": "last"
1651
+ }
1652
+ ],
1653
+ "isUnique": true,
1654
+ "concurrently": false,
1655
+ "method": "btree",
1656
+ "with": {}
1657
+ },
1658
+ "mtd_account_idx": {
1659
+ "name": "mtd_account_idx",
1660
+ "columns": [
1661
+ {
1662
+ "expression": "account_id",
1663
+ "isExpression": false,
1664
+ "asc": true,
1665
+ "nulls": "last"
1666
+ }
1667
+ ],
1668
+ "isUnique": false,
1669
+ "concurrently": false,
1670
+ "method": "btree",
1671
+ "with": {}
1672
+ }
1673
+ },
1674
+ "foreignKeys": {
1675
+ "my_turn_dismissals_account_id_accounts_id_fk": {
1676
+ "name": "my_turn_dismissals_account_id_accounts_id_fk",
1677
+ "tableFrom": "my_turn_dismissals",
1678
+ "tableTo": "accounts",
1679
+ "columnsFrom": [
1680
+ "account_id"
1681
+ ],
1682
+ "columnsTo": [
1683
+ "id"
1684
+ ],
1685
+ "onDelete": "no action",
1686
+ "onUpdate": "no action"
1687
+ }
1688
+ },
1689
+ "compositePrimaryKeys": {},
1690
+ "uniqueConstraints": {},
1691
+ "policies": {},
1692
+ "checkConstraints": {},
1693
+ "isRLSEnabled": false
1694
+ },
1695
+ "public.pr_comments": {
1696
+ "name": "pr_comments",
1697
+ "schema": "",
1698
+ "columns": {
1699
+ "id": {
1700
+ "name": "id",
1701
+ "type": "serial",
1702
+ "primaryKey": true,
1703
+ "notNull": true
1704
+ },
1705
+ "github_node_id": {
1706
+ "name": "github_node_id",
1707
+ "type": "text",
1708
+ "primaryKey": false,
1709
+ "notNull": true
1710
+ },
1711
+ "pr_id": {
1712
+ "name": "pr_id",
1713
+ "type": "integer",
1714
+ "primaryKey": false,
1715
+ "notNull": true
1716
+ },
1717
+ "author_id": {
1718
+ "name": "author_id",
1719
+ "type": "integer",
1720
+ "primaryKey": false,
1721
+ "notNull": false
1722
+ },
1723
+ "body": {
1724
+ "name": "body",
1725
+ "type": "text",
1726
+ "primaryKey": false,
1727
+ "notNull": false
1728
+ },
1729
+ "database_id": {
1730
+ "name": "database_id",
1731
+ "type": "text",
1732
+ "primaryKey": false,
1733
+ "notNull": false
1734
+ },
1735
+ "created_at": {
1736
+ "name": "created_at",
1737
+ "type": "timestamp with time zone",
1738
+ "primaryKey": false,
1739
+ "notNull": true
1740
+ }
1741
+ },
1742
+ "indexes": {
1743
+ "prc_pr_idx": {
1744
+ "name": "prc_pr_idx",
1745
+ "columns": [
1746
+ {
1747
+ "expression": "pr_id",
1748
+ "isExpression": false,
1749
+ "asc": true,
1750
+ "nulls": "last"
1751
+ }
1752
+ ],
1753
+ "isUnique": false,
1754
+ "concurrently": false,
1755
+ "method": "btree",
1756
+ "with": {}
1757
+ },
1758
+ "prc_pr_node": {
1759
+ "name": "prc_pr_node",
1760
+ "columns": [
1761
+ {
1762
+ "expression": "pr_id",
1763
+ "isExpression": false,
1764
+ "asc": true,
1765
+ "nulls": "last"
1766
+ },
1767
+ {
1768
+ "expression": "github_node_id",
1769
+ "isExpression": false,
1770
+ "asc": true,
1771
+ "nulls": "last"
1772
+ }
1773
+ ],
1774
+ "isUnique": true,
1775
+ "concurrently": false,
1776
+ "method": "btree",
1777
+ "with": {}
1778
+ }
1779
+ },
1780
+ "foreignKeys": {
1781
+ "pr_comments_pr_id_pull_requests_id_fk": {
1782
+ "name": "pr_comments_pr_id_pull_requests_id_fk",
1783
+ "tableFrom": "pr_comments",
1784
+ "tableTo": "pull_requests",
1785
+ "columnsFrom": [
1786
+ "pr_id"
1787
+ ],
1788
+ "columnsTo": [
1789
+ "id"
1790
+ ],
1791
+ "onDelete": "no action",
1792
+ "onUpdate": "no action"
1793
+ },
1794
+ "pr_comments_author_id_users_id_fk": {
1795
+ "name": "pr_comments_author_id_users_id_fk",
1796
+ "tableFrom": "pr_comments",
1797
+ "tableTo": "users",
1798
+ "columnsFrom": [
1799
+ "author_id"
1800
+ ],
1801
+ "columnsTo": [
1802
+ "id"
1803
+ ],
1804
+ "onDelete": "no action",
1805
+ "onUpdate": "no action"
1806
+ }
1807
+ },
1808
+ "compositePrimaryKeys": {},
1809
+ "uniqueConstraints": {},
1810
+ "policies": {},
1811
+ "checkConstraints": {},
1812
+ "isRLSEnabled": false
1813
+ },
1814
+ "public.pr_views": {
1815
+ "name": "pr_views",
1816
+ "schema": "",
1817
+ "columns": {
1818
+ "pr_id": {
1819
+ "name": "pr_id",
1820
+ "type": "integer",
1821
+ "primaryKey": true,
1822
+ "notNull": true
1823
+ },
1824
+ "last_viewed_sha": {
1825
+ "name": "last_viewed_sha",
1826
+ "type": "text",
1827
+ "primaryKey": false,
1828
+ "notNull": false
1829
+ },
1830
+ "last_viewed_at": {
1831
+ "name": "last_viewed_at",
1832
+ "type": "timestamp with time zone",
1833
+ "primaryKey": false,
1834
+ "notNull": true
1835
+ }
1836
+ },
1837
+ "indexes": {},
1838
+ "foreignKeys": {
1839
+ "pr_views_pr_id_pull_requests_id_fk": {
1840
+ "name": "pr_views_pr_id_pull_requests_id_fk",
1841
+ "tableFrom": "pr_views",
1842
+ "tableTo": "pull_requests",
1843
+ "columnsFrom": [
1844
+ "pr_id"
1845
+ ],
1846
+ "columnsTo": [
1847
+ "id"
1848
+ ],
1849
+ "onDelete": "no action",
1850
+ "onUpdate": "no action"
1851
+ }
1852
+ },
1853
+ "compositePrimaryKeys": {},
1854
+ "uniqueConstraints": {},
1855
+ "policies": {},
1856
+ "checkConstraints": {},
1857
+ "isRLSEnabled": false
1858
+ },
1859
+ "public.pull_requests": {
1860
+ "name": "pull_requests",
1861
+ "schema": "",
1862
+ "columns": {
1863
+ "id": {
1864
+ "name": "id",
1865
+ "type": "serial",
1866
+ "primaryKey": true,
1867
+ "notNull": true
1868
+ },
1869
+ "github_node_id": {
1870
+ "name": "github_node_id",
1871
+ "type": "text",
1872
+ "primaryKey": false,
1873
+ "notNull": true
1874
+ },
1875
+ "account_id": {
1876
+ "name": "account_id",
1877
+ "type": "integer",
1878
+ "primaryKey": false,
1879
+ "notNull": true
1880
+ },
1881
+ "repo_id": {
1882
+ "name": "repo_id",
1883
+ "type": "integer",
1884
+ "primaryKey": false,
1885
+ "notNull": true
1886
+ },
1887
+ "number": {
1888
+ "name": "number",
1889
+ "type": "integer",
1890
+ "primaryKey": false,
1891
+ "notNull": true
1892
+ },
1893
+ "title": {
1894
+ "name": "title",
1895
+ "type": "text",
1896
+ "primaryKey": false,
1897
+ "notNull": true
1898
+ },
1899
+ "body": {
1900
+ "name": "body",
1901
+ "type": "text",
1902
+ "primaryKey": false,
1903
+ "notNull": false
1904
+ },
1905
+ "author_id": {
1906
+ "name": "author_id",
1907
+ "type": "integer",
1908
+ "primaryKey": false,
1909
+ "notNull": false
1910
+ },
1911
+ "merged_by_id": {
1912
+ "name": "merged_by_id",
1913
+ "type": "integer",
1914
+ "primaryKey": false,
1915
+ "notNull": false
1916
+ },
1917
+ "base_ref_name": {
1918
+ "name": "base_ref_name",
1919
+ "type": "text",
1920
+ "primaryKey": false,
1921
+ "notNull": false
1922
+ },
1923
+ "head_ref_name": {
1924
+ "name": "head_ref_name",
1925
+ "type": "text",
1926
+ "primaryKey": false,
1927
+ "notNull": false
1928
+ },
1929
+ "state": {
1930
+ "name": "state",
1931
+ "type": "text",
1932
+ "primaryKey": false,
1933
+ "notNull": true
1934
+ },
1935
+ "is_draft": {
1936
+ "name": "is_draft",
1937
+ "type": "boolean",
1938
+ "primaryKey": false,
1939
+ "notNull": true,
1940
+ "default": false
1941
+ },
1942
+ "opened_at": {
1943
+ "name": "opened_at",
1944
+ "type": "timestamp with time zone",
1945
+ "primaryKey": false,
1946
+ "notNull": true
1947
+ },
1948
+ "first_review_at": {
1949
+ "name": "first_review_at",
1950
+ "type": "timestamp with time zone",
1951
+ "primaryKey": false,
1952
+ "notNull": false
1953
+ },
1954
+ "last_commit_at": {
1955
+ "name": "last_commit_at",
1956
+ "type": "timestamp with time zone",
1957
+ "primaryKey": false,
1958
+ "notNull": false
1959
+ },
1960
+ "merged_at": {
1961
+ "name": "merged_at",
1962
+ "type": "timestamp with time zone",
1963
+ "primaryKey": false,
1964
+ "notNull": false
1965
+ },
1966
+ "closed_at": {
1967
+ "name": "closed_at",
1968
+ "type": "timestamp with time zone",
1969
+ "primaryKey": false,
1970
+ "notNull": false
1971
+ },
1972
+ "updated_at": {
1973
+ "name": "updated_at",
1974
+ "type": "timestamp with time zone",
1975
+ "primaryKey": false,
1976
+ "notNull": true
1977
+ },
1978
+ "head_sha": {
1979
+ "name": "head_sha",
1980
+ "type": "text",
1981
+ "primaryKey": false,
1982
+ "notNull": false
1983
+ },
1984
+ "ci_status": {
1985
+ "name": "ci_status",
1986
+ "type": "text",
1987
+ "primaryKey": false,
1988
+ "notNull": false
1989
+ },
1990
+ "mergeable": {
1991
+ "name": "mergeable",
1992
+ "type": "text",
1993
+ "primaryKey": false,
1994
+ "notNull": false
1995
+ },
1996
+ "merge_state_status": {
1997
+ "name": "merge_state_status",
1998
+ "type": "text",
1999
+ "primaryKey": false,
2000
+ "notNull": false
2001
+ },
2002
+ "labels": {
2003
+ "name": "labels",
2004
+ "type": "jsonb",
2005
+ "primaryKey": false,
2006
+ "notNull": false
2007
+ },
2008
+ "check_runs": {
2009
+ "name": "check_runs",
2010
+ "type": "jsonb",
2011
+ "primaryKey": false,
2012
+ "notNull": false
2013
+ },
2014
+ "additions": {
2015
+ "name": "additions",
2016
+ "type": "integer",
2017
+ "primaryKey": false,
2018
+ "notNull": true,
2019
+ "default": 0
2020
+ },
2021
+ "deletions": {
2022
+ "name": "deletions",
2023
+ "type": "integer",
2024
+ "primaryKey": false,
2025
+ "notNull": true,
2026
+ "default": 0
2027
+ },
2028
+ "changed_files": {
2029
+ "name": "changed_files",
2030
+ "type": "integer",
2031
+ "primaryKey": false,
2032
+ "notNull": true,
2033
+ "default": 0
2034
+ },
2035
+ "files": {
2036
+ "name": "files",
2037
+ "type": "jsonb",
2038
+ "primaryKey": false,
2039
+ "notNull": false
2040
+ }
2041
+ },
2042
+ "indexes": {
2043
+ "pr_repo_idx": {
2044
+ "name": "pr_repo_idx",
2045
+ "columns": [
2046
+ {
2047
+ "expression": "repo_id",
2048
+ "isExpression": false,
2049
+ "asc": true,
2050
+ "nulls": "last"
2051
+ }
2052
+ ],
2053
+ "isUnique": false,
2054
+ "concurrently": false,
2055
+ "method": "btree",
2056
+ "with": {}
2057
+ },
2058
+ "pr_opened_idx": {
2059
+ "name": "pr_opened_idx",
2060
+ "columns": [
2061
+ {
2062
+ "expression": "opened_at",
2063
+ "isExpression": false,
2064
+ "asc": true,
2065
+ "nulls": "last"
2066
+ }
2067
+ ],
2068
+ "isUnique": false,
2069
+ "concurrently": false,
2070
+ "method": "btree",
2071
+ "with": {}
2072
+ },
2073
+ "pr_account_idx": {
2074
+ "name": "pr_account_idx",
2075
+ "columns": [
2076
+ {
2077
+ "expression": "account_id",
2078
+ "isExpression": false,
2079
+ "asc": true,
2080
+ "nulls": "last"
2081
+ }
2082
+ ],
2083
+ "isUnique": false,
2084
+ "concurrently": false,
2085
+ "method": "btree",
2086
+ "with": {}
2087
+ },
2088
+ "pr_account_node": {
2089
+ "name": "pr_account_node",
2090
+ "columns": [
2091
+ {
2092
+ "expression": "account_id",
2093
+ "isExpression": false,
2094
+ "asc": true,
2095
+ "nulls": "last"
2096
+ },
2097
+ {
2098
+ "expression": "github_node_id",
2099
+ "isExpression": false,
2100
+ "asc": true,
2101
+ "nulls": "last"
2102
+ }
2103
+ ],
2104
+ "isUnique": true,
2105
+ "concurrently": false,
2106
+ "method": "btree",
2107
+ "with": {}
2108
+ }
2109
+ },
2110
+ "foreignKeys": {
2111
+ "pull_requests_account_id_accounts_id_fk": {
2112
+ "name": "pull_requests_account_id_accounts_id_fk",
2113
+ "tableFrom": "pull_requests",
2114
+ "tableTo": "accounts",
2115
+ "columnsFrom": [
2116
+ "account_id"
2117
+ ],
2118
+ "columnsTo": [
2119
+ "id"
2120
+ ],
2121
+ "onDelete": "no action",
2122
+ "onUpdate": "no action"
2123
+ },
2124
+ "pull_requests_repo_id_repos_id_fk": {
2125
+ "name": "pull_requests_repo_id_repos_id_fk",
2126
+ "tableFrom": "pull_requests",
2127
+ "tableTo": "repos",
2128
+ "columnsFrom": [
2129
+ "repo_id"
2130
+ ],
2131
+ "columnsTo": [
2132
+ "id"
2133
+ ],
2134
+ "onDelete": "no action",
2135
+ "onUpdate": "no action"
2136
+ },
2137
+ "pull_requests_author_id_users_id_fk": {
2138
+ "name": "pull_requests_author_id_users_id_fk",
2139
+ "tableFrom": "pull_requests",
2140
+ "tableTo": "users",
2141
+ "columnsFrom": [
2142
+ "author_id"
2143
+ ],
2144
+ "columnsTo": [
2145
+ "id"
2146
+ ],
2147
+ "onDelete": "no action",
2148
+ "onUpdate": "no action"
2149
+ },
2150
+ "pull_requests_merged_by_id_users_id_fk": {
2151
+ "name": "pull_requests_merged_by_id_users_id_fk",
2152
+ "tableFrom": "pull_requests",
2153
+ "tableTo": "users",
2154
+ "columnsFrom": [
2155
+ "merged_by_id"
2156
+ ],
2157
+ "columnsTo": [
2158
+ "id"
2159
+ ],
2160
+ "onDelete": "no action",
2161
+ "onUpdate": "no action"
2162
+ }
2163
+ },
2164
+ "compositePrimaryKeys": {},
2165
+ "uniqueConstraints": {},
2166
+ "policies": {},
2167
+ "checkConstraints": {},
2168
+ "isRLSEnabled": false
2169
+ },
2170
+ "public.repos": {
2171
+ "name": "repos",
2172
+ "schema": "",
2173
+ "columns": {
2174
+ "id": {
2175
+ "name": "id",
2176
+ "type": "serial",
2177
+ "primaryKey": true,
2178
+ "notNull": true
2179
+ },
2180
+ "account_id": {
2181
+ "name": "account_id",
2182
+ "type": "integer",
2183
+ "primaryKey": false,
2184
+ "notNull": true
2185
+ },
2186
+ "owner": {
2187
+ "name": "owner",
2188
+ "type": "text",
2189
+ "primaryKey": false,
2190
+ "notNull": true
2191
+ },
2192
+ "name": {
2193
+ "name": "name",
2194
+ "type": "text",
2195
+ "primaryKey": false,
2196
+ "notNull": true
2197
+ },
2198
+ "github_node_id": {
2199
+ "name": "github_node_id",
2200
+ "type": "text",
2201
+ "primaryKey": false,
2202
+ "notNull": true
2203
+ },
2204
+ "default_branch": {
2205
+ "name": "default_branch",
2206
+ "type": "text",
2207
+ "primaryKey": false,
2208
+ "notNull": false
2209
+ },
2210
+ "viewer_permission": {
2211
+ "name": "viewer_permission",
2212
+ "type": "text",
2213
+ "primaryKey": false,
2214
+ "notNull": false
2215
+ },
2216
+ "backfill_until": {
2217
+ "name": "backfill_until",
2218
+ "type": "timestamp with time zone",
2219
+ "primaryKey": false,
2220
+ "notNull": false
2221
+ },
2222
+ "inbox_watch": {
2223
+ "name": "inbox_watch",
2224
+ "type": "boolean",
2225
+ "primaryKey": false,
2226
+ "notNull": true,
2227
+ "default": false
2228
+ },
2229
+ "inbox_watch_started_at": {
2230
+ "name": "inbox_watch_started_at",
2231
+ "type": "timestamp with time zone",
2232
+ "primaryKey": false,
2233
+ "notNull": false
2234
+ },
2235
+ "created_at": {
2236
+ "name": "created_at",
2237
+ "type": "timestamp with time zone",
2238
+ "primaryKey": false,
2239
+ "notNull": true,
2240
+ "default": "now()"
2241
+ }
2242
+ },
2243
+ "indexes": {
2244
+ "repos_account_owner_name": {
2245
+ "name": "repos_account_owner_name",
2246
+ "columns": [
2247
+ {
2248
+ "expression": "account_id",
2249
+ "isExpression": false,
2250
+ "asc": true,
2251
+ "nulls": "last"
2252
+ },
2253
+ {
2254
+ "expression": "owner",
2255
+ "isExpression": false,
2256
+ "asc": true,
2257
+ "nulls": "last"
2258
+ },
2259
+ {
2260
+ "expression": "name",
2261
+ "isExpression": false,
2262
+ "asc": true,
2263
+ "nulls": "last"
2264
+ }
2265
+ ],
2266
+ "isUnique": true,
2267
+ "concurrently": false,
2268
+ "method": "btree",
2269
+ "with": {}
2270
+ },
2271
+ "repos_account_node": {
2272
+ "name": "repos_account_node",
2273
+ "columns": [
2274
+ {
2275
+ "expression": "account_id",
2276
+ "isExpression": false,
2277
+ "asc": true,
2278
+ "nulls": "last"
2279
+ },
2280
+ {
2281
+ "expression": "github_node_id",
2282
+ "isExpression": false,
2283
+ "asc": true,
2284
+ "nulls": "last"
2285
+ }
2286
+ ],
2287
+ "isUnique": true,
2288
+ "concurrently": false,
2289
+ "method": "btree",
2290
+ "with": {}
2291
+ },
2292
+ "repos_account_idx": {
2293
+ "name": "repos_account_idx",
2294
+ "columns": [
2295
+ {
2296
+ "expression": "account_id",
2297
+ "isExpression": false,
2298
+ "asc": true,
2299
+ "nulls": "last"
2300
+ }
2301
+ ],
2302
+ "isUnique": false,
2303
+ "concurrently": false,
2304
+ "method": "btree",
2305
+ "with": {}
2306
+ }
2307
+ },
2308
+ "foreignKeys": {
2309
+ "repos_account_id_accounts_id_fk": {
2310
+ "name": "repos_account_id_accounts_id_fk",
2311
+ "tableFrom": "repos",
2312
+ "tableTo": "accounts",
2313
+ "columnsFrom": [
2314
+ "account_id"
2315
+ ],
2316
+ "columnsTo": [
2317
+ "id"
2318
+ ],
2319
+ "onDelete": "no action",
2320
+ "onUpdate": "no action"
2321
+ }
2322
+ },
2323
+ "compositePrimaryKeys": {},
2324
+ "uniqueConstraints": {},
2325
+ "policies": {},
2326
+ "checkConstraints": {},
2327
+ "isRLSEnabled": false
2328
+ },
2329
+ "public.review_comments": {
2330
+ "name": "review_comments",
2331
+ "schema": "",
2332
+ "columns": {
2333
+ "id": {
2334
+ "name": "id",
2335
+ "type": "serial",
2336
+ "primaryKey": true,
2337
+ "notNull": true
2338
+ },
2339
+ "github_node_id": {
2340
+ "name": "github_node_id",
2341
+ "type": "text",
2342
+ "primaryKey": false,
2343
+ "notNull": true
2344
+ },
2345
+ "thread_id": {
2346
+ "name": "thread_id",
2347
+ "type": "integer",
2348
+ "primaryKey": false,
2349
+ "notNull": true
2350
+ },
2351
+ "pr_id": {
2352
+ "name": "pr_id",
2353
+ "type": "integer",
2354
+ "primaryKey": false,
2355
+ "notNull": true
2356
+ },
2357
+ "author_id": {
2358
+ "name": "author_id",
2359
+ "type": "integer",
2360
+ "primaryKey": false,
2361
+ "notNull": false
2362
+ },
2363
+ "body": {
2364
+ "name": "body",
2365
+ "type": "text",
2366
+ "primaryKey": false,
2367
+ "notNull": false
2368
+ },
2369
+ "excerpt": {
2370
+ "name": "excerpt",
2371
+ "type": "text",
2372
+ "primaryKey": false,
2373
+ "notNull": false
2374
+ },
2375
+ "diff_hunk": {
2376
+ "name": "diff_hunk",
2377
+ "type": "text",
2378
+ "primaryKey": false,
2379
+ "notNull": false
2380
+ },
2381
+ "database_id": {
2382
+ "name": "database_id",
2383
+ "type": "text",
2384
+ "primaryKey": false,
2385
+ "notNull": false
2386
+ },
2387
+ "created_at": {
2388
+ "name": "created_at",
2389
+ "type": "timestamp with time zone",
2390
+ "primaryKey": false,
2391
+ "notNull": true
2392
+ }
2393
+ },
2394
+ "indexes": {
2395
+ "rc_thread_idx": {
2396
+ "name": "rc_thread_idx",
2397
+ "columns": [
2398
+ {
2399
+ "expression": "thread_id",
2400
+ "isExpression": false,
2401
+ "asc": true,
2402
+ "nulls": "last"
2403
+ }
2404
+ ],
2405
+ "isUnique": false,
2406
+ "concurrently": false,
2407
+ "method": "btree",
2408
+ "with": {}
2409
+ },
2410
+ "rc_pr_node": {
2411
+ "name": "rc_pr_node",
2412
+ "columns": [
2413
+ {
2414
+ "expression": "pr_id",
2415
+ "isExpression": false,
2416
+ "asc": true,
2417
+ "nulls": "last"
2418
+ },
2419
+ {
2420
+ "expression": "github_node_id",
2421
+ "isExpression": false,
2422
+ "asc": true,
2423
+ "nulls": "last"
2424
+ }
2425
+ ],
2426
+ "isUnique": true,
2427
+ "concurrently": false,
2428
+ "method": "btree",
2429
+ "with": {}
2430
+ }
2431
+ },
2432
+ "foreignKeys": {
2433
+ "review_comments_thread_id_review_threads_id_fk": {
2434
+ "name": "review_comments_thread_id_review_threads_id_fk",
2435
+ "tableFrom": "review_comments",
2436
+ "tableTo": "review_threads",
2437
+ "columnsFrom": [
2438
+ "thread_id"
2439
+ ],
2440
+ "columnsTo": [
2441
+ "id"
2442
+ ],
2443
+ "onDelete": "no action",
2444
+ "onUpdate": "no action"
2445
+ },
2446
+ "review_comments_pr_id_pull_requests_id_fk": {
2447
+ "name": "review_comments_pr_id_pull_requests_id_fk",
2448
+ "tableFrom": "review_comments",
2449
+ "tableTo": "pull_requests",
2450
+ "columnsFrom": [
2451
+ "pr_id"
2452
+ ],
2453
+ "columnsTo": [
2454
+ "id"
2455
+ ],
2456
+ "onDelete": "no action",
2457
+ "onUpdate": "no action"
2458
+ },
2459
+ "review_comments_author_id_users_id_fk": {
2460
+ "name": "review_comments_author_id_users_id_fk",
2461
+ "tableFrom": "review_comments",
2462
+ "tableTo": "users",
2463
+ "columnsFrom": [
2464
+ "author_id"
2465
+ ],
2466
+ "columnsTo": [
2467
+ "id"
2468
+ ],
2469
+ "onDelete": "no action",
2470
+ "onUpdate": "no action"
2471
+ }
2472
+ },
2473
+ "compositePrimaryKeys": {},
2474
+ "uniqueConstraints": {},
2475
+ "policies": {},
2476
+ "checkConstraints": {},
2477
+ "isRLSEnabled": false
2478
+ },
2479
+ "public.review_requests": {
2480
+ "name": "review_requests",
2481
+ "schema": "",
2482
+ "columns": {
2483
+ "id": {
2484
+ "name": "id",
2485
+ "type": "serial",
2486
+ "primaryKey": true,
2487
+ "notNull": true
2488
+ },
2489
+ "pr_id": {
2490
+ "name": "pr_id",
2491
+ "type": "integer",
2492
+ "primaryKey": false,
2493
+ "notNull": true
2494
+ },
2495
+ "user_id": {
2496
+ "name": "user_id",
2497
+ "type": "integer",
2498
+ "primaryKey": false,
2499
+ "notNull": false
2500
+ },
2501
+ "team_name": {
2502
+ "name": "team_name",
2503
+ "type": "text",
2504
+ "primaryKey": false,
2505
+ "notNull": false
2506
+ }
2507
+ },
2508
+ "indexes": {
2509
+ "rr_pr_idx": {
2510
+ "name": "rr_pr_idx",
2511
+ "columns": [
2512
+ {
2513
+ "expression": "pr_id",
2514
+ "isExpression": false,
2515
+ "asc": true,
2516
+ "nulls": "last"
2517
+ }
2518
+ ],
2519
+ "isUnique": false,
2520
+ "concurrently": false,
2521
+ "method": "btree",
2522
+ "with": {}
2523
+ },
2524
+ "rr_user_idx": {
2525
+ "name": "rr_user_idx",
2526
+ "columns": [
2527
+ {
2528
+ "expression": "user_id",
2529
+ "isExpression": false,
2530
+ "asc": true,
2531
+ "nulls": "last"
2532
+ }
2533
+ ],
2534
+ "isUnique": false,
2535
+ "concurrently": false,
2536
+ "method": "btree",
2537
+ "with": {}
2538
+ }
2539
+ },
2540
+ "foreignKeys": {
2541
+ "review_requests_pr_id_pull_requests_id_fk": {
2542
+ "name": "review_requests_pr_id_pull_requests_id_fk",
2543
+ "tableFrom": "review_requests",
2544
+ "tableTo": "pull_requests",
2545
+ "columnsFrom": [
2546
+ "pr_id"
2547
+ ],
2548
+ "columnsTo": [
2549
+ "id"
2550
+ ],
2551
+ "onDelete": "no action",
2552
+ "onUpdate": "no action"
2553
+ },
2554
+ "review_requests_user_id_users_id_fk": {
2555
+ "name": "review_requests_user_id_users_id_fk",
2556
+ "tableFrom": "review_requests",
2557
+ "tableTo": "users",
2558
+ "columnsFrom": [
2559
+ "user_id"
2560
+ ],
2561
+ "columnsTo": [
2562
+ "id"
2563
+ ],
2564
+ "onDelete": "no action",
2565
+ "onUpdate": "no action"
2566
+ }
2567
+ },
2568
+ "compositePrimaryKeys": {},
2569
+ "uniqueConstraints": {},
2570
+ "policies": {},
2571
+ "checkConstraints": {},
2572
+ "isRLSEnabled": false
2573
+ },
2574
+ "public.review_threads": {
2575
+ "name": "review_threads",
2576
+ "schema": "",
2577
+ "columns": {
2578
+ "id": {
2579
+ "name": "id",
2580
+ "type": "serial",
2581
+ "primaryKey": true,
2582
+ "notNull": true
2583
+ },
2584
+ "github_node_id": {
2585
+ "name": "github_node_id",
2586
+ "type": "text",
2587
+ "primaryKey": false,
2588
+ "notNull": true
2589
+ },
2590
+ "pr_id": {
2591
+ "name": "pr_id",
2592
+ "type": "integer",
2593
+ "primaryKey": false,
2594
+ "notNull": true
2595
+ },
2596
+ "path": {
2597
+ "name": "path",
2598
+ "type": "text",
2599
+ "primaryKey": false,
2600
+ "notNull": true
2601
+ },
2602
+ "line": {
2603
+ "name": "line",
2604
+ "type": "integer",
2605
+ "primaryKey": false,
2606
+ "notNull": false
2607
+ },
2608
+ "is_resolved": {
2609
+ "name": "is_resolved",
2610
+ "type": "boolean",
2611
+ "primaryKey": false,
2612
+ "notNull": true
2613
+ },
2614
+ "is_outdated": {
2615
+ "name": "is_outdated",
2616
+ "type": "boolean",
2617
+ "primaryKey": false,
2618
+ "notNull": true,
2619
+ "default": false
2620
+ },
2621
+ "derived_state": {
2622
+ "name": "derived_state",
2623
+ "type": "text",
2624
+ "primaryKey": false,
2625
+ "notNull": true
2626
+ },
2627
+ "addressed_confidence": {
2628
+ "name": "addressed_confidence",
2629
+ "type": "text",
2630
+ "primaryKey": false,
2631
+ "notNull": true,
2632
+ "default": "'none'"
2633
+ },
2634
+ "addressed_reason": {
2635
+ "name": "addressed_reason",
2636
+ "type": "text",
2637
+ "primaryKey": false,
2638
+ "notNull": false
2639
+ },
2640
+ "resolved_by_login": {
2641
+ "name": "resolved_by_login",
2642
+ "type": "text",
2643
+ "primaryKey": false,
2644
+ "notNull": false
2645
+ },
2646
+ "original_commenter_id": {
2647
+ "name": "original_commenter_id",
2648
+ "type": "integer",
2649
+ "primaryKey": false,
2650
+ "notNull": false
2651
+ },
2652
+ "created_at": {
2653
+ "name": "created_at",
2654
+ "type": "timestamp with time zone",
2655
+ "primaryKey": false,
2656
+ "notNull": true
2657
+ }
2658
+ },
2659
+ "indexes": {
2660
+ "thread_pr_idx": {
2661
+ "name": "thread_pr_idx",
2662
+ "columns": [
2663
+ {
2664
+ "expression": "pr_id",
2665
+ "isExpression": false,
2666
+ "asc": true,
2667
+ "nulls": "last"
2668
+ }
2669
+ ],
2670
+ "isUnique": false,
2671
+ "concurrently": false,
2672
+ "method": "btree",
2673
+ "with": {}
2674
+ },
2675
+ "thread_pr_node": {
2676
+ "name": "thread_pr_node",
2677
+ "columns": [
2678
+ {
2679
+ "expression": "pr_id",
2680
+ "isExpression": false,
2681
+ "asc": true,
2682
+ "nulls": "last"
2683
+ },
2684
+ {
2685
+ "expression": "github_node_id",
2686
+ "isExpression": false,
2687
+ "asc": true,
2688
+ "nulls": "last"
2689
+ }
2690
+ ],
2691
+ "isUnique": true,
2692
+ "concurrently": false,
2693
+ "method": "btree",
2694
+ "with": {}
2695
+ }
2696
+ },
2697
+ "foreignKeys": {
2698
+ "review_threads_pr_id_pull_requests_id_fk": {
2699
+ "name": "review_threads_pr_id_pull_requests_id_fk",
2700
+ "tableFrom": "review_threads",
2701
+ "tableTo": "pull_requests",
2702
+ "columnsFrom": [
2703
+ "pr_id"
2704
+ ],
2705
+ "columnsTo": [
2706
+ "id"
2707
+ ],
2708
+ "onDelete": "no action",
2709
+ "onUpdate": "no action"
2710
+ },
2711
+ "review_threads_original_commenter_id_users_id_fk": {
2712
+ "name": "review_threads_original_commenter_id_users_id_fk",
2713
+ "tableFrom": "review_threads",
2714
+ "tableTo": "users",
2715
+ "columnsFrom": [
2716
+ "original_commenter_id"
2717
+ ],
2718
+ "columnsTo": [
2719
+ "id"
2720
+ ],
2721
+ "onDelete": "no action",
2722
+ "onUpdate": "no action"
2723
+ }
2724
+ },
2725
+ "compositePrimaryKeys": {},
2726
+ "uniqueConstraints": {},
2727
+ "policies": {},
2728
+ "checkConstraints": {},
2729
+ "isRLSEnabled": false
2730
+ },
2731
+ "public.reviews": {
2732
+ "name": "reviews",
2733
+ "schema": "",
2734
+ "columns": {
2735
+ "id": {
2736
+ "name": "id",
2737
+ "type": "serial",
2738
+ "primaryKey": true,
2739
+ "notNull": true
2740
+ },
2741
+ "github_node_id": {
2742
+ "name": "github_node_id",
2743
+ "type": "text",
2744
+ "primaryKey": false,
2745
+ "notNull": true
2746
+ },
2747
+ "pr_id": {
2748
+ "name": "pr_id",
2749
+ "type": "integer",
2750
+ "primaryKey": false,
2751
+ "notNull": true
2752
+ },
2753
+ "author_id": {
2754
+ "name": "author_id",
2755
+ "type": "integer",
2756
+ "primaryKey": false,
2757
+ "notNull": false
2758
+ },
2759
+ "state": {
2760
+ "name": "state",
2761
+ "type": "text",
2762
+ "primaryKey": false,
2763
+ "notNull": true
2764
+ },
2765
+ "body": {
2766
+ "name": "body",
2767
+ "type": "text",
2768
+ "primaryKey": false,
2769
+ "notNull": false
2770
+ },
2771
+ "database_id": {
2772
+ "name": "database_id",
2773
+ "type": "text",
2774
+ "primaryKey": false,
2775
+ "notNull": false
2776
+ },
2777
+ "submitted_at": {
2778
+ "name": "submitted_at",
2779
+ "type": "timestamp with time zone",
2780
+ "primaryKey": false,
2781
+ "notNull": true
2782
+ }
2783
+ },
2784
+ "indexes": {
2785
+ "rv_pr_idx": {
2786
+ "name": "rv_pr_idx",
2787
+ "columns": [
2788
+ {
2789
+ "expression": "pr_id",
2790
+ "isExpression": false,
2791
+ "asc": true,
2792
+ "nulls": "last"
2793
+ }
2794
+ ],
2795
+ "isUnique": false,
2796
+ "concurrently": false,
2797
+ "method": "btree",
2798
+ "with": {}
2799
+ },
2800
+ "reviews_pr_node": {
2801
+ "name": "reviews_pr_node",
2802
+ "columns": [
2803
+ {
2804
+ "expression": "pr_id",
2805
+ "isExpression": false,
2806
+ "asc": true,
2807
+ "nulls": "last"
2808
+ },
2809
+ {
2810
+ "expression": "github_node_id",
2811
+ "isExpression": false,
2812
+ "asc": true,
2813
+ "nulls": "last"
2814
+ }
2815
+ ],
2816
+ "isUnique": true,
2817
+ "concurrently": false,
2818
+ "method": "btree",
2819
+ "with": {}
2820
+ }
2821
+ },
2822
+ "foreignKeys": {
2823
+ "reviews_pr_id_pull_requests_id_fk": {
2824
+ "name": "reviews_pr_id_pull_requests_id_fk",
2825
+ "tableFrom": "reviews",
2826
+ "tableTo": "pull_requests",
2827
+ "columnsFrom": [
2828
+ "pr_id"
2829
+ ],
2830
+ "columnsTo": [
2831
+ "id"
2832
+ ],
2833
+ "onDelete": "no action",
2834
+ "onUpdate": "no action"
2835
+ },
2836
+ "reviews_author_id_users_id_fk": {
2837
+ "name": "reviews_author_id_users_id_fk",
2838
+ "tableFrom": "reviews",
2839
+ "tableTo": "users",
2840
+ "columnsFrom": [
2841
+ "author_id"
2842
+ ],
2843
+ "columnsTo": [
2844
+ "id"
2845
+ ],
2846
+ "onDelete": "no action",
2847
+ "onUpdate": "no action"
2848
+ }
2849
+ },
2850
+ "compositePrimaryKeys": {},
2851
+ "uniqueConstraints": {},
2852
+ "policies": {},
2853
+ "checkConstraints": {},
2854
+ "isRLSEnabled": false
2855
+ },
2856
+ "public.sync_state": {
2857
+ "name": "sync_state",
2858
+ "schema": "",
2859
+ "columns": {
2860
+ "repo_id": {
2861
+ "name": "repo_id",
2862
+ "type": "integer",
2863
+ "primaryKey": true,
2864
+ "notNull": true
2865
+ },
2866
+ "last_full_sync_at": {
2867
+ "name": "last_full_sync_at",
2868
+ "type": "timestamp with time zone",
2869
+ "primaryKey": false,
2870
+ "notNull": false
2871
+ },
2872
+ "last_incremental_sync_at": {
2873
+ "name": "last_incremental_sync_at",
2874
+ "type": "timestamp with time zone",
2875
+ "primaryKey": false,
2876
+ "notNull": false
2877
+ },
2878
+ "last_sync_status": {
2879
+ "name": "last_sync_status",
2880
+ "type": "text",
2881
+ "primaryKey": false,
2882
+ "notNull": false
2883
+ },
2884
+ "last_sync_error": {
2885
+ "name": "last_sync_error",
2886
+ "type": "text",
2887
+ "primaryKey": false,
2888
+ "notNull": false
2889
+ }
2890
+ },
2891
+ "indexes": {},
2892
+ "foreignKeys": {
2893
+ "sync_state_repo_id_repos_id_fk": {
2894
+ "name": "sync_state_repo_id_repos_id_fk",
2895
+ "tableFrom": "sync_state",
2896
+ "tableTo": "repos",
2897
+ "columnsFrom": [
2898
+ "repo_id"
2899
+ ],
2900
+ "columnsTo": [
2901
+ "id"
2902
+ ],
2903
+ "onDelete": "no action",
2904
+ "onUpdate": "no action"
2905
+ }
2906
+ },
2907
+ "compositePrimaryKeys": {},
2908
+ "uniqueConstraints": {},
2909
+ "policies": {},
2910
+ "checkConstraints": {},
2911
+ "isRLSEnabled": false
2912
+ },
2913
+ "public.team_repos": {
2914
+ "name": "team_repos",
2915
+ "schema": "",
2916
+ "columns": {
2917
+ "id": {
2918
+ "name": "id",
2919
+ "type": "serial",
2920
+ "primaryKey": true,
2921
+ "notNull": true
2922
+ },
2923
+ "account_id": {
2924
+ "name": "account_id",
2925
+ "type": "integer",
2926
+ "primaryKey": false,
2927
+ "notNull": true
2928
+ },
2929
+ "team_id": {
2930
+ "name": "team_id",
2931
+ "type": "integer",
2932
+ "primaryKey": false,
2933
+ "notNull": true
2934
+ },
2935
+ "repo_id": {
2936
+ "name": "repo_id",
2937
+ "type": "integer",
2938
+ "primaryKey": false,
2939
+ "notNull": true
2940
+ },
2941
+ "created_at": {
2942
+ "name": "created_at",
2943
+ "type": "timestamp with time zone",
2944
+ "primaryKey": false,
2945
+ "notNull": true,
2946
+ "default": "now()"
2947
+ }
2948
+ },
2949
+ "indexes": {
2950
+ "team_repos_team_repo": {
2951
+ "name": "team_repos_team_repo",
2952
+ "columns": [
2953
+ {
2954
+ "expression": "team_id",
2955
+ "isExpression": false,
2956
+ "asc": true,
2957
+ "nulls": "last"
2958
+ },
2959
+ {
2960
+ "expression": "repo_id",
2961
+ "isExpression": false,
2962
+ "asc": true,
2963
+ "nulls": "last"
2964
+ }
2965
+ ],
2966
+ "isUnique": true,
2967
+ "concurrently": false,
2968
+ "method": "btree",
2969
+ "with": {}
2970
+ },
2971
+ "team_repos_account_idx": {
2972
+ "name": "team_repos_account_idx",
2973
+ "columns": [
2974
+ {
2975
+ "expression": "account_id",
2976
+ "isExpression": false,
2977
+ "asc": true,
2978
+ "nulls": "last"
2979
+ }
2980
+ ],
2981
+ "isUnique": false,
2982
+ "concurrently": false,
2983
+ "method": "btree",
2984
+ "with": {}
2985
+ },
2986
+ "team_repos_repo_idx": {
2987
+ "name": "team_repos_repo_idx",
2988
+ "columns": [
2989
+ {
2990
+ "expression": "repo_id",
2991
+ "isExpression": false,
2992
+ "asc": true,
2993
+ "nulls": "last"
2994
+ }
2995
+ ],
2996
+ "isUnique": false,
2997
+ "concurrently": false,
2998
+ "method": "btree",
2999
+ "with": {}
3000
+ }
3001
+ },
3002
+ "foreignKeys": {
3003
+ "team_repos_account_id_accounts_id_fk": {
3004
+ "name": "team_repos_account_id_accounts_id_fk",
3005
+ "tableFrom": "team_repos",
3006
+ "tableTo": "accounts",
3007
+ "columnsFrom": [
3008
+ "account_id"
3009
+ ],
3010
+ "columnsTo": [
3011
+ "id"
3012
+ ],
3013
+ "onDelete": "cascade",
3014
+ "onUpdate": "no action"
3015
+ },
3016
+ "team_repos_team_id_teams_id_fk": {
3017
+ "name": "team_repos_team_id_teams_id_fk",
3018
+ "tableFrom": "team_repos",
3019
+ "tableTo": "teams",
3020
+ "columnsFrom": [
3021
+ "team_id"
3022
+ ],
3023
+ "columnsTo": [
3024
+ "id"
3025
+ ],
3026
+ "onDelete": "cascade",
3027
+ "onUpdate": "no action"
3028
+ },
3029
+ "team_repos_repo_id_repos_id_fk": {
3030
+ "name": "team_repos_repo_id_repos_id_fk",
3031
+ "tableFrom": "team_repos",
3032
+ "tableTo": "repos",
3033
+ "columnsFrom": [
3034
+ "repo_id"
3035
+ ],
3036
+ "columnsTo": [
3037
+ "id"
3038
+ ],
3039
+ "onDelete": "cascade",
3040
+ "onUpdate": "no action"
3041
+ }
3042
+ },
3043
+ "compositePrimaryKeys": {},
3044
+ "uniqueConstraints": {},
3045
+ "policies": {},
3046
+ "checkConstraints": {},
3047
+ "isRLSEnabled": false
3048
+ },
3049
+ "public.teams": {
3050
+ "name": "teams",
3051
+ "schema": "",
3052
+ "columns": {
3053
+ "id": {
3054
+ "name": "id",
3055
+ "type": "serial",
3056
+ "primaryKey": true,
3057
+ "notNull": true
3058
+ },
3059
+ "account_id": {
3060
+ "name": "account_id",
3061
+ "type": "integer",
3062
+ "primaryKey": false,
3063
+ "notNull": true
3064
+ },
3065
+ "name": {
3066
+ "name": "name",
3067
+ "type": "text",
3068
+ "primaryKey": false,
3069
+ "notNull": true
3070
+ },
3071
+ "created_at": {
3072
+ "name": "created_at",
3073
+ "type": "timestamp with time zone",
3074
+ "primaryKey": false,
3075
+ "notNull": true,
3076
+ "default": "now()"
3077
+ }
3078
+ },
3079
+ "indexes": {
3080
+ "teams_account_name": {
3081
+ "name": "teams_account_name",
3082
+ "columns": [
3083
+ {
3084
+ "expression": "account_id",
3085
+ "isExpression": false,
3086
+ "asc": true,
3087
+ "nulls": "last"
3088
+ },
3089
+ {
3090
+ "expression": "name",
3091
+ "isExpression": false,
3092
+ "asc": true,
3093
+ "nulls": "last"
3094
+ }
3095
+ ],
3096
+ "isUnique": true,
3097
+ "concurrently": false,
3098
+ "method": "btree",
3099
+ "with": {}
3100
+ },
3101
+ "teams_account_idx": {
3102
+ "name": "teams_account_idx",
3103
+ "columns": [
3104
+ {
3105
+ "expression": "account_id",
3106
+ "isExpression": false,
3107
+ "asc": true,
3108
+ "nulls": "last"
3109
+ }
3110
+ ],
3111
+ "isUnique": false,
3112
+ "concurrently": false,
3113
+ "method": "btree",
3114
+ "with": {}
3115
+ }
3116
+ },
3117
+ "foreignKeys": {
3118
+ "teams_account_id_accounts_id_fk": {
3119
+ "name": "teams_account_id_accounts_id_fk",
3120
+ "tableFrom": "teams",
3121
+ "tableTo": "accounts",
3122
+ "columnsFrom": [
3123
+ "account_id"
3124
+ ],
3125
+ "columnsTo": [
3126
+ "id"
3127
+ ],
3128
+ "onDelete": "cascade",
3129
+ "onUpdate": "no action"
3130
+ }
3131
+ },
3132
+ "compositePrimaryKeys": {},
3133
+ "uniqueConstraints": {},
3134
+ "policies": {},
3135
+ "checkConstraints": {},
3136
+ "isRLSEnabled": false
3137
+ },
3138
+ "public.users": {
3139
+ "name": "users",
3140
+ "schema": "",
3141
+ "columns": {
3142
+ "id": {
3143
+ "name": "id",
3144
+ "type": "serial",
3145
+ "primaryKey": true,
3146
+ "notNull": true
3147
+ },
3148
+ "github_login": {
3149
+ "name": "github_login",
3150
+ "type": "text",
3151
+ "primaryKey": false,
3152
+ "notNull": true
3153
+ },
3154
+ "github_node_id": {
3155
+ "name": "github_node_id",
3156
+ "type": "text",
3157
+ "primaryKey": false,
3158
+ "notNull": false
3159
+ },
3160
+ "display_name": {
3161
+ "name": "display_name",
3162
+ "type": "text",
3163
+ "primaryKey": false,
3164
+ "notNull": false
3165
+ },
3166
+ "avatar_url": {
3167
+ "name": "avatar_url",
3168
+ "type": "text",
3169
+ "primaryKey": false,
3170
+ "notNull": false
3171
+ },
3172
+ "is_bot": {
3173
+ "name": "is_bot",
3174
+ "type": "boolean",
3175
+ "primaryKey": false,
3176
+ "notNull": true,
3177
+ "default": false
3178
+ },
3179
+ "is_bot_overridden": {
3180
+ "name": "is_bot_overridden",
3181
+ "type": "boolean",
3182
+ "primaryKey": false,
3183
+ "notNull": true,
3184
+ "default": false
3185
+ },
3186
+ "github_type": {
3187
+ "name": "github_type",
3188
+ "type": "text",
3189
+ "primaryKey": false,
3190
+ "notNull": false
3191
+ }
3192
+ },
3193
+ "indexes": {},
3194
+ "foreignKeys": {},
3195
+ "compositePrimaryKeys": {},
3196
+ "uniqueConstraints": {
3197
+ "users_github_login_unique": {
3198
+ "name": "users_github_login_unique",
3199
+ "nullsNotDistinct": false,
3200
+ "columns": [
3201
+ "github_login"
3202
+ ]
3203
+ },
3204
+ "users_github_node_id_unique": {
3205
+ "name": "users_github_node_id_unique",
3206
+ "nullsNotDistinct": false,
3207
+ "columns": [
3208
+ "github_node_id"
3209
+ ]
3210
+ }
3211
+ },
3212
+ "policies": {},
3213
+ "checkConstraints": {},
3214
+ "isRLSEnabled": false
3215
+ }
3216
+ },
3217
+ "enums": {},
3218
+ "schemas": {},
3219
+ "sequences": {},
3220
+ "roles": {},
3221
+ "policies": {},
3222
+ "views": {},
3223
+ "_meta": {
3224
+ "columns": {},
3225
+ "schemas": {},
3226
+ "tables": {}
3227
+ }
3228
+ }