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