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