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,2412 @@
1
+ {
2
+ "id": "0e70df4e-43ec-4660-863a-e090e6e27a99",
3
+ "prevId": "26aaa8bd-105e-4ba0-a7f0-0ecf73b41446",
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
+ },
80
+ "indexes": {},
81
+ "foreignKeys": {},
82
+ "compositePrimaryKeys": {},
83
+ "uniqueConstraints": {
84
+ "accounts_github_user_id_unique": {
85
+ "name": "accounts_github_user_id_unique",
86
+ "nullsNotDistinct": false,
87
+ "columns": [
88
+ "github_user_id"
89
+ ]
90
+ }
91
+ },
92
+ "policies": {},
93
+ "checkConstraints": {},
94
+ "isRLSEnabled": false
95
+ },
96
+ "public.ci_status_events": {
97
+ "name": "ci_status_events",
98
+ "schema": "",
99
+ "columns": {
100
+ "id": {
101
+ "name": "id",
102
+ "type": "serial",
103
+ "primaryKey": true,
104
+ "notNull": true
105
+ },
106
+ "account_id": {
107
+ "name": "account_id",
108
+ "type": "integer",
109
+ "primaryKey": false,
110
+ "notNull": true
111
+ },
112
+ "repo_id": {
113
+ "name": "repo_id",
114
+ "type": "integer",
115
+ "primaryKey": false,
116
+ "notNull": true
117
+ },
118
+ "pr_id": {
119
+ "name": "pr_id",
120
+ "type": "integer",
121
+ "primaryKey": false,
122
+ "notNull": true
123
+ },
124
+ "head_sha": {
125
+ "name": "head_sha",
126
+ "type": "text",
127
+ "primaryKey": false,
128
+ "notNull": true
129
+ },
130
+ "status": {
131
+ "name": "status",
132
+ "type": "text",
133
+ "primaryKey": false,
134
+ "notNull": true
135
+ },
136
+ "failing_checks": {
137
+ "name": "failing_checks",
138
+ "type": "jsonb",
139
+ "primaryKey": false,
140
+ "notNull": false
141
+ },
142
+ "observed_at": {
143
+ "name": "observed_at",
144
+ "type": "timestamp with time zone",
145
+ "primaryKey": false,
146
+ "notNull": true
147
+ }
148
+ },
149
+ "indexes": {
150
+ "cse_account_pr_observed": {
151
+ "name": "cse_account_pr_observed",
152
+ "columns": [
153
+ {
154
+ "expression": "account_id",
155
+ "isExpression": false,
156
+ "asc": true,
157
+ "nulls": "last"
158
+ },
159
+ {
160
+ "expression": "pr_id",
161
+ "isExpression": false,
162
+ "asc": true,
163
+ "nulls": "last"
164
+ },
165
+ {
166
+ "expression": "observed_at",
167
+ "isExpression": false,
168
+ "asc": true,
169
+ "nulls": "last"
170
+ }
171
+ ],
172
+ "isUnique": false,
173
+ "concurrently": false,
174
+ "method": "btree",
175
+ "with": {}
176
+ },
177
+ "cse_account_repo_observed": {
178
+ "name": "cse_account_repo_observed",
179
+ "columns": [
180
+ {
181
+ "expression": "account_id",
182
+ "isExpression": false,
183
+ "asc": true,
184
+ "nulls": "last"
185
+ },
186
+ {
187
+ "expression": "repo_id",
188
+ "isExpression": false,
189
+ "asc": true,
190
+ "nulls": "last"
191
+ },
192
+ {
193
+ "expression": "observed_at",
194
+ "isExpression": false,
195
+ "asc": true,
196
+ "nulls": "last"
197
+ }
198
+ ],
199
+ "isUnique": false,
200
+ "concurrently": false,
201
+ "method": "btree",
202
+ "with": {}
203
+ }
204
+ },
205
+ "foreignKeys": {
206
+ "ci_status_events_account_id_accounts_id_fk": {
207
+ "name": "ci_status_events_account_id_accounts_id_fk",
208
+ "tableFrom": "ci_status_events",
209
+ "tableTo": "accounts",
210
+ "columnsFrom": [
211
+ "account_id"
212
+ ],
213
+ "columnsTo": [
214
+ "id"
215
+ ],
216
+ "onDelete": "no action",
217
+ "onUpdate": "no action"
218
+ },
219
+ "ci_status_events_repo_id_repos_id_fk": {
220
+ "name": "ci_status_events_repo_id_repos_id_fk",
221
+ "tableFrom": "ci_status_events",
222
+ "tableTo": "repos",
223
+ "columnsFrom": [
224
+ "repo_id"
225
+ ],
226
+ "columnsTo": [
227
+ "id"
228
+ ],
229
+ "onDelete": "no action",
230
+ "onUpdate": "no action"
231
+ },
232
+ "ci_status_events_pr_id_pull_requests_id_fk": {
233
+ "name": "ci_status_events_pr_id_pull_requests_id_fk",
234
+ "tableFrom": "ci_status_events",
235
+ "tableTo": "pull_requests",
236
+ "columnsFrom": [
237
+ "pr_id"
238
+ ],
239
+ "columnsTo": [
240
+ "id"
241
+ ],
242
+ "onDelete": "no action",
243
+ "onUpdate": "no action"
244
+ }
245
+ },
246
+ "compositePrimaryKeys": {},
247
+ "uniqueConstraints": {},
248
+ "policies": {},
249
+ "checkConstraints": {},
250
+ "isRLSEnabled": false
251
+ },
252
+ "public.claude_review_findings": {
253
+ "name": "claude_review_findings",
254
+ "schema": "",
255
+ "columns": {
256
+ "id": {
257
+ "name": "id",
258
+ "type": "serial",
259
+ "primaryKey": true,
260
+ "notNull": true
261
+ },
262
+ "review_id": {
263
+ "name": "review_id",
264
+ "type": "integer",
265
+ "primaryKey": false,
266
+ "notNull": true
267
+ },
268
+ "path": {
269
+ "name": "path",
270
+ "type": "text",
271
+ "primaryKey": false,
272
+ "notNull": true
273
+ },
274
+ "line": {
275
+ "name": "line",
276
+ "type": "integer",
277
+ "primaryKey": false,
278
+ "notNull": false
279
+ },
280
+ "side": {
281
+ "name": "side",
282
+ "type": "text",
283
+ "primaryKey": false,
284
+ "notNull": true,
285
+ "default": "'RIGHT'"
286
+ },
287
+ "severity": {
288
+ "name": "severity",
289
+ "type": "text",
290
+ "primaryKey": false,
291
+ "notNull": true
292
+ },
293
+ "title": {
294
+ "name": "title",
295
+ "type": "text",
296
+ "primaryKey": false,
297
+ "notNull": true
298
+ },
299
+ "body": {
300
+ "name": "body",
301
+ "type": "text",
302
+ "primaryKey": false,
303
+ "notNull": true
304
+ },
305
+ "edited_body": {
306
+ "name": "edited_body",
307
+ "type": "text",
308
+ "primaryKey": false,
309
+ "notNull": false
310
+ },
311
+ "suggestion": {
312
+ "name": "suggestion",
313
+ "type": "text",
314
+ "primaryKey": false,
315
+ "notNull": false
316
+ },
317
+ "diff_hunk": {
318
+ "name": "diff_hunk",
319
+ "type": "text",
320
+ "primaryKey": false,
321
+ "notNull": false
322
+ },
323
+ "anchored": {
324
+ "name": "anchored",
325
+ "type": "boolean",
326
+ "primaryKey": false,
327
+ "notNull": true,
328
+ "default": true
329
+ },
330
+ "file_in_diff": {
331
+ "name": "file_in_diff",
332
+ "type": "boolean",
333
+ "primaryKey": false,
334
+ "notNull": true,
335
+ "default": true
336
+ },
337
+ "included": {
338
+ "name": "included",
339
+ "type": "boolean",
340
+ "primaryKey": false,
341
+ "notNull": true,
342
+ "default": false
343
+ },
344
+ "posted_at": {
345
+ "name": "posted_at",
346
+ "type": "timestamp with time zone",
347
+ "primaryKey": false,
348
+ "notNull": false
349
+ },
350
+ "github_comment_id": {
351
+ "name": "github_comment_id",
352
+ "type": "text",
353
+ "primaryKey": false,
354
+ "notNull": false
355
+ },
356
+ "posted_comment_kind": {
357
+ "name": "posted_comment_kind",
358
+ "type": "text",
359
+ "primaryKey": false,
360
+ "notNull": false
361
+ },
362
+ "created_at": {
363
+ "name": "created_at",
364
+ "type": "timestamp with time zone",
365
+ "primaryKey": false,
366
+ "notNull": true,
367
+ "default": "now()"
368
+ }
369
+ },
370
+ "indexes": {
371
+ "crf_review_idx": {
372
+ "name": "crf_review_idx",
373
+ "columns": [
374
+ {
375
+ "expression": "review_id",
376
+ "isExpression": false,
377
+ "asc": true,
378
+ "nulls": "last"
379
+ }
380
+ ],
381
+ "isUnique": false,
382
+ "concurrently": false,
383
+ "method": "btree",
384
+ "with": {}
385
+ }
386
+ },
387
+ "foreignKeys": {
388
+ "claude_review_findings_review_id_claude_reviews_id_fk": {
389
+ "name": "claude_review_findings_review_id_claude_reviews_id_fk",
390
+ "tableFrom": "claude_review_findings",
391
+ "tableTo": "claude_reviews",
392
+ "columnsFrom": [
393
+ "review_id"
394
+ ],
395
+ "columnsTo": [
396
+ "id"
397
+ ],
398
+ "onDelete": "no action",
399
+ "onUpdate": "no action"
400
+ }
401
+ },
402
+ "compositePrimaryKeys": {},
403
+ "uniqueConstraints": {},
404
+ "policies": {},
405
+ "checkConstraints": {},
406
+ "isRLSEnabled": false
407
+ },
408
+ "public.claude_reviews": {
409
+ "name": "claude_reviews",
410
+ "schema": "",
411
+ "columns": {
412
+ "id": {
413
+ "name": "id",
414
+ "type": "serial",
415
+ "primaryKey": true,
416
+ "notNull": true
417
+ },
418
+ "account_id": {
419
+ "name": "account_id",
420
+ "type": "integer",
421
+ "primaryKey": false,
422
+ "notNull": true
423
+ },
424
+ "pr_id": {
425
+ "name": "pr_id",
426
+ "type": "integer",
427
+ "primaryKey": false,
428
+ "notNull": true
429
+ },
430
+ "head_sha": {
431
+ "name": "head_sha",
432
+ "type": "text",
433
+ "primaryKey": false,
434
+ "notNull": true
435
+ },
436
+ "status": {
437
+ "name": "status",
438
+ "type": "text",
439
+ "primaryKey": false,
440
+ "notNull": true
441
+ },
442
+ "model": {
443
+ "name": "model",
444
+ "type": "text",
445
+ "primaryKey": false,
446
+ "notNull": true
447
+ },
448
+ "scope": {
449
+ "name": "scope",
450
+ "type": "text",
451
+ "primaryKey": false,
452
+ "notNull": false
453
+ },
454
+ "review_mode": {
455
+ "name": "review_mode",
456
+ "type": "text",
457
+ "primaryKey": false,
458
+ "notNull": false
459
+ },
460
+ "route_reason": {
461
+ "name": "route_reason",
462
+ "type": "jsonb",
463
+ "primaryKey": false,
464
+ "notNull": false
465
+ },
466
+ "summary": {
467
+ "name": "summary",
468
+ "type": "text",
469
+ "primaryKey": false,
470
+ "notNull": false
471
+ },
472
+ "verdict": {
473
+ "name": "verdict",
474
+ "type": "text",
475
+ "primaryKey": false,
476
+ "notNull": false
477
+ },
478
+ "user_body": {
479
+ "name": "user_body",
480
+ "type": "text",
481
+ "primaryKey": false,
482
+ "notNull": false
483
+ },
484
+ "user_verdict": {
485
+ "name": "user_verdict",
486
+ "type": "text",
487
+ "primaryKey": false,
488
+ "notNull": false
489
+ },
490
+ "cost_usd": {
491
+ "name": "cost_usd",
492
+ "type": "double precision",
493
+ "primaryKey": false,
494
+ "notNull": false
495
+ },
496
+ "input_tokens": {
497
+ "name": "input_tokens",
498
+ "type": "integer",
499
+ "primaryKey": false,
500
+ "notNull": false
501
+ },
502
+ "output_tokens": {
503
+ "name": "output_tokens",
504
+ "type": "integer",
505
+ "primaryKey": false,
506
+ "notNull": false
507
+ },
508
+ "cache_read_tokens": {
509
+ "name": "cache_read_tokens",
510
+ "type": "integer",
511
+ "primaryKey": false,
512
+ "notNull": false
513
+ },
514
+ "cache_creation_tokens": {
515
+ "name": "cache_creation_tokens",
516
+ "type": "integer",
517
+ "primaryKey": false,
518
+ "notNull": false
519
+ },
520
+ "num_turns": {
521
+ "name": "num_turns",
522
+ "type": "integer",
523
+ "primaryKey": false,
524
+ "notNull": false
525
+ },
526
+ "diff_bytes": {
527
+ "name": "diff_bytes",
528
+ "type": "integer",
529
+ "primaryKey": false,
530
+ "notNull": false
531
+ },
532
+ "diff_capped": {
533
+ "name": "diff_capped",
534
+ "type": "boolean",
535
+ "primaryKey": false,
536
+ "notNull": false
537
+ },
538
+ "error": {
539
+ "name": "error",
540
+ "type": "text",
541
+ "primaryKey": false,
542
+ "notNull": false
543
+ },
544
+ "excluded_files": {
545
+ "name": "excluded_files",
546
+ "type": "jsonb",
547
+ "primaryKey": false,
548
+ "notNull": false
549
+ },
550
+ "posted_review_id": {
551
+ "name": "posted_review_id",
552
+ "type": "text",
553
+ "primaryKey": false,
554
+ "notNull": false
555
+ },
556
+ "posted_at": {
557
+ "name": "posted_at",
558
+ "type": "timestamp with time zone",
559
+ "primaryKey": false,
560
+ "notNull": false
561
+ },
562
+ "created_at": {
563
+ "name": "created_at",
564
+ "type": "timestamp with time zone",
565
+ "primaryKey": false,
566
+ "notNull": true,
567
+ "default": "now()"
568
+ },
569
+ "finished_at": {
570
+ "name": "finished_at",
571
+ "type": "timestamp with time zone",
572
+ "primaryKey": false,
573
+ "notNull": false
574
+ }
575
+ },
576
+ "indexes": {
577
+ "cr_pr_idx": {
578
+ "name": "cr_pr_idx",
579
+ "columns": [
580
+ {
581
+ "expression": "pr_id",
582
+ "isExpression": false,
583
+ "asc": true,
584
+ "nulls": "last"
585
+ }
586
+ ],
587
+ "isUnique": false,
588
+ "concurrently": false,
589
+ "method": "btree",
590
+ "with": {}
591
+ },
592
+ "cr_pr_sha_idx": {
593
+ "name": "cr_pr_sha_idx",
594
+ "columns": [
595
+ {
596
+ "expression": "pr_id",
597
+ "isExpression": false,
598
+ "asc": true,
599
+ "nulls": "last"
600
+ },
601
+ {
602
+ "expression": "head_sha",
603
+ "isExpression": false,
604
+ "asc": true,
605
+ "nulls": "last"
606
+ }
607
+ ],
608
+ "isUnique": false,
609
+ "concurrently": false,
610
+ "method": "btree",
611
+ "with": {}
612
+ },
613
+ "cr_account_idx": {
614
+ "name": "cr_account_idx",
615
+ "columns": [
616
+ {
617
+ "expression": "account_id",
618
+ "isExpression": false,
619
+ "asc": true,
620
+ "nulls": "last"
621
+ }
622
+ ],
623
+ "isUnique": false,
624
+ "concurrently": false,
625
+ "method": "btree",
626
+ "with": {}
627
+ }
628
+ },
629
+ "foreignKeys": {
630
+ "claude_reviews_account_id_accounts_id_fk": {
631
+ "name": "claude_reviews_account_id_accounts_id_fk",
632
+ "tableFrom": "claude_reviews",
633
+ "tableTo": "accounts",
634
+ "columnsFrom": [
635
+ "account_id"
636
+ ],
637
+ "columnsTo": [
638
+ "id"
639
+ ],
640
+ "onDelete": "no action",
641
+ "onUpdate": "no action"
642
+ },
643
+ "claude_reviews_pr_id_pull_requests_id_fk": {
644
+ "name": "claude_reviews_pr_id_pull_requests_id_fk",
645
+ "tableFrom": "claude_reviews",
646
+ "tableTo": "pull_requests",
647
+ "columnsFrom": [
648
+ "pr_id"
649
+ ],
650
+ "columnsTo": [
651
+ "id"
652
+ ],
653
+ "onDelete": "no action",
654
+ "onUpdate": "no action"
655
+ }
656
+ },
657
+ "compositePrimaryKeys": {},
658
+ "uniqueConstraints": {},
659
+ "policies": {},
660
+ "checkConstraints": {},
661
+ "isRLSEnabled": false
662
+ },
663
+ "public.commit_files": {
664
+ "name": "commit_files",
665
+ "schema": "",
666
+ "columns": {
667
+ "sha": {
668
+ "name": "sha",
669
+ "type": "text",
670
+ "primaryKey": true,
671
+ "notNull": true
672
+ },
673
+ "paths": {
674
+ "name": "paths",
675
+ "type": "jsonb",
676
+ "primaryKey": false,
677
+ "notNull": true
678
+ },
679
+ "fetched_at": {
680
+ "name": "fetched_at",
681
+ "type": "timestamp with time zone",
682
+ "primaryKey": false,
683
+ "notNull": true,
684
+ "default": "now()"
685
+ }
686
+ },
687
+ "indexes": {},
688
+ "foreignKeys": {},
689
+ "compositePrimaryKeys": {},
690
+ "uniqueConstraints": {},
691
+ "policies": {},
692
+ "checkConstraints": {},
693
+ "isRLSEnabled": false
694
+ },
695
+ "public.commits": {
696
+ "name": "commits",
697
+ "schema": "",
698
+ "columns": {
699
+ "id": {
700
+ "name": "id",
701
+ "type": "serial",
702
+ "primaryKey": true,
703
+ "notNull": true
704
+ },
705
+ "sha": {
706
+ "name": "sha",
707
+ "type": "text",
708
+ "primaryKey": false,
709
+ "notNull": true
710
+ },
711
+ "pr_id": {
712
+ "name": "pr_id",
713
+ "type": "integer",
714
+ "primaryKey": false,
715
+ "notNull": true
716
+ },
717
+ "author_id": {
718
+ "name": "author_id",
719
+ "type": "integer",
720
+ "primaryKey": false,
721
+ "notNull": false
722
+ },
723
+ "committer_id": {
724
+ "name": "committer_id",
725
+ "type": "integer",
726
+ "primaryKey": false,
727
+ "notNull": false
728
+ },
729
+ "message": {
730
+ "name": "message",
731
+ "type": "text",
732
+ "primaryKey": false,
733
+ "notNull": false
734
+ },
735
+ "committed_at": {
736
+ "name": "committed_at",
737
+ "type": "timestamp with time zone",
738
+ "primaryKey": false,
739
+ "notNull": true
740
+ }
741
+ },
742
+ "indexes": {
743
+ "commit_pr_idx": {
744
+ "name": "commit_pr_idx",
745
+ "columns": [
746
+ {
747
+ "expression": "pr_id",
748
+ "isExpression": false,
749
+ "asc": true,
750
+ "nulls": "last"
751
+ }
752
+ ],
753
+ "isUnique": false,
754
+ "concurrently": false,
755
+ "method": "btree",
756
+ "with": {}
757
+ },
758
+ "commit_sha_pr_ux": {
759
+ "name": "commit_sha_pr_ux",
760
+ "columns": [
761
+ {
762
+ "expression": "sha",
763
+ "isExpression": false,
764
+ "asc": true,
765
+ "nulls": "last"
766
+ },
767
+ {
768
+ "expression": "pr_id",
769
+ "isExpression": false,
770
+ "asc": true,
771
+ "nulls": "last"
772
+ }
773
+ ],
774
+ "isUnique": true,
775
+ "concurrently": false,
776
+ "method": "btree",
777
+ "with": {}
778
+ }
779
+ },
780
+ "foreignKeys": {
781
+ "commits_pr_id_pull_requests_id_fk": {
782
+ "name": "commits_pr_id_pull_requests_id_fk",
783
+ "tableFrom": "commits",
784
+ "tableTo": "pull_requests",
785
+ "columnsFrom": [
786
+ "pr_id"
787
+ ],
788
+ "columnsTo": [
789
+ "id"
790
+ ],
791
+ "onDelete": "no action",
792
+ "onUpdate": "no action"
793
+ },
794
+ "commits_author_id_users_id_fk": {
795
+ "name": "commits_author_id_users_id_fk",
796
+ "tableFrom": "commits",
797
+ "tableTo": "users",
798
+ "columnsFrom": [
799
+ "author_id"
800
+ ],
801
+ "columnsTo": [
802
+ "id"
803
+ ],
804
+ "onDelete": "no action",
805
+ "onUpdate": "no action"
806
+ },
807
+ "commits_committer_id_users_id_fk": {
808
+ "name": "commits_committer_id_users_id_fk",
809
+ "tableFrom": "commits",
810
+ "tableTo": "users",
811
+ "columnsFrom": [
812
+ "committer_id"
813
+ ],
814
+ "columnsTo": [
815
+ "id"
816
+ ],
817
+ "onDelete": "no action",
818
+ "onUpdate": "no action"
819
+ }
820
+ },
821
+ "compositePrimaryKeys": {},
822
+ "uniqueConstraints": {},
823
+ "policies": {},
824
+ "checkConstraints": {},
825
+ "isRLSEnabled": false
826
+ },
827
+ "public.events": {
828
+ "name": "events",
829
+ "schema": "",
830
+ "columns": {
831
+ "id": {
832
+ "name": "id",
833
+ "type": "serial",
834
+ "primaryKey": true,
835
+ "notNull": true
836
+ },
837
+ "account_id": {
838
+ "name": "account_id",
839
+ "type": "integer",
840
+ "primaryKey": false,
841
+ "notNull": true
842
+ },
843
+ "repo_id": {
844
+ "name": "repo_id",
845
+ "type": "integer",
846
+ "primaryKey": false,
847
+ "notNull": true
848
+ },
849
+ "actor_id": {
850
+ "name": "actor_id",
851
+ "type": "integer",
852
+ "primaryKey": false,
853
+ "notNull": false
854
+ },
855
+ "pr_id": {
856
+ "name": "pr_id",
857
+ "type": "integer",
858
+ "primaryKey": false,
859
+ "notNull": false
860
+ },
861
+ "type": {
862
+ "name": "type",
863
+ "type": "text",
864
+ "primaryKey": false,
865
+ "notNull": true
866
+ },
867
+ "occurred_at": {
868
+ "name": "occurred_at",
869
+ "type": "timestamp with time zone",
870
+ "primaryKey": false,
871
+ "notNull": true
872
+ },
873
+ "ref_table": {
874
+ "name": "ref_table",
875
+ "type": "text",
876
+ "primaryKey": false,
877
+ "notNull": false
878
+ },
879
+ "ref_id": {
880
+ "name": "ref_id",
881
+ "type": "integer",
882
+ "primaryKey": false,
883
+ "notNull": false
884
+ },
885
+ "dedupe_key": {
886
+ "name": "dedupe_key",
887
+ "type": "text",
888
+ "primaryKey": false,
889
+ "notNull": true
890
+ }
891
+ },
892
+ "indexes": {
893
+ "events_time_idx": {
894
+ "name": "events_time_idx",
895
+ "columns": [
896
+ {
897
+ "expression": "occurred_at",
898
+ "isExpression": false,
899
+ "asc": true,
900
+ "nulls": "last"
901
+ }
902
+ ],
903
+ "isUnique": false,
904
+ "concurrently": false,
905
+ "method": "btree",
906
+ "with": {}
907
+ },
908
+ "events_repo_time_idx": {
909
+ "name": "events_repo_time_idx",
910
+ "columns": [
911
+ {
912
+ "expression": "repo_id",
913
+ "isExpression": false,
914
+ "asc": true,
915
+ "nulls": "last"
916
+ },
917
+ {
918
+ "expression": "occurred_at",
919
+ "isExpression": false,
920
+ "asc": true,
921
+ "nulls": "last"
922
+ }
923
+ ],
924
+ "isUnique": false,
925
+ "concurrently": false,
926
+ "method": "btree",
927
+ "with": {}
928
+ },
929
+ "events_actor_idx": {
930
+ "name": "events_actor_idx",
931
+ "columns": [
932
+ {
933
+ "expression": "actor_id",
934
+ "isExpression": false,
935
+ "asc": true,
936
+ "nulls": "last"
937
+ }
938
+ ],
939
+ "isUnique": false,
940
+ "concurrently": false,
941
+ "method": "btree",
942
+ "with": {}
943
+ },
944
+ "events_account_idx": {
945
+ "name": "events_account_idx",
946
+ "columns": [
947
+ {
948
+ "expression": "account_id",
949
+ "isExpression": false,
950
+ "asc": true,
951
+ "nulls": "last"
952
+ }
953
+ ],
954
+ "isUnique": false,
955
+ "concurrently": false,
956
+ "method": "btree",
957
+ "with": {}
958
+ },
959
+ "events_account_dedupe": {
960
+ "name": "events_account_dedupe",
961
+ "columns": [
962
+ {
963
+ "expression": "account_id",
964
+ "isExpression": false,
965
+ "asc": true,
966
+ "nulls": "last"
967
+ },
968
+ {
969
+ "expression": "dedupe_key",
970
+ "isExpression": false,
971
+ "asc": true,
972
+ "nulls": "last"
973
+ }
974
+ ],
975
+ "isUnique": true,
976
+ "concurrently": false,
977
+ "method": "btree",
978
+ "with": {}
979
+ }
980
+ },
981
+ "foreignKeys": {
982
+ "events_account_id_accounts_id_fk": {
983
+ "name": "events_account_id_accounts_id_fk",
984
+ "tableFrom": "events",
985
+ "tableTo": "accounts",
986
+ "columnsFrom": [
987
+ "account_id"
988
+ ],
989
+ "columnsTo": [
990
+ "id"
991
+ ],
992
+ "onDelete": "no action",
993
+ "onUpdate": "no action"
994
+ },
995
+ "events_repo_id_repos_id_fk": {
996
+ "name": "events_repo_id_repos_id_fk",
997
+ "tableFrom": "events",
998
+ "tableTo": "repos",
999
+ "columnsFrom": [
1000
+ "repo_id"
1001
+ ],
1002
+ "columnsTo": [
1003
+ "id"
1004
+ ],
1005
+ "onDelete": "no action",
1006
+ "onUpdate": "no action"
1007
+ },
1008
+ "events_actor_id_users_id_fk": {
1009
+ "name": "events_actor_id_users_id_fk",
1010
+ "tableFrom": "events",
1011
+ "tableTo": "users",
1012
+ "columnsFrom": [
1013
+ "actor_id"
1014
+ ],
1015
+ "columnsTo": [
1016
+ "id"
1017
+ ],
1018
+ "onDelete": "no action",
1019
+ "onUpdate": "no action"
1020
+ },
1021
+ "events_pr_id_pull_requests_id_fk": {
1022
+ "name": "events_pr_id_pull_requests_id_fk",
1023
+ "tableFrom": "events",
1024
+ "tableTo": "pull_requests",
1025
+ "columnsFrom": [
1026
+ "pr_id"
1027
+ ],
1028
+ "columnsTo": [
1029
+ "id"
1030
+ ],
1031
+ "onDelete": "no action",
1032
+ "onUpdate": "no action"
1033
+ }
1034
+ },
1035
+ "compositePrimaryKeys": {},
1036
+ "uniqueConstraints": {},
1037
+ "policies": {},
1038
+ "checkConstraints": {},
1039
+ "isRLSEnabled": false
1040
+ },
1041
+ "public.my_turn_dismissals": {
1042
+ "name": "my_turn_dismissals",
1043
+ "schema": "",
1044
+ "columns": {
1045
+ "id": {
1046
+ "name": "id",
1047
+ "type": "serial",
1048
+ "primaryKey": true,
1049
+ "notNull": true
1050
+ },
1051
+ "account_id": {
1052
+ "name": "account_id",
1053
+ "type": "integer",
1054
+ "primaryKey": false,
1055
+ "notNull": true
1056
+ },
1057
+ "kind": {
1058
+ "name": "kind",
1059
+ "type": "text",
1060
+ "primaryKey": false,
1061
+ "notNull": true
1062
+ },
1063
+ "ref_id": {
1064
+ "name": "ref_id",
1065
+ "type": "integer",
1066
+ "primaryKey": false,
1067
+ "notNull": true
1068
+ },
1069
+ "dismissed_at": {
1070
+ "name": "dismissed_at",
1071
+ "type": "timestamp with time zone",
1072
+ "primaryKey": false,
1073
+ "notNull": true
1074
+ }
1075
+ },
1076
+ "indexes": {
1077
+ "mtd_kind_ref_ux": {
1078
+ "name": "mtd_kind_ref_ux",
1079
+ "columns": [
1080
+ {
1081
+ "expression": "kind",
1082
+ "isExpression": false,
1083
+ "asc": true,
1084
+ "nulls": "last"
1085
+ },
1086
+ {
1087
+ "expression": "ref_id",
1088
+ "isExpression": false,
1089
+ "asc": true,
1090
+ "nulls": "last"
1091
+ }
1092
+ ],
1093
+ "isUnique": true,
1094
+ "concurrently": false,
1095
+ "method": "btree",
1096
+ "with": {}
1097
+ },
1098
+ "mtd_account_idx": {
1099
+ "name": "mtd_account_idx",
1100
+ "columns": [
1101
+ {
1102
+ "expression": "account_id",
1103
+ "isExpression": false,
1104
+ "asc": true,
1105
+ "nulls": "last"
1106
+ }
1107
+ ],
1108
+ "isUnique": false,
1109
+ "concurrently": false,
1110
+ "method": "btree",
1111
+ "with": {}
1112
+ }
1113
+ },
1114
+ "foreignKeys": {
1115
+ "my_turn_dismissals_account_id_accounts_id_fk": {
1116
+ "name": "my_turn_dismissals_account_id_accounts_id_fk",
1117
+ "tableFrom": "my_turn_dismissals",
1118
+ "tableTo": "accounts",
1119
+ "columnsFrom": [
1120
+ "account_id"
1121
+ ],
1122
+ "columnsTo": [
1123
+ "id"
1124
+ ],
1125
+ "onDelete": "no action",
1126
+ "onUpdate": "no action"
1127
+ }
1128
+ },
1129
+ "compositePrimaryKeys": {},
1130
+ "uniqueConstraints": {},
1131
+ "policies": {},
1132
+ "checkConstraints": {},
1133
+ "isRLSEnabled": false
1134
+ },
1135
+ "public.pr_comments": {
1136
+ "name": "pr_comments",
1137
+ "schema": "",
1138
+ "columns": {
1139
+ "id": {
1140
+ "name": "id",
1141
+ "type": "serial",
1142
+ "primaryKey": true,
1143
+ "notNull": true
1144
+ },
1145
+ "github_node_id": {
1146
+ "name": "github_node_id",
1147
+ "type": "text",
1148
+ "primaryKey": false,
1149
+ "notNull": true
1150
+ },
1151
+ "pr_id": {
1152
+ "name": "pr_id",
1153
+ "type": "integer",
1154
+ "primaryKey": false,
1155
+ "notNull": true
1156
+ },
1157
+ "author_id": {
1158
+ "name": "author_id",
1159
+ "type": "integer",
1160
+ "primaryKey": false,
1161
+ "notNull": false
1162
+ },
1163
+ "body": {
1164
+ "name": "body",
1165
+ "type": "text",
1166
+ "primaryKey": false,
1167
+ "notNull": false
1168
+ },
1169
+ "database_id": {
1170
+ "name": "database_id",
1171
+ "type": "text",
1172
+ "primaryKey": false,
1173
+ "notNull": false
1174
+ },
1175
+ "created_at": {
1176
+ "name": "created_at",
1177
+ "type": "timestamp with time zone",
1178
+ "primaryKey": false,
1179
+ "notNull": true
1180
+ }
1181
+ },
1182
+ "indexes": {
1183
+ "prc_pr_idx": {
1184
+ "name": "prc_pr_idx",
1185
+ "columns": [
1186
+ {
1187
+ "expression": "pr_id",
1188
+ "isExpression": false,
1189
+ "asc": true,
1190
+ "nulls": "last"
1191
+ }
1192
+ ],
1193
+ "isUnique": false,
1194
+ "concurrently": false,
1195
+ "method": "btree",
1196
+ "with": {}
1197
+ },
1198
+ "prc_pr_node": {
1199
+ "name": "prc_pr_node",
1200
+ "columns": [
1201
+ {
1202
+ "expression": "pr_id",
1203
+ "isExpression": false,
1204
+ "asc": true,
1205
+ "nulls": "last"
1206
+ },
1207
+ {
1208
+ "expression": "github_node_id",
1209
+ "isExpression": false,
1210
+ "asc": true,
1211
+ "nulls": "last"
1212
+ }
1213
+ ],
1214
+ "isUnique": true,
1215
+ "concurrently": false,
1216
+ "method": "btree",
1217
+ "with": {}
1218
+ }
1219
+ },
1220
+ "foreignKeys": {
1221
+ "pr_comments_pr_id_pull_requests_id_fk": {
1222
+ "name": "pr_comments_pr_id_pull_requests_id_fk",
1223
+ "tableFrom": "pr_comments",
1224
+ "tableTo": "pull_requests",
1225
+ "columnsFrom": [
1226
+ "pr_id"
1227
+ ],
1228
+ "columnsTo": [
1229
+ "id"
1230
+ ],
1231
+ "onDelete": "no action",
1232
+ "onUpdate": "no action"
1233
+ },
1234
+ "pr_comments_author_id_users_id_fk": {
1235
+ "name": "pr_comments_author_id_users_id_fk",
1236
+ "tableFrom": "pr_comments",
1237
+ "tableTo": "users",
1238
+ "columnsFrom": [
1239
+ "author_id"
1240
+ ],
1241
+ "columnsTo": [
1242
+ "id"
1243
+ ],
1244
+ "onDelete": "no action",
1245
+ "onUpdate": "no action"
1246
+ }
1247
+ },
1248
+ "compositePrimaryKeys": {},
1249
+ "uniqueConstraints": {},
1250
+ "policies": {},
1251
+ "checkConstraints": {},
1252
+ "isRLSEnabled": false
1253
+ },
1254
+ "public.pr_views": {
1255
+ "name": "pr_views",
1256
+ "schema": "",
1257
+ "columns": {
1258
+ "pr_id": {
1259
+ "name": "pr_id",
1260
+ "type": "integer",
1261
+ "primaryKey": true,
1262
+ "notNull": true
1263
+ },
1264
+ "last_viewed_sha": {
1265
+ "name": "last_viewed_sha",
1266
+ "type": "text",
1267
+ "primaryKey": false,
1268
+ "notNull": false
1269
+ },
1270
+ "last_viewed_at": {
1271
+ "name": "last_viewed_at",
1272
+ "type": "timestamp with time zone",
1273
+ "primaryKey": false,
1274
+ "notNull": true
1275
+ }
1276
+ },
1277
+ "indexes": {},
1278
+ "foreignKeys": {
1279
+ "pr_views_pr_id_pull_requests_id_fk": {
1280
+ "name": "pr_views_pr_id_pull_requests_id_fk",
1281
+ "tableFrom": "pr_views",
1282
+ "tableTo": "pull_requests",
1283
+ "columnsFrom": [
1284
+ "pr_id"
1285
+ ],
1286
+ "columnsTo": [
1287
+ "id"
1288
+ ],
1289
+ "onDelete": "no action",
1290
+ "onUpdate": "no action"
1291
+ }
1292
+ },
1293
+ "compositePrimaryKeys": {},
1294
+ "uniqueConstraints": {},
1295
+ "policies": {},
1296
+ "checkConstraints": {},
1297
+ "isRLSEnabled": false
1298
+ },
1299
+ "public.pull_requests": {
1300
+ "name": "pull_requests",
1301
+ "schema": "",
1302
+ "columns": {
1303
+ "id": {
1304
+ "name": "id",
1305
+ "type": "serial",
1306
+ "primaryKey": true,
1307
+ "notNull": true
1308
+ },
1309
+ "github_node_id": {
1310
+ "name": "github_node_id",
1311
+ "type": "text",
1312
+ "primaryKey": false,
1313
+ "notNull": true
1314
+ },
1315
+ "account_id": {
1316
+ "name": "account_id",
1317
+ "type": "integer",
1318
+ "primaryKey": false,
1319
+ "notNull": true
1320
+ },
1321
+ "repo_id": {
1322
+ "name": "repo_id",
1323
+ "type": "integer",
1324
+ "primaryKey": false,
1325
+ "notNull": true
1326
+ },
1327
+ "number": {
1328
+ "name": "number",
1329
+ "type": "integer",
1330
+ "primaryKey": false,
1331
+ "notNull": true
1332
+ },
1333
+ "title": {
1334
+ "name": "title",
1335
+ "type": "text",
1336
+ "primaryKey": false,
1337
+ "notNull": true
1338
+ },
1339
+ "body": {
1340
+ "name": "body",
1341
+ "type": "text",
1342
+ "primaryKey": false,
1343
+ "notNull": false
1344
+ },
1345
+ "author_id": {
1346
+ "name": "author_id",
1347
+ "type": "integer",
1348
+ "primaryKey": false,
1349
+ "notNull": false
1350
+ },
1351
+ "merged_by_id": {
1352
+ "name": "merged_by_id",
1353
+ "type": "integer",
1354
+ "primaryKey": false,
1355
+ "notNull": false
1356
+ },
1357
+ "base_ref_name": {
1358
+ "name": "base_ref_name",
1359
+ "type": "text",
1360
+ "primaryKey": false,
1361
+ "notNull": false
1362
+ },
1363
+ "state": {
1364
+ "name": "state",
1365
+ "type": "text",
1366
+ "primaryKey": false,
1367
+ "notNull": true
1368
+ },
1369
+ "is_draft": {
1370
+ "name": "is_draft",
1371
+ "type": "boolean",
1372
+ "primaryKey": false,
1373
+ "notNull": true,
1374
+ "default": false
1375
+ },
1376
+ "opened_at": {
1377
+ "name": "opened_at",
1378
+ "type": "timestamp with time zone",
1379
+ "primaryKey": false,
1380
+ "notNull": true
1381
+ },
1382
+ "first_review_at": {
1383
+ "name": "first_review_at",
1384
+ "type": "timestamp with time zone",
1385
+ "primaryKey": false,
1386
+ "notNull": false
1387
+ },
1388
+ "last_commit_at": {
1389
+ "name": "last_commit_at",
1390
+ "type": "timestamp with time zone",
1391
+ "primaryKey": false,
1392
+ "notNull": false
1393
+ },
1394
+ "merged_at": {
1395
+ "name": "merged_at",
1396
+ "type": "timestamp with time zone",
1397
+ "primaryKey": false,
1398
+ "notNull": false
1399
+ },
1400
+ "closed_at": {
1401
+ "name": "closed_at",
1402
+ "type": "timestamp with time zone",
1403
+ "primaryKey": false,
1404
+ "notNull": false
1405
+ },
1406
+ "updated_at": {
1407
+ "name": "updated_at",
1408
+ "type": "timestamp with time zone",
1409
+ "primaryKey": false,
1410
+ "notNull": true
1411
+ },
1412
+ "head_sha": {
1413
+ "name": "head_sha",
1414
+ "type": "text",
1415
+ "primaryKey": false,
1416
+ "notNull": false
1417
+ },
1418
+ "ci_status": {
1419
+ "name": "ci_status",
1420
+ "type": "text",
1421
+ "primaryKey": false,
1422
+ "notNull": false
1423
+ },
1424
+ "mergeable": {
1425
+ "name": "mergeable",
1426
+ "type": "text",
1427
+ "primaryKey": false,
1428
+ "notNull": false
1429
+ },
1430
+ "merge_state_status": {
1431
+ "name": "merge_state_status",
1432
+ "type": "text",
1433
+ "primaryKey": false,
1434
+ "notNull": false
1435
+ },
1436
+ "labels": {
1437
+ "name": "labels",
1438
+ "type": "jsonb",
1439
+ "primaryKey": false,
1440
+ "notNull": false
1441
+ },
1442
+ "check_runs": {
1443
+ "name": "check_runs",
1444
+ "type": "jsonb",
1445
+ "primaryKey": false,
1446
+ "notNull": false
1447
+ },
1448
+ "additions": {
1449
+ "name": "additions",
1450
+ "type": "integer",
1451
+ "primaryKey": false,
1452
+ "notNull": true,
1453
+ "default": 0
1454
+ },
1455
+ "deletions": {
1456
+ "name": "deletions",
1457
+ "type": "integer",
1458
+ "primaryKey": false,
1459
+ "notNull": true,
1460
+ "default": 0
1461
+ },
1462
+ "changed_files": {
1463
+ "name": "changed_files",
1464
+ "type": "integer",
1465
+ "primaryKey": false,
1466
+ "notNull": true,
1467
+ "default": 0
1468
+ },
1469
+ "files": {
1470
+ "name": "files",
1471
+ "type": "jsonb",
1472
+ "primaryKey": false,
1473
+ "notNull": false
1474
+ }
1475
+ },
1476
+ "indexes": {
1477
+ "pr_repo_idx": {
1478
+ "name": "pr_repo_idx",
1479
+ "columns": [
1480
+ {
1481
+ "expression": "repo_id",
1482
+ "isExpression": false,
1483
+ "asc": true,
1484
+ "nulls": "last"
1485
+ }
1486
+ ],
1487
+ "isUnique": false,
1488
+ "concurrently": false,
1489
+ "method": "btree",
1490
+ "with": {}
1491
+ },
1492
+ "pr_opened_idx": {
1493
+ "name": "pr_opened_idx",
1494
+ "columns": [
1495
+ {
1496
+ "expression": "opened_at",
1497
+ "isExpression": false,
1498
+ "asc": true,
1499
+ "nulls": "last"
1500
+ }
1501
+ ],
1502
+ "isUnique": false,
1503
+ "concurrently": false,
1504
+ "method": "btree",
1505
+ "with": {}
1506
+ },
1507
+ "pr_account_idx": {
1508
+ "name": "pr_account_idx",
1509
+ "columns": [
1510
+ {
1511
+ "expression": "account_id",
1512
+ "isExpression": false,
1513
+ "asc": true,
1514
+ "nulls": "last"
1515
+ }
1516
+ ],
1517
+ "isUnique": false,
1518
+ "concurrently": false,
1519
+ "method": "btree",
1520
+ "with": {}
1521
+ },
1522
+ "pr_account_node": {
1523
+ "name": "pr_account_node",
1524
+ "columns": [
1525
+ {
1526
+ "expression": "account_id",
1527
+ "isExpression": false,
1528
+ "asc": true,
1529
+ "nulls": "last"
1530
+ },
1531
+ {
1532
+ "expression": "github_node_id",
1533
+ "isExpression": false,
1534
+ "asc": true,
1535
+ "nulls": "last"
1536
+ }
1537
+ ],
1538
+ "isUnique": true,
1539
+ "concurrently": false,
1540
+ "method": "btree",
1541
+ "with": {}
1542
+ }
1543
+ },
1544
+ "foreignKeys": {
1545
+ "pull_requests_account_id_accounts_id_fk": {
1546
+ "name": "pull_requests_account_id_accounts_id_fk",
1547
+ "tableFrom": "pull_requests",
1548
+ "tableTo": "accounts",
1549
+ "columnsFrom": [
1550
+ "account_id"
1551
+ ],
1552
+ "columnsTo": [
1553
+ "id"
1554
+ ],
1555
+ "onDelete": "no action",
1556
+ "onUpdate": "no action"
1557
+ },
1558
+ "pull_requests_repo_id_repos_id_fk": {
1559
+ "name": "pull_requests_repo_id_repos_id_fk",
1560
+ "tableFrom": "pull_requests",
1561
+ "tableTo": "repos",
1562
+ "columnsFrom": [
1563
+ "repo_id"
1564
+ ],
1565
+ "columnsTo": [
1566
+ "id"
1567
+ ],
1568
+ "onDelete": "no action",
1569
+ "onUpdate": "no action"
1570
+ },
1571
+ "pull_requests_author_id_users_id_fk": {
1572
+ "name": "pull_requests_author_id_users_id_fk",
1573
+ "tableFrom": "pull_requests",
1574
+ "tableTo": "users",
1575
+ "columnsFrom": [
1576
+ "author_id"
1577
+ ],
1578
+ "columnsTo": [
1579
+ "id"
1580
+ ],
1581
+ "onDelete": "no action",
1582
+ "onUpdate": "no action"
1583
+ },
1584
+ "pull_requests_merged_by_id_users_id_fk": {
1585
+ "name": "pull_requests_merged_by_id_users_id_fk",
1586
+ "tableFrom": "pull_requests",
1587
+ "tableTo": "users",
1588
+ "columnsFrom": [
1589
+ "merged_by_id"
1590
+ ],
1591
+ "columnsTo": [
1592
+ "id"
1593
+ ],
1594
+ "onDelete": "no action",
1595
+ "onUpdate": "no action"
1596
+ }
1597
+ },
1598
+ "compositePrimaryKeys": {},
1599
+ "uniqueConstraints": {},
1600
+ "policies": {},
1601
+ "checkConstraints": {},
1602
+ "isRLSEnabled": false
1603
+ },
1604
+ "public.repos": {
1605
+ "name": "repos",
1606
+ "schema": "",
1607
+ "columns": {
1608
+ "id": {
1609
+ "name": "id",
1610
+ "type": "serial",
1611
+ "primaryKey": true,
1612
+ "notNull": true
1613
+ },
1614
+ "account_id": {
1615
+ "name": "account_id",
1616
+ "type": "integer",
1617
+ "primaryKey": false,
1618
+ "notNull": true
1619
+ },
1620
+ "owner": {
1621
+ "name": "owner",
1622
+ "type": "text",
1623
+ "primaryKey": false,
1624
+ "notNull": true
1625
+ },
1626
+ "name": {
1627
+ "name": "name",
1628
+ "type": "text",
1629
+ "primaryKey": false,
1630
+ "notNull": true
1631
+ },
1632
+ "github_node_id": {
1633
+ "name": "github_node_id",
1634
+ "type": "text",
1635
+ "primaryKey": false,
1636
+ "notNull": true
1637
+ },
1638
+ "default_branch": {
1639
+ "name": "default_branch",
1640
+ "type": "text",
1641
+ "primaryKey": false,
1642
+ "notNull": false
1643
+ },
1644
+ "viewer_permission": {
1645
+ "name": "viewer_permission",
1646
+ "type": "text",
1647
+ "primaryKey": false,
1648
+ "notNull": false
1649
+ },
1650
+ "backfill_until": {
1651
+ "name": "backfill_until",
1652
+ "type": "timestamp with time zone",
1653
+ "primaryKey": false,
1654
+ "notNull": false
1655
+ },
1656
+ "inbox_watch": {
1657
+ "name": "inbox_watch",
1658
+ "type": "boolean",
1659
+ "primaryKey": false,
1660
+ "notNull": true,
1661
+ "default": false
1662
+ },
1663
+ "inbox_watch_started_at": {
1664
+ "name": "inbox_watch_started_at",
1665
+ "type": "timestamp with time zone",
1666
+ "primaryKey": false,
1667
+ "notNull": false
1668
+ },
1669
+ "created_at": {
1670
+ "name": "created_at",
1671
+ "type": "timestamp with time zone",
1672
+ "primaryKey": false,
1673
+ "notNull": true,
1674
+ "default": "now()"
1675
+ }
1676
+ },
1677
+ "indexes": {
1678
+ "repos_account_owner_name": {
1679
+ "name": "repos_account_owner_name",
1680
+ "columns": [
1681
+ {
1682
+ "expression": "account_id",
1683
+ "isExpression": false,
1684
+ "asc": true,
1685
+ "nulls": "last"
1686
+ },
1687
+ {
1688
+ "expression": "owner",
1689
+ "isExpression": false,
1690
+ "asc": true,
1691
+ "nulls": "last"
1692
+ },
1693
+ {
1694
+ "expression": "name",
1695
+ "isExpression": false,
1696
+ "asc": true,
1697
+ "nulls": "last"
1698
+ }
1699
+ ],
1700
+ "isUnique": true,
1701
+ "concurrently": false,
1702
+ "method": "btree",
1703
+ "with": {}
1704
+ },
1705
+ "repos_account_node": {
1706
+ "name": "repos_account_node",
1707
+ "columns": [
1708
+ {
1709
+ "expression": "account_id",
1710
+ "isExpression": false,
1711
+ "asc": true,
1712
+ "nulls": "last"
1713
+ },
1714
+ {
1715
+ "expression": "github_node_id",
1716
+ "isExpression": false,
1717
+ "asc": true,
1718
+ "nulls": "last"
1719
+ }
1720
+ ],
1721
+ "isUnique": true,
1722
+ "concurrently": false,
1723
+ "method": "btree",
1724
+ "with": {}
1725
+ },
1726
+ "repos_account_idx": {
1727
+ "name": "repos_account_idx",
1728
+ "columns": [
1729
+ {
1730
+ "expression": "account_id",
1731
+ "isExpression": false,
1732
+ "asc": true,
1733
+ "nulls": "last"
1734
+ }
1735
+ ],
1736
+ "isUnique": false,
1737
+ "concurrently": false,
1738
+ "method": "btree",
1739
+ "with": {}
1740
+ }
1741
+ },
1742
+ "foreignKeys": {
1743
+ "repos_account_id_accounts_id_fk": {
1744
+ "name": "repos_account_id_accounts_id_fk",
1745
+ "tableFrom": "repos",
1746
+ "tableTo": "accounts",
1747
+ "columnsFrom": [
1748
+ "account_id"
1749
+ ],
1750
+ "columnsTo": [
1751
+ "id"
1752
+ ],
1753
+ "onDelete": "no action",
1754
+ "onUpdate": "no action"
1755
+ }
1756
+ },
1757
+ "compositePrimaryKeys": {},
1758
+ "uniqueConstraints": {},
1759
+ "policies": {},
1760
+ "checkConstraints": {},
1761
+ "isRLSEnabled": false
1762
+ },
1763
+ "public.review_comments": {
1764
+ "name": "review_comments",
1765
+ "schema": "",
1766
+ "columns": {
1767
+ "id": {
1768
+ "name": "id",
1769
+ "type": "serial",
1770
+ "primaryKey": true,
1771
+ "notNull": true
1772
+ },
1773
+ "github_node_id": {
1774
+ "name": "github_node_id",
1775
+ "type": "text",
1776
+ "primaryKey": false,
1777
+ "notNull": true
1778
+ },
1779
+ "thread_id": {
1780
+ "name": "thread_id",
1781
+ "type": "integer",
1782
+ "primaryKey": false,
1783
+ "notNull": true
1784
+ },
1785
+ "pr_id": {
1786
+ "name": "pr_id",
1787
+ "type": "integer",
1788
+ "primaryKey": false,
1789
+ "notNull": true
1790
+ },
1791
+ "author_id": {
1792
+ "name": "author_id",
1793
+ "type": "integer",
1794
+ "primaryKey": false,
1795
+ "notNull": false
1796
+ },
1797
+ "body": {
1798
+ "name": "body",
1799
+ "type": "text",
1800
+ "primaryKey": false,
1801
+ "notNull": false
1802
+ },
1803
+ "excerpt": {
1804
+ "name": "excerpt",
1805
+ "type": "text",
1806
+ "primaryKey": false,
1807
+ "notNull": false
1808
+ },
1809
+ "diff_hunk": {
1810
+ "name": "diff_hunk",
1811
+ "type": "text",
1812
+ "primaryKey": false,
1813
+ "notNull": false
1814
+ },
1815
+ "database_id": {
1816
+ "name": "database_id",
1817
+ "type": "text",
1818
+ "primaryKey": false,
1819
+ "notNull": false
1820
+ },
1821
+ "created_at": {
1822
+ "name": "created_at",
1823
+ "type": "timestamp with time zone",
1824
+ "primaryKey": false,
1825
+ "notNull": true
1826
+ }
1827
+ },
1828
+ "indexes": {
1829
+ "rc_thread_idx": {
1830
+ "name": "rc_thread_idx",
1831
+ "columns": [
1832
+ {
1833
+ "expression": "thread_id",
1834
+ "isExpression": false,
1835
+ "asc": true,
1836
+ "nulls": "last"
1837
+ }
1838
+ ],
1839
+ "isUnique": false,
1840
+ "concurrently": false,
1841
+ "method": "btree",
1842
+ "with": {}
1843
+ },
1844
+ "rc_pr_node": {
1845
+ "name": "rc_pr_node",
1846
+ "columns": [
1847
+ {
1848
+ "expression": "pr_id",
1849
+ "isExpression": false,
1850
+ "asc": true,
1851
+ "nulls": "last"
1852
+ },
1853
+ {
1854
+ "expression": "github_node_id",
1855
+ "isExpression": false,
1856
+ "asc": true,
1857
+ "nulls": "last"
1858
+ }
1859
+ ],
1860
+ "isUnique": true,
1861
+ "concurrently": false,
1862
+ "method": "btree",
1863
+ "with": {}
1864
+ }
1865
+ },
1866
+ "foreignKeys": {
1867
+ "review_comments_thread_id_review_threads_id_fk": {
1868
+ "name": "review_comments_thread_id_review_threads_id_fk",
1869
+ "tableFrom": "review_comments",
1870
+ "tableTo": "review_threads",
1871
+ "columnsFrom": [
1872
+ "thread_id"
1873
+ ],
1874
+ "columnsTo": [
1875
+ "id"
1876
+ ],
1877
+ "onDelete": "no action",
1878
+ "onUpdate": "no action"
1879
+ },
1880
+ "review_comments_pr_id_pull_requests_id_fk": {
1881
+ "name": "review_comments_pr_id_pull_requests_id_fk",
1882
+ "tableFrom": "review_comments",
1883
+ "tableTo": "pull_requests",
1884
+ "columnsFrom": [
1885
+ "pr_id"
1886
+ ],
1887
+ "columnsTo": [
1888
+ "id"
1889
+ ],
1890
+ "onDelete": "no action",
1891
+ "onUpdate": "no action"
1892
+ },
1893
+ "review_comments_author_id_users_id_fk": {
1894
+ "name": "review_comments_author_id_users_id_fk",
1895
+ "tableFrom": "review_comments",
1896
+ "tableTo": "users",
1897
+ "columnsFrom": [
1898
+ "author_id"
1899
+ ],
1900
+ "columnsTo": [
1901
+ "id"
1902
+ ],
1903
+ "onDelete": "no action",
1904
+ "onUpdate": "no action"
1905
+ }
1906
+ },
1907
+ "compositePrimaryKeys": {},
1908
+ "uniqueConstraints": {},
1909
+ "policies": {},
1910
+ "checkConstraints": {},
1911
+ "isRLSEnabled": false
1912
+ },
1913
+ "public.review_requests": {
1914
+ "name": "review_requests",
1915
+ "schema": "",
1916
+ "columns": {
1917
+ "id": {
1918
+ "name": "id",
1919
+ "type": "serial",
1920
+ "primaryKey": true,
1921
+ "notNull": true
1922
+ },
1923
+ "pr_id": {
1924
+ "name": "pr_id",
1925
+ "type": "integer",
1926
+ "primaryKey": false,
1927
+ "notNull": true
1928
+ },
1929
+ "user_id": {
1930
+ "name": "user_id",
1931
+ "type": "integer",
1932
+ "primaryKey": false,
1933
+ "notNull": false
1934
+ },
1935
+ "team_name": {
1936
+ "name": "team_name",
1937
+ "type": "text",
1938
+ "primaryKey": false,
1939
+ "notNull": false
1940
+ }
1941
+ },
1942
+ "indexes": {
1943
+ "rr_pr_idx": {
1944
+ "name": "rr_pr_idx",
1945
+ "columns": [
1946
+ {
1947
+ "expression": "pr_id",
1948
+ "isExpression": false,
1949
+ "asc": true,
1950
+ "nulls": "last"
1951
+ }
1952
+ ],
1953
+ "isUnique": false,
1954
+ "concurrently": false,
1955
+ "method": "btree",
1956
+ "with": {}
1957
+ },
1958
+ "rr_user_idx": {
1959
+ "name": "rr_user_idx",
1960
+ "columns": [
1961
+ {
1962
+ "expression": "user_id",
1963
+ "isExpression": false,
1964
+ "asc": true,
1965
+ "nulls": "last"
1966
+ }
1967
+ ],
1968
+ "isUnique": false,
1969
+ "concurrently": false,
1970
+ "method": "btree",
1971
+ "with": {}
1972
+ }
1973
+ },
1974
+ "foreignKeys": {
1975
+ "review_requests_pr_id_pull_requests_id_fk": {
1976
+ "name": "review_requests_pr_id_pull_requests_id_fk",
1977
+ "tableFrom": "review_requests",
1978
+ "tableTo": "pull_requests",
1979
+ "columnsFrom": [
1980
+ "pr_id"
1981
+ ],
1982
+ "columnsTo": [
1983
+ "id"
1984
+ ],
1985
+ "onDelete": "no action",
1986
+ "onUpdate": "no action"
1987
+ },
1988
+ "review_requests_user_id_users_id_fk": {
1989
+ "name": "review_requests_user_id_users_id_fk",
1990
+ "tableFrom": "review_requests",
1991
+ "tableTo": "users",
1992
+ "columnsFrom": [
1993
+ "user_id"
1994
+ ],
1995
+ "columnsTo": [
1996
+ "id"
1997
+ ],
1998
+ "onDelete": "no action",
1999
+ "onUpdate": "no action"
2000
+ }
2001
+ },
2002
+ "compositePrimaryKeys": {},
2003
+ "uniqueConstraints": {},
2004
+ "policies": {},
2005
+ "checkConstraints": {},
2006
+ "isRLSEnabled": false
2007
+ },
2008
+ "public.review_threads": {
2009
+ "name": "review_threads",
2010
+ "schema": "",
2011
+ "columns": {
2012
+ "id": {
2013
+ "name": "id",
2014
+ "type": "serial",
2015
+ "primaryKey": true,
2016
+ "notNull": true
2017
+ },
2018
+ "github_node_id": {
2019
+ "name": "github_node_id",
2020
+ "type": "text",
2021
+ "primaryKey": false,
2022
+ "notNull": true
2023
+ },
2024
+ "pr_id": {
2025
+ "name": "pr_id",
2026
+ "type": "integer",
2027
+ "primaryKey": false,
2028
+ "notNull": true
2029
+ },
2030
+ "path": {
2031
+ "name": "path",
2032
+ "type": "text",
2033
+ "primaryKey": false,
2034
+ "notNull": true
2035
+ },
2036
+ "line": {
2037
+ "name": "line",
2038
+ "type": "integer",
2039
+ "primaryKey": false,
2040
+ "notNull": false
2041
+ },
2042
+ "is_resolved": {
2043
+ "name": "is_resolved",
2044
+ "type": "boolean",
2045
+ "primaryKey": false,
2046
+ "notNull": true
2047
+ },
2048
+ "is_outdated": {
2049
+ "name": "is_outdated",
2050
+ "type": "boolean",
2051
+ "primaryKey": false,
2052
+ "notNull": true,
2053
+ "default": false
2054
+ },
2055
+ "derived_state": {
2056
+ "name": "derived_state",
2057
+ "type": "text",
2058
+ "primaryKey": false,
2059
+ "notNull": true
2060
+ },
2061
+ "original_commenter_id": {
2062
+ "name": "original_commenter_id",
2063
+ "type": "integer",
2064
+ "primaryKey": false,
2065
+ "notNull": false
2066
+ },
2067
+ "created_at": {
2068
+ "name": "created_at",
2069
+ "type": "timestamp with time zone",
2070
+ "primaryKey": false,
2071
+ "notNull": true
2072
+ }
2073
+ },
2074
+ "indexes": {
2075
+ "thread_pr_idx": {
2076
+ "name": "thread_pr_idx",
2077
+ "columns": [
2078
+ {
2079
+ "expression": "pr_id",
2080
+ "isExpression": false,
2081
+ "asc": true,
2082
+ "nulls": "last"
2083
+ }
2084
+ ],
2085
+ "isUnique": false,
2086
+ "concurrently": false,
2087
+ "method": "btree",
2088
+ "with": {}
2089
+ },
2090
+ "thread_pr_node": {
2091
+ "name": "thread_pr_node",
2092
+ "columns": [
2093
+ {
2094
+ "expression": "pr_id",
2095
+ "isExpression": false,
2096
+ "asc": true,
2097
+ "nulls": "last"
2098
+ },
2099
+ {
2100
+ "expression": "github_node_id",
2101
+ "isExpression": false,
2102
+ "asc": true,
2103
+ "nulls": "last"
2104
+ }
2105
+ ],
2106
+ "isUnique": true,
2107
+ "concurrently": false,
2108
+ "method": "btree",
2109
+ "with": {}
2110
+ }
2111
+ },
2112
+ "foreignKeys": {
2113
+ "review_threads_pr_id_pull_requests_id_fk": {
2114
+ "name": "review_threads_pr_id_pull_requests_id_fk",
2115
+ "tableFrom": "review_threads",
2116
+ "tableTo": "pull_requests",
2117
+ "columnsFrom": [
2118
+ "pr_id"
2119
+ ],
2120
+ "columnsTo": [
2121
+ "id"
2122
+ ],
2123
+ "onDelete": "no action",
2124
+ "onUpdate": "no action"
2125
+ },
2126
+ "review_threads_original_commenter_id_users_id_fk": {
2127
+ "name": "review_threads_original_commenter_id_users_id_fk",
2128
+ "tableFrom": "review_threads",
2129
+ "tableTo": "users",
2130
+ "columnsFrom": [
2131
+ "original_commenter_id"
2132
+ ],
2133
+ "columnsTo": [
2134
+ "id"
2135
+ ],
2136
+ "onDelete": "no action",
2137
+ "onUpdate": "no action"
2138
+ }
2139
+ },
2140
+ "compositePrimaryKeys": {},
2141
+ "uniqueConstraints": {},
2142
+ "policies": {},
2143
+ "checkConstraints": {},
2144
+ "isRLSEnabled": false
2145
+ },
2146
+ "public.reviews": {
2147
+ "name": "reviews",
2148
+ "schema": "",
2149
+ "columns": {
2150
+ "id": {
2151
+ "name": "id",
2152
+ "type": "serial",
2153
+ "primaryKey": true,
2154
+ "notNull": true
2155
+ },
2156
+ "github_node_id": {
2157
+ "name": "github_node_id",
2158
+ "type": "text",
2159
+ "primaryKey": false,
2160
+ "notNull": true
2161
+ },
2162
+ "pr_id": {
2163
+ "name": "pr_id",
2164
+ "type": "integer",
2165
+ "primaryKey": false,
2166
+ "notNull": true
2167
+ },
2168
+ "author_id": {
2169
+ "name": "author_id",
2170
+ "type": "integer",
2171
+ "primaryKey": false,
2172
+ "notNull": false
2173
+ },
2174
+ "state": {
2175
+ "name": "state",
2176
+ "type": "text",
2177
+ "primaryKey": false,
2178
+ "notNull": true
2179
+ },
2180
+ "body": {
2181
+ "name": "body",
2182
+ "type": "text",
2183
+ "primaryKey": false,
2184
+ "notNull": false
2185
+ },
2186
+ "database_id": {
2187
+ "name": "database_id",
2188
+ "type": "text",
2189
+ "primaryKey": false,
2190
+ "notNull": false
2191
+ },
2192
+ "submitted_at": {
2193
+ "name": "submitted_at",
2194
+ "type": "timestamp with time zone",
2195
+ "primaryKey": false,
2196
+ "notNull": true
2197
+ }
2198
+ },
2199
+ "indexes": {
2200
+ "rv_pr_idx": {
2201
+ "name": "rv_pr_idx",
2202
+ "columns": [
2203
+ {
2204
+ "expression": "pr_id",
2205
+ "isExpression": false,
2206
+ "asc": true,
2207
+ "nulls": "last"
2208
+ }
2209
+ ],
2210
+ "isUnique": false,
2211
+ "concurrently": false,
2212
+ "method": "btree",
2213
+ "with": {}
2214
+ },
2215
+ "reviews_pr_node": {
2216
+ "name": "reviews_pr_node",
2217
+ "columns": [
2218
+ {
2219
+ "expression": "pr_id",
2220
+ "isExpression": false,
2221
+ "asc": true,
2222
+ "nulls": "last"
2223
+ },
2224
+ {
2225
+ "expression": "github_node_id",
2226
+ "isExpression": false,
2227
+ "asc": true,
2228
+ "nulls": "last"
2229
+ }
2230
+ ],
2231
+ "isUnique": true,
2232
+ "concurrently": false,
2233
+ "method": "btree",
2234
+ "with": {}
2235
+ }
2236
+ },
2237
+ "foreignKeys": {
2238
+ "reviews_pr_id_pull_requests_id_fk": {
2239
+ "name": "reviews_pr_id_pull_requests_id_fk",
2240
+ "tableFrom": "reviews",
2241
+ "tableTo": "pull_requests",
2242
+ "columnsFrom": [
2243
+ "pr_id"
2244
+ ],
2245
+ "columnsTo": [
2246
+ "id"
2247
+ ],
2248
+ "onDelete": "no action",
2249
+ "onUpdate": "no action"
2250
+ },
2251
+ "reviews_author_id_users_id_fk": {
2252
+ "name": "reviews_author_id_users_id_fk",
2253
+ "tableFrom": "reviews",
2254
+ "tableTo": "users",
2255
+ "columnsFrom": [
2256
+ "author_id"
2257
+ ],
2258
+ "columnsTo": [
2259
+ "id"
2260
+ ],
2261
+ "onDelete": "no action",
2262
+ "onUpdate": "no action"
2263
+ }
2264
+ },
2265
+ "compositePrimaryKeys": {},
2266
+ "uniqueConstraints": {},
2267
+ "policies": {},
2268
+ "checkConstraints": {},
2269
+ "isRLSEnabled": false
2270
+ },
2271
+ "public.sync_state": {
2272
+ "name": "sync_state",
2273
+ "schema": "",
2274
+ "columns": {
2275
+ "repo_id": {
2276
+ "name": "repo_id",
2277
+ "type": "integer",
2278
+ "primaryKey": true,
2279
+ "notNull": true
2280
+ },
2281
+ "last_full_sync_at": {
2282
+ "name": "last_full_sync_at",
2283
+ "type": "timestamp with time zone",
2284
+ "primaryKey": false,
2285
+ "notNull": false
2286
+ },
2287
+ "last_incremental_sync_at": {
2288
+ "name": "last_incremental_sync_at",
2289
+ "type": "timestamp with time zone",
2290
+ "primaryKey": false,
2291
+ "notNull": false
2292
+ },
2293
+ "last_sync_status": {
2294
+ "name": "last_sync_status",
2295
+ "type": "text",
2296
+ "primaryKey": false,
2297
+ "notNull": false
2298
+ },
2299
+ "last_sync_error": {
2300
+ "name": "last_sync_error",
2301
+ "type": "text",
2302
+ "primaryKey": false,
2303
+ "notNull": false
2304
+ }
2305
+ },
2306
+ "indexes": {},
2307
+ "foreignKeys": {
2308
+ "sync_state_repo_id_repos_id_fk": {
2309
+ "name": "sync_state_repo_id_repos_id_fk",
2310
+ "tableFrom": "sync_state",
2311
+ "tableTo": "repos",
2312
+ "columnsFrom": [
2313
+ "repo_id"
2314
+ ],
2315
+ "columnsTo": [
2316
+ "id"
2317
+ ],
2318
+ "onDelete": "no action",
2319
+ "onUpdate": "no action"
2320
+ }
2321
+ },
2322
+ "compositePrimaryKeys": {},
2323
+ "uniqueConstraints": {},
2324
+ "policies": {},
2325
+ "checkConstraints": {},
2326
+ "isRLSEnabled": false
2327
+ },
2328
+ "public.users": {
2329
+ "name": "users",
2330
+ "schema": "",
2331
+ "columns": {
2332
+ "id": {
2333
+ "name": "id",
2334
+ "type": "serial",
2335
+ "primaryKey": true,
2336
+ "notNull": true
2337
+ },
2338
+ "github_login": {
2339
+ "name": "github_login",
2340
+ "type": "text",
2341
+ "primaryKey": false,
2342
+ "notNull": true
2343
+ },
2344
+ "github_node_id": {
2345
+ "name": "github_node_id",
2346
+ "type": "text",
2347
+ "primaryKey": false,
2348
+ "notNull": false
2349
+ },
2350
+ "display_name": {
2351
+ "name": "display_name",
2352
+ "type": "text",
2353
+ "primaryKey": false,
2354
+ "notNull": false
2355
+ },
2356
+ "avatar_url": {
2357
+ "name": "avatar_url",
2358
+ "type": "text",
2359
+ "primaryKey": false,
2360
+ "notNull": false
2361
+ },
2362
+ "is_bot": {
2363
+ "name": "is_bot",
2364
+ "type": "boolean",
2365
+ "primaryKey": false,
2366
+ "notNull": true,
2367
+ "default": false
2368
+ },
2369
+ "is_bot_overridden": {
2370
+ "name": "is_bot_overridden",
2371
+ "type": "boolean",
2372
+ "primaryKey": false,
2373
+ "notNull": true,
2374
+ "default": false
2375
+ }
2376
+ },
2377
+ "indexes": {},
2378
+ "foreignKeys": {},
2379
+ "compositePrimaryKeys": {},
2380
+ "uniqueConstraints": {
2381
+ "users_github_login_unique": {
2382
+ "name": "users_github_login_unique",
2383
+ "nullsNotDistinct": false,
2384
+ "columns": [
2385
+ "github_login"
2386
+ ]
2387
+ },
2388
+ "users_github_node_id_unique": {
2389
+ "name": "users_github_node_id_unique",
2390
+ "nullsNotDistinct": false,
2391
+ "columns": [
2392
+ "github_node_id"
2393
+ ]
2394
+ }
2395
+ },
2396
+ "policies": {},
2397
+ "checkConstraints": {},
2398
+ "isRLSEnabled": false
2399
+ }
2400
+ },
2401
+ "enums": {},
2402
+ "schemas": {},
2403
+ "sequences": {},
2404
+ "roles": {},
2405
+ "policies": {},
2406
+ "views": {},
2407
+ "_meta": {
2408
+ "columns": {},
2409
+ "schemas": {},
2410
+ "tables": {}
2411
+ }
2412
+ }