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