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