@sentry/junior 0.314.0 → 0.316.0

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 (667) hide show
  1. package/dist/{channel-access-BOL29BG3.js → adapter-context-Bref7aPI.js} +42 -3
  2. package/dist/{admin-BXGAySz0.js → admin-QYiDMnsu.js} +1 -1
  3. package/dist/agent-runner-Cr5Fhjf-.js +23870 -0
  4. package/dist/{agent-update-delivery-CZ5M8RDa.js → agent-update-delivery-BY13DPSD.js} +46 -9
  5. package/dist/api/schema.d.ts +9549 -2
  6. package/dist/api/schema.js +4 -6
  7. package/dist/api.d.ts +2 -3
  8. package/dist/api.js +747 -293
  9. package/dist/{app-D7tKnw9a.d.ts → app-BhvzRD__.d.ts} +314 -29
  10. package/dist/app.d.ts +1 -1
  11. package/dist/app.js +268 -58
  12. package/dist/change-record-Bqsa5ZXE.d.ts +175 -0
  13. package/dist/chat-core-engine-3dtlMku3.js +123 -0
  14. package/dist/cli/chat.d.ts +4 -1
  15. package/dist/cli/chat.js +39 -21
  16. package/dist/cli/check.js +4 -4
  17. package/dist/cli/main.js +2 -2
  18. package/dist/cli/plugins.js +3 -4
  19. package/dist/cli/run.d.ts +1 -1
  20. package/dist/cli/run.js +1 -1
  21. package/dist/cli/snapshot-create.js +2 -5
  22. package/dist/cli/upgrade.d.ts +1 -1
  23. package/dist/cli/upgrade.js +46 -74
  24. package/dist/{continue-in-slack-fnmD2Ifb.js → continue-in-slack-DbQUFe_F.js} +3 -5
  25. package/dist/{conversation-feed-DdFQuQDR.js → conversation-feed-B84pMjHo.js} +28 -3
  26. package/dist/{conversation-turn-DScuDYmN.js → conversation-turn-DzEpTIaf.js} +152 -199
  27. package/dist/{create-CrNt4Ewu.js → create-DUJBXr6E.js} +4 -4
  28. package/dist/{credential-sync-CtqsGjj1.js → credential-sync-JH_K9Adg.js} +10 -15
  29. package/dist/db-BpxcYXfD.d.ts +2 -0
  30. package/dist/{credentialed-dWRA3-oJ.js → db-DhzvUY23.js} +21830 -9264
  31. package/dist/deployment-BhvrhQeh.js +51 -0
  32. package/dist/engine-context-C9Nal48K.js +1814 -0
  33. package/dist/{html-B8rBt7F4.js → html-B_12WjKT.js} +2 -5
  34. package/dist/instrumentation.js +2 -2
  35. package/dist/job-runner-DO8nslyY.js +1139 -0
  36. package/dist/{lineage-EULJkGO1.js → lineage-D3AZAJVe.js} +1 -1
  37. package/dist/{list-C5400AlJ.js → list-B0zsb5Cp.js} +307 -146
  38. package/dist/{markers-DUP8aBOp.js → list-mkB_GU8R.js} +96 -124
  39. package/dist/local-server-CpnGhYml.js +276 -0
  40. package/dist/{conversation-privacy-DtZhI91r.js → logging-B8KEJegM.js} +2 -231
  41. package/dist/{media-FYM-Bl3H.js → media-BebquhET.js} +684 -37
  42. package/dist/{message-DuDelZFr.js → message-B5fKDYzz.js} +18 -16
  43. package/dist/{model-input-0osF3pBS.js → model-input-CuMWy37l.js} +3 -3
  44. package/dist/nitro.d.ts +7 -1
  45. package/dist/nitro.js +48 -293
  46. package/dist/{oauth-callback-server-DX2fQ7Nq.js → oauth-callback-server-B3Vvlydo.js} +2 -2
  47. package/dist/{oauth-relay-PwPMdZJv.js → oauth-relay-6ERrGPbA.js} +1 -1
  48. package/dist/{package-discovery-DD9vencX.js → package-discovery-BI6T_RkD.js} +50 -1
  49. package/dist/people-CUtFApfL.js +81 -0
  50. package/dist/proxy-path-BTmXDjfx.js +203 -0
  51. package/dist/{resolve-D8CPJcNK.js → resolve-D5JVvv6A.js} +229 -4
  52. package/dist/{result-D090hxr5.js → result-CS_7mo8a.js} +95 -144
  53. package/dist/{runner-BU7fgrm-.js → runner-BzAES5W3.js} +7 -7
  54. package/dist/{sandbox-egress-signals-BUmVrsoG.js → sandbox-egress-signals-Dwhk2Q5F.js} +1 -1
  55. package/dist/{schema-7gW9vBpJ.js → schema-z5-wA6N4.js} +132 -15
  56. package/dist/{service-account-plA-uzIB.js → service-account-D6AsAtc1.js} +1 -3
  57. package/dist/{mailbox-turn-DL3Lvsm0.js → session-stop-DponjDUZ.js} +3259 -3793
  58. package/dist/{skills-CIosT6bS.js → skills-DgJ9GBPR.js} +4 -4
  59. package/dist/{slack-conversation-unfurl-CBgZqth6.js → slack-conversation-unfurl-Dq71EkhM.js} +6 -8
  60. package/dist/{spawn-DRjdzh3R.js → spawn-BJWpdwhQ.js} +4 -5
  61. package/dist/start-conversation-B-LIqqNi.js +162 -0
  62. package/dist/system-prompt-table-iIgpmslr.js +1171 -0
  63. package/dist/{task-runner-C-pXsgHM.js → task-runner-BJae4JwE.js} +83 -17
  64. package/dist/{thread-context-CDX4dSZd.js → thread-context-fiMNylbg.js} +5 -6
  65. package/dist/topic-CRYYBYp-.js +7 -0
  66. package/dist/transcript-CCi7323k.js +410 -0
  67. package/dist/turn-session-routing-D15orfwy.js +1309 -0
  68. package/dist/{turn-wake-Bzq1Efrm.js → turn-wake-BjDW7x-5.js} +5 -7
  69. package/dist/{validation-bTq88sya.js → validation-D5WmmmhX.js} +1 -1
  70. package/dist/{version-DGUa1dZK.js → version-CBQoanXb.js} +1 -1
  71. package/dist/version.js +1 -1
  72. package/dist/virtual-module-BeKA_EII.js +12 -0
  73. package/dist/{worker-AkZg7Dg1.js → worker-Cyb4kF17.js} +3 -5
  74. package/migrations/20260711145847_initial/snapshot.json +2103 -0
  75. package/migrations/20260711145900_conversation_metrics/snapshot.json +135 -0
  76. package/migrations/20260712153649_conversation_message_search/snapshot.json +50 -0
  77. package/migrations/20260713040256_peaceful_scalphunter/snapshot.json +42 -0
  78. package/migrations/20260715174202_useful_magus/snapshot.json +42 -0
  79. package/migrations/20260715174203_conversation_events/snapshot.json +539 -0
  80. package/migrations/20260723042835_drop_legacy_conversation_messages/snapshot.json +9 -0
  81. package/migrations/20260723050612_thick_sugar_man/snapshot.json +120 -0
  82. package/migrations/20260727223822_sticky_rage/snapshot.json +274 -0
  83. package/migrations/20260728033158_slippery_harrier/snapshot.json +191 -0
  84. package/migrations/20260728040836_native_conversation_history/snapshot.json +9 -0
  85. package/migrations/20260728204900_sour_golden_guardian/snapshot.json +124 -0
  86. package/migrations/20260730233332_structured_conversation_events/snapshot.json +9 -0
  87. package/migrations/20260731164038_conversation_session_source/snapshot.json +42 -0
  88. package/migrations/20260801230336_source_visibility/snapshot.json +9 -0
  89. package/migrations/20260802023731_magical_ezekiel_stane/snapshot.json +266 -0
  90. package/migrations/20260804015843_neat_the_anarchist/snapshot.json +714 -0
  91. package/migrations/20260804165952_drop_paused_scheduled_tasks/snapshot.json +9 -0
  92. package/migrations/20260804225613_curvy_excalibur/snapshot.json +223 -0
  93. package/migrations/20260805174033_lowly_valkyrie/snapshot.json +344 -0
  94. package/migrations/20260805200301_restrict_task_execution_kinds/snapshot.json +36 -0
  95. package/migrations/20260806030729_first_warhawk/snapshot.json +690 -0
  96. package/migrations/20260807185200_task_execution_status/snapshot.json +92 -0
  97. package/migrations/20260808014743_task_title_columns/snapshot.json +68 -0
  98. package/migrations/20260809220421_misty_typhoid_mary/snapshot.json +191 -0
  99. package/migrations/20260811193709_mcp_credential_subject/snapshot.json +9 -0
  100. package/migrations/20260812032924_conversation_event_actor_and_participants/snapshot.json +393 -0
  101. package/migrations/20260812172418_attachment_storage/snapshot.json +341 -0
  102. package/migrations/20260813230732_artifacts/snapshot.json +349 -0
  103. package/migrations/20260814062905_dizzy_barracuda/snapshot.json +342 -0
  104. package/migrations/20260814231353_drop_workspace_repo_primary/snapshot.json +55 -0
  105. package/migrations/20260815030100_wild_phantom_reporter/snapshot.json +135 -0
  106. package/migrations/20260817082233_workspace_snapshots_table/snapshot.json +625 -0
  107. package/migrations/20260818160339_workspace_snapshot_active_build/snapshot.json +62 -0
  108. package/migrations/20260821180755_strong_randall/snapshot.json +42 -0
  109. package/migrations/20260823030308_workspace_snapshot_size_bytes/snapshot.json +62 -0
  110. package/migrations/20260824190313_complex_rage/snapshot.json +690 -0
  111. package/migrations/20260827233711_conversation_location/snapshot.json +42 -0
  112. package/migrations/20260901224306_event_task_status/snapshot.json +100 -0
  113. package/migrations/20260904153232_attachment_provider/snapshot.json +234 -0
  114. package/migrations/20260909111415_conversation_briefs/snapshot.json +364 -0
  115. package/migrations/20260910144928_automation_outcomes_backfill/snapshot.json +9 -0
  116. package/migrations/20260911184346_conversation_metrics/snapshot.json +226 -0
  117. package/migrations/20260921140842_scheduled_automation_channel_destinations/snapshot.json +9 -0
  118. package/migrations/20260922221709_event_automation_channel_destinations/snapshot.json +9 -0
  119. package/migrations/20261001113455_conversation_forks/snapshot.json +120 -0
  120. package/migrations/20261005161844_automation_versions/snapshot.json +150 -0
  121. package/migrations/20261006152043_user_timezone/snapshot.json +37 -0
  122. package/migrations/20261008200858_user_admin/snapshot.json +37 -0
  123. package/migrations/20261009145407_event_automation_status_reason/snapshot.json +42 -0
  124. package/migrations/20261013160816_agent_invocation_parent_mailbox/snapshot.json +93 -0
  125. package/migrations/20261013215020_agent_invocation_parent_tool_call/snapshot.json +42 -0
  126. package/migrations/20261014011138_agent_invocation_title/snapshot.json +42 -0
  127. package/migrations/20261014211942_conversation_stopped_at/snapshot.json +42 -0
  128. package/migrations/20261015012820_flowery_rage/snapshot.json +42 -0
  129. package/migrations/20261017000924_automations/snapshot.json +790 -0
  130. package/migrations/20261017134736_automation_runs/snapshot.json +474 -0
  131. package/migrations/20261017170250_drop_legacy_automation_tables/snapshot.json +397 -0
  132. package/migrations/20261018134754_automation_creator_identity/snapshot.json +130 -0
  133. package/migrations/20261023071954_automation_run_version/snapshot.json +79 -0
  134. package/migrations/20261025233137_identity_signed_in_at/snapshot.json +42 -0
  135. package/migrations/20261027234315_workspace_vcpus/snapshot.json +37 -0
  136. package/migrations/20261028124242_plugin_report_index/snapshot.json +68 -0
  137. package/migrations/20261028154230_agent_invocation_type/snapshot.json +42 -0
  138. package/migrations/20261030021803_any_resource_event_triggers/snapshot.json +42 -0
  139. package/migrations/20261030234309_user_customization/snapshot.json +37 -0
  140. package/migrations/20261031020656_review_items/snapshot.json +1078 -0
  141. package/migrations/20261031024151_review_item_dedupe_tenant/snapshot.json +62 -0
  142. package/migrations/20261031024246_review_item_slack_cards/snapshot.json +159 -0
  143. package/migrations/20261031155308_system_identity/snapshot.json +9 -0
  144. package/migrations/20261101193952_review_item_foreign_keys/snapshot.json +108 -0
  145. package/migrations/20261102172751_review_item_turn/snapshot.json +42 -0
  146. package/migrations/20261102221411_conversation_read_positions/snapshot.json +190 -0
  147. package/migrations/20261104085028_conversation_quick_question/snapshot.json +42 -0
  148. package/migrations/20261104145136_conversation_participant_pins/snapshot.json +42 -0
  149. package/migrations/20261104164429_conversation_detail_version/snapshot.json +42 -0
  150. package/migrations/20261104172055_conversation_auto_archive/snapshot.json +206 -0
  151. package/migrations/20261105005443_drop_agent_invocation_model_profile/snapshot.json +30 -0
  152. package/migrations/20261105043807_plugin_conversation_index/snapshot.json +76 -0
  153. package/migrations/20261105051837_conversation_event_author_index/snapshot.json +70 -0
  154. package/migrations/20261105182854_conversation_event_latest_message_indexes/snapshot.json +136 -0
  155. package/migrations/20261106011443_conversation_pin_position/snapshot.json +42 -0
  156. package/migrations/20261106095004_push_notifications/snapshot.json +308 -0
  157. package/migrations/20261106162740_conversation_kind/snapshot.json +88 -0
  158. package/migrations/20261107002001_read_position_backfill/snapshot.json +9 -0
  159. package/migrations/20261107025209_child_archived_at/snapshot.json +42 -0
  160. package/migrations/20261107035735_shared_archive/snapshot.json +67 -0
  161. package/migrations/20261107215055_child_location/snapshot.json +9 -0
  162. package/migrations/20261108191927_conversation_unsubscribe/snapshot.json +42 -0
  163. package/migrations/20261109021618_conversation_paused_status/snapshot.json +9 -0
  164. package/migrations/20261109111553_guardian_review_time_index/snapshot.json +54 -0
  165. package/migrations/20261109173130_conversation_participant_unsubscribed_index/snapshot.json +62 -0
  166. package/migrations/20261109182006_turn_metric_actor/snapshot.json +128 -0
  167. package/migrations/20261109202836_participant_root_actor_backfill/snapshot.json +9 -0
  168. package/migrations/20261109232640_conversation_delivery_paused_at/snapshot.json +42 -0
  169. package/migrations/20261110120937_web_linked_slack_identity_repair/snapshot.json +9 -0
  170. package/migrations/20261110175824_automation_task_kind/snapshot.json +145 -0
  171. package/migrations/20261110210242_conversation_kind_automation/snapshot.json +55 -0
  172. package/migrations/20261110222632_review_item_plugin_actions/snapshot.json +37 -0
  173. package/migrations/20261110225157_conversation_last_message_at/snapshot.json +42 -0
  174. package/migrations/20261111013351_automation_task_kind_repair/snapshot.json +9 -0
  175. package/migrations/20261111163126_drop_legacy_columns/snapshot.json +9 -0
  176. package/migrations/20261111170150_code_change_last_activity/snapshot.json +42 -0
  177. package/migrations/20261111191441_agent_invocation_fork/snapshot.json +42 -0
  178. package/migrations/20261112142841_code_change_draft/snapshot.json +37 -0
  179. package/migrations/20261112202901_attachment_uploads/snapshot.json +255 -0
  180. package/migrations/20261112220407_conversation_agent_config/snapshot.json +42 -0
  181. package/migrations/20261113081247_attachment_deferred_download/snapshot.json +52 -0
  182. package/migrations/20261113225551_conversation_embeddings/snapshot.json +203 -0
  183. package/migrations/20261114213238_user_preferences/snapshot.json +37 -0
  184. package/migrations/20261114222527_code_change_repository_state_index/snapshot.json +70 -0
  185. package/migrations/20261115172605_attachment_kinds/snapshot.json +244 -0
  186. package/migrations/20261115173004_attachment_url_fill/snapshot.json +9 -0
  187. package/migrations/20261115180216_attachment_url_index/snapshot.json +62 -0
  188. package/migrations/20261116103700_plan_items/snapshot.json +420 -0
  189. package/migrations/20261117100100_automation_creator_slack_index/snapshot.json +62 -0
  190. package/migrations/20261117132522_conversation_event_search/snapshot.json +396 -0
  191. package/migrations/20261117164007_automation_last_run/snapshot.json +108 -0
  192. package/migrations/20261117164047_automation_last_run_index/snapshot.json +54 -0
  193. package/migrations/20261117210444_money_micro_usd/snapshot.json +68 -0
  194. package/migrations/20261117210505_conversation_cost_micro_usd/snapshot.json +9 -0
  195. package/migrations/20261118081416_people_list_metric_index/snapshot.json +86 -0
  196. package/migrations/20261118095216_automation_rollout_repair/snapshot.json +9 -0
  197. package/migrations/20261118143948_cache_warming_history_reset/snapshot.json +9 -0
  198. package/migrations/20261119040651_artifact_visibility/snapshot.json +132 -0
  199. package/migrations/20261119040715_artifact_public_sha_index/snapshot.json +9 -0
  200. package/migrations/20261119052706_artifact_drop_public/snapshot.json +71 -0
  201. package/migrations/20261119053831_artifact_path/snapshot.json +114 -0
  202. package/migrations/20261119053844_artifact_path_index/snapshot.json +9 -0
  203. package/migrations/20261119091949_review_item_answered_index/snapshot.json +70 -0
  204. package/migrations/20261119100029_review_item_status_index/snapshot.json +54 -0
  205. package/migrations/20261119165607_brief_outcome_status/snapshot.json +42 -0
  206. package/migrations/20261119165622_brief_outcome_status_backfill/snapshot.json +9 -0
  207. package/migrations/20261119213716_brief_created_at_index/snapshot.json +62 -0
  208. package/migrations/20261119222456_slack_person_search_index/snapshot.json +50 -0
  209. package/migrations/20261119225522_code_change_size/snapshot.json +104 -0
  210. package/migrations/20261119232253_merge_conflict_notice_dismiss/snapshot.json +9 -0
  211. package/migrations/20261119235649_inbox_snoozes/snapshot.json +605 -0
  212. package/migrations/20261120093118_code_change_search_index/snapshot.json +89 -0
  213. package/migrations/20261120093452_review_item_owner/snapshot.json +314 -0
  214. package/migrations/20261120185654_review_item_owner_index/snapshot.json +62 -0
  215. package/migrations/20261120185754_memory_core_adoption/snapshot.json +1184 -0
  216. package/migrations/20261120185854_memory_core_indexes/snapshot.json +70 -0
  217. package/migrations/20261120235226_todos/snapshot.json +473 -0
  218. package/migrations/20261121082316_inbox_items/snapshot.json +2026 -0
  219. package/migrations/20261121175651_todo_changed_by_agent/snapshot.json +42 -0
  220. package/migrations/20261121183527_inbox_item_subject_title_parts/snapshot.json +42 -0
  221. package/migrations/20261121194143_inbox_snooze_wake_reason/snapshot.json +42 -0
  222. package/migrations/20261121222400_authorization_request_index/snapshot.json +62 -0
  223. package/migrations/20261121225908_conversation_metadata/snapshot.json +184 -0
  224. package/migrations/20261121225910_conversation_metadata_fill/snapshot.json +9 -0
  225. package/migrations/20261121225913_conversation_search_index/snapshot.json +50 -0
  226. package/migrations/20261122022900_inbox_item_legacy_automation_keys/snapshot.json +9 -0
  227. package/migrations/20261122024454_artifact_expiry/snapshot.json +37 -0
  228. package/migrations/20261122024455_artifact_permanent_sha_index/snapshot.json +62 -0
  229. package/migrations/20261122024457_artifact_drop_public_sha_index/snapshot.json +37 -0
  230. package/migrations/20261122024458_conversation_kind_lead/snapshot.json +55 -0
  231. package/migrations/20261122024459_conversation_lead_actor_index/snapshot.json +54 -0
  232. package/migrations/20261122071549_keep_legacy_archive_columns/snapshot.json +49 -0
  233. package/migrations/20261122191400_conversation_embeddings_fk_validate/snapshot.json +9 -0
  234. package/migrations/20261122204325_money_micro_usd_repair/snapshot.json +9 -0
  235. package/migrations/20261122204326_agent_config_backfill/snapshot.json +143 -0
  236. package/migrations/20261122221456_inbox_item_deliveries/snapshot.json +301 -0
  237. package/migrations/20261123155735_pg_trgm/snapshot.json +9 -0
  238. package/migrations/20261123155739_search_indexes/snapshot.json +167 -0
  239. package/migrations/20261123172647_drop_legacy_archive_columns/snapshot.json +9 -0
  240. package/migrations/20261123192506_memory_prefix_index/snapshot.json +69 -0
  241. package/migrations/20261123201740_todo_search_indexes/snapshot.json +89 -0
  242. package/migrations/20261123211505_todo_inbox_items/snapshot.json +38 -0
  243. package/migrations/20261123214917_drop_code_urls/snapshot.json +44 -0
  244. package/migrations/20261123224000_code_change_conversations_index/migration.sql +1 -0
  245. package/migrations/20261123224000_code_change_conversations_index/snapshot.json +54 -0
  246. package/migrations/20261124122023_drop_code_change_sizes/migration.sql +4 -0
  247. package/migrations/20261124122023_drop_code_change_sizes/snapshot.json +82 -0
  248. package/migrations/20261124142958_conversation_root_lookup_index/migration.sql +1 -0
  249. package/migrations/20261124142958_conversation_root_lookup_index/snapshot.json +62 -0
  250. package/migrations/20261124183352_legacy_brief_metadata_fill/migration.sql +26 -0
  251. package/migrations/20261124183352_legacy_brief_metadata_fill/snapshot.json +114 -0
  252. package/migrations/20261124202143_drizzle_v1_baseline/migration.sql +5 -0
  253. package/migrations/20261124202143_drizzle_v1_baseline/snapshot.json +2012 -0
  254. package/migrations/20261124221751_spaces/migration.sql +22 -0
  255. package/migrations/20261124221751_spaces/snapshot.json +436 -0
  256. package/migrations/20261124230319_conversation_metrics_utc_day_stats/migration.sql +11 -0
  257. package/migrations/20261124230319_conversation_metrics_utc_day_stats/snapshot.json +9 -0
  258. package/migrations/20261124234024_space_conversations/migration.sql +5 -0
  259. package/migrations/20261124234024_space_conversations/snapshot.json +103 -0
  260. package/migrations/20261124234026_space_conversations_index/migration.sql +1 -0
  261. package/migrations/20261124234026_space_conversations_index/snapshot.json +62 -0
  262. package/migrations/20261125012448_drop_lead_actor_index/migration.sql +3 -0
  263. package/migrations/20261125012448_drop_lead_actor_index/snapshot.json +36 -0
  264. package/migrations/20261125012452_space_lead_index/migration.sql +1 -0
  265. package/migrations/20261125012452_space_lead_index/snapshot.json +54 -0
  266. package/migrations/20261125043821_space_configurations/migration.sql +11 -0
  267. package/migrations/20261125043821_space_configurations/snapshot.json +194 -0
  268. package/migrations/20261125064854_agent_update_done_status/migration.sql +9 -0
  269. package/migrations/20261125064854_agent_update_done_status/snapshot.json +9 -0
  270. package/migrations/20261125073321_turn_engine_tables/migration.sql +75 -0
  271. package/migrations/20261125073321_turn_engine_tables/snapshot.json +1497 -0
  272. package/migrations/20261125073339_turn_inbox_one_source/migration.sql +5 -0
  273. package/migrations/20261125073339_turn_inbox_one_source/snapshot.json +9 -0
  274. package/migrations/20261125124506_versions_notify/migration.sql +27 -0
  275. package/migrations/20261125124506_versions_notify/snapshot.json +9 -0
  276. package/migrations/20261125140339_turn_group_key/migration.sql +14 -0
  277. package/migrations/20261125140339_turn_group_key/snapshot.json +75 -0
  278. package/migrations/20261125140343_turn_group_key_not_null/migration.sql +4 -0
  279. package/migrations/20261125140343_turn_group_key_not_null/snapshot.json +29 -0
  280. package/migrations/20261125142845_code_change_requesters/migration.sql +1 -0
  281. package/migrations/20261125142845_code_change_requesters/snapshot.json +42 -0
  282. package/migrations/20261125142846_code_change_requesters_index/migration.sql +1 -0
  283. package/migrations/20261125142846_code_change_requesters_index/snapshot.json +54 -0
  284. package/migrations/20261125143903_space_visibility/migration.sql +1 -0
  285. package/migrations/20261125143903_space_visibility/snapshot.json +37 -0
  286. package/migrations/20261125154848_merge_leaves/migration.sql +2 -0
  287. package/migrations/20261125154848_merge_leaves/snapshot.json +14 -0
  288. package/migrations/20261125171254_conversation_visibility/migration.sql +4 -0
  289. package/migrations/20261125171254_conversation_visibility/snapshot.json +67 -0
  290. package/migrations/20261125171257_conversation_visibility_backfill/migration.sql +25 -0
  291. package/migrations/20261125171257_conversation_visibility_backfill/snapshot.json +9 -0
  292. package/migrations/20261125213232_drop_versions_notify/migration.sql +19 -0
  293. package/migrations/20261125213232_drop_versions_notify/snapshot.json +9 -0
  294. package/migrations/20261125225138_conversation_kind_root_thread/migration.sql +23 -0
  295. package/migrations/20261125225138_conversation_kind_root_thread/snapshot.json +55 -0
  296. package/migrations/20261125225142_conversation_kind_root_thread_backfill/migration.sql +7 -0
  297. package/migrations/20261125225142_conversation_kind_root_thread_backfill/snapshot.json +9 -0
  298. package/migrations/20261126000151_conversation_event_message_role_seq_index/migration.sql +1 -0
  299. package/migrations/20261126000151_conversation_event_message_role_seq_index/snapshot.json +69 -0
  300. package/migrations/20261126012917_merge_leaves/migration.sql +2 -0
  301. package/migrations/20261126012917_merge_leaves/snapshot.json +12 -0
  302. package/package.json +13 -12
  303. package/skills/design-automation-skill/SKILL.md +1 -1
  304. package/skills/jr-rpc/SKILL.md +3 -5
  305. package/dist/adapter-JARQvoLw.js +0 -258
  306. package/dist/adapter-context-B4BrJZuS.js +0 -43
  307. package/dist/agent-runner-qZU5TR8i.js +0 -11974
  308. package/dist/agent-update-cS7Z9mnG.js +0 -26
  309. package/dist/background-compaction-queue-C_uIBUvS.js +0 -145
  310. package/dist/callback-C8SdXCwr.js +0 -68
  311. package/dist/catalog-runtime-BLKtnUL3.js +0 -6
  312. package/dist/config-BIfHKNXN.js +0 -2336
  313. package/dist/db-BTmLKZrp.js +0 -5804
  314. package/dist/db-DcmzbA55.d.ts +0 -274
  315. package/dist/history-CneKY7_V.js +0 -595
  316. package/dist/install-OtFboxOM.js +0 -228
  317. package/dist/proxy-path-BHYoKZdq.js +0 -15
  318. package/dist/registry-D6kS6xYH.js +0 -3024
  319. package/dist/rule-DAxQY-1h.js +0 -20
  320. package/dist/schema-BB6E0wyV.d.ts +0 -9472
  321. package/dist/start-conversation-a4NXH4X9.js +0 -752
  322. package/dist/store-BuhF1QDm.js +0 -490
  323. package/dist/task-queue-CrRjFzOh.js +0 -79
  324. package/dist/turn-session-routing-CZTRU8IY.js +0 -116
  325. package/dist/vercel-queue-nL0Hq3hr.js +0 -234
  326. package/dist/warmup-CCOuIwAS.js +0 -12759
  327. package/migrations/meta/0000_snapshot.json +0 -946
  328. package/migrations/meta/0001_snapshot.json +0 -972
  329. package/migrations/meta/0002_snapshot.json +0 -987
  330. package/migrations/meta/0003_snapshot.json +0 -1035
  331. package/migrations/meta/0004_snapshot.json +0 -1041
  332. package/migrations/meta/0005_snapshot.json +0 -948
  333. package/migrations/meta/0006_snapshot.json +0 -948
  334. package/migrations/meta/0007_snapshot.json +0 -1013
  335. package/migrations/meta/0008_snapshot.json +0 -1076
  336. package/migrations/meta/0009_snapshot.json +0 -1146
  337. package/migrations/meta/0010_snapshot.json +0 -1190
  338. package/migrations/meta/0011_snapshot.json +0 -1195
  339. package/migrations/meta/0012_snapshot.json +0 -1244
  340. package/migrations/meta/0013_snapshot.json +0 -1250
  341. package/migrations/meta/0014_snapshot.json +0 -1201
  342. package/migrations/meta/0015_snapshot.json +0 -1360
  343. package/migrations/meta/0016_snapshot.json +0 -1617
  344. package/migrations/meta/0017_snapshot.json +0 -1666
  345. package/migrations/meta/0018_snapshot.json +0 -1756
  346. package/migrations/meta/0019_snapshot.json +0 -1904
  347. package/migrations/meta/0020_snapshot.json +0 -1848
  348. package/migrations/meta/0021_snapshot.json +0 -2176
  349. package/migrations/meta/0022_snapshot.json +0 -2186
  350. package/migrations/meta/0023_snapshot.json +0 -2198
  351. package/migrations/meta/0024_snapshot.json +0 -2275
  352. package/migrations/meta/0025_snapshot.json +0 -2275
  353. package/migrations/meta/0026_snapshot.json +0 -2424
  354. package/migrations/meta/0027_snapshot.json +0 -2554
  355. package/migrations/meta/0028_snapshot.json +0 -2685
  356. package/migrations/meta/0029_snapshot.json +0 -2709
  357. package/migrations/meta/0030_snapshot.json +0 -2799
  358. package/migrations/meta/0031_snapshot.json +0 -2823
  359. package/migrations/meta/0032_snapshot.json +0 -2892
  360. package/migrations/meta/0033_snapshot.json +0 -2914
  361. package/migrations/meta/0034_snapshot.json +0 -3038
  362. package/migrations/meta/0035_snapshot.json +0 -3048
  363. package/migrations/meta/0036_snapshot.json +0 -3186
  364. package/migrations/meta/0037_snapshot.json +0 -3192
  365. package/migrations/meta/0038_snapshot.json +0 -3323
  366. package/migrations/meta/0039_snapshot.json +0 -3368
  367. package/migrations/meta/0040_snapshot.json +0 -3516
  368. package/migrations/meta/0041_snapshot.json +0 -3516
  369. package/migrations/meta/0042_snapshot.json +0 -3610
  370. package/migrations/meta/0043_snapshot.json +0 -3610
  371. package/migrations/meta/0044_snapshot.json +0 -3473
  372. package/migrations/meta/0045_snapshot.json +0 -3503
  373. package/migrations/meta/0046_snapshot.json +0 -3707
  374. package/migrations/meta/0047_snapshot.json +0 -3713
  375. package/migrations/meta/0048_snapshot.json +0 -3720
  376. package/migrations/meta/0049_snapshot.json +0 -3581
  377. package/migrations/meta/0050_snapshot.json +0 -3753
  378. package/migrations/meta/0051_snapshot.json +0 -3759
  379. package/migrations/meta/0052_snapshot.json +0 -3765
  380. package/migrations/meta/0053_snapshot.json +0 -3771
  381. package/migrations/meta/0054_snapshot.json +0 -3777
  382. package/migrations/meta/0055_snapshot.json +0 -3948
  383. package/migrations/meta/0056_snapshot.json +0 -4280
  384. package/migrations/meta/0057_snapshot.json +0 -3618
  385. package/migrations/meta/0058_snapshot.json +0 -3598
  386. package/migrations/meta/0059_snapshot.json +0 -3619
  387. package/migrations/meta/0060_snapshot.json +0 -3465
  388. package/migrations/meta/0061_snapshot.json +0 -3471
  389. package/migrations/meta/0062_snapshot.json +0 -3499
  390. package/migrations/meta/0063_snapshot.json +0 -3505
  391. package/migrations/meta/0064_snapshot.json +0 -3505
  392. package/migrations/meta/0065_snapshot.json +0 -3511
  393. package/migrations/meta/0066_snapshot.json +0 -4099
  394. package/migrations/meta/0067_snapshot.json +0 -3921
  395. package/migrations/meta/0068_snapshot.json +0 -4176
  396. package/migrations/meta/0069_snapshot.json +0 -3979
  397. package/migrations/meta/0070_snapshot.json +0 -3997
  398. package/migrations/meta/0071_snapshot.json +0 -4003
  399. package/migrations/meta/0072_snapshot.json +0 -4064
  400. package/migrations/meta/0073_snapshot.json +0 -4070
  401. package/migrations/meta/0074_snapshot.json +0 -4076
  402. package/migrations/meta/0075_snapshot.json +0 -4083
  403. package/migrations/meta/0076_snapshot.json +0 -4147
  404. package/migrations/meta/0077_snapshot.json +0 -4141
  405. package/migrations/meta/0078_snapshot.json +0 -4175
  406. package/migrations/meta/0079_snapshot.json +0 -4203
  407. package/migrations/meta/0080_snapshot.json +0 -4265
  408. package/migrations/meta/0081_snapshot.json +0 -4271
  409. package/migrations/meta/0082_snapshot.json +0 -4373
  410. package/migrations/meta/0083_snapshot.json +0 -4388
  411. package/migrations/meta/0084_snapshot.json +0 -4388
  412. package/migrations/meta/0085_snapshot.json +0 -4394
  413. package/migrations/meta/0086_snapshot.json +0 -4366
  414. package/migrations/meta/0087_snapshot.json +0 -4366
  415. package/migrations/meta/0088_snapshot.json +0 -4372
  416. package/migrations/meta/0089_snapshot.json +0 -4372
  417. package/migrations/meta/0090_snapshot.json +0 -4388
  418. package/migrations/meta/0091_snapshot.json +0 -4410
  419. package/migrations/meta/0092_snapshot.json +0 -4446
  420. package/migrations/meta/0093_snapshot.json +0 -4446
  421. package/migrations/meta/0094_snapshot.json +0 -4452
  422. package/migrations/meta/0095_snapshot.json +0 -4452
  423. package/migrations/meta/0096_snapshot.json +0 -4490
  424. package/migrations/meta/0097_snapshot.json +0 -4490
  425. package/migrations/meta/0098_snapshot.json +0 -4490
  426. package/migrations/meta/0099_snapshot.json +0 -4496
  427. package/migrations/meta/0100_snapshot.json +0 -4496
  428. package/migrations/meta/0101_snapshot.json +0 -4496
  429. package/migrations/meta/0102_snapshot.json +0 -4502
  430. package/migrations/meta/0103_snapshot.json +0 -4509
  431. package/migrations/meta/0104_snapshot.json +0 -4516
  432. package/migrations/meta/0105_snapshot.json +0 -4611
  433. package/migrations/meta/0106_snapshot.json +0 -4617
  434. package/migrations/meta/0107_snapshot.json +0 -4617
  435. package/migrations/meta/0108_snapshot.json +0 -4688
  436. package/migrations/meta/0109_snapshot.json +0 -4925
  437. package/migrations/meta/0110_snapshot.json +0 -4952
  438. package/migrations/meta/0111_snapshot.json +0 -5011
  439. package/migrations/meta/0112_snapshot.json +0 -5011
  440. package/migrations/meta/0113_snapshot.json +0 -5033
  441. package/migrations/meta/0114_snapshot.json +0 -5203
  442. package/migrations/meta/0115_snapshot.json +0 -5225
  443. package/migrations/meta/0116_snapshot.json +0 -5388
  444. package/migrations/meta/0117_snapshot.json +0 -5413
  445. package/migrations/meta/0118_snapshot.json +0 -5428
  446. package/migrations/meta/0119_snapshot.json +0 -5441
  447. package/migrations/meta/0120_snapshot.json +0 -5441
  448. package/migrations/meta/0121_snapshot.json +0 -5481
  449. package/migrations/meta/0122_snapshot.json +0 -5481
  450. package/migrations/meta/0123_snapshot.json +0 -5481
  451. package/migrations/meta/0124_snapshot.json +0 -5516
  452. package/migrations/meta/0125_snapshot.json +0 -5516
  453. package/migrations/meta/0126_snapshot.json +0 -5488
  454. package/migrations/meta/0127_snapshot.json +0 -5519
  455. package/migrations/meta/0128_snapshot.json +0 -5519
  456. package/migrations/meta/0129_snapshot.json +0 -5547
  457. package/migrations/meta/0130_snapshot.json +0 -5563
  458. package/migrations/meta/0131_snapshot.json +0 -5569
  459. package/migrations/meta/0132_snapshot.json +0 -5569
  460. package/migrations/meta/0133_snapshot.json +0 -5590
  461. package/migrations/meta/0134_snapshot.json +0 -5606
  462. package/migrations/meta/0135_snapshot.json +0 -5624
  463. package/migrations/meta/0136_snapshot.json +0 -5624
  464. package/migrations/meta/0137_snapshot.json +0 -5864
  465. package/migrations/meta/0138_snapshot.json +0 -5894
  466. package/migrations/meta/0139_snapshot.json +0 -5898
  467. package/migrations/meta/0140_snapshot.json +0 -5919
  468. package/migrations/meta/0141_snapshot.json +0 -6429
  469. package/migrations/meta/0142_snapshot.json +0 -6457
  470. package/migrations/meta/0143_snapshot.json +0 -6434
  471. package/migrations/meta/0144_snapshot.json +0 -6434
  472. package/migrations/meta/0145_snapshot.json +0 -6440
  473. package/migrations/meta/0146_snapshot.json +0 -6446
  474. package/migrations/meta/0147_snapshot.json +0 -6452
  475. package/migrations/meta/0148_snapshot.json +0 -6474
  476. package/migrations/meta/0149_snapshot.json +0 -6490
  477. package/migrations/meta/0150_snapshot.json +0 -6490
  478. package/migrations/meta/0151_snapshot.json +0 -6505
  479. package/migrations/meta/0152_snapshot.json +0 -6505
  480. package/migrations/meta/0153_snapshot.json +0 -6511
  481. package/migrations/meta/0154_snapshot.json +0 -6533
  482. package/migrations/meta/0155_snapshot.json +0 -6511
  483. package/migrations/meta/0156_snapshot.json +0 -6511
  484. package/migrations/meta/0157_snapshot.json +0 -6527
  485. package/migrations/meta/0158_snapshot.json +0 -6515
  486. package/migrations/meta/0159_snapshot.json +0 -6515
  487. package/migrations/meta/0160_snapshot.json +0 -6515
  488. package/migrations/meta/0161_snapshot.json +0 -6278
  489. package/migrations/meta/0162_snapshot.json +0 -6404
  490. package/migrations/meta/0163_snapshot.json +0 -6404
  491. package/migrations/meta/0164_snapshot.json +0 -6466
  492. package/migrations/meta/0165_snapshot.json +0 -6466
  493. package/migrations/meta/0166_snapshot.json +0 -6494
  494. package/migrations/meta/0167_snapshot.json +0 -6525
  495. package/migrations/meta/0168_snapshot.json +0 -6525
  496. package/migrations/meta/0169_snapshot.json +0 -6513
  497. package/migrations/meta/_journal.json +0 -1196
  498. /package/migrations/{0000_initial.sql → 20260711145847_initial/migration.sql} +0 -0
  499. /package/migrations/{0001_conversation_metrics.sql → 20260711145900_conversation_metrics/migration.sql} +0 -0
  500. /package/migrations/{0002_conversation_message_search.sql → 20260712153649_conversation_message_search/migration.sql} +0 -0
  501. /package/migrations/{0003_peaceful_scalphunter.sql → 20260713040256_peaceful_scalphunter/migration.sql} +0 -0
  502. /package/migrations/{0004_useful_magus.sql → 20260715174202_useful_magus/migration.sql} +0 -0
  503. /package/migrations/{0005_conversation_events.sql → 20260715174203_conversation_events/migration.sql} +0 -0
  504. /package/migrations/{0006_drop_legacy_conversation_messages.sql → 20260723042835_drop_legacy_conversation_messages/migration.sql} +0 -0
  505. /package/migrations/{0007_thick_sugar_man.sql → 20260723050612_thick_sugar_man/migration.sql} +0 -0
  506. /package/migrations/{0008_sticky_rage.sql → 20260727223822_sticky_rage/migration.sql} +0 -0
  507. /package/migrations/{0009_slippery_harrier.sql → 20260728033158_slippery_harrier/migration.sql} +0 -0
  508. /package/migrations/{0010_native_conversation_history.sql → 20260728040836_native_conversation_history/migration.sql} +0 -0
  509. /package/migrations/{0011_sour_golden_guardian.sql → 20260728204900_sour_golden_guardian/migration.sql} +0 -0
  510. /package/migrations/{0012_structured_conversation_events.sql → 20260730233332_structured_conversation_events/migration.sql} +0 -0
  511. /package/migrations/{0013_conversation_session_source.sql → 20260731164038_conversation_session_source/migration.sql} +0 -0
  512. /package/migrations/{0014_source_visibility.sql → 20260801230336_source_visibility/migration.sql} +0 -0
  513. /package/migrations/{0015_magical_ezekiel_stane.sql → 20260802023731_magical_ezekiel_stane/migration.sql} +0 -0
  514. /package/migrations/{0016_neat_the_anarchist.sql → 20260804015843_neat_the_anarchist/migration.sql} +0 -0
  515. /package/migrations/{0017_drop_paused_scheduled_tasks.sql → 20260804165952_drop_paused_scheduled_tasks/migration.sql} +0 -0
  516. /package/migrations/{0018_curvy_excalibur.sql → 20260804225613_curvy_excalibur/migration.sql} +0 -0
  517. /package/migrations/{0019_lowly_valkyrie.sql → 20260805174033_lowly_valkyrie/migration.sql} +0 -0
  518. /package/migrations/{0020_restrict_task_execution_kinds.sql → 20260805200301_restrict_task_execution_kinds/migration.sql} +0 -0
  519. /package/migrations/{0021_first_warhawk.sql → 20260806030729_first_warhawk/migration.sql} +0 -0
  520. /package/migrations/{0022_task_execution_status.sql → 20260807185200_task_execution_status/migration.sql} +0 -0
  521. /package/migrations/{0023_task_title_columns.sql → 20260808014743_task_title_columns/migration.sql} +0 -0
  522. /package/migrations/{0024_misty_typhoid_mary.sql → 20260809220421_misty_typhoid_mary/migration.sql} +0 -0
  523. /package/migrations/{0025_mcp_credential_subject.sql → 20260811193709_mcp_credential_subject/migration.sql} +0 -0
  524. /package/migrations/{0026_conversation_event_actor_and_participants.sql → 20260812032924_conversation_event_actor_and_participants/migration.sql} +0 -0
  525. /package/migrations/{0027_attachment_storage.sql → 20260812172418_attachment_storage/migration.sql} +0 -0
  526. /package/migrations/{0028_artifacts.sql → 20260813230732_artifacts/migration.sql} +0 -0
  527. /package/migrations/{0029_dizzy_barracuda.sql → 20260814062905_dizzy_barracuda/migration.sql} +0 -0
  528. /package/migrations/{0030_drop_workspace_repo_primary.sql → 20260814231353_drop_workspace_repo_primary/migration.sql} +0 -0
  529. /package/migrations/{0031_wild_phantom_reporter.sql → 20260815030100_wild_phantom_reporter/migration.sql} +0 -0
  530. /package/migrations/{0032_workspace_snapshots_table.sql → 20260817082233_workspace_snapshots_table/migration.sql} +0 -0
  531. /package/migrations/{0033_workspace_snapshot_active_build.sql → 20260818160339_workspace_snapshot_active_build/migration.sql} +0 -0
  532. /package/migrations/{0034_strong_randall.sql → 20260821180755_strong_randall/migration.sql} +0 -0
  533. /package/migrations/{0035_workspace_snapshot_size_bytes.sql → 20260823030308_workspace_snapshot_size_bytes/migration.sql} +0 -0
  534. /package/migrations/{0036_complex_rage.sql → 20260824190313_complex_rage/migration.sql} +0 -0
  535. /package/migrations/{0037_conversation_location.sql → 20260827233711_conversation_location/migration.sql} +0 -0
  536. /package/migrations/{0038_event_task_status.sql → 20260901224306_event_task_status/migration.sql} +0 -0
  537. /package/migrations/{0039_attachment_provider.sql → 20260904153232_attachment_provider/migration.sql} +0 -0
  538. /package/migrations/{0040_conversation_briefs.sql → 20260909111415_conversation_briefs/migration.sql} +0 -0
  539. /package/migrations/{0041_automation_outcomes_backfill.sql → 20260910144928_automation_outcomes_backfill/migration.sql} +0 -0
  540. /package/migrations/{0042_conversation_metrics.sql → 20260911184346_conversation_metrics/migration.sql} +0 -0
  541. /package/migrations/{0043_scheduled_automation_channel_destinations.sql → 20260921140842_scheduled_automation_channel_destinations/migration.sql} +0 -0
  542. /package/migrations/{0044_event_automation_channel_destinations.sql → 20260922221709_event_automation_channel_destinations/migration.sql} +0 -0
  543. /package/migrations/{0045_conversation_forks.sql → 20261001113455_conversation_forks/migration.sql} +0 -0
  544. /package/migrations/{0046_automation_versions.sql → 20261005161844_automation_versions/migration.sql} +0 -0
  545. /package/migrations/{0047_user_timezone.sql → 20261006152043_user_timezone/migration.sql} +0 -0
  546. /package/migrations/{0048_user_admin.sql → 20261008200858_user_admin/migration.sql} +0 -0
  547. /package/migrations/{0049_event_automation_status_reason.sql → 20261009145407_event_automation_status_reason/migration.sql} +0 -0
  548. /package/migrations/{0050_agent_invocation_parent_mailbox.sql → 20261013160816_agent_invocation_parent_mailbox/migration.sql} +0 -0
  549. /package/migrations/{0051_agent_invocation_parent_tool_call.sql → 20261013215020_agent_invocation_parent_tool_call/migration.sql} +0 -0
  550. /package/migrations/{0052_agent_invocation_title.sql → 20261014011138_agent_invocation_title/migration.sql} +0 -0
  551. /package/migrations/{0053_conversation_stopped_at.sql → 20261014211942_conversation_stopped_at/migration.sql} +0 -0
  552. /package/migrations/{0054_flowery_rage.sql → 20261015012820_flowery_rage/migration.sql} +0 -0
  553. /package/migrations/{0055_automations.sql → 20261017000924_automations/migration.sql} +0 -0
  554. /package/migrations/{0056_automation_runs.sql → 20261017134736_automation_runs/migration.sql} +0 -0
  555. /package/migrations/{0057_drop_legacy_automation_tables.sql → 20261017170250_drop_legacy_automation_tables/migration.sql} +0 -0
  556. /package/migrations/{0058_automation_creator_identity.sql → 20261018134754_automation_creator_identity/migration.sql} +0 -0
  557. /package/migrations/{0059_automation_run_version.sql → 20261023071954_automation_run_version/migration.sql} +0 -0
  558. /package/migrations/{0060_identity_signed_in_at.sql → 20261025233137_identity_signed_in_at/migration.sql} +0 -0
  559. /package/migrations/{0061_workspace_vcpus.sql → 20261027234315_workspace_vcpus/migration.sql} +0 -0
  560. /package/migrations/{0062_plugin_report_index.sql → 20261028124242_plugin_report_index/migration.sql} +0 -0
  561. /package/migrations/{0063_agent_invocation_type.sql → 20261028154230_agent_invocation_type/migration.sql} +0 -0
  562. /package/migrations/{0064_any_resource_event_triggers.sql → 20261030021803_any_resource_event_triggers/migration.sql} +0 -0
  563. /package/migrations/{0065_user_customization.sql → 20261030234309_user_customization/migration.sql} +0 -0
  564. /package/migrations/{0066_review_items.sql → 20261031020656_review_items/migration.sql} +0 -0
  565. /package/migrations/{0067_review_item_dedupe_tenant.sql → 20261031024151_review_item_dedupe_tenant/migration.sql} +0 -0
  566. /package/migrations/{0068_review_item_slack_cards.sql → 20261031024246_review_item_slack_cards/migration.sql} +0 -0
  567. /package/migrations/{0069_system_identity.sql → 20261031155308_system_identity/migration.sql} +0 -0
  568. /package/migrations/{0070_review_item_foreign_keys.sql → 20261101193952_review_item_foreign_keys/migration.sql} +0 -0
  569. /package/migrations/{0071_review_item_turn.sql → 20261102172751_review_item_turn/migration.sql} +0 -0
  570. /package/migrations/{0072_conversation_read_positions.sql → 20261102221411_conversation_read_positions/migration.sql} +0 -0
  571. /package/migrations/{0073_conversation_quick_question.sql → 20261104085028_conversation_quick_question/migration.sql} +0 -0
  572. /package/migrations/{0074_conversation_participant_pins.sql → 20261104145136_conversation_participant_pins/migration.sql} +0 -0
  573. /package/migrations/{0075_conversation_detail_version.sql → 20261104164429_conversation_detail_version/migration.sql} +0 -0
  574. /package/migrations/{0076_conversation_auto_archive.sql → 20261104172055_conversation_auto_archive/migration.sql} +0 -0
  575. /package/migrations/{0077_drop_agent_invocation_model_profile.sql → 20261105005443_drop_agent_invocation_model_profile/migration.sql} +0 -0
  576. /package/migrations/{0078_plugin_conversation_index.sql → 20261105043807_plugin_conversation_index/migration.sql} +0 -0
  577. /package/migrations/{0079_conversation_event_author_index.sql → 20261105051837_conversation_event_author_index/migration.sql} +0 -0
  578. /package/migrations/{0080_conversation_event_latest_message_indexes.sql → 20261105182854_conversation_event_latest_message_indexes/migration.sql} +0 -0
  579. /package/migrations/{0081_conversation_pin_position.sql → 20261106011443_conversation_pin_position/migration.sql} +0 -0
  580. /package/migrations/{0082_push_notifications.sql → 20261106095004_push_notifications/migration.sql} +0 -0
  581. /package/migrations/{0083_conversation_kind.sql → 20261106162740_conversation_kind/migration.sql} +0 -0
  582. /package/migrations/{0084_read_position_backfill.sql → 20261107002001_read_position_backfill/migration.sql} +0 -0
  583. /package/migrations/{0085_child_archived_at.sql → 20261107025209_child_archived_at/migration.sql} +0 -0
  584. /package/migrations/{0086_shared_archive.sql → 20261107035735_shared_archive/migration.sql} +0 -0
  585. /package/migrations/{0087_child_location.sql → 20261107215055_child_location/migration.sql} +0 -0
  586. /package/migrations/{0088_conversation_unsubscribe.sql → 20261108191927_conversation_unsubscribe/migration.sql} +0 -0
  587. /package/migrations/{0089_conversation_paused_status.sql → 20261109021618_conversation_paused_status/migration.sql} +0 -0
  588. /package/migrations/{0090_guardian_review_time_index.sql → 20261109111553_guardian_review_time_index/migration.sql} +0 -0
  589. /package/migrations/{0091_conversation_participant_unsubscribed_index.sql → 20261109173130_conversation_participant_unsubscribed_index/migration.sql} +0 -0
  590. /package/migrations/{0092_turn_metric_actor.sql → 20261109182006_turn_metric_actor/migration.sql} +0 -0
  591. /package/migrations/{0093_participant_root_actor_backfill.sql → 20261109202836_participant_root_actor_backfill/migration.sql} +0 -0
  592. /package/migrations/{0094_conversation_delivery_paused_at.sql → 20261109232640_conversation_delivery_paused_at/migration.sql} +0 -0
  593. /package/migrations/{0095_web_linked_slack_identity_repair.sql → 20261110120937_web_linked_slack_identity_repair/migration.sql} +0 -0
  594. /package/migrations/{0096_automation_task_kind.sql → 20261110175824_automation_task_kind/migration.sql} +0 -0
  595. /package/migrations/{0097_conversation_kind_automation.sql → 20261110210242_conversation_kind_automation/migration.sql} +0 -0
  596. /package/migrations/{0098_review_item_plugin_actions.sql → 20261110222632_review_item_plugin_actions/migration.sql} +0 -0
  597. /package/migrations/{0099_conversation_last_message_at.sql → 20261110225157_conversation_last_message_at/migration.sql} +0 -0
  598. /package/migrations/{0100_automation_task_kind_repair.sql → 20261111013351_automation_task_kind_repair/migration.sql} +0 -0
  599. /package/migrations/{0101_drop_legacy_columns.sql → 20261111163126_drop_legacy_columns/migration.sql} +0 -0
  600. /package/migrations/{0102_code_change_last_activity.sql → 20261111170150_code_change_last_activity/migration.sql} +0 -0
  601. /package/migrations/{0103_agent_invocation_fork.sql → 20261111191441_agent_invocation_fork/migration.sql} +0 -0
  602. /package/migrations/{0104_code_change_draft.sql → 20261112142841_code_change_draft/migration.sql} +0 -0
  603. /package/migrations/{0105_attachment_uploads.sql → 20261112202901_attachment_uploads/migration.sql} +0 -0
  604. /package/migrations/{0106_conversation_agent_config.sql → 20261112220407_conversation_agent_config/migration.sql} +0 -0
  605. /package/migrations/{0107_attachment_deferred_download.sql → 20261113081247_attachment_deferred_download/migration.sql} +0 -0
  606. /package/migrations/{0108_conversation_embeddings.sql → 20261113225551_conversation_embeddings/migration.sql} +0 -0
  607. /package/migrations/{0109_user_preferences.sql → 20261114213238_user_preferences/migration.sql} +0 -0
  608. /package/migrations/{0110_code_change_repository_state_index.sql → 20261114222527_code_change_repository_state_index/migration.sql} +0 -0
  609. /package/migrations/{0111_attachment_kinds.sql → 20261115172605_attachment_kinds/migration.sql} +0 -0
  610. /package/migrations/{0112_attachment_url_fill.sql → 20261115173004_attachment_url_fill/migration.sql} +0 -0
  611. /package/migrations/{0113_attachment_url_index.sql → 20261115180216_attachment_url_index/migration.sql} +0 -0
  612. /package/migrations/{0114_plan_items.sql → 20261116103700_plan_items/migration.sql} +0 -0
  613. /package/migrations/{0115_automation_creator_slack_index.sql → 20261117100100_automation_creator_slack_index/migration.sql} +0 -0
  614. /package/migrations/{0116_conversation_event_search.sql → 20261117132522_conversation_event_search/migration.sql} +0 -0
  615. /package/migrations/{0117_automation_last_run.sql → 20261117164007_automation_last_run/migration.sql} +0 -0
  616. /package/migrations/{0118_automation_last_run_index.sql → 20261117164047_automation_last_run_index/migration.sql} +0 -0
  617. /package/migrations/{0119_money_micro_usd.sql → 20261117210444_money_micro_usd/migration.sql} +0 -0
  618. /package/migrations/{0120_conversation_cost_micro_usd.sql → 20261117210505_conversation_cost_micro_usd/migration.sql} +0 -0
  619. /package/migrations/{0121_people_list_metric_index.sql → 20261118081416_people_list_metric_index/migration.sql} +0 -0
  620. /package/migrations/{0122_automation_rollout_repair.sql → 20261118095216_automation_rollout_repair/migration.sql} +0 -0
  621. /package/migrations/{0123_cache_warming_history_reset.sql → 20261118143948_cache_warming_history_reset/migration.sql} +0 -0
  622. /package/migrations/{0124_artifact_visibility.sql → 20261119040651_artifact_visibility/migration.sql} +0 -0
  623. /package/migrations/{0125_artifact_public_sha_index.sql → 20261119040715_artifact_public_sha_index/migration.sql} +0 -0
  624. /package/migrations/{0126_artifact_drop_public.sql → 20261119052706_artifact_drop_public/migration.sql} +0 -0
  625. /package/migrations/{0127_artifact_path.sql → 20261119053831_artifact_path/migration.sql} +0 -0
  626. /package/migrations/{0128_artifact_path_index.sql → 20261119053844_artifact_path_index/migration.sql} +0 -0
  627. /package/migrations/{0129_review_item_answered_index.sql → 20261119091949_review_item_answered_index/migration.sql} +0 -0
  628. /package/migrations/{0130_review_item_status_index.sql → 20261119100029_review_item_status_index/migration.sql} +0 -0
  629. /package/migrations/{0131_brief_outcome_status.sql → 20261119165607_brief_outcome_status/migration.sql} +0 -0
  630. /package/migrations/{0132_brief_outcome_status_backfill.sql → 20261119165622_brief_outcome_status_backfill/migration.sql} +0 -0
  631. /package/migrations/{0133_brief_created_at_index.sql → 20261119213716_brief_created_at_index/migration.sql} +0 -0
  632. /package/migrations/{0134_slack_person_search_index.sql → 20261119222456_slack_person_search_index/migration.sql} +0 -0
  633. /package/migrations/{0135_code_change_size.sql → 20261119225522_code_change_size/migration.sql} +0 -0
  634. /package/migrations/{0136_merge_conflict_notice_dismiss.sql → 20261119232253_merge_conflict_notice_dismiss/migration.sql} +0 -0
  635. /package/migrations/{0137_inbox_snoozes.sql → 20261119235649_inbox_snoozes/migration.sql} +0 -0
  636. /package/migrations/{0138_code_change_search_index.sql → 20261120093118_code_change_search_index/migration.sql} +0 -0
  637. /package/migrations/{0139_review_item_owner.sql → 20261120093452_review_item_owner/migration.sql} +0 -0
  638. /package/migrations/{0140_review_item_owner_index.sql → 20261120185654_review_item_owner_index/migration.sql} +0 -0
  639. /package/migrations/{0141_memory_core_adoption.sql → 20261120185754_memory_core_adoption/migration.sql} +0 -0
  640. /package/migrations/{0142_memory_core_indexes.sql → 20261120185854_memory_core_indexes/migration.sql} +0 -0
  641. /package/migrations/{0143_todos.sql → 20261120235226_todos/migration.sql} +0 -0
  642. /package/migrations/{0144_inbox_items.sql → 20261121082316_inbox_items/migration.sql} +0 -0
  643. /package/migrations/{0145_todo_changed_by_agent.sql → 20261121175651_todo_changed_by_agent/migration.sql} +0 -0
  644. /package/migrations/{0146_inbox_item_subject_title_parts.sql → 20261121183527_inbox_item_subject_title_parts/migration.sql} +0 -0
  645. /package/migrations/{0147_inbox_snooze_wake_reason.sql → 20261121194143_inbox_snooze_wake_reason/migration.sql} +0 -0
  646. /package/migrations/{0148_authorization_request_index.sql → 20261121222400_authorization_request_index/migration.sql} +0 -0
  647. /package/migrations/{0149_conversation_metadata.sql → 20261121225908_conversation_metadata/migration.sql} +0 -0
  648. /package/migrations/{0150_conversation_metadata_fill.sql → 20261121225910_conversation_metadata_fill/migration.sql} +0 -0
  649. /package/migrations/{0151_conversation_search_index.sql → 20261121225913_conversation_search_index/migration.sql} +0 -0
  650. /package/migrations/{0152_inbox_item_legacy_automation_keys.sql → 20261122022900_inbox_item_legacy_automation_keys/migration.sql} +0 -0
  651. /package/migrations/{0153_artifact_expiry.sql → 20261122024454_artifact_expiry/migration.sql} +0 -0
  652. /package/migrations/{0154_artifact_permanent_sha_index.sql → 20261122024455_artifact_permanent_sha_index/migration.sql} +0 -0
  653. /package/migrations/{0155_artifact_drop_public_sha_index.sql → 20261122024457_artifact_drop_public_sha_index/migration.sql} +0 -0
  654. /package/migrations/{0156_conversation_kind_lead.sql → 20261122024458_conversation_kind_lead/migration.sql} +0 -0
  655. /package/migrations/{0157_conversation_lead_actor_index.sql → 20261122024459_conversation_lead_actor_index/migration.sql} +0 -0
  656. /package/migrations/{0158_keep_legacy_archive_columns.sql → 20261122071549_keep_legacy_archive_columns/migration.sql} +0 -0
  657. /package/migrations/{0159_conversation_embeddings_fk_validate.sql → 20261122191400_conversation_embeddings_fk_validate/migration.sql} +0 -0
  658. /package/migrations/{0160_money_micro_usd_repair.sql → 20261122204325_money_micro_usd_repair/migration.sql} +0 -0
  659. /package/migrations/{0161_agent_config_backfill.sql → 20261122204326_agent_config_backfill/migration.sql} +0 -0
  660. /package/migrations/{0162_inbox_item_deliveries.sql → 20261122221456_inbox_item_deliveries/migration.sql} +0 -0
  661. /package/migrations/{0163_pg_trgm.sql → 20261123155735_pg_trgm/migration.sql} +0 -0
  662. /package/migrations/{0164_search_indexes.sql → 20261123155739_search_indexes/migration.sql} +0 -0
  663. /package/migrations/{0165_drop_legacy_archive_columns.sql → 20261123172647_drop_legacy_archive_columns/migration.sql} +0 -0
  664. /package/migrations/{0166_memory_prefix_index.sql → 20261123192506_memory_prefix_index/migration.sql} +0 -0
  665. /package/migrations/{0167_todo_search_indexes.sql → 20261123201740_todo_search_indexes/migration.sql} +0 -0
  666. /package/migrations/{0168_todo_inbox_items.sql → 20261123211505_todo_inbox_items/migration.sql} +0 -0
  667. /package/migrations/{0169_drop_code_urls.sql → 20261123214917_drop_code_urls/migration.sql} +0 -0
@@ -1,4516 +0,0 @@
1
- {
2
- "id": "274435a4-3e2a-463a-98ca-872a6ec7d7e3",
3
- "prevId": "8c000a3c-a86f-4543-a3c5-b1db2e397d4d",
4
- "version": "7",
5
- "dialect": "postgresql",
6
- "tables": {
7
- "public.junior_agent_bindings": {
8
- "name": "junior_agent_bindings",
9
- "schema": "",
10
- "columns": {
11
- "parent_conversation_id": {
12
- "name": "parent_conversation_id",
13
- "type": "text",
14
- "primaryKey": false,
15
- "notNull": true
16
- },
17
- "name": {
18
- "name": "name",
19
- "type": "text",
20
- "primaryKey": false,
21
- "notNull": true
22
- },
23
- "child_conversation_id": {
24
- "name": "child_conversation_id",
25
- "type": "text",
26
- "primaryKey": false,
27
- "notNull": true
28
- }
29
- },
30
- "indexes": {
31
- "junior_agent_bindings_child_idx": {
32
- "name": "junior_agent_bindings_child_idx",
33
- "columns": [
34
- {
35
- "expression": "child_conversation_id",
36
- "isExpression": false,
37
- "asc": true,
38
- "nulls": "last"
39
- }
40
- ],
41
- "isUnique": true,
42
- "concurrently": false,
43
- "method": "btree",
44
- "with": {}
45
- }
46
- },
47
- "foreignKeys": {
48
- "junior_agent_bindings_parent_conversation_id_junior_conversations_conversation_id_fk": {
49
- "name": "junior_agent_bindings_parent_conversation_id_junior_conversations_conversation_id_fk",
50
- "tableFrom": "junior_agent_bindings",
51
- "tableTo": "junior_conversations",
52
- "columnsFrom": ["parent_conversation_id"],
53
- "columnsTo": ["conversation_id"],
54
- "onDelete": "no action",
55
- "onUpdate": "no action"
56
- },
57
- "junior_agent_bindings_child_conversation_id_junior_conversations_conversation_id_fk": {
58
- "name": "junior_agent_bindings_child_conversation_id_junior_conversations_conversation_id_fk",
59
- "tableFrom": "junior_agent_bindings",
60
- "tableTo": "junior_conversations",
61
- "columnsFrom": ["child_conversation_id"],
62
- "columnsTo": ["conversation_id"],
63
- "onDelete": "no action",
64
- "onUpdate": "no action"
65
- }
66
- },
67
- "compositePrimaryKeys": {
68
- "junior_agent_bindings_parent_conversation_id_name_pk": {
69
- "name": "junior_agent_bindings_parent_conversation_id_name_pk",
70
- "columns": ["parent_conversation_id", "name"]
71
- }
72
- },
73
- "uniqueConstraints": {},
74
- "policies": {},
75
- "checkConstraints": {},
76
- "isRLSEnabled": false
77
- },
78
- "public.junior_agent_invocations": {
79
- "name": "junior_agent_invocations",
80
- "schema": "",
81
- "columns": {
82
- "invocation_id": {
83
- "name": "invocation_id",
84
- "type": "text",
85
- "primaryKey": true,
86
- "notNull": true
87
- },
88
- "parent_conversation_id": {
89
- "name": "parent_conversation_id",
90
- "type": "text",
91
- "primaryKey": false,
92
- "notNull": true
93
- },
94
- "child_conversation_id": {
95
- "name": "child_conversation_id",
96
- "type": "text",
97
- "primaryKey": false,
98
- "notNull": true
99
- },
100
- "agent_name": {
101
- "name": "agent_name",
102
- "type": "text",
103
- "primaryKey": false,
104
- "notNull": false
105
- },
106
- "input": {
107
- "name": "input",
108
- "type": "text",
109
- "primaryKey": false,
110
- "notNull": true
111
- },
112
- "title": {
113
- "name": "title",
114
- "type": "text",
115
- "primaryKey": false,
116
- "notNull": false
117
- },
118
- "actor_json": {
119
- "name": "actor_json",
120
- "type": "jsonb",
121
- "primaryKey": false,
122
- "notNull": true
123
- },
124
- "credential_context_json": {
125
- "name": "credential_context_json",
126
- "type": "jsonb",
127
- "primaryKey": false,
128
- "notNull": false
129
- },
130
- "source_json": {
131
- "name": "source_json",
132
- "type": "jsonb",
133
- "primaryKey": false,
134
- "notNull": true
135
- },
136
- "destination_json": {
137
- "name": "destination_json",
138
- "type": "jsonb",
139
- "primaryKey": false,
140
- "notNull": true
141
- },
142
- "destination_visibility": {
143
- "name": "destination_visibility",
144
- "type": "text",
145
- "primaryKey": false,
146
- "notNull": false
147
- },
148
- "agent_type": {
149
- "name": "agent_type",
150
- "type": "text",
151
- "primaryKey": false,
152
- "notNull": false
153
- },
154
- "fork": {
155
- "name": "fork",
156
- "type": "boolean",
157
- "primaryKey": false,
158
- "notNull": true,
159
- "default": false
160
- },
161
- "reasoning_level": {
162
- "name": "reasoning_level",
163
- "type": "text",
164
- "primaryKey": false,
165
- "notNull": false
166
- },
167
- "parent_tool_call_id": {
168
- "name": "parent_tool_call_id",
169
- "type": "text",
170
- "primaryKey": false,
171
- "notNull": false
172
- },
173
- "status": {
174
- "name": "status",
175
- "type": "text",
176
- "primaryKey": false,
177
- "notNull": true
178
- },
179
- "mailbox_status": {
180
- "name": "mailbox_status",
181
- "type": "text",
182
- "primaryKey": false,
183
- "notNull": true
184
- },
185
- "parent_mailbox_status": {
186
- "name": "parent_mailbox_status",
187
- "type": "text",
188
- "primaryKey": false,
189
- "notNull": false
190
- },
191
- "result": {
192
- "name": "result",
193
- "type": "text",
194
- "primaryKey": false,
195
- "notNull": false
196
- },
197
- "error_message": {
198
- "name": "error_message",
199
- "type": "text",
200
- "primaryKey": false,
201
- "notNull": false
202
- },
203
- "created_at": {
204
- "name": "created_at",
205
- "type": "timestamp with time zone",
206
- "primaryKey": false,
207
- "notNull": true
208
- },
209
- "updated_at": {
210
- "name": "updated_at",
211
- "type": "timestamp with time zone",
212
- "primaryKey": false,
213
- "notNull": true
214
- },
215
- "terminal_at": {
216
- "name": "terminal_at",
217
- "type": "timestamp with time zone",
218
- "primaryKey": false,
219
- "notNull": false
220
- }
221
- },
222
- "indexes": {
223
- "junior_agent_invocations_child_idx": {
224
- "name": "junior_agent_invocations_child_idx",
225
- "columns": [
226
- {
227
- "expression": "child_conversation_id",
228
- "isExpression": false,
229
- "asc": true,
230
- "nulls": "last"
231
- }
232
- ],
233
- "isUnique": false,
234
- "concurrently": false,
235
- "method": "btree",
236
- "with": {}
237
- },
238
- "junior_agent_invocations_mailbox_idx": {
239
- "name": "junior_agent_invocations_mailbox_idx",
240
- "columns": [
241
- {
242
- "expression": "mailbox_status",
243
- "isExpression": false,
244
- "asc": true,
245
- "nulls": "last"
246
- },
247
- {
248
- "expression": "created_at",
249
- "isExpression": false,
250
- "asc": true,
251
- "nulls": "last"
252
- }
253
- ],
254
- "isUnique": false,
255
- "concurrently": false,
256
- "method": "btree",
257
- "with": {}
258
- },
259
- "junior_agent_invocations_parent_mailbox_idx": {
260
- "name": "junior_agent_invocations_parent_mailbox_idx",
261
- "columns": [
262
- {
263
- "expression": "parent_mailbox_status",
264
- "isExpression": false,
265
- "asc": true,
266
- "nulls": "last"
267
- },
268
- {
269
- "expression": "terminal_at",
270
- "isExpression": false,
271
- "asc": true,
272
- "nulls": "last"
273
- }
274
- ],
275
- "isUnique": false,
276
- "concurrently": false,
277
- "method": "btree",
278
- "with": {}
279
- }
280
- },
281
- "foreignKeys": {
282
- "junior_agent_invocations_parent_conversation_id_junior_conversations_conversation_id_fk": {
283
- "name": "junior_agent_invocations_parent_conversation_id_junior_conversations_conversation_id_fk",
284
- "tableFrom": "junior_agent_invocations",
285
- "tableTo": "junior_conversations",
286
- "columnsFrom": ["parent_conversation_id"],
287
- "columnsTo": ["conversation_id"],
288
- "onDelete": "no action",
289
- "onUpdate": "no action"
290
- },
291
- "junior_agent_invocations_child_conversation_id_junior_conversations_conversation_id_fk": {
292
- "name": "junior_agent_invocations_child_conversation_id_junior_conversations_conversation_id_fk",
293
- "tableFrom": "junior_agent_invocations",
294
- "tableTo": "junior_conversations",
295
- "columnsFrom": ["child_conversation_id"],
296
- "columnsTo": ["conversation_id"],
297
- "onDelete": "no action",
298
- "onUpdate": "no action"
299
- }
300
- },
301
- "compositePrimaryKeys": {},
302
- "uniqueConstraints": {},
303
- "policies": {},
304
- "checkConstraints": {},
305
- "isRLSEnabled": false
306
- },
307
- "public.junior_api_tokens": {
308
- "name": "junior_api_tokens",
309
- "schema": "",
310
- "columns": {
311
- "id": {
312
- "name": "id",
313
- "type": "text",
314
- "primaryKey": true,
315
- "notNull": true
316
- },
317
- "owner_email_normalized": {
318
- "name": "owner_email_normalized",
319
- "type": "text",
320
- "primaryKey": false,
321
- "notNull": true
322
- },
323
- "name": {
324
- "name": "name",
325
- "type": "text",
326
- "primaryKey": false,
327
- "notNull": true
328
- },
329
- "token_hash": {
330
- "name": "token_hash",
331
- "type": "text",
332
- "primaryKey": false,
333
- "notNull": true
334
- },
335
- "token_suffix": {
336
- "name": "token_suffix",
337
- "type": "text",
338
- "primaryKey": false,
339
- "notNull": true
340
- },
341
- "created_at": {
342
- "name": "created_at",
343
- "type": "timestamp with time zone",
344
- "primaryKey": false,
345
- "notNull": true
346
- },
347
- "expires_at": {
348
- "name": "expires_at",
349
- "type": "timestamp with time zone",
350
- "primaryKey": false,
351
- "notNull": true
352
- },
353
- "last_used_at": {
354
- "name": "last_used_at",
355
- "type": "timestamp with time zone",
356
- "primaryKey": false,
357
- "notNull": false
358
- },
359
- "revoked_at": {
360
- "name": "revoked_at",
361
- "type": "timestamp with time zone",
362
- "primaryKey": false,
363
- "notNull": false
364
- }
365
- },
366
- "indexes": {
367
- "junior_api_tokens_token_hash_uidx": {
368
- "name": "junior_api_tokens_token_hash_uidx",
369
- "columns": [
370
- {
371
- "expression": "token_hash",
372
- "isExpression": false,
373
- "asc": true,
374
- "nulls": "last"
375
- }
376
- ],
377
- "isUnique": true,
378
- "concurrently": false,
379
- "method": "btree",
380
- "with": {}
381
- },
382
- "junior_api_tokens_owner_email_idx": {
383
- "name": "junior_api_tokens_owner_email_idx",
384
- "columns": [
385
- {
386
- "expression": "owner_email_normalized",
387
- "isExpression": false,
388
- "asc": true,
389
- "nulls": "last"
390
- }
391
- ],
392
- "isUnique": false,
393
- "concurrently": false,
394
- "method": "btree",
395
- "with": {}
396
- }
397
- },
398
- "foreignKeys": {},
399
- "compositePrimaryKeys": {},
400
- "uniqueConstraints": {},
401
- "policies": {},
402
- "checkConstraints": {},
403
- "isRLSEnabled": false
404
- },
405
- "public.junior_artifacts": {
406
- "name": "junior_artifacts",
407
- "schema": "",
408
- "columns": {
409
- "id": {
410
- "name": "id",
411
- "type": "text",
412
- "primaryKey": true,
413
- "notNull": true
414
- },
415
- "conversation_id": {
416
- "name": "conversation_id",
417
- "type": "text",
418
- "primaryKey": false,
419
- "notNull": true
420
- },
421
- "sha256": {
422
- "name": "sha256",
423
- "type": "text",
424
- "primaryKey": false,
425
- "notNull": true
426
- },
427
- "ext": {
428
- "name": "ext",
429
- "type": "text",
430
- "primaryKey": false,
431
- "notNull": true
432
- },
433
- "storage_key": {
434
- "name": "storage_key",
435
- "type": "text",
436
- "primaryKey": false,
437
- "notNull": true
438
- },
439
- "content_type": {
440
- "name": "content_type",
441
- "type": "text",
442
- "primaryKey": false,
443
- "notNull": true
444
- },
445
- "bytes": {
446
- "name": "bytes",
447
- "type": "integer",
448
- "primaryKey": false,
449
- "notNull": true
450
- },
451
- "public": {
452
- "name": "public",
453
- "type": "boolean",
454
- "primaryKey": false,
455
- "notNull": true
456
- },
457
- "created_at": {
458
- "name": "created_at",
459
- "type": "timestamp with time zone",
460
- "primaryKey": false,
461
- "notNull": true
462
- },
463
- "delete_requested_at": {
464
- "name": "delete_requested_at",
465
- "type": "timestamp with time zone",
466
- "primaryKey": false,
467
- "notNull": false
468
- }
469
- },
470
- "indexes": {
471
- "junior_artifacts_conversation_sha_uidx": {
472
- "name": "junior_artifacts_conversation_sha_uidx",
473
- "columns": [
474
- {
475
- "expression": "conversation_id",
476
- "isExpression": false,
477
- "asc": true,
478
- "nulls": "last"
479
- },
480
- {
481
- "expression": "sha256",
482
- "isExpression": false,
483
- "asc": true,
484
- "nulls": "last"
485
- }
486
- ],
487
- "isUnique": true,
488
- "concurrently": false,
489
- "method": "btree",
490
- "with": {}
491
- },
492
- "junior_artifacts_gc_idx": {
493
- "name": "junior_artifacts_gc_idx",
494
- "columns": [
495
- {
496
- "expression": "delete_requested_at",
497
- "isExpression": false,
498
- "asc": true,
499
- "nulls": "last"
500
- },
501
- {
502
- "expression": "created_at",
503
- "isExpression": false,
504
- "asc": true,
505
- "nulls": "last"
506
- }
507
- ],
508
- "isUnique": false,
509
- "concurrently": false,
510
- "method": "btree",
511
- "with": {}
512
- },
513
- "junior_artifacts_conversation_idx": {
514
- "name": "junior_artifacts_conversation_idx",
515
- "columns": [
516
- {
517
- "expression": "conversation_id",
518
- "isExpression": false,
519
- "asc": true,
520
- "nulls": "last"
521
- }
522
- ],
523
- "isUnique": false,
524
- "concurrently": false,
525
- "method": "btree",
526
- "with": {}
527
- }
528
- },
529
- "foreignKeys": {},
530
- "compositePrimaryKeys": {},
531
- "uniqueConstraints": {},
532
- "policies": {},
533
- "checkConstraints": {},
534
- "isRLSEnabled": false
535
- },
536
- "public.junior_attachments": {
537
- "name": "junior_attachments",
538
- "schema": "",
539
- "columns": {
540
- "id": {
541
- "name": "id",
542
- "type": "text",
543
- "primaryKey": true,
544
- "notNull": true
545
- },
546
- "conversation_id": {
547
- "name": "conversation_id",
548
- "type": "text",
549
- "primaryKey": false,
550
- "notNull": true
551
- },
552
- "storage_provider": {
553
- "name": "storage_provider",
554
- "type": "text",
555
- "primaryKey": false,
556
- "notNull": true
557
- },
558
- "storage_key": {
559
- "name": "storage_key",
560
- "type": "text",
561
- "primaryKey": false,
562
- "notNull": true
563
- },
564
- "provider": {
565
- "name": "provider",
566
- "type": "text",
567
- "primaryKey": false,
568
- "notNull": false
569
- },
570
- "provider_id": {
571
- "name": "provider_id",
572
- "type": "text",
573
- "primaryKey": false,
574
- "notNull": false
575
- },
576
- "filename": {
577
- "name": "filename",
578
- "type": "text",
579
- "primaryKey": false,
580
- "notNull": true
581
- },
582
- "content_type": {
583
- "name": "content_type",
584
- "type": "text",
585
- "primaryKey": false,
586
- "notNull": true
587
- },
588
- "bytes": {
589
- "name": "bytes",
590
- "type": "integer",
591
- "primaryKey": false,
592
- "notNull": true
593
- },
594
- "sha256": {
595
- "name": "sha256",
596
- "type": "text",
597
- "primaryKey": false,
598
- "notNull": true
599
- },
600
- "vision_summary": {
601
- "name": "vision_summary",
602
- "type": "text",
603
- "primaryKey": false,
604
- "notNull": false
605
- },
606
- "created_at": {
607
- "name": "created_at",
608
- "type": "timestamp with time zone",
609
- "primaryKey": false,
610
- "notNull": true
611
- },
612
- "delete_requested_at": {
613
- "name": "delete_requested_at",
614
- "type": "timestamp with time zone",
615
- "primaryKey": false,
616
- "notNull": false
617
- }
618
- },
619
- "indexes": {
620
- "junior_attachments_conversation_idx": {
621
- "name": "junior_attachments_conversation_idx",
622
- "columns": [
623
- {
624
- "expression": "conversation_id",
625
- "isExpression": false,
626
- "asc": true,
627
- "nulls": "last"
628
- }
629
- ],
630
- "isUnique": false,
631
- "concurrently": false,
632
- "method": "btree",
633
- "with": {}
634
- },
635
- "junior_attachments_provider_idx": {
636
- "name": "junior_attachments_provider_idx",
637
- "columns": [
638
- {
639
- "expression": "conversation_id",
640
- "isExpression": false,
641
- "asc": true,
642
- "nulls": "last"
643
- },
644
- {
645
- "expression": "provider",
646
- "isExpression": false,
647
- "asc": true,
648
- "nulls": "last"
649
- },
650
- {
651
- "expression": "provider_id",
652
- "isExpression": false,
653
- "asc": true,
654
- "nulls": "last"
655
- }
656
- ],
657
- "isUnique": false,
658
- "concurrently": false,
659
- "method": "btree",
660
- "with": {}
661
- },
662
- "junior_attachments_gc_idx": {
663
- "name": "junior_attachments_gc_idx",
664
- "columns": [
665
- {
666
- "expression": "storage_provider",
667
- "isExpression": false,
668
- "asc": true,
669
- "nulls": "last"
670
- },
671
- {
672
- "expression": "delete_requested_at",
673
- "isExpression": false,
674
- "asc": true,
675
- "nulls": "last"
676
- },
677
- {
678
- "expression": "created_at",
679
- "isExpression": false,
680
- "asc": true,
681
- "nulls": "last"
682
- }
683
- ],
684
- "isUnique": false,
685
- "concurrently": false,
686
- "method": "btree",
687
- "with": {}
688
- }
689
- },
690
- "foreignKeys": {
691
- "junior_attachments_conversation_id_junior_conversations_conversation_id_fk": {
692
- "name": "junior_attachments_conversation_id_junior_conversations_conversation_id_fk",
693
- "tableFrom": "junior_attachments",
694
- "tableTo": "junior_conversations",
695
- "columnsFrom": ["conversation_id"],
696
- "columnsTo": ["conversation_id"],
697
- "onDelete": "cascade",
698
- "onUpdate": "no action"
699
- }
700
- },
701
- "compositePrimaryKeys": {},
702
- "uniqueConstraints": {},
703
- "policies": {},
704
- "checkConstraints": {},
705
- "isRLSEnabled": false
706
- },
707
- "public.junior_automation_runs": {
708
- "name": "junior_automation_runs",
709
- "schema": "",
710
- "columns": {
711
- "id": {
712
- "name": "id",
713
- "type": "text",
714
- "primaryKey": true,
715
- "notNull": true
716
- },
717
- "automation_id": {
718
- "name": "automation_id",
719
- "type": "text",
720
- "primaryKey": false,
721
- "notNull": true
722
- },
723
- "conversation_id": {
724
- "name": "conversation_id",
725
- "type": "text",
726
- "primaryKey": false,
727
- "notNull": false
728
- },
729
- "status": {
730
- "name": "status",
731
- "type": "text",
732
- "primaryKey": false,
733
- "notNull": true
734
- },
735
- "automation_version": {
736
- "name": "automation_version",
737
- "type": "integer",
738
- "primaryKey": false,
739
- "notNull": false
740
- },
741
- "scheduled_for_ms": {
742
- "name": "scheduled_for_ms",
743
- "type": "bigint",
744
- "primaryKey": false,
745
- "notNull": false
746
- },
747
- "attempt": {
748
- "name": "attempt",
749
- "type": "integer",
750
- "primaryKey": false,
751
- "notNull": false
752
- },
753
- "claimed_at_ms": {
754
- "name": "claimed_at_ms",
755
- "type": "bigint",
756
- "primaryKey": false,
757
- "notNull": false
758
- },
759
- "dispatch_id": {
760
- "name": "dispatch_id",
761
- "type": "text",
762
- "primaryKey": false,
763
- "notNull": false
764
- },
765
- "started_at_ms": {
766
- "name": "started_at_ms",
767
- "type": "bigint",
768
- "primaryKey": false,
769
- "notNull": false
770
- },
771
- "completed_at_ms": {
772
- "name": "completed_at_ms",
773
- "type": "bigint",
774
- "primaryKey": false,
775
- "notNull": false
776
- },
777
- "error_message": {
778
- "name": "error_message",
779
- "type": "text",
780
- "primaryKey": false,
781
- "notNull": false
782
- },
783
- "result_message_ts": {
784
- "name": "result_message_ts",
785
- "type": "text",
786
- "primaryKey": false,
787
- "notNull": false
788
- }
789
- },
790
- "indexes": {
791
- "junior_automation_runs_automation_idx": {
792
- "name": "junior_automation_runs_automation_idx",
793
- "columns": [
794
- {
795
- "expression": "automation_id",
796
- "isExpression": false,
797
- "asc": true,
798
- "nulls": "last"
799
- },
800
- {
801
- "expression": "completed_at_ms",
802
- "isExpression": false,
803
- "asc": true,
804
- "nulls": "last"
805
- }
806
- ],
807
- "isUnique": false,
808
- "concurrently": false,
809
- "method": "btree",
810
- "with": {}
811
- },
812
- "junior_automation_runs_completed_idx": {
813
- "name": "junior_automation_runs_completed_idx",
814
- "columns": [
815
- {
816
- "expression": "completed_at_ms",
817
- "isExpression": false,
818
- "asc": true,
819
- "nulls": "last"
820
- }
821
- ],
822
- "isUnique": false,
823
- "concurrently": false,
824
- "method": "btree",
825
- "with": {}
826
- },
827
- "junior_automation_runs_incomplete_idx": {
828
- "name": "junior_automation_runs_incomplete_idx",
829
- "columns": [
830
- {
831
- "expression": "automation_id",
832
- "isExpression": false,
833
- "asc": true,
834
- "nulls": "last"
835
- },
836
- {
837
- "expression": "scheduled_for_ms",
838
- "isExpression": false,
839
- "asc": true,
840
- "nulls": "last"
841
- }
842
- ],
843
- "isUnique": false,
844
- "where": "\"junior_automation_runs\".\"status\" in ('pending', 'running')",
845
- "concurrently": false,
846
- "method": "btree",
847
- "with": {}
848
- }
849
- },
850
- "foreignKeys": {
851
- "junior_automation_runs_automation_id_junior_automations_id_fk": {
852
- "name": "junior_automation_runs_automation_id_junior_automations_id_fk",
853
- "tableFrom": "junior_automation_runs",
854
- "tableTo": "junior_automations",
855
- "columnsFrom": ["automation_id"],
856
- "columnsTo": ["id"],
857
- "onDelete": "cascade",
858
- "onUpdate": "no action"
859
- },
860
- "junior_automation_runs_conversation_id_junior_conversations_conversation_id_fk": {
861
- "name": "junior_automation_runs_conversation_id_junior_conversations_conversation_id_fk",
862
- "tableFrom": "junior_automation_runs",
863
- "tableTo": "junior_conversations",
864
- "columnsFrom": ["conversation_id"],
865
- "columnsTo": ["conversation_id"],
866
- "onDelete": "no action",
867
- "onUpdate": "no action"
868
- },
869
- "junior_automation_runs_automation_version_fk": {
870
- "name": "junior_automation_runs_automation_version_fk",
871
- "tableFrom": "junior_automation_runs",
872
- "tableTo": "junior_automation_versions",
873
- "columnsFrom": ["automation_id", "automation_version"],
874
- "columnsTo": ["automation_id", "version"],
875
- "onDelete": "no action",
876
- "onUpdate": "no action"
877
- }
878
- },
879
- "compositePrimaryKeys": {},
880
- "uniqueConstraints": {
881
- "junior_automation_runs_conversation_id_unique": {
882
- "name": "junior_automation_runs_conversation_id_unique",
883
- "nullsNotDistinct": false,
884
- "columns": ["conversation_id"]
885
- }
886
- },
887
- "policies": {},
888
- "checkConstraints": {
889
- "junior_automation_runs_status_check": {
890
- "name": "junior_automation_runs_status_check",
891
- "value": "\"junior_automation_runs\".\"status\" in ('pending', 'running', 'completed', 'failed', 'blocked', 'skipped')"
892
- }
893
- },
894
- "isRLSEnabled": false
895
- },
896
- "public.junior_automation_versions": {
897
- "name": "junior_automation_versions",
898
- "schema": "",
899
- "columns": {
900
- "automation_id": {
901
- "name": "automation_id",
902
- "type": "text",
903
- "primaryKey": false,
904
- "notNull": true
905
- },
906
- "version": {
907
- "name": "version",
908
- "type": "integer",
909
- "primaryKey": false,
910
- "notNull": true
911
- },
912
- "created_at_ms": {
913
- "name": "created_at_ms",
914
- "type": "bigint",
915
- "primaryKey": false,
916
- "notNull": true
917
- },
918
- "edited_by": {
919
- "name": "edited_by",
920
- "type": "jsonb",
921
- "primaryKey": false,
922
- "notNull": false
923
- },
924
- "definition": {
925
- "name": "definition",
926
- "type": "jsonb",
927
- "primaryKey": false,
928
- "notNull": true
929
- }
930
- },
931
- "indexes": {},
932
- "foreignKeys": {
933
- "junior_automation_versions_automation_id_fk": {
934
- "name": "junior_automation_versions_automation_id_fk",
935
- "tableFrom": "junior_automation_versions",
936
- "tableTo": "junior_automations",
937
- "columnsFrom": ["automation_id"],
938
- "columnsTo": ["id"],
939
- "onDelete": "cascade",
940
- "onUpdate": "no action"
941
- }
942
- },
943
- "compositePrimaryKeys": {
944
- "junior_automation_versions_pk": {
945
- "name": "junior_automation_versions_pk",
946
- "columns": ["automation_id", "version"]
947
- }
948
- },
949
- "uniqueConstraints": {},
950
- "policies": {},
951
- "checkConstraints": {},
952
- "isRLSEnabled": false
953
- },
954
- "public.junior_automations": {
955
- "name": "junior_automations",
956
- "schema": "",
957
- "columns": {
958
- "id": {
959
- "name": "id",
960
- "type": "text",
961
- "primaryKey": true,
962
- "notNull": true
963
- },
964
- "kind": {
965
- "name": "kind",
966
- "type": "text",
967
- "primaryKey": false,
968
- "notNull": true
969
- },
970
- "team_id": {
971
- "name": "team_id",
972
- "type": "text",
973
- "primaryKey": false,
974
- "notNull": true
975
- },
976
- "channel_id": {
977
- "name": "channel_id",
978
- "type": "text",
979
- "primaryKey": false,
980
- "notNull": true
981
- },
982
- "creator_slack_user_id": {
983
- "name": "creator_slack_user_id",
984
- "type": "text",
985
- "primaryKey": false,
986
- "notNull": true
987
- },
988
- "creator_identity_id": {
989
- "name": "creator_identity_id",
990
- "type": "text",
991
- "primaryKey": false,
992
- "notNull": true
993
- },
994
- "status": {
995
- "name": "status",
996
- "type": "text",
997
- "primaryKey": false,
998
- "notNull": true
999
- },
1000
- "status_reason": {
1001
- "name": "status_reason",
1002
- "type": "text",
1003
- "primaryKey": false,
1004
- "notNull": false
1005
- },
1006
- "title": {
1007
- "name": "title",
1008
- "type": "text",
1009
- "primaryKey": false,
1010
- "notNull": false
1011
- },
1012
- "instruction": {
1013
- "name": "instruction",
1014
- "type": "text",
1015
- "primaryKey": false,
1016
- "notNull": false
1017
- },
1018
- "skill": {
1019
- "name": "skill",
1020
- "type": "text",
1021
- "primaryKey": false,
1022
- "notNull": false
1023
- },
1024
- "created_at_ms": {
1025
- "name": "created_at_ms",
1026
- "type": "bigint",
1027
- "primaryKey": false,
1028
- "notNull": true
1029
- },
1030
- "next_run_at_ms": {
1031
- "name": "next_run_at_ms",
1032
- "type": "bigint",
1033
- "primaryKey": false,
1034
- "notNull": false
1035
- },
1036
- "run_now_at_ms": {
1037
- "name": "run_now_at_ms",
1038
- "type": "bigint",
1039
- "primaryKey": false,
1040
- "notNull": false
1041
- },
1042
- "namespace": {
1043
- "name": "namespace",
1044
- "type": "text",
1045
- "primaryKey": false,
1046
- "notNull": false
1047
- },
1048
- "identifier": {
1049
- "name": "identifier",
1050
- "type": "text",
1051
- "primaryKey": false,
1052
- "notNull": false
1053
- },
1054
- "record": {
1055
- "name": "record",
1056
- "type": "jsonb",
1057
- "primaryKey": false,
1058
- "notNull": true
1059
- }
1060
- },
1061
- "indexes": {
1062
- "junior_automations_team_idx": {
1063
- "name": "junior_automations_team_idx",
1064
- "columns": [
1065
- {
1066
- "expression": "team_id",
1067
- "isExpression": false,
1068
- "asc": true,
1069
- "nulls": "last"
1070
- },
1071
- {
1072
- "expression": "created_at_ms",
1073
- "isExpression": false,
1074
- "asc": true,
1075
- "nulls": "last"
1076
- },
1077
- {
1078
- "expression": "id",
1079
- "isExpression": false,
1080
- "asc": true,
1081
- "nulls": "last"
1082
- }
1083
- ],
1084
- "isUnique": false,
1085
- "where": "\"junior_automations\".\"status\" <> 'deleted'",
1086
- "concurrently": false,
1087
- "method": "btree",
1088
- "with": {}
1089
- },
1090
- "junior_automations_creator_identity_idx": {
1091
- "name": "junior_automations_creator_identity_idx",
1092
- "columns": [
1093
- {
1094
- "expression": "creator_identity_id",
1095
- "isExpression": false,
1096
- "asc": true,
1097
- "nulls": "last"
1098
- },
1099
- {
1100
- "expression": "created_at_ms",
1101
- "isExpression": false,
1102
- "asc": true,
1103
- "nulls": "last"
1104
- },
1105
- {
1106
- "expression": "id",
1107
- "isExpression": false,
1108
- "asc": true,
1109
- "nulls": "last"
1110
- }
1111
- ],
1112
- "isUnique": false,
1113
- "concurrently": false,
1114
- "method": "btree",
1115
- "with": {}
1116
- },
1117
- "junior_automations_run_now_due_idx": {
1118
- "name": "junior_automations_run_now_due_idx",
1119
- "columns": [
1120
- {
1121
- "expression": "run_now_at_ms",
1122
- "isExpression": false,
1123
- "asc": true,
1124
- "nulls": "last"
1125
- },
1126
- {
1127
- "expression": "created_at_ms",
1128
- "isExpression": false,
1129
- "asc": true,
1130
- "nulls": "last"
1131
- },
1132
- {
1133
- "expression": "id",
1134
- "isExpression": false,
1135
- "asc": true,
1136
- "nulls": "last"
1137
- }
1138
- ],
1139
- "isUnique": false,
1140
- "where": "\"junior_automations\".\"status\" = 'active' AND \"junior_automations\".\"run_now_at_ms\" IS NOT NULL",
1141
- "concurrently": false,
1142
- "method": "btree",
1143
- "with": {}
1144
- },
1145
- "junior_automations_next_run_due_idx": {
1146
- "name": "junior_automations_next_run_due_idx",
1147
- "columns": [
1148
- {
1149
- "expression": "next_run_at_ms",
1150
- "isExpression": false,
1151
- "asc": true,
1152
- "nulls": "last"
1153
- },
1154
- {
1155
- "expression": "created_at_ms",
1156
- "isExpression": false,
1157
- "asc": true,
1158
- "nulls": "last"
1159
- },
1160
- {
1161
- "expression": "id",
1162
- "isExpression": false,
1163
- "asc": true,
1164
- "nulls": "last"
1165
- }
1166
- ],
1167
- "isUnique": false,
1168
- "where": "\"junior_automations\".\"status\" = 'active' AND \"junior_automations\".\"next_run_at_ms\" IS NOT NULL",
1169
- "concurrently": false,
1170
- "method": "btree",
1171
- "with": {}
1172
- },
1173
- "junior_automations_skill_idx": {
1174
- "name": "junior_automations_skill_idx",
1175
- "columns": [
1176
- {
1177
- "expression": "skill",
1178
- "isExpression": false,
1179
- "asc": true,
1180
- "nulls": "last"
1181
- },
1182
- {
1183
- "expression": "created_at_ms",
1184
- "isExpression": false,
1185
- "asc": true,
1186
- "nulls": "last"
1187
- },
1188
- {
1189
- "expression": "id",
1190
- "isExpression": false,
1191
- "asc": true,
1192
- "nulls": "last"
1193
- }
1194
- ],
1195
- "isUnique": false,
1196
- "where": "\"junior_automations\".\"status\" <> 'deleted' AND \"junior_automations\".\"skill\" IS NOT NULL",
1197
- "concurrently": false,
1198
- "method": "btree",
1199
- "with": {}
1200
- },
1201
- "junior_automations_match_idx": {
1202
- "name": "junior_automations_match_idx",
1203
- "columns": [
1204
- {
1205
- "expression": "namespace",
1206
- "isExpression": false,
1207
- "asc": true,
1208
- "nulls": "last"
1209
- },
1210
- {
1211
- "expression": "identifier",
1212
- "isExpression": false,
1213
- "asc": true,
1214
- "nulls": "last"
1215
- },
1216
- {
1217
- "expression": "created_at_ms",
1218
- "isExpression": false,
1219
- "asc": true,
1220
- "nulls": "last"
1221
- },
1222
- {
1223
- "expression": "id",
1224
- "isExpression": false,
1225
- "asc": true,
1226
- "nulls": "last"
1227
- }
1228
- ],
1229
- "isUnique": false,
1230
- "where": "\"junior_automations\".\"status\" <> 'deleted'",
1231
- "concurrently": false,
1232
- "method": "btree",
1233
- "with": {}
1234
- }
1235
- },
1236
- "foreignKeys": {
1237
- "junior_automations_creator_identity_id_junior_identities_id_fk": {
1238
- "name": "junior_automations_creator_identity_id_junior_identities_id_fk",
1239
- "tableFrom": "junior_automations",
1240
- "tableTo": "junior_identities",
1241
- "columnsFrom": ["creator_identity_id"],
1242
- "columnsTo": ["id"],
1243
- "onDelete": "no action",
1244
- "onUpdate": "no action"
1245
- }
1246
- },
1247
- "compositePrimaryKeys": {},
1248
- "uniqueConstraints": {},
1249
- "policies": {},
1250
- "checkConstraints": {
1251
- "junior_automations_kind_check": {
1252
- "name": "junior_automations_kind_check",
1253
- "value": "\"junior_automations\".\"kind\" in ('scheduled', 'event')"
1254
- },
1255
- "junior_automations_status_check": {
1256
- "name": "junior_automations_status_check",
1257
- "value": "\"junior_automations\".\"status\" in ('active', 'blocked', 'paused', 'completed', 'deleted')"
1258
- },
1259
- "junior_automations_task_check": {
1260
- "name": "junior_automations_task_check",
1261
- "value": "(\"junior_automations\".\"instruction\" is null) <> (\"junior_automations\".\"skill\" is null)"
1262
- },
1263
- "junior_automations_record_check": {
1264
- "name": "junior_automations_record_check",
1265
- "value": "jsonb_typeof(\"junior_automations\".\"record\") = 'object'"
1266
- },
1267
- "junior_automations_trigger_check": {
1268
- "name": "junior_automations_trigger_check",
1269
- "value": "(\"junior_automations\".\"kind\" = 'scheduled' and \"junior_automations\".\"namespace\" is null and \"junior_automations\".\"identifier\" is null) or (\"junior_automations\".\"kind\" = 'event' and \"junior_automations\".\"namespace\" is not null and \"junior_automations\".\"next_run_at_ms\" is null and \"junior_automations\".\"run_now_at_ms\" is null and \"junior_automations\".\"status\" <> 'completed')"
1270
- }
1271
- },
1272
- "isRLSEnabled": false
1273
- },
1274
- "public.junior_code_changes": {
1275
- "name": "junior_code_changes",
1276
- "schema": "",
1277
- "columns": {
1278
- "id": {
1279
- "name": "id",
1280
- "type": "uuid",
1281
- "primaryKey": true,
1282
- "notNull": true
1283
- },
1284
- "closed_at": {
1285
- "name": "closed_at",
1286
- "type": "timestamp with time zone",
1287
- "primaryKey": false,
1288
- "notNull": false
1289
- },
1290
- "conversation_ids": {
1291
- "name": "conversation_ids",
1292
- "type": "text[]",
1293
- "primaryKey": false,
1294
- "notNull": true,
1295
- "default": "ARRAY[]::text[]"
1296
- },
1297
- "draft": {
1298
- "name": "draft",
1299
- "type": "boolean",
1300
- "primaryKey": false,
1301
- "notNull": true,
1302
- "default": false
1303
- },
1304
- "last_activity_at": {
1305
- "name": "last_activity_at",
1306
- "type": "timestamp with time zone",
1307
- "primaryKey": false,
1308
- "notNull": false
1309
- },
1310
- "merged_at": {
1311
- "name": "merged_at",
1312
- "type": "timestamp with time zone",
1313
- "primaryKey": false,
1314
- "notNull": false
1315
- },
1316
- "number": {
1317
- "name": "number",
1318
- "type": "integer",
1319
- "primaryKey": false,
1320
- "notNull": true
1321
- },
1322
- "opened_at": {
1323
- "name": "opened_at",
1324
- "type": "timestamp with time zone",
1325
- "primaryKey": false,
1326
- "notNull": true
1327
- },
1328
- "provider": {
1329
- "name": "provider",
1330
- "type": "text",
1331
- "primaryKey": false,
1332
- "notNull": true
1333
- },
1334
- "provider_id": {
1335
- "name": "provider_id",
1336
- "type": "text",
1337
- "primaryKey": false,
1338
- "notNull": true
1339
- },
1340
- "repository_id": {
1341
- "name": "repository_id",
1342
- "type": "uuid",
1343
- "primaryKey": false,
1344
- "notNull": true
1345
- },
1346
- "state": {
1347
- "name": "state",
1348
- "type": "text",
1349
- "primaryKey": false,
1350
- "notNull": true
1351
- },
1352
- "title": {
1353
- "name": "title",
1354
- "type": "text",
1355
- "primaryKey": false,
1356
- "notNull": false
1357
- },
1358
- "updated_at": {
1359
- "name": "updated_at",
1360
- "type": "timestamp with time zone",
1361
- "primaryKey": false,
1362
- "notNull": true
1363
- },
1364
- "url": {
1365
- "name": "url",
1366
- "type": "text",
1367
- "primaryKey": false,
1368
- "notNull": false
1369
- }
1370
- },
1371
- "indexes": {
1372
- "junior_code_changes_provider_id_idx": {
1373
- "name": "junior_code_changes_provider_id_idx",
1374
- "columns": [
1375
- {
1376
- "expression": "provider",
1377
- "isExpression": false,
1378
- "asc": true,
1379
- "nulls": "last"
1380
- },
1381
- {
1382
- "expression": "provider_id",
1383
- "isExpression": false,
1384
- "asc": true,
1385
- "nulls": "last"
1386
- }
1387
- ],
1388
- "isUnique": true,
1389
- "concurrently": false,
1390
- "method": "btree",
1391
- "with": {}
1392
- },
1393
- "junior_code_changes_opened_at_idx": {
1394
- "name": "junior_code_changes_opened_at_idx",
1395
- "columns": [
1396
- {
1397
- "expression": "opened_at",
1398
- "isExpression": false,
1399
- "asc": true,
1400
- "nulls": "last"
1401
- }
1402
- ],
1403
- "isUnique": false,
1404
- "concurrently": false,
1405
- "method": "btree",
1406
- "with": {}
1407
- },
1408
- "junior_code_changes_merged_at_idx": {
1409
- "name": "junior_code_changes_merged_at_idx",
1410
- "columns": [
1411
- {
1412
- "expression": "merged_at",
1413
- "isExpression": false,
1414
- "asc": true,
1415
- "nulls": "last"
1416
- }
1417
- ],
1418
- "isUnique": false,
1419
- "concurrently": false,
1420
- "method": "btree",
1421
- "with": {}
1422
- },
1423
- "junior_code_changes_closed_at_idx": {
1424
- "name": "junior_code_changes_closed_at_idx",
1425
- "columns": [
1426
- {
1427
- "expression": "closed_at",
1428
- "isExpression": false,
1429
- "asc": true,
1430
- "nulls": "last"
1431
- }
1432
- ],
1433
- "isUnique": false,
1434
- "concurrently": false,
1435
- "method": "btree",
1436
- "with": {}
1437
- },
1438
- "junior_code_changes_open_idx": {
1439
- "name": "junior_code_changes_open_idx",
1440
- "columns": [
1441
- {
1442
- "expression": "id",
1443
- "isExpression": false,
1444
- "asc": true,
1445
- "nulls": "last"
1446
- }
1447
- ],
1448
- "isUnique": false,
1449
- "where": "\"junior_code_changes\".\"state\" = 'open'",
1450
- "concurrently": false,
1451
- "method": "btree",
1452
- "with": {}
1453
- }
1454
- },
1455
- "foreignKeys": {
1456
- "junior_code_changes_repository_id_junior_code_repositories_id_fk": {
1457
- "name": "junior_code_changes_repository_id_junior_code_repositories_id_fk",
1458
- "tableFrom": "junior_code_changes",
1459
- "tableTo": "junior_code_repositories",
1460
- "columnsFrom": ["repository_id"],
1461
- "columnsTo": ["id"],
1462
- "onDelete": "cascade",
1463
- "onUpdate": "no action"
1464
- }
1465
- },
1466
- "compositePrimaryKeys": {},
1467
- "uniqueConstraints": {},
1468
- "policies": {},
1469
- "checkConstraints": {},
1470
- "isRLSEnabled": false
1471
- },
1472
- "public.junior_code_repositories": {
1473
- "name": "junior_code_repositories",
1474
- "schema": "",
1475
- "columns": {
1476
- "id": {
1477
- "name": "id",
1478
- "type": "uuid",
1479
- "primaryKey": true,
1480
- "notNull": true
1481
- },
1482
- "name": {
1483
- "name": "name",
1484
- "type": "text",
1485
- "primaryKey": false,
1486
- "notNull": true
1487
- },
1488
- "provider": {
1489
- "name": "provider",
1490
- "type": "text",
1491
- "primaryKey": false,
1492
- "notNull": true
1493
- },
1494
- "provider_id": {
1495
- "name": "provider_id",
1496
- "type": "text",
1497
- "primaryKey": false,
1498
- "notNull": true
1499
- },
1500
- "url": {
1501
- "name": "url",
1502
- "type": "text",
1503
- "primaryKey": false,
1504
- "notNull": false
1505
- },
1506
- "updated_at": {
1507
- "name": "updated_at",
1508
- "type": "timestamp with time zone",
1509
- "primaryKey": false,
1510
- "notNull": true
1511
- }
1512
- },
1513
- "indexes": {
1514
- "junior_code_repositories_provider_id_idx": {
1515
- "name": "junior_code_repositories_provider_id_idx",
1516
- "columns": [
1517
- {
1518
- "expression": "provider",
1519
- "isExpression": false,
1520
- "asc": true,
1521
- "nulls": "last"
1522
- },
1523
- {
1524
- "expression": "provider_id",
1525
- "isExpression": false,
1526
- "asc": true,
1527
- "nulls": "last"
1528
- }
1529
- ],
1530
- "isUnique": true,
1531
- "concurrently": false,
1532
- "method": "btree",
1533
- "with": {}
1534
- }
1535
- },
1536
- "foreignKeys": {},
1537
- "compositePrimaryKeys": {},
1538
- "uniqueConstraints": {},
1539
- "policies": {},
1540
- "checkConstraints": {},
1541
- "isRLSEnabled": false
1542
- },
1543
- "public.junior_conversation_annotations": {
1544
- "name": "junior_conversation_annotations",
1545
- "schema": "",
1546
- "columns": {
1547
- "conversation_id": {
1548
- "name": "conversation_id",
1549
- "type": "text",
1550
- "primaryKey": false,
1551
- "notNull": true
1552
- },
1553
- "plugin": {
1554
- "name": "plugin",
1555
- "type": "text",
1556
- "primaryKey": false,
1557
- "notNull": true
1558
- },
1559
- "kind": {
1560
- "name": "kind",
1561
- "type": "text",
1562
- "primaryKey": false,
1563
- "notNull": true
1564
- },
1565
- "key": {
1566
- "name": "key",
1567
- "type": "text",
1568
- "primaryKey": false,
1569
- "notNull": true
1570
- },
1571
- "annotation_json": {
1572
- "name": "annotation_json",
1573
- "type": "jsonb",
1574
- "primaryKey": false,
1575
- "notNull": true
1576
- },
1577
- "created_at": {
1578
- "name": "created_at",
1579
- "type": "timestamp with time zone",
1580
- "primaryKey": false,
1581
- "notNull": true
1582
- },
1583
- "updated_at": {
1584
- "name": "updated_at",
1585
- "type": "timestamp with time zone",
1586
- "primaryKey": false,
1587
- "notNull": true
1588
- }
1589
- },
1590
- "indexes": {},
1591
- "foreignKeys": {
1592
- "junior_conversation_annotations_conversation_id_fk": {
1593
- "name": "junior_conversation_annotations_conversation_id_fk",
1594
- "tableFrom": "junior_conversation_annotations",
1595
- "tableTo": "junior_conversations",
1596
- "columnsFrom": ["conversation_id"],
1597
- "columnsTo": ["conversation_id"],
1598
- "onDelete": "cascade",
1599
- "onUpdate": "no action"
1600
- }
1601
- },
1602
- "compositePrimaryKeys": {
1603
- "junior_conversation_annotations_pk": {
1604
- "name": "junior_conversation_annotations_pk",
1605
- "columns": ["conversation_id", "plugin", "kind", "key"]
1606
- }
1607
- },
1608
- "uniqueConstraints": {},
1609
- "policies": {},
1610
- "checkConstraints": {},
1611
- "isRLSEnabled": false
1612
- },
1613
- "public.junior_conversation_bindings": {
1614
- "name": "junior_conversation_bindings",
1615
- "schema": "",
1616
- "columns": {
1617
- "conversation_id": {
1618
- "name": "conversation_id",
1619
- "type": "text",
1620
- "primaryKey": false,
1621
- "notNull": true
1622
- },
1623
- "provider": {
1624
- "name": "provider",
1625
- "type": "text",
1626
- "primaryKey": false,
1627
- "notNull": true
1628
- },
1629
- "provider_tenant_id": {
1630
- "name": "provider_tenant_id",
1631
- "type": "text",
1632
- "primaryKey": false,
1633
- "notNull": true,
1634
- "default": "''"
1635
- },
1636
- "provider_destination_id": {
1637
- "name": "provider_destination_id",
1638
- "type": "text",
1639
- "primaryKey": false,
1640
- "notNull": true
1641
- },
1642
- "provider_conversation_id": {
1643
- "name": "provider_conversation_id",
1644
- "type": "text",
1645
- "primaryKey": false,
1646
- "notNull": true
1647
- },
1648
- "created_at": {
1649
- "name": "created_at",
1650
- "type": "timestamp with time zone",
1651
- "primaryKey": false,
1652
- "notNull": true
1653
- }
1654
- },
1655
- "indexes": {
1656
- "junior_conversation_bindings_conversation_idx": {
1657
- "name": "junior_conversation_bindings_conversation_idx",
1658
- "columns": [
1659
- {
1660
- "expression": "conversation_id",
1661
- "isExpression": false,
1662
- "asc": true,
1663
- "nulls": "last"
1664
- }
1665
- ],
1666
- "isUnique": false,
1667
- "concurrently": false,
1668
- "method": "btree",
1669
- "with": {}
1670
- }
1671
- },
1672
- "foreignKeys": {
1673
- "junior_conversation_bindings_conversation_id_junior_conversations_conversation_id_fk": {
1674
- "name": "junior_conversation_bindings_conversation_id_junior_conversations_conversation_id_fk",
1675
- "tableFrom": "junior_conversation_bindings",
1676
- "tableTo": "junior_conversations",
1677
- "columnsFrom": ["conversation_id"],
1678
- "columnsTo": ["conversation_id"],
1679
- "onDelete": "no action",
1680
- "onUpdate": "no action"
1681
- }
1682
- },
1683
- "compositePrimaryKeys": {
1684
- "junior_conversation_bindings_provider_conversation_pk": {
1685
- "name": "junior_conversation_bindings_provider_conversation_pk",
1686
- "columns": [
1687
- "provider",
1688
- "provider_tenant_id",
1689
- "provider_destination_id",
1690
- "provider_conversation_id"
1691
- ]
1692
- }
1693
- },
1694
- "uniqueConstraints": {},
1695
- "policies": {},
1696
- "checkConstraints": {},
1697
- "isRLSEnabled": false
1698
- },
1699
- "public.junior_conversation_briefs": {
1700
- "name": "junior_conversation_briefs",
1701
- "schema": "",
1702
- "columns": {
1703
- "conversation_id": {
1704
- "name": "conversation_id",
1705
- "type": "text",
1706
- "primaryKey": false,
1707
- "notNull": true
1708
- },
1709
- "version": {
1710
- "name": "version",
1711
- "type": "integer",
1712
- "primaryKey": false,
1713
- "notNull": true
1714
- },
1715
- "turn_id": {
1716
- "name": "turn_id",
1717
- "type": "text",
1718
- "primaryKey": false,
1719
- "notNull": true
1720
- },
1721
- "through_seq": {
1722
- "name": "through_seq",
1723
- "type": "integer",
1724
- "primaryKey": false,
1725
- "notNull": true
1726
- },
1727
- "content": {
1728
- "name": "content",
1729
- "type": "jsonb",
1730
- "primaryKey": false,
1731
- "notNull": true
1732
- },
1733
- "search_text": {
1734
- "name": "search_text",
1735
- "type": "text",
1736
- "primaryKey": false,
1737
- "notNull": true
1738
- },
1739
- "model_id": {
1740
- "name": "model_id",
1741
- "type": "text",
1742
- "primaryKey": false,
1743
- "notNull": true
1744
- },
1745
- "cost_usd": {
1746
- "name": "cost_usd",
1747
- "type": "double precision",
1748
- "primaryKey": false,
1749
- "notNull": false
1750
- },
1751
- "created_at": {
1752
- "name": "created_at",
1753
- "type": "timestamp with time zone",
1754
- "primaryKey": false,
1755
- "notNull": true,
1756
- "default": "now()"
1757
- }
1758
- },
1759
- "indexes": {
1760
- "junior_conversation_briefs_conversation_turn_idx": {
1761
- "name": "junior_conversation_briefs_conversation_turn_idx",
1762
- "columns": [
1763
- {
1764
- "expression": "conversation_id",
1765
- "isExpression": false,
1766
- "asc": true,
1767
- "nulls": "last"
1768
- },
1769
- {
1770
- "expression": "turn_id",
1771
- "isExpression": false,
1772
- "asc": true,
1773
- "nulls": "last"
1774
- }
1775
- ],
1776
- "isUnique": true,
1777
- "concurrently": false,
1778
- "method": "btree",
1779
- "with": {}
1780
- },
1781
- "junior_conversation_briefs_conversation_version_idx": {
1782
- "name": "junior_conversation_briefs_conversation_version_idx",
1783
- "columns": [
1784
- {
1785
- "expression": "conversation_id",
1786
- "isExpression": false,
1787
- "asc": true,
1788
- "nulls": "last"
1789
- },
1790
- {
1791
- "expression": "version",
1792
- "isExpression": false,
1793
- "asc": false,
1794
- "nulls": "last"
1795
- }
1796
- ],
1797
- "isUnique": false,
1798
- "concurrently": false,
1799
- "method": "btree",
1800
- "with": {}
1801
- },
1802
- "junior_conversation_briefs_search_idx": {
1803
- "name": "junior_conversation_briefs_search_idx",
1804
- "columns": [
1805
- {
1806
- "expression": "to_tsvector('english', \"search_text\")",
1807
- "asc": true,
1808
- "isExpression": true,
1809
- "nulls": "last"
1810
- }
1811
- ],
1812
- "isUnique": false,
1813
- "concurrently": false,
1814
- "method": "gin",
1815
- "with": {}
1816
- }
1817
- },
1818
- "foreignKeys": {
1819
- "junior_conversation_briefs_conversation_id_junior_conversations_conversation_id_fk": {
1820
- "name": "junior_conversation_briefs_conversation_id_junior_conversations_conversation_id_fk",
1821
- "tableFrom": "junior_conversation_briefs",
1822
- "tableTo": "junior_conversations",
1823
- "columnsFrom": ["conversation_id"],
1824
- "columnsTo": ["conversation_id"],
1825
- "onDelete": "cascade",
1826
- "onUpdate": "no action"
1827
- }
1828
- },
1829
- "compositePrimaryKeys": {
1830
- "junior_conversation_briefs_conversation_id_version_pk": {
1831
- "name": "junior_conversation_briefs_conversation_id_version_pk",
1832
- "columns": ["conversation_id", "version"]
1833
- }
1834
- },
1835
- "uniqueConstraints": {},
1836
- "policies": {},
1837
- "checkConstraints": {},
1838
- "isRLSEnabled": false
1839
- },
1840
- "public.junior_conversation_events": {
1841
- "name": "junior_conversation_events",
1842
- "schema": "",
1843
- "columns": {
1844
- "conversation_id": {
1845
- "name": "conversation_id",
1846
- "type": "text",
1847
- "primaryKey": false,
1848
- "notNull": true
1849
- },
1850
- "seq": {
1851
- "name": "seq",
1852
- "type": "integer",
1853
- "primaryKey": false,
1854
- "notNull": true
1855
- },
1856
- "history_version": {
1857
- "name": "history_version",
1858
- "type": "integer",
1859
- "primaryKey": false,
1860
- "notNull": true
1861
- },
1862
- "schema_version": {
1863
- "name": "schema_version",
1864
- "type": "integer",
1865
- "primaryKey": false,
1866
- "notNull": true,
1867
- "default": 1
1868
- },
1869
- "idempotency_key": {
1870
- "name": "idempotency_key",
1871
- "type": "text",
1872
- "primaryKey": false,
1873
- "notNull": false
1874
- },
1875
- "type": {
1876
- "name": "type",
1877
- "type": "text",
1878
- "primaryKey": false,
1879
- "notNull": true
1880
- },
1881
- "payload": {
1882
- "name": "payload",
1883
- "type": "jsonb",
1884
- "primaryKey": false,
1885
- "notNull": true
1886
- },
1887
- "actor_identity_id": {
1888
- "name": "actor_identity_id",
1889
- "type": "text",
1890
- "primaryKey": false,
1891
- "notNull": false
1892
- },
1893
- "created_at": {
1894
- "name": "created_at",
1895
- "type": "timestamp with time zone",
1896
- "primaryKey": false,
1897
- "notNull": true
1898
- }
1899
- },
1900
- "indexes": {
1901
- "junior_conversation_events_history_version_idx": {
1902
- "name": "junior_conversation_events_history_version_idx",
1903
- "columns": [
1904
- {
1905
- "expression": "conversation_id",
1906
- "isExpression": false,
1907
- "asc": true,
1908
- "nulls": "last"
1909
- },
1910
- {
1911
- "expression": "history_version",
1912
- "isExpression": false,
1913
- "asc": true,
1914
- "nulls": "last"
1915
- },
1916
- {
1917
- "expression": "seq",
1918
- "isExpression": false,
1919
- "asc": true,
1920
- "nulls": "last"
1921
- }
1922
- ],
1923
- "isUnique": false,
1924
- "concurrently": false,
1925
- "method": "btree",
1926
- "with": {}
1927
- },
1928
- "junior_conversation_events_type_idx": {
1929
- "name": "junior_conversation_events_type_idx",
1930
- "columns": [
1931
- {
1932
- "expression": "conversation_id",
1933
- "isExpression": false,
1934
- "asc": true,
1935
- "nulls": "last"
1936
- },
1937
- {
1938
- "expression": "type",
1939
- "isExpression": false,
1940
- "asc": true,
1941
- "nulls": "last"
1942
- },
1943
- {
1944
- "expression": "seq",
1945
- "isExpression": false,
1946
- "asc": true,
1947
- "nulls": "last"
1948
- }
1949
- ],
1950
- "isUnique": false,
1951
- "concurrently": false,
1952
- "method": "btree",
1953
- "with": {}
1954
- },
1955
- "junior_conversation_events_plugin_report_idx": {
1956
- "name": "junior_conversation_events_plugin_report_idx",
1957
- "columns": [
1958
- {
1959
- "expression": "(\"payload\"->>'namespace')",
1960
- "asc": true,
1961
- "isExpression": true,
1962
- "nulls": "last"
1963
- },
1964
- {
1965
- "expression": "(\"payload\"->>'name')",
1966
- "asc": true,
1967
- "isExpression": true,
1968
- "nulls": "last"
1969
- },
1970
- {
1971
- "expression": "created_at",
1972
- "isExpression": false,
1973
- "asc": true,
1974
- "nulls": "last"
1975
- }
1976
- ],
1977
- "isUnique": false,
1978
- "where": "\"junior_conversation_events\".\"type\" = 'structured_event'",
1979
- "concurrently": false,
1980
- "method": "btree",
1981
- "with": {}
1982
- },
1983
- "junior_conversation_events_guardian_review_time_idx": {
1984
- "name": "junior_conversation_events_guardian_review_time_idx",
1985
- "columns": [
1986
- {
1987
- "expression": "created_at",
1988
- "isExpression": false,
1989
- "asc": true,
1990
- "nulls": "last"
1991
- }
1992
- ],
1993
- "isUnique": false,
1994
- "where": "\"junior_conversation_events\".\"type\" = 'guardian_action_reviewed'",
1995
- "concurrently": false,
1996
- "method": "btree",
1997
- "with": {}
1998
- },
1999
- "junior_conversation_events_plugin_conversation_idx": {
2000
- "name": "junior_conversation_events_plugin_conversation_idx",
2001
- "columns": [
2002
- {
2003
- "expression": "conversation_id",
2004
- "isExpression": false,
2005
- "asc": true,
2006
- "nulls": "last"
2007
- },
2008
- {
2009
- "expression": "(\"payload\"->>'namespace')",
2010
- "asc": true,
2011
- "isExpression": true,
2012
- "nulls": "last"
2013
- },
2014
- {
2015
- "expression": "(\"payload\"->>'name')",
2016
- "asc": true,
2017
- "isExpression": true,
2018
- "nulls": "last"
2019
- },
2020
- {
2021
- "expression": "seq",
2022
- "isExpression": false,
2023
- "asc": true,
2024
- "nulls": "last"
2025
- }
2026
- ],
2027
- "isUnique": false,
2028
- "where": "\"junior_conversation_events\".\"type\" = 'structured_event'",
2029
- "concurrently": false,
2030
- "method": "btree",
2031
- "with": {}
2032
- },
2033
- "junior_conversation_events_actor_identity_idx": {
2034
- "name": "junior_conversation_events_actor_identity_idx",
2035
- "columns": [
2036
- {
2037
- "expression": "actor_identity_id",
2038
- "isExpression": false,
2039
- "asc": true,
2040
- "nulls": "last"
2041
- },
2042
- {
2043
- "expression": "conversation_id",
2044
- "isExpression": false,
2045
- "asc": true,
2046
- "nulls": "last"
2047
- },
2048
- {
2049
- "expression": "seq",
2050
- "isExpression": false,
2051
- "asc": true,
2052
- "nulls": "last"
2053
- }
2054
- ],
2055
- "isUnique": false,
2056
- "concurrently": false,
2057
- "method": "btree",
2058
- "with": {}
2059
- },
2060
- "junior_conversation_events_author_idx": {
2061
- "name": "junior_conversation_events_author_idx",
2062
- "columns": [
2063
- {
2064
- "expression": "conversation_id",
2065
- "isExpression": false,
2066
- "asc": true,
2067
- "nulls": "last"
2068
- },
2069
- {
2070
- "expression": "actor_identity_id",
2071
- "isExpression": false,
2072
- "asc": true,
2073
- "nulls": "last"
2074
- },
2075
- {
2076
- "expression": "seq",
2077
- "isExpression": false,
2078
- "asc": true,
2079
- "nulls": "last"
2080
- }
2081
- ],
2082
- "isUnique": false,
2083
- "where": "\"junior_conversation_events\".\"actor_identity_id\" is not null",
2084
- "concurrently": false,
2085
- "method": "btree",
2086
- "with": {}
2087
- },
2088
- "junior_conversation_events_message_role_idx": {
2089
- "name": "junior_conversation_events_message_role_idx",
2090
- "columns": [
2091
- {
2092
- "expression": "conversation_id",
2093
- "isExpression": false,
2094
- "asc": true,
2095
- "nulls": "last"
2096
- },
2097
- {
2098
- "expression": "(\"payload\"->>'role')",
2099
- "asc": true,
2100
- "isExpression": true,
2101
- "nulls": "last"
2102
- },
2103
- {
2104
- "expression": "created_at",
2105
- "isExpression": false,
2106
- "asc": true,
2107
- "nulls": "last"
2108
- },
2109
- {
2110
- "expression": "seq",
2111
- "isExpression": false,
2112
- "asc": true,
2113
- "nulls": "last"
2114
- }
2115
- ],
2116
- "isUnique": false,
2117
- "where": "\"junior_conversation_events\".\"type\" = 'message'",
2118
- "concurrently": false,
2119
- "method": "btree",
2120
- "with": {}
2121
- },
2122
- "junior_conversation_events_user_message_time_idx": {
2123
- "name": "junior_conversation_events_user_message_time_idx",
2124
- "columns": [
2125
- {
2126
- "expression": "conversation_id",
2127
- "isExpression": false,
2128
- "asc": true,
2129
- "nulls": "last"
2130
- },
2131
- {
2132
- "expression": "created_at",
2133
- "isExpression": false,
2134
- "asc": true,
2135
- "nulls": "last"
2136
- },
2137
- {
2138
- "expression": "seq",
2139
- "isExpression": false,
2140
- "asc": true,
2141
- "nulls": "last"
2142
- }
2143
- ],
2144
- "isUnique": false,
2145
- "where": "\"junior_conversation_events\".\"type\" = 'user_message' and (\"junior_conversation_events\".\"payload\"->'provenance'->>'authority') = 'instruction' and (\"junior_conversation_events\".\"payload\"->'provenance'->'actor'->>'platform') in ('slack', 'local', 'web')",
2146
- "concurrently": false,
2147
- "method": "btree",
2148
- "with": {}
2149
- },
2150
- "junior_conversation_events_message_search_idx": {
2151
- "name": "junior_conversation_events_message_search_idx",
2152
- "columns": [
2153
- {
2154
- "expression": "to_tsvector('english', \"payload\"->>'text')",
2155
- "asc": true,
2156
- "isExpression": true,
2157
- "nulls": "last"
2158
- }
2159
- ],
2160
- "isUnique": false,
2161
- "where": "\"junior_conversation_events\".\"type\" = 'message'",
2162
- "concurrently": false,
2163
- "method": "gin",
2164
- "with": {}
2165
- },
2166
- "junior_conversation_events_idempotency_idx": {
2167
- "name": "junior_conversation_events_idempotency_idx",
2168
- "columns": [
2169
- {
2170
- "expression": "conversation_id",
2171
- "isExpression": false,
2172
- "asc": true,
2173
- "nulls": "last"
2174
- },
2175
- {
2176
- "expression": "idempotency_key",
2177
- "isExpression": false,
2178
- "asc": true,
2179
- "nulls": "last"
2180
- }
2181
- ],
2182
- "isUnique": true,
2183
- "concurrently": false,
2184
- "method": "btree",
2185
- "with": {}
2186
- }
2187
- },
2188
- "foreignKeys": {
2189
- "junior_conversation_events_actor_identity_id_junior_identities_id_fk": {
2190
- "name": "junior_conversation_events_actor_identity_id_junior_identities_id_fk",
2191
- "tableFrom": "junior_conversation_events",
2192
- "tableTo": "junior_identities",
2193
- "columnsFrom": ["actor_identity_id"],
2194
- "columnsTo": ["id"],
2195
- "onDelete": "no action",
2196
- "onUpdate": "no action"
2197
- },
2198
- "junior_conversation_events_conversation_id_junior_conversations_conversation_id_fk": {
2199
- "name": "junior_conversation_events_conversation_id_junior_conversations_conversation_id_fk",
2200
- "tableFrom": "junior_conversation_events",
2201
- "tableTo": "junior_conversations",
2202
- "columnsFrom": ["conversation_id"],
2203
- "columnsTo": ["conversation_id"],
2204
- "onDelete": "no action",
2205
- "onUpdate": "no action"
2206
- }
2207
- },
2208
- "compositePrimaryKeys": {
2209
- "junior_conversation_events_conversation_id_seq_pk": {
2210
- "name": "junior_conversation_events_conversation_id_seq_pk",
2211
- "columns": ["conversation_id", "seq"]
2212
- }
2213
- },
2214
- "uniqueConstraints": {},
2215
- "policies": {},
2216
- "checkConstraints": {},
2217
- "isRLSEnabled": false
2218
- },
2219
- "public.junior_conversation_metrics": {
2220
- "name": "junior_conversation_metrics",
2221
- "schema": "",
2222
- "columns": {
2223
- "conversation_id": {
2224
- "name": "conversation_id",
2225
- "type": "text",
2226
- "primaryKey": false,
2227
- "notNull": true
2228
- },
2229
- "run_id": {
2230
- "name": "run_id",
2231
- "type": "text",
2232
- "primaryKey": false,
2233
- "notNull": true
2234
- },
2235
- "metric": {
2236
- "name": "metric",
2237
- "type": "text",
2238
- "primaryKey": false,
2239
- "notNull": true
2240
- },
2241
- "actor_identity_id": {
2242
- "name": "actor_identity_id",
2243
- "type": "text",
2244
- "primaryKey": false,
2245
- "notNull": false
2246
- },
2247
- "value": {
2248
- "name": "value",
2249
- "type": "double precision",
2250
- "primaryKey": false,
2251
- "notNull": true
2252
- },
2253
- "occurred_at": {
2254
- "name": "occurred_at",
2255
- "type": "timestamp with time zone",
2256
- "primaryKey": false,
2257
- "notNull": true
2258
- },
2259
- "updated_at": {
2260
- "name": "updated_at",
2261
- "type": "timestamp with time zone",
2262
- "primaryKey": false,
2263
- "notNull": true
2264
- }
2265
- },
2266
- "indexes": {
2267
- "junior_conversation_metrics_actor_identity_occurred_at_idx": {
2268
- "name": "junior_conversation_metrics_actor_identity_occurred_at_idx",
2269
- "columns": [
2270
- {
2271
- "expression": "actor_identity_id",
2272
- "isExpression": false,
2273
- "asc": true,
2274
- "nulls": "last"
2275
- },
2276
- {
2277
- "expression": "occurred_at",
2278
- "isExpression": false,
2279
- "asc": true,
2280
- "nulls": "last"
2281
- }
2282
- ],
2283
- "isUnique": false,
2284
- "concurrently": false,
2285
- "method": "btree",
2286
- "with": {}
2287
- },
2288
- "junior_conversation_metrics_occurred_at_metric_idx": {
2289
- "name": "junior_conversation_metrics_occurred_at_metric_idx",
2290
- "columns": [
2291
- {
2292
- "expression": "occurred_at",
2293
- "isExpression": false,
2294
- "asc": true,
2295
- "nulls": "last"
2296
- },
2297
- {
2298
- "expression": "metric",
2299
- "isExpression": false,
2300
- "asc": true,
2301
- "nulls": "last"
2302
- }
2303
- ],
2304
- "isUnique": false,
2305
- "concurrently": false,
2306
- "method": "btree",
2307
- "with": {}
2308
- }
2309
- },
2310
- "foreignKeys": {
2311
- "junior_conversation_metrics_actor_identity_id_junior_identities_id_fk": {
2312
- "name": "junior_conversation_metrics_actor_identity_id_junior_identities_id_fk",
2313
- "tableFrom": "junior_conversation_metrics",
2314
- "tableTo": "junior_identities",
2315
- "columnsFrom": ["actor_identity_id"],
2316
- "columnsTo": ["id"],
2317
- "onDelete": "no action",
2318
- "onUpdate": "no action"
2319
- },
2320
- "junior_conversation_metrics_conversation_id_junior_conversations_conversation_id_fk": {
2321
- "name": "junior_conversation_metrics_conversation_id_junior_conversations_conversation_id_fk",
2322
- "tableFrom": "junior_conversation_metrics",
2323
- "tableTo": "junior_conversations",
2324
- "columnsFrom": ["conversation_id"],
2325
- "columnsTo": ["conversation_id"],
2326
- "onDelete": "no action",
2327
- "onUpdate": "no action"
2328
- }
2329
- },
2330
- "compositePrimaryKeys": {
2331
- "junior_conversation_metrics_conversation_id_run_id_metric_pk": {
2332
- "name": "junior_conversation_metrics_conversation_id_run_id_metric_pk",
2333
- "columns": ["conversation_id", "run_id", "metric"]
2334
- }
2335
- },
2336
- "uniqueConstraints": {},
2337
- "policies": {},
2338
- "checkConstraints": {},
2339
- "isRLSEnabled": false
2340
- },
2341
- "public.junior_conversation_participants": {
2342
- "name": "junior_conversation_participants",
2343
- "schema": "",
2344
- "columns": {
2345
- "user_id": {
2346
- "name": "user_id",
2347
- "type": "text",
2348
- "primaryKey": false,
2349
- "notNull": true
2350
- },
2351
- "root_conversation_id": {
2352
- "name": "root_conversation_id",
2353
- "type": "text",
2354
- "primaryKey": false,
2355
- "notNull": true
2356
- },
2357
- "last_message_at": {
2358
- "name": "last_message_at",
2359
- "type": "timestamp with time zone",
2360
- "primaryKey": false,
2361
- "notNull": true
2362
- },
2363
- "archived_at": {
2364
- "name": "archived_at",
2365
- "type": "timestamp with time zone",
2366
- "primaryKey": false,
2367
- "notNull": false
2368
- },
2369
- "pinned_at": {
2370
- "name": "pinned_at",
2371
- "type": "timestamp with time zone",
2372
- "primaryKey": false,
2373
- "notNull": false
2374
- },
2375
- "pin_position": {
2376
- "name": "pin_position",
2377
- "type": "integer",
2378
- "primaryKey": false,
2379
- "notNull": false
2380
- },
2381
- "auto_archive": {
2382
- "name": "auto_archive",
2383
- "type": "boolean",
2384
- "primaryKey": false,
2385
- "notNull": false
2386
- },
2387
- "unsubscribed_at": {
2388
- "name": "unsubscribed_at",
2389
- "type": "timestamp with time zone",
2390
- "primaryKey": false,
2391
- "notNull": false
2392
- }
2393
- },
2394
- "indexes": {
2395
- "junior_conversation_participants_user_activity_idx": {
2396
- "name": "junior_conversation_participants_user_activity_idx",
2397
- "columns": [
2398
- {
2399
- "expression": "user_id",
2400
- "isExpression": false,
2401
- "asc": true,
2402
- "nulls": "last"
2403
- },
2404
- {
2405
- "expression": "last_message_at",
2406
- "isExpression": false,
2407
- "asc": false,
2408
- "nulls": "last"
2409
- }
2410
- ],
2411
- "isUnique": false,
2412
- "concurrently": false,
2413
- "method": "btree",
2414
- "with": {}
2415
- },
2416
- "junior_conversation_participants_root_idx": {
2417
- "name": "junior_conversation_participants_root_idx",
2418
- "columns": [
2419
- {
2420
- "expression": "root_conversation_id",
2421
- "isExpression": false,
2422
- "asc": true,
2423
- "nulls": "last"
2424
- }
2425
- ],
2426
- "isUnique": false,
2427
- "concurrently": false,
2428
- "method": "btree",
2429
- "with": {}
2430
- },
2431
- "junior_conversation_participants_auto_archive_idx": {
2432
- "name": "junior_conversation_participants_auto_archive_idx",
2433
- "columns": [
2434
- {
2435
- "expression": "user_id",
2436
- "isExpression": false,
2437
- "asc": true,
2438
- "nulls": "last"
2439
- }
2440
- ],
2441
- "isUnique": false,
2442
- "where": "\"junior_conversation_participants\".\"auto_archive\"",
2443
- "concurrently": false,
2444
- "method": "btree",
2445
- "with": {}
2446
- },
2447
- "junior_conversation_participants_unsubscribed_idx": {
2448
- "name": "junior_conversation_participants_unsubscribed_idx",
2449
- "columns": [
2450
- {
2451
- "expression": "user_id",
2452
- "isExpression": false,
2453
- "asc": true,
2454
- "nulls": "last"
2455
- },
2456
- {
2457
- "expression": "root_conversation_id",
2458
- "isExpression": false,
2459
- "asc": true,
2460
- "nulls": "last"
2461
- }
2462
- ],
2463
- "isUnique": false,
2464
- "where": "\"junior_conversation_participants\".\"unsubscribed_at\" is not null",
2465
- "concurrently": false,
2466
- "method": "btree",
2467
- "with": {}
2468
- }
2469
- },
2470
- "foreignKeys": {
2471
- "junior_conversation_participants_user_id_junior_users_id_fk": {
2472
- "name": "junior_conversation_participants_user_id_junior_users_id_fk",
2473
- "tableFrom": "junior_conversation_participants",
2474
- "tableTo": "junior_users",
2475
- "columnsFrom": ["user_id"],
2476
- "columnsTo": ["id"],
2477
- "onDelete": "no action",
2478
- "onUpdate": "no action"
2479
- },
2480
- "junior_conversation_participants_root_conversation_id_junior_conversations_conversation_id_fk": {
2481
- "name": "junior_conversation_participants_root_conversation_id_junior_conversations_conversation_id_fk",
2482
- "tableFrom": "junior_conversation_participants",
2483
- "tableTo": "junior_conversations",
2484
- "columnsFrom": ["root_conversation_id"],
2485
- "columnsTo": ["conversation_id"],
2486
- "onDelete": "no action",
2487
- "onUpdate": "no action"
2488
- }
2489
- },
2490
- "compositePrimaryKeys": {
2491
- "junior_conversation_participants_user_root_pk": {
2492
- "name": "junior_conversation_participants_user_root_pk",
2493
- "columns": ["user_id", "root_conversation_id"]
2494
- }
2495
- },
2496
- "uniqueConstraints": {},
2497
- "policies": {},
2498
- "checkConstraints": {},
2499
- "isRLSEnabled": false
2500
- },
2501
- "public.junior_conversation_read_positions": {
2502
- "name": "junior_conversation_read_positions",
2503
- "schema": "",
2504
- "columns": {
2505
- "user_id": {
2506
- "name": "user_id",
2507
- "type": "text",
2508
- "primaryKey": false,
2509
- "notNull": true
2510
- },
2511
- "conversation_id": {
2512
- "name": "conversation_id",
2513
- "type": "text",
2514
- "primaryKey": false,
2515
- "notNull": true
2516
- },
2517
- "last_read_seq": {
2518
- "name": "last_read_seq",
2519
- "type": "integer",
2520
- "primaryKey": false,
2521
- "notNull": true
2522
- },
2523
- "updated_at": {
2524
- "name": "updated_at",
2525
- "type": "timestamp with time zone",
2526
- "primaryKey": false,
2527
- "notNull": true
2528
- }
2529
- },
2530
- "indexes": {},
2531
- "foreignKeys": {
2532
- "junior_conversation_read_positions_user_id_junior_users_id_fk": {
2533
- "name": "junior_conversation_read_positions_user_id_junior_users_id_fk",
2534
- "tableFrom": "junior_conversation_read_positions",
2535
- "tableTo": "junior_users",
2536
- "columnsFrom": ["user_id"],
2537
- "columnsTo": ["id"],
2538
- "onDelete": "no action",
2539
- "onUpdate": "no action"
2540
- },
2541
- "junior_conversation_read_positions_conversation_id_junior_conversations_conversation_id_fk": {
2542
- "name": "junior_conversation_read_positions_conversation_id_junior_conversations_conversation_id_fk",
2543
- "tableFrom": "junior_conversation_read_positions",
2544
- "tableTo": "junior_conversations",
2545
- "columnsFrom": ["conversation_id"],
2546
- "columnsTo": ["conversation_id"],
2547
- "onDelete": "no action",
2548
- "onUpdate": "no action"
2549
- }
2550
- },
2551
- "compositePrimaryKeys": {
2552
- "junior_conversation_read_positions_user_conversation_pk": {
2553
- "name": "junior_conversation_read_positions_user_conversation_pk",
2554
- "columns": ["user_id", "conversation_id"]
2555
- }
2556
- },
2557
- "uniqueConstraints": {},
2558
- "policies": {},
2559
- "checkConstraints": {},
2560
- "isRLSEnabled": false
2561
- },
2562
- "public.junior_conversations": {
2563
- "name": "junior_conversations",
2564
- "schema": "",
2565
- "columns": {
2566
- "conversation_id": {
2567
- "name": "conversation_id",
2568
- "type": "text",
2569
- "primaryKey": true,
2570
- "notNull": true
2571
- },
2572
- "schema_version": {
2573
- "name": "schema_version",
2574
- "type": "integer",
2575
- "primaryKey": false,
2576
- "notNull": true,
2577
- "default": 1
2578
- },
2579
- "source": {
2580
- "name": "source",
2581
- "type": "text",
2582
- "primaryKey": false,
2583
- "notNull": false
2584
- },
2585
- "source_json": {
2586
- "name": "source_json",
2587
- "type": "jsonb",
2588
- "primaryKey": false,
2589
- "notNull": false
2590
- },
2591
- "location_json": {
2592
- "name": "location_json",
2593
- "type": "jsonb",
2594
- "primaryKey": false,
2595
- "notNull": false
2596
- },
2597
- "destination_id": {
2598
- "name": "destination_id",
2599
- "type": "text",
2600
- "primaryKey": false,
2601
- "notNull": false
2602
- },
2603
- "destination_json": {
2604
- "name": "destination_json",
2605
- "type": "jsonb",
2606
- "primaryKey": false,
2607
- "notNull": false
2608
- },
2609
- "actor_identity_id": {
2610
- "name": "actor_identity_id",
2611
- "type": "text",
2612
- "primaryKey": false,
2613
- "notNull": false
2614
- },
2615
- "creator_identity_id": {
2616
- "name": "creator_identity_id",
2617
- "type": "text",
2618
- "primaryKey": false,
2619
- "notNull": false
2620
- },
2621
- "credential_subject_identity_id": {
2622
- "name": "credential_subject_identity_id",
2623
- "type": "text",
2624
- "primaryKey": false,
2625
- "notNull": false
2626
- },
2627
- "actor_json": {
2628
- "name": "actor_json",
2629
- "type": "jsonb",
2630
- "primaryKey": false,
2631
- "notNull": false
2632
- },
2633
- "channel_name": {
2634
- "name": "channel_name",
2635
- "type": "text",
2636
- "primaryKey": false,
2637
- "notNull": false
2638
- },
2639
- "title": {
2640
- "name": "title",
2641
- "type": "text",
2642
- "primaryKey": false,
2643
- "notNull": false
2644
- },
2645
- "created_at": {
2646
- "name": "created_at",
2647
- "type": "timestamp with time zone",
2648
- "primaryKey": false,
2649
- "notNull": true
2650
- },
2651
- "last_activity_at": {
2652
- "name": "last_activity_at",
2653
- "type": "timestamp with time zone",
2654
- "primaryKey": false,
2655
- "notNull": true
2656
- },
2657
- "last_message_at": {
2658
- "name": "last_message_at",
2659
- "type": "timestamp with time zone",
2660
- "primaryKey": false,
2661
- "notNull": false
2662
- },
2663
- "updated_at": {
2664
- "name": "updated_at",
2665
- "type": "timestamp with time zone",
2666
- "primaryKey": false,
2667
- "notNull": true
2668
- },
2669
- "execution_updated_at": {
2670
- "name": "execution_updated_at",
2671
- "type": "timestamp with time zone",
2672
- "primaryKey": false,
2673
- "notNull": false
2674
- },
2675
- "execution_status": {
2676
- "name": "execution_status",
2677
- "type": "text",
2678
- "primaryKey": false,
2679
- "notNull": true
2680
- },
2681
- "run_id": {
2682
- "name": "run_id",
2683
- "type": "text",
2684
- "primaryKey": false,
2685
- "notNull": false
2686
- },
2687
- "last_checkpoint_at": {
2688
- "name": "last_checkpoint_at",
2689
- "type": "timestamp with time zone",
2690
- "primaryKey": false,
2691
- "notNull": false
2692
- },
2693
- "last_enqueued_at": {
2694
- "name": "last_enqueued_at",
2695
- "type": "timestamp with time zone",
2696
- "primaryKey": false,
2697
- "notNull": false
2698
- },
2699
- "parent_conversation_id": {
2700
- "name": "parent_conversation_id",
2701
- "type": "text",
2702
- "primaryKey": false,
2703
- "notNull": false
2704
- },
2705
- "kind": {
2706
- "name": "kind",
2707
- "type": "text",
2708
- "primaryKey": false,
2709
- "notNull": false
2710
- },
2711
- "archived_at": {
2712
- "name": "archived_at",
2713
- "type": "timestamp with time zone",
2714
- "primaryKey": false,
2715
- "notNull": false
2716
- },
2717
- "child_archived_at": {
2718
- "name": "child_archived_at",
2719
- "type": "timestamp with time zone",
2720
- "primaryKey": false,
2721
- "notNull": false
2722
- },
2723
- "forked_from_conversation_id": {
2724
- "name": "forked_from_conversation_id",
2725
- "type": "text",
2726
- "primaryKey": false,
2727
- "notNull": false
2728
- },
2729
- "quick_question_at": {
2730
- "name": "quick_question_at",
2731
- "type": "timestamp with time zone",
2732
- "primaryKey": false,
2733
- "notNull": false
2734
- },
2735
- "root_conversation_id": {
2736
- "name": "root_conversation_id",
2737
- "type": "text",
2738
- "primaryKey": false,
2739
- "notNull": false
2740
- },
2741
- "transcript_purged_at": {
2742
- "name": "transcript_purged_at",
2743
- "type": "timestamp with time zone",
2744
- "primaryKey": false,
2745
- "notNull": false
2746
- },
2747
- "stopped_at": {
2748
- "name": "stopped_at",
2749
- "type": "timestamp with time zone",
2750
- "primaryKey": false,
2751
- "notNull": false
2752
- },
2753
- "delivery_paused_at": {
2754
- "name": "delivery_paused_at",
2755
- "type": "timestamp with time zone",
2756
- "primaryKey": false,
2757
- "notNull": false
2758
- },
2759
- "duration_ms": {
2760
- "name": "duration_ms",
2761
- "type": "integer",
2762
- "primaryKey": false,
2763
- "notNull": true,
2764
- "default": 0
2765
- },
2766
- "usage_json": {
2767
- "name": "usage_json",
2768
- "type": "jsonb",
2769
- "primaryKey": false,
2770
- "notNull": false
2771
- },
2772
- "execution_duration_ms": {
2773
- "name": "execution_duration_ms",
2774
- "type": "integer",
2775
- "primaryKey": false,
2776
- "notNull": true,
2777
- "default": 0
2778
- },
2779
- "execution_usage_json": {
2780
- "name": "execution_usage_json",
2781
- "type": "jsonb",
2782
- "primaryKey": false,
2783
- "notNull": false
2784
- },
2785
- "metric_run_id": {
2786
- "name": "metric_run_id",
2787
- "type": "text",
2788
- "primaryKey": false,
2789
- "notNull": false
2790
- },
2791
- "detail_version": {
2792
- "name": "detail_version",
2793
- "type": "integer",
2794
- "primaryKey": false,
2795
- "notNull": true,
2796
- "default": 0
2797
- }
2798
- },
2799
- "indexes": {
2800
- "junior_conversations_last_activity_idx": {
2801
- "name": "junior_conversations_last_activity_idx",
2802
- "columns": [
2803
- {
2804
- "expression": "last_activity_at",
2805
- "isExpression": false,
2806
- "asc": false,
2807
- "nulls": "last"
2808
- },
2809
- {
2810
- "expression": "conversation_id",
2811
- "isExpression": false,
2812
- "asc": true,
2813
- "nulls": "last"
2814
- }
2815
- ],
2816
- "isUnique": false,
2817
- "concurrently": false,
2818
- "method": "btree",
2819
- "with": {}
2820
- },
2821
- "junior_conversations_active_idx": {
2822
- "name": "junior_conversations_active_idx",
2823
- "columns": [
2824
- {
2825
- "expression": "coalesce(\"execution_updated_at\", \"updated_at\")",
2826
- "asc": true,
2827
- "isExpression": true,
2828
- "nulls": "last"
2829
- },
2830
- {
2831
- "expression": "conversation_id",
2832
- "isExpression": false,
2833
- "asc": true,
2834
- "nulls": "last"
2835
- }
2836
- ],
2837
- "isUnique": false,
2838
- "where": "\"junior_conversations\".\"execution_status\" <> 'idle'",
2839
- "concurrently": false,
2840
- "method": "btree",
2841
- "with": {}
2842
- },
2843
- "junior_conversations_destination_activity_idx": {
2844
- "name": "junior_conversations_destination_activity_idx",
2845
- "columns": [
2846
- {
2847
- "expression": "destination_id",
2848
- "isExpression": false,
2849
- "asc": true,
2850
- "nulls": "last"
2851
- },
2852
- {
2853
- "expression": "last_activity_at",
2854
- "isExpression": false,
2855
- "asc": false,
2856
- "nulls": "last"
2857
- }
2858
- ],
2859
- "isUnique": false,
2860
- "concurrently": false,
2861
- "method": "btree",
2862
- "with": {}
2863
- },
2864
- "junior_conversations_actor_activity_idx": {
2865
- "name": "junior_conversations_actor_activity_idx",
2866
- "columns": [
2867
- {
2868
- "expression": "actor_identity_id",
2869
- "isExpression": false,
2870
- "asc": true,
2871
- "nulls": "last"
2872
- },
2873
- {
2874
- "expression": "last_activity_at",
2875
- "isExpression": false,
2876
- "asc": false,
2877
- "nulls": "last"
2878
- }
2879
- ],
2880
- "isUnique": false,
2881
- "concurrently": false,
2882
- "method": "btree",
2883
- "with": {}
2884
- },
2885
- "junior_conversations_parent_idx": {
2886
- "name": "junior_conversations_parent_idx",
2887
- "columns": [
2888
- {
2889
- "expression": "parent_conversation_id",
2890
- "isExpression": false,
2891
- "asc": true,
2892
- "nulls": "last"
2893
- }
2894
- ],
2895
- "isUnique": false,
2896
- "concurrently": false,
2897
- "method": "btree",
2898
- "with": {}
2899
- },
2900
- "junior_conversations_forked_from_idx": {
2901
- "name": "junior_conversations_forked_from_idx",
2902
- "columns": [
2903
- {
2904
- "expression": "forked_from_conversation_id",
2905
- "isExpression": false,
2906
- "asc": true,
2907
- "nulls": "last"
2908
- }
2909
- ],
2910
- "isUnique": false,
2911
- "concurrently": false,
2912
- "method": "btree",
2913
- "with": {}
2914
- },
2915
- "junior_conversations_root_idx": {
2916
- "name": "junior_conversations_root_idx",
2917
- "columns": [
2918
- {
2919
- "expression": "root_conversation_id",
2920
- "isExpression": false,
2921
- "asc": true,
2922
- "nulls": "last"
2923
- }
2924
- ],
2925
- "isUnique": false,
2926
- "concurrently": false,
2927
- "method": "btree",
2928
- "with": {}
2929
- }
2930
- },
2931
- "foreignKeys": {
2932
- "junior_conversations_destination_id_junior_destinations_id_fk": {
2933
- "name": "junior_conversations_destination_id_junior_destinations_id_fk",
2934
- "tableFrom": "junior_conversations",
2935
- "tableTo": "junior_destinations",
2936
- "columnsFrom": ["destination_id"],
2937
- "columnsTo": ["id"],
2938
- "onDelete": "no action",
2939
- "onUpdate": "no action"
2940
- },
2941
- "junior_conversations_actor_identity_id_junior_identities_id_fk": {
2942
- "name": "junior_conversations_actor_identity_id_junior_identities_id_fk",
2943
- "tableFrom": "junior_conversations",
2944
- "tableTo": "junior_identities",
2945
- "columnsFrom": ["actor_identity_id"],
2946
- "columnsTo": ["id"],
2947
- "onDelete": "no action",
2948
- "onUpdate": "no action"
2949
- },
2950
- "junior_conversations_creator_identity_id_junior_identities_id_fk": {
2951
- "name": "junior_conversations_creator_identity_id_junior_identities_id_fk",
2952
- "tableFrom": "junior_conversations",
2953
- "tableTo": "junior_identities",
2954
- "columnsFrom": ["creator_identity_id"],
2955
- "columnsTo": ["id"],
2956
- "onDelete": "no action",
2957
- "onUpdate": "no action"
2958
- },
2959
- "junior_conversations_credential_subject_identity_id_junior_identities_id_fk": {
2960
- "name": "junior_conversations_credential_subject_identity_id_junior_identities_id_fk",
2961
- "tableFrom": "junior_conversations",
2962
- "tableTo": "junior_identities",
2963
- "columnsFrom": ["credential_subject_identity_id"],
2964
- "columnsTo": ["id"],
2965
- "onDelete": "no action",
2966
- "onUpdate": "no action"
2967
- },
2968
- "junior_conversations_parent_conversation_id_junior_conversations_conversation_id_fk": {
2969
- "name": "junior_conversations_parent_conversation_id_junior_conversations_conversation_id_fk",
2970
- "tableFrom": "junior_conversations",
2971
- "tableTo": "junior_conversations",
2972
- "columnsFrom": ["parent_conversation_id"],
2973
- "columnsTo": ["conversation_id"],
2974
- "onDelete": "no action",
2975
- "onUpdate": "no action"
2976
- },
2977
- "junior_conversations_forked_from_conversation_id_junior_conversations_conversation_id_fk": {
2978
- "name": "junior_conversations_forked_from_conversation_id_junior_conversations_conversation_id_fk",
2979
- "tableFrom": "junior_conversations",
2980
- "tableTo": "junior_conversations",
2981
- "columnsFrom": ["forked_from_conversation_id"],
2982
- "columnsTo": ["conversation_id"],
2983
- "onDelete": "set null",
2984
- "onUpdate": "no action"
2985
- },
2986
- "junior_conversations_root_conversation_id_junior_conversations_conversation_id_fk": {
2987
- "name": "junior_conversations_root_conversation_id_junior_conversations_conversation_id_fk",
2988
- "tableFrom": "junior_conversations",
2989
- "tableTo": "junior_conversations",
2990
- "columnsFrom": ["root_conversation_id"],
2991
- "columnsTo": ["conversation_id"],
2992
- "onDelete": "no action",
2993
- "onUpdate": "no action"
2994
- }
2995
- },
2996
- "compositePrimaryKeys": {},
2997
- "uniqueConstraints": {},
2998
- "policies": {},
2999
- "checkConstraints": {
3000
- "junior_conversations_kind_check": {
3001
- "name": "junior_conversations_kind_check",
3002
- "value": "\"junior_conversations\".\"kind\" in ('root', 'automation', 'thread', 'task')"
3003
- },
3004
- "junior_conversations_kind_parent_check": {
3005
- "name": "junior_conversations_kind_parent_check",
3006
- "value": "\"junior_conversations\".\"kind\" is null or ((\"junior_conversations\".\"kind\" in ('root', 'automation')) = (\"junior_conversations\".\"parent_conversation_id\" is null))"
3007
- }
3008
- },
3009
- "isRLSEnabled": false
3010
- },
3011
- "public.junior_destinations": {
3012
- "name": "junior_destinations",
3013
- "schema": "",
3014
- "columns": {
3015
- "id": {
3016
- "name": "id",
3017
- "type": "text",
3018
- "primaryKey": true,
3019
- "notNull": true
3020
- },
3021
- "provider": {
3022
- "name": "provider",
3023
- "type": "text",
3024
- "primaryKey": false,
3025
- "notNull": true
3026
- },
3027
- "provider_tenant_id": {
3028
- "name": "provider_tenant_id",
3029
- "type": "text",
3030
- "primaryKey": false,
3031
- "notNull": true,
3032
- "default": "''"
3033
- },
3034
- "provider_destination_id": {
3035
- "name": "provider_destination_id",
3036
- "type": "text",
3037
- "primaryKey": false,
3038
- "notNull": true
3039
- },
3040
- "kind": {
3041
- "name": "kind",
3042
- "type": "text",
3043
- "primaryKey": false,
3044
- "notNull": true
3045
- },
3046
- "parent_destination_id": {
3047
- "name": "parent_destination_id",
3048
- "type": "text",
3049
- "primaryKey": false,
3050
- "notNull": false
3051
- },
3052
- "display_name": {
3053
- "name": "display_name",
3054
- "type": "text",
3055
- "primaryKey": false,
3056
- "notNull": false
3057
- },
3058
- "visibility": {
3059
- "name": "visibility",
3060
- "type": "text",
3061
- "primaryKey": false,
3062
- "notNull": true,
3063
- "default": "'unknown'"
3064
- },
3065
- "metadata_json": {
3066
- "name": "metadata_json",
3067
- "type": "jsonb",
3068
- "primaryKey": false,
3069
- "notNull": false
3070
- },
3071
- "created_at": {
3072
- "name": "created_at",
3073
- "type": "timestamp with time zone",
3074
- "primaryKey": false,
3075
- "notNull": true
3076
- },
3077
- "updated_at": {
3078
- "name": "updated_at",
3079
- "type": "timestamp with time zone",
3080
- "primaryKey": false,
3081
- "notNull": true
3082
- }
3083
- },
3084
- "indexes": {
3085
- "junior_destinations_provider_destination_uidx": {
3086
- "name": "junior_destinations_provider_destination_uidx",
3087
- "columns": [
3088
- {
3089
- "expression": "provider",
3090
- "isExpression": false,
3091
- "asc": true,
3092
- "nulls": "last"
3093
- },
3094
- {
3095
- "expression": "provider_tenant_id",
3096
- "isExpression": false,
3097
- "asc": true,
3098
- "nulls": "last"
3099
- },
3100
- {
3101
- "expression": "provider_destination_id",
3102
- "isExpression": false,
3103
- "asc": true,
3104
- "nulls": "last"
3105
- }
3106
- ],
3107
- "isUnique": true,
3108
- "concurrently": false,
3109
- "method": "btree",
3110
- "with": {}
3111
- },
3112
- "junior_destinations_provider_kind_idx": {
3113
- "name": "junior_destinations_provider_kind_idx",
3114
- "columns": [
3115
- {
3116
- "expression": "provider",
3117
- "isExpression": false,
3118
- "asc": true,
3119
- "nulls": "last"
3120
- },
3121
- {
3122
- "expression": "kind",
3123
- "isExpression": false,
3124
- "asc": true,
3125
- "nulls": "last"
3126
- }
3127
- ],
3128
- "isUnique": false,
3129
- "concurrently": false,
3130
- "method": "btree",
3131
- "with": {}
3132
- }
3133
- },
3134
- "foreignKeys": {},
3135
- "compositePrimaryKeys": {},
3136
- "uniqueConstraints": {},
3137
- "policies": {},
3138
- "checkConstraints": {},
3139
- "isRLSEnabled": false
3140
- },
3141
- "public.junior_identities": {
3142
- "name": "junior_identities",
3143
- "schema": "",
3144
- "columns": {
3145
- "id": {
3146
- "name": "id",
3147
- "type": "text",
3148
- "primaryKey": true,
3149
- "notNull": true
3150
- },
3151
- "kind": {
3152
- "name": "kind",
3153
- "type": "text",
3154
- "primaryKey": false,
3155
- "notNull": true
3156
- },
3157
- "provider": {
3158
- "name": "provider",
3159
- "type": "text",
3160
- "primaryKey": false,
3161
- "notNull": true
3162
- },
3163
- "provider_tenant_id": {
3164
- "name": "provider_tenant_id",
3165
- "type": "text",
3166
- "primaryKey": false,
3167
- "notNull": true,
3168
- "default": "''"
3169
- },
3170
- "provider_subject_id": {
3171
- "name": "provider_subject_id",
3172
- "type": "text",
3173
- "primaryKey": false,
3174
- "notNull": true
3175
- },
3176
- "display_name": {
3177
- "name": "display_name",
3178
- "type": "text",
3179
- "primaryKey": false,
3180
- "notNull": false
3181
- },
3182
- "handle": {
3183
- "name": "handle",
3184
- "type": "text",
3185
- "primaryKey": false,
3186
- "notNull": false
3187
- },
3188
- "email": {
3189
- "name": "email",
3190
- "type": "text",
3191
- "primaryKey": false,
3192
- "notNull": false
3193
- },
3194
- "avatar_url": {
3195
- "name": "avatar_url",
3196
- "type": "text",
3197
- "primaryKey": false,
3198
- "notNull": false
3199
- },
3200
- "metadata_json": {
3201
- "name": "metadata_json",
3202
- "type": "jsonb",
3203
- "primaryKey": false,
3204
- "notNull": false
3205
- },
3206
- "created_at": {
3207
- "name": "created_at",
3208
- "type": "timestamp with time zone",
3209
- "primaryKey": false,
3210
- "notNull": true
3211
- },
3212
- "updated_at": {
3213
- "name": "updated_at",
3214
- "type": "timestamp with time zone",
3215
- "primaryKey": false,
3216
- "notNull": true
3217
- },
3218
- "user_id": {
3219
- "name": "user_id",
3220
- "type": "text",
3221
- "primaryKey": false,
3222
- "notNull": false
3223
- },
3224
- "email_normalized": {
3225
- "name": "email_normalized",
3226
- "type": "text",
3227
- "primaryKey": false,
3228
- "notNull": false
3229
- },
3230
- "email_verified": {
3231
- "name": "email_verified",
3232
- "type": "boolean",
3233
- "primaryKey": false,
3234
- "notNull": true,
3235
- "default": false
3236
- },
3237
- "signed_in_at": {
3238
- "name": "signed_in_at",
3239
- "type": "timestamp with time zone",
3240
- "primaryKey": false,
3241
- "notNull": false
3242
- }
3243
- },
3244
- "indexes": {
3245
- "junior_identities_provider_subject_uidx": {
3246
- "name": "junior_identities_provider_subject_uidx",
3247
- "columns": [
3248
- {
3249
- "expression": "provider",
3250
- "isExpression": false,
3251
- "asc": true,
3252
- "nulls": "last"
3253
- },
3254
- {
3255
- "expression": "provider_tenant_id",
3256
- "isExpression": false,
3257
- "asc": true,
3258
- "nulls": "last"
3259
- },
3260
- {
3261
- "expression": "provider_subject_id",
3262
- "isExpression": false,
3263
- "asc": true,
3264
- "nulls": "last"
3265
- }
3266
- ],
3267
- "isUnique": true,
3268
- "concurrently": false,
3269
- "method": "btree",
3270
- "with": {}
3271
- },
3272
- "junior_identities_user_idx": {
3273
- "name": "junior_identities_user_idx",
3274
- "columns": [
3275
- {
3276
- "expression": "user_id",
3277
- "isExpression": false,
3278
- "asc": true,
3279
- "nulls": "last"
3280
- }
3281
- ],
3282
- "isUnique": false,
3283
- "concurrently": false,
3284
- "method": "btree",
3285
- "with": {}
3286
- },
3287
- "junior_identities_verified_email_idx": {
3288
- "name": "junior_identities_verified_email_idx",
3289
- "columns": [
3290
- {
3291
- "expression": "email_normalized",
3292
- "isExpression": false,
3293
- "asc": true,
3294
- "nulls": "last"
3295
- }
3296
- ],
3297
- "isUnique": false,
3298
- "where": "\"junior_identities\".\"email_verified\" = true AND \"junior_identities\".\"email_normalized\" IS NOT NULL",
3299
- "concurrently": false,
3300
- "method": "btree",
3301
- "with": {}
3302
- },
3303
- "junior_identities_kind_provider_idx": {
3304
- "name": "junior_identities_kind_provider_idx",
3305
- "columns": [
3306
- {
3307
- "expression": "kind",
3308
- "isExpression": false,
3309
- "asc": true,
3310
- "nulls": "last"
3311
- },
3312
- {
3313
- "expression": "provider",
3314
- "isExpression": false,
3315
- "asc": true,
3316
- "nulls": "last"
3317
- }
3318
- ],
3319
- "isUnique": false,
3320
- "concurrently": false,
3321
- "method": "btree",
3322
- "with": {}
3323
- }
3324
- },
3325
- "foreignKeys": {
3326
- "junior_identities_user_id_junior_users_id_fk": {
3327
- "name": "junior_identities_user_id_junior_users_id_fk",
3328
- "tableFrom": "junior_identities",
3329
- "tableTo": "junior_users",
3330
- "columnsFrom": ["user_id"],
3331
- "columnsTo": ["id"],
3332
- "onDelete": "no action",
3333
- "onUpdate": "no action"
3334
- }
3335
- },
3336
- "compositePrimaryKeys": {},
3337
- "uniqueConstraints": {},
3338
- "policies": {},
3339
- "checkConstraints": {},
3340
- "isRLSEnabled": false
3341
- },
3342
- "public.junior_location_configurations": {
3343
- "name": "junior_location_configurations",
3344
- "schema": "",
3345
- "columns": {
3346
- "location_id": {
3347
- "name": "location_id",
3348
- "type": "text",
3349
- "primaryKey": false,
3350
- "notNull": true
3351
- },
3352
- "key": {
3353
- "name": "key",
3354
- "type": "text",
3355
- "primaryKey": false,
3356
- "notNull": true
3357
- },
3358
- "value": {
3359
- "name": "value",
3360
- "type": "text",
3361
- "primaryKey": false,
3362
- "notNull": true
3363
- },
3364
- "updated_at": {
3365
- "name": "updated_at",
3366
- "type": "timestamp with time zone",
3367
- "primaryKey": false,
3368
- "notNull": true
3369
- },
3370
- "updated_by": {
3371
- "name": "updated_by",
3372
- "type": "text",
3373
- "primaryKey": false,
3374
- "notNull": false
3375
- },
3376
- "source": {
3377
- "name": "source",
3378
- "type": "text",
3379
- "primaryKey": false,
3380
- "notNull": false
3381
- },
3382
- "expires_at": {
3383
- "name": "expires_at",
3384
- "type": "text",
3385
- "primaryKey": false,
3386
- "notNull": false
3387
- }
3388
- },
3389
- "indexes": {},
3390
- "foreignKeys": {
3391
- "junior_location_configurations_location_id_junior_destinations_id_fk": {
3392
- "name": "junior_location_configurations_location_id_junior_destinations_id_fk",
3393
- "tableFrom": "junior_location_configurations",
3394
- "tableTo": "junior_destinations",
3395
- "columnsFrom": ["location_id"],
3396
- "columnsTo": ["id"],
3397
- "onDelete": "cascade",
3398
- "onUpdate": "no action"
3399
- }
3400
- },
3401
- "compositePrimaryKeys": {
3402
- "junior_location_configurations_location_id_key_pk": {
3403
- "name": "junior_location_configurations_location_id_key_pk",
3404
- "columns": ["location_id", "key"]
3405
- }
3406
- },
3407
- "uniqueConstraints": {},
3408
- "policies": {},
3409
- "checkConstraints": {},
3410
- "isRLSEnabled": false
3411
- },
3412
- "public.junior_push_subscriptions": {
3413
- "name": "junior_push_subscriptions",
3414
- "schema": "",
3415
- "columns": {
3416
- "id": {
3417
- "name": "id",
3418
- "type": "text",
3419
- "primaryKey": true,
3420
- "notNull": true
3421
- },
3422
- "user_id": {
3423
- "name": "user_id",
3424
- "type": "text",
3425
- "primaryKey": false,
3426
- "notNull": true
3427
- },
3428
- "endpoint": {
3429
- "name": "endpoint",
3430
- "type": "text",
3431
- "primaryKey": false,
3432
- "notNull": true
3433
- },
3434
- "p256dh": {
3435
- "name": "p256dh",
3436
- "type": "text",
3437
- "primaryKey": false,
3438
- "notNull": true
3439
- },
3440
- "auth": {
3441
- "name": "auth",
3442
- "type": "text",
3443
- "primaryKey": false,
3444
- "notNull": true
3445
- },
3446
- "created_at": {
3447
- "name": "created_at",
3448
- "type": "timestamp with time zone",
3449
- "primaryKey": false,
3450
- "notNull": true
3451
- },
3452
- "updated_at": {
3453
- "name": "updated_at",
3454
- "type": "timestamp with time zone",
3455
- "primaryKey": false,
3456
- "notNull": true
3457
- }
3458
- },
3459
- "indexes": {
3460
- "junior_push_subscriptions_endpoint_uidx": {
3461
- "name": "junior_push_subscriptions_endpoint_uidx",
3462
- "columns": [
3463
- {
3464
- "expression": "endpoint",
3465
- "isExpression": false,
3466
- "asc": true,
3467
- "nulls": "last"
3468
- }
3469
- ],
3470
- "isUnique": true,
3471
- "concurrently": false,
3472
- "method": "btree",
3473
- "with": {}
3474
- },
3475
- "junior_push_subscriptions_user_idx": {
3476
- "name": "junior_push_subscriptions_user_idx",
3477
- "columns": [
3478
- {
3479
- "expression": "user_id",
3480
- "isExpression": false,
3481
- "asc": true,
3482
- "nulls": "last"
3483
- }
3484
- ],
3485
- "isUnique": false,
3486
- "concurrently": false,
3487
- "method": "btree",
3488
- "with": {}
3489
- }
3490
- },
3491
- "foreignKeys": {
3492
- "junior_push_subscriptions_user_id_junior_users_id_fk": {
3493
- "name": "junior_push_subscriptions_user_id_junior_users_id_fk",
3494
- "tableFrom": "junior_push_subscriptions",
3495
- "tableTo": "junior_users",
3496
- "columnsFrom": ["user_id"],
3497
- "columnsTo": ["id"],
3498
- "onDelete": "cascade",
3499
- "onUpdate": "no action"
3500
- }
3501
- },
3502
- "compositePrimaryKeys": {},
3503
- "uniqueConstraints": {},
3504
- "policies": {},
3505
- "checkConstraints": {},
3506
- "isRLSEnabled": false
3507
- },
3508
- "public.junior_review_item_assignees": {
3509
- "name": "junior_review_item_assignees",
3510
- "schema": "",
3511
- "columns": {
3512
- "item_id": {
3513
- "name": "item_id",
3514
- "type": "text",
3515
- "primaryKey": false,
3516
- "notNull": true
3517
- },
3518
- "user_id": {
3519
- "name": "user_id",
3520
- "type": "text",
3521
- "primaryKey": false,
3522
- "notNull": true
3523
- }
3524
- },
3525
- "indexes": {
3526
- "junior_review_item_assignees_user_idx": {
3527
- "name": "junior_review_item_assignees_user_idx",
3528
- "columns": [
3529
- {
3530
- "expression": "user_id",
3531
- "isExpression": false,
3532
- "asc": true,
3533
- "nulls": "last"
3534
- }
3535
- ],
3536
- "isUnique": false,
3537
- "concurrently": false,
3538
- "method": "btree",
3539
- "with": {}
3540
- }
3541
- },
3542
- "foreignKeys": {
3543
- "junior_review_item_assignees_item_id_junior_review_items_id_fk": {
3544
- "name": "junior_review_item_assignees_item_id_junior_review_items_id_fk",
3545
- "tableFrom": "junior_review_item_assignees",
3546
- "tableTo": "junior_review_items",
3547
- "columnsFrom": ["item_id"],
3548
- "columnsTo": ["id"],
3549
- "onDelete": "cascade",
3550
- "onUpdate": "no action"
3551
- },
3552
- "junior_review_item_assignees_user_id_junior_users_id_fk": {
3553
- "name": "junior_review_item_assignees_user_id_junior_users_id_fk",
3554
- "tableFrom": "junior_review_item_assignees",
3555
- "tableTo": "junior_users",
3556
- "columnsFrom": ["user_id"],
3557
- "columnsTo": ["id"],
3558
- "onDelete": "cascade",
3559
- "onUpdate": "no action"
3560
- }
3561
- },
3562
- "compositePrimaryKeys": {
3563
- "junior_review_item_assignees_item_id_user_id_pk": {
3564
- "name": "junior_review_item_assignees_item_id_user_id_pk",
3565
- "columns": ["item_id", "user_id"]
3566
- }
3567
- },
3568
- "uniqueConstraints": {},
3569
- "policies": {},
3570
- "checkConstraints": {},
3571
- "isRLSEnabled": false
3572
- },
3573
- "public.junior_review_item_conversations": {
3574
- "name": "junior_review_item_conversations",
3575
- "schema": "",
3576
- "columns": {
3577
- "item_id": {
3578
- "name": "item_id",
3579
- "type": "text",
3580
- "primaryKey": false,
3581
- "notNull": true
3582
- },
3583
- "conversation_id": {
3584
- "name": "conversation_id",
3585
- "type": "text",
3586
- "primaryKey": false,
3587
- "notNull": true
3588
- }
3589
- },
3590
- "indexes": {
3591
- "junior_review_item_conversations_conversation_idx": {
3592
- "name": "junior_review_item_conversations_conversation_idx",
3593
- "columns": [
3594
- {
3595
- "expression": "conversation_id",
3596
- "isExpression": false,
3597
- "asc": true,
3598
- "nulls": "last"
3599
- }
3600
- ],
3601
- "isUnique": false,
3602
- "concurrently": false,
3603
- "method": "btree",
3604
- "with": {}
3605
- }
3606
- },
3607
- "foreignKeys": {
3608
- "junior_review_item_conversations_item_id_junior_review_items_id_fk": {
3609
- "name": "junior_review_item_conversations_item_id_junior_review_items_id_fk",
3610
- "tableFrom": "junior_review_item_conversations",
3611
- "tableTo": "junior_review_items",
3612
- "columnsFrom": ["item_id"],
3613
- "columnsTo": ["id"],
3614
- "onDelete": "cascade",
3615
- "onUpdate": "no action"
3616
- },
3617
- "junior_review_item_conversations_conversation_id_junior_conversations_conversation_id_fk": {
3618
- "name": "junior_review_item_conversations_conversation_id_junior_conversations_conversation_id_fk",
3619
- "tableFrom": "junior_review_item_conversations",
3620
- "tableTo": "junior_conversations",
3621
- "columnsFrom": ["conversation_id"],
3622
- "columnsTo": ["conversation_id"],
3623
- "onDelete": "cascade",
3624
- "onUpdate": "no action"
3625
- }
3626
- },
3627
- "compositePrimaryKeys": {
3628
- "junior_review_item_conversations_item_id_conversation_id_pk": {
3629
- "name": "junior_review_item_conversations_item_id_conversation_id_pk",
3630
- "columns": ["item_id", "conversation_id"]
3631
- }
3632
- },
3633
- "uniqueConstraints": {},
3634
- "policies": {},
3635
- "checkConstraints": {},
3636
- "isRLSEnabled": false
3637
- },
3638
- "public.junior_review_item_slack_cards": {
3639
- "name": "junior_review_item_slack_cards",
3640
- "schema": "",
3641
- "columns": {
3642
- "item_id": {
3643
- "name": "item_id",
3644
- "type": "text",
3645
- "primaryKey": false,
3646
- "notNull": true
3647
- },
3648
- "conversation_id": {
3649
- "name": "conversation_id",
3650
- "type": "text",
3651
- "primaryKey": false,
3652
- "notNull": true
3653
- },
3654
- "team_id": {
3655
- "name": "team_id",
3656
- "type": "text",
3657
- "primaryKey": false,
3658
- "notNull": true
3659
- },
3660
- "channel_id": {
3661
- "name": "channel_id",
3662
- "type": "text",
3663
- "primaryKey": false,
3664
- "notNull": true
3665
- },
3666
- "message_ts": {
3667
- "name": "message_ts",
3668
- "type": "text",
3669
- "primaryKey": false,
3670
- "notNull": true
3671
- }
3672
- },
3673
- "indexes": {},
3674
- "foreignKeys": {
3675
- "junior_review_item_slack_cards_item_id_junior_review_items_id_fk": {
3676
- "name": "junior_review_item_slack_cards_item_id_junior_review_items_id_fk",
3677
- "tableFrom": "junior_review_item_slack_cards",
3678
- "tableTo": "junior_review_items",
3679
- "columnsFrom": ["item_id"],
3680
- "columnsTo": ["id"],
3681
- "onDelete": "cascade",
3682
- "onUpdate": "no action"
3683
- },
3684
- "junior_review_item_slack_cards_conversation_id_junior_conversations_conversation_id_fk": {
3685
- "name": "junior_review_item_slack_cards_conversation_id_junior_conversations_conversation_id_fk",
3686
- "tableFrom": "junior_review_item_slack_cards",
3687
- "tableTo": "junior_conversations",
3688
- "columnsFrom": ["conversation_id"],
3689
- "columnsTo": ["conversation_id"],
3690
- "onDelete": "cascade",
3691
- "onUpdate": "no action"
3692
- }
3693
- },
3694
- "compositePrimaryKeys": {
3695
- "junior_review_item_slack_cards_item_id_conversation_id_pk": {
3696
- "name": "junior_review_item_slack_cards_item_id_conversation_id_pk",
3697
- "columns": ["item_id", "conversation_id"]
3698
- }
3699
- },
3700
- "uniqueConstraints": {},
3701
- "policies": {},
3702
- "checkConstraints": {},
3703
- "isRLSEnabled": false
3704
- },
3705
- "public.junior_review_items": {
3706
- "name": "junior_review_items",
3707
- "schema": "",
3708
- "columns": {
3709
- "id": {
3710
- "name": "id",
3711
- "type": "text",
3712
- "primaryKey": true,
3713
- "notNull": true
3714
- },
3715
- "kind": {
3716
- "name": "kind",
3717
- "type": "text",
3718
- "primaryKey": false,
3719
- "notNull": true
3720
- },
3721
- "status": {
3722
- "name": "status",
3723
- "type": "text",
3724
- "primaryKey": false,
3725
- "notNull": true
3726
- },
3727
- "visibility": {
3728
- "name": "visibility",
3729
- "type": "text",
3730
- "primaryKey": false,
3731
- "notNull": true
3732
- },
3733
- "title": {
3734
- "name": "title",
3735
- "type": "text",
3736
- "primaryKey": false,
3737
- "notNull": true
3738
- },
3739
- "body": {
3740
- "name": "body",
3741
- "type": "text",
3742
- "primaryKey": false,
3743
- "notNull": true
3744
- },
3745
- "request": {
3746
- "name": "request",
3747
- "type": "jsonb",
3748
- "primaryKey": false,
3749
- "notNull": false
3750
- },
3751
- "answer": {
3752
- "name": "answer",
3753
- "type": "jsonb",
3754
- "primaryKey": false,
3755
- "notNull": false
3756
- },
3757
- "assigned_to_everyone": {
3758
- "name": "assigned_to_everyone",
3759
- "type": "boolean",
3760
- "primaryKey": false,
3761
- "notNull": true,
3762
- "default": false
3763
- },
3764
- "dedupe_key": {
3765
- "name": "dedupe_key",
3766
- "type": "text",
3767
- "primaryKey": false,
3768
- "notNull": true
3769
- },
3770
- "subject_id": {
3771
- "name": "subject_id",
3772
- "type": "text",
3773
- "primaryKey": false,
3774
- "notNull": false
3775
- },
3776
- "subject_title": {
3777
- "name": "subject_title",
3778
- "type": "text",
3779
- "primaryKey": false,
3780
- "notNull": false
3781
- },
3782
- "subject_url": {
3783
- "name": "subject_url",
3784
- "type": "text",
3785
- "primaryKey": false,
3786
- "notNull": false
3787
- },
3788
- "added_by_conversation_id": {
3789
- "name": "added_by_conversation_id",
3790
- "type": "text",
3791
- "primaryKey": false,
3792
- "notNull": true
3793
- },
3794
- "added_by_turn_id": {
3795
- "name": "added_by_turn_id",
3796
- "type": "text",
3797
- "primaryKey": false,
3798
- "notNull": false
3799
- },
3800
- "provider": {
3801
- "name": "provider",
3802
- "type": "text",
3803
- "primaryKey": false,
3804
- "notNull": false
3805
- },
3806
- "provider_tenant_id": {
3807
- "name": "provider_tenant_id",
3808
- "type": "text",
3809
- "primaryKey": false,
3810
- "notNull": false
3811
- },
3812
- "automation_id": {
3813
- "name": "automation_id",
3814
- "type": "text",
3815
- "primaryKey": false,
3816
- "notNull": false
3817
- },
3818
- "closed_at": {
3819
- "name": "closed_at",
3820
- "type": "timestamp with time zone",
3821
- "primaryKey": false,
3822
- "notNull": false
3823
- },
3824
- "closed_by_user_id": {
3825
- "name": "closed_by_user_id",
3826
- "type": "text",
3827
- "primaryKey": false,
3828
- "notNull": false
3829
- },
3830
- "close_reason": {
3831
- "name": "close_reason",
3832
- "type": "text",
3833
- "primaryKey": false,
3834
- "notNull": false
3835
- },
3836
- "created_at": {
3837
- "name": "created_at",
3838
- "type": "timestamp with time zone",
3839
- "primaryKey": false,
3840
- "notNull": true
3841
- },
3842
- "updated_at": {
3843
- "name": "updated_at",
3844
- "type": "timestamp with time zone",
3845
- "primaryKey": false,
3846
- "notNull": true
3847
- }
3848
- },
3849
- "indexes": {
3850
- "junior_review_items_open_dedupe_uidx": {
3851
- "name": "junior_review_items_open_dedupe_uidx",
3852
- "columns": [
3853
- {
3854
- "expression": "coalesce(\"provider\", '')",
3855
- "asc": true,
3856
- "isExpression": true,
3857
- "nulls": "last"
3858
- },
3859
- {
3860
- "expression": "coalesce(\"provider_tenant_id\", '')",
3861
- "asc": true,
3862
- "isExpression": true,
3863
- "nulls": "last"
3864
- },
3865
- {
3866
- "expression": "dedupe_key",
3867
- "isExpression": false,
3868
- "asc": true,
3869
- "nulls": "last"
3870
- }
3871
- ],
3872
- "isUnique": true,
3873
- "where": "\"junior_review_items\".\"status\" = 'open'",
3874
- "concurrently": false,
3875
- "method": "btree",
3876
- "with": {}
3877
- },
3878
- "junior_review_items_status_idx": {
3879
- "name": "junior_review_items_status_idx",
3880
- "columns": [
3881
- {
3882
- "expression": "status",
3883
- "isExpression": false,
3884
- "asc": true,
3885
- "nulls": "last"
3886
- },
3887
- {
3888
- "expression": "updated_at",
3889
- "isExpression": false,
3890
- "asc": true,
3891
- "nulls": "last"
3892
- },
3893
- {
3894
- "expression": "id",
3895
- "isExpression": false,
3896
- "asc": true,
3897
- "nulls": "last"
3898
- }
3899
- ],
3900
- "isUnique": false,
3901
- "concurrently": false,
3902
- "method": "btree",
3903
- "with": {}
3904
- },
3905
- "junior_review_items_subject_idx": {
3906
- "name": "junior_review_items_subject_idx",
3907
- "columns": [
3908
- {
3909
- "expression": "subject_id",
3910
- "isExpression": false,
3911
- "asc": true,
3912
- "nulls": "last"
3913
- },
3914
- {
3915
- "expression": "status",
3916
- "isExpression": false,
3917
- "asc": true,
3918
- "nulls": "last"
3919
- }
3920
- ],
3921
- "isUnique": false,
3922
- "concurrently": false,
3923
- "method": "btree",
3924
- "with": {}
3925
- },
3926
- "junior_review_items_automation_idx": {
3927
- "name": "junior_review_items_automation_idx",
3928
- "columns": [
3929
- {
3930
- "expression": "automation_id",
3931
- "isExpression": false,
3932
- "asc": true,
3933
- "nulls": "last"
3934
- },
3935
- {
3936
- "expression": "status",
3937
- "isExpression": false,
3938
- "asc": true,
3939
- "nulls": "last"
3940
- }
3941
- ],
3942
- "isUnique": false,
3943
- "concurrently": false,
3944
- "method": "btree",
3945
- "with": {}
3946
- }
3947
- },
3948
- "foreignKeys": {
3949
- "junior_review_items_added_by_conversation_id_junior_conversations_conversation_id_fk": {
3950
- "name": "junior_review_items_added_by_conversation_id_junior_conversations_conversation_id_fk",
3951
- "tableFrom": "junior_review_items",
3952
- "tableTo": "junior_conversations",
3953
- "columnsFrom": ["added_by_conversation_id"],
3954
- "columnsTo": ["conversation_id"],
3955
- "onDelete": "cascade",
3956
- "onUpdate": "no action"
3957
- },
3958
- "junior_review_items_automation_id_junior_automations_id_fk": {
3959
- "name": "junior_review_items_automation_id_junior_automations_id_fk",
3960
- "tableFrom": "junior_review_items",
3961
- "tableTo": "junior_automations",
3962
- "columnsFrom": ["automation_id"],
3963
- "columnsTo": ["id"],
3964
- "onDelete": "set null",
3965
- "onUpdate": "no action"
3966
- },
3967
- "junior_review_items_closed_by_user_id_junior_users_id_fk": {
3968
- "name": "junior_review_items_closed_by_user_id_junior_users_id_fk",
3969
- "tableFrom": "junior_review_items",
3970
- "tableTo": "junior_users",
3971
- "columnsFrom": ["closed_by_user_id"],
3972
- "columnsTo": ["id"],
3973
- "onDelete": "set null",
3974
- "onUpdate": "no action"
3975
- }
3976
- },
3977
- "compositePrimaryKeys": {},
3978
- "uniqueConstraints": {},
3979
- "policies": {},
3980
- "checkConstraints": {
3981
- "junior_review_items_kind_check": {
3982
- "name": "junior_review_items_kind_check",
3983
- "value": "(\"junior_review_items\".\"kind\" = 'notice' and \"junior_review_items\".\"request\" is null and \"junior_review_items\".\"answer\" is null) or (\"junior_review_items\".\"kind\" = 'action' and (\"junior_review_items\".\"request\" is not null or (\"junior_review_items\".\"dedupe_key\" like 'plugin:%' and \"junior_review_items\".\"answer\" is null)))"
3984
- },
3985
- "junior_review_items_status_check": {
3986
- "name": "junior_review_items_status_check",
3987
- "value": "(\"junior_review_items\".\"status\" = 'open' and \"junior_review_items\".\"closed_at\" is null) or (\"junior_review_items\".\"status\" in ('done', 'dismissed') and \"junior_review_items\".\"closed_at\" is not null)"
3988
- },
3989
- "junior_review_items_tenant_check": {
3990
- "name": "junior_review_items_tenant_check",
3991
- "value": "(\"junior_review_items\".\"provider\" is null) = (\"junior_review_items\".\"provider_tenant_id\" is null)"
3992
- },
3993
- "junior_review_items_visibility_check": {
3994
- "name": "junior_review_items_visibility_check",
3995
- "value": "\"junior_review_items\".\"visibility\" = 'public' or not \"junior_review_items\".\"assigned_to_everyone\""
3996
- }
3997
- },
3998
- "isRLSEnabled": false
3999
- },
4000
- "public.junior_snapshots": {
4001
- "name": "junior_snapshots",
4002
- "schema": "",
4003
- "columns": {
4004
- "id": {
4005
- "name": "id",
4006
- "type": "text",
4007
- "primaryKey": true,
4008
- "notNull": true
4009
- },
4010
- "workspace_id": {
4011
- "name": "workspace_id",
4012
- "type": "text",
4013
- "primaryKey": false,
4014
- "notNull": true
4015
- },
4016
- "profile_hash": {
4017
- "name": "profile_hash",
4018
- "type": "text",
4019
- "primaryKey": false,
4020
- "notNull": true
4021
- },
4022
- "status": {
4023
- "name": "status",
4024
- "type": "text",
4025
- "primaryKey": false,
4026
- "notNull": true
4027
- },
4028
- "snapshot_id": {
4029
- "name": "snapshot_id",
4030
- "type": "text",
4031
- "primaryKey": false,
4032
- "notNull": false
4033
- },
4034
- "build_duration_ms": {
4035
- "name": "build_duration_ms",
4036
- "type": "integer",
4037
- "primaryKey": false,
4038
- "notNull": false
4039
- },
4040
- "size_bytes": {
4041
- "name": "size_bytes",
4042
- "type": "bigint",
4043
- "primaryKey": false,
4044
- "notNull": false
4045
- },
4046
- "generated_at": {
4047
- "name": "generated_at",
4048
- "type": "timestamp with time zone",
4049
- "primaryKey": false,
4050
- "notNull": false
4051
- },
4052
- "build_started_at": {
4053
- "name": "build_started_at",
4054
- "type": "timestamp with time zone",
4055
- "primaryKey": false,
4056
- "notNull": false
4057
- },
4058
- "build_phase": {
4059
- "name": "build_phase",
4060
- "type": "text",
4061
- "primaryKey": false,
4062
- "notNull": false
4063
- },
4064
- "build_sandbox_name": {
4065
- "name": "build_sandbox_name",
4066
- "type": "text",
4067
- "primaryKey": false,
4068
- "notNull": false
4069
- },
4070
- "build_command_id": {
4071
- "name": "build_command_id",
4072
- "type": "text",
4073
- "primaryKey": false,
4074
- "notNull": false
4075
- },
4076
- "build_error": {
4077
- "name": "build_error",
4078
- "type": "text",
4079
- "primaryKey": false,
4080
- "notNull": false
4081
- },
4082
- "created_at": {
4083
- "name": "created_at",
4084
- "type": "timestamp with time zone",
4085
- "primaryKey": false,
4086
- "notNull": true
4087
- },
4088
- "updated_at": {
4089
- "name": "updated_at",
4090
- "type": "timestamp with time zone",
4091
- "primaryKey": false,
4092
- "notNull": true
4093
- }
4094
- },
4095
- "indexes": {
4096
- "junior_snapshots_snapshot_id_uidx": {
4097
- "name": "junior_snapshots_snapshot_id_uidx",
4098
- "columns": [
4099
- {
4100
- "expression": "snapshot_id",
4101
- "isExpression": false,
4102
- "asc": true,
4103
- "nulls": "last"
4104
- }
4105
- ],
4106
- "isUnique": true,
4107
- "concurrently": false,
4108
- "method": "btree",
4109
- "with": {}
4110
- },
4111
- "junior_snapshots_workspace_idx": {
4112
- "name": "junior_snapshots_workspace_idx",
4113
- "columns": [
4114
- {
4115
- "expression": "workspace_id",
4116
- "isExpression": false,
4117
- "asc": true,
4118
- "nulls": "last"
4119
- }
4120
- ],
4121
- "isUnique": false,
4122
- "concurrently": false,
4123
- "method": "btree",
4124
- "with": {}
4125
- },
4126
- "junior_snapshots_workspace_profile_status_idx": {
4127
- "name": "junior_snapshots_workspace_profile_status_idx",
4128
- "columns": [
4129
- {
4130
- "expression": "workspace_id",
4131
- "isExpression": false,
4132
- "asc": true,
4133
- "nulls": "last"
4134
- },
4135
- {
4136
- "expression": "profile_hash",
4137
- "isExpression": false,
4138
- "asc": true,
4139
- "nulls": "last"
4140
- },
4141
- {
4142
- "expression": "status",
4143
- "isExpression": false,
4144
- "asc": true,
4145
- "nulls": "last"
4146
- }
4147
- ],
4148
- "isUnique": false,
4149
- "concurrently": false,
4150
- "method": "btree",
4151
- "with": {}
4152
- },
4153
- "junior_snapshots_active_build_uidx": {
4154
- "name": "junior_snapshots_active_build_uidx",
4155
- "columns": [
4156
- {
4157
- "expression": "workspace_id",
4158
- "isExpression": false,
4159
- "asc": true,
4160
- "nulls": "last"
4161
- },
4162
- {
4163
- "expression": "profile_hash",
4164
- "isExpression": false,
4165
- "asc": true,
4166
- "nulls": "last"
4167
- }
4168
- ],
4169
- "isUnique": true,
4170
- "where": "\"junior_snapshots\".\"status\" = 'building'",
4171
- "concurrently": false,
4172
- "method": "btree",
4173
- "with": {}
4174
- },
4175
- "junior_snapshots_workspace_status_idx": {
4176
- "name": "junior_snapshots_workspace_status_idx",
4177
- "columns": [
4178
- {
4179
- "expression": "workspace_id",
4180
- "isExpression": false,
4181
- "asc": true,
4182
- "nulls": "last"
4183
- },
4184
- {
4185
- "expression": "status",
4186
- "isExpression": false,
4187
- "asc": true,
4188
- "nulls": "last"
4189
- }
4190
- ],
4191
- "isUnique": false,
4192
- "concurrently": false,
4193
- "method": "btree",
4194
- "with": {}
4195
- }
4196
- },
4197
- "foreignKeys": {
4198
- "junior_snapshots_workspace_id_junior_workspaces_id_fk": {
4199
- "name": "junior_snapshots_workspace_id_junior_workspaces_id_fk",
4200
- "tableFrom": "junior_snapshots",
4201
- "tableTo": "junior_workspaces",
4202
- "columnsFrom": ["workspace_id"],
4203
- "columnsTo": ["id"],
4204
- "onDelete": "cascade",
4205
- "onUpdate": "no action"
4206
- }
4207
- },
4208
- "compositePrimaryKeys": {},
4209
- "uniqueConstraints": {},
4210
- "policies": {},
4211
- "checkConstraints": {
4212
- "junior_snapshots_status_check": {
4213
- "name": "junior_snapshots_status_check",
4214
- "value": "\"junior_snapshots\".\"status\" in ('building', 'failed', 'ready')"
4215
- },
4216
- "junior_snapshots_build_phase_check": {
4217
- "name": "junior_snapshots_build_phase_check",
4218
- "value": "\"junior_snapshots\".\"build_phase\" is null or \"junior_snapshots\".\"build_phase\" in ('created', 'dependencies_installed', 'repositories_prepared')"
4219
- },
4220
- "junior_snapshots_ready_fields_check": {
4221
- "name": "junior_snapshots_ready_fields_check",
4222
- "value": "\"junior_snapshots\".\"status\" <> 'ready' or (\"junior_snapshots\".\"snapshot_id\" is not null and \"junior_snapshots\".\"build_duration_ms\" is not null and \"junior_snapshots\".\"generated_at\" is not null)"
4223
- },
4224
- "junior_snapshots_build_fields_check": {
4225
- "name": "junior_snapshots_build_fields_check",
4226
- "value": "\"junior_snapshots\".\"status\" = 'ready' or (\"junior_snapshots\".\"build_started_at\" is not null and \"junior_snapshots\".\"build_phase\" is not null)"
4227
- },
4228
- "junior_snapshots_build_duration_check": {
4229
- "name": "junior_snapshots_build_duration_check",
4230
- "value": "\"junior_snapshots\".\"build_duration_ms\" is null or \"junior_snapshots\".\"build_duration_ms\" >= 0"
4231
- },
4232
- "junior_snapshots_size_bytes_check": {
4233
- "name": "junior_snapshots_size_bytes_check",
4234
- "value": "\"junior_snapshots\".\"size_bytes\" is null or \"junior_snapshots\".\"size_bytes\" >= 0"
4235
- }
4236
- },
4237
- "isRLSEnabled": false
4238
- },
4239
- "public.junior_stats": {
4240
- "name": "junior_stats",
4241
- "schema": "",
4242
- "columns": {
4243
- "date": {
4244
- "name": "date",
4245
- "type": "date",
4246
- "primaryKey": false,
4247
- "notNull": true
4248
- },
4249
- "namespace": {
4250
- "name": "namespace",
4251
- "type": "text",
4252
- "primaryKey": false,
4253
- "notNull": true
4254
- },
4255
- "metric": {
4256
- "name": "metric",
4257
- "type": "text",
4258
- "primaryKey": false,
4259
- "notNull": true
4260
- },
4261
- "name": {
4262
- "name": "name",
4263
- "type": "text",
4264
- "primaryKey": false,
4265
- "notNull": true
4266
- },
4267
- "count": {
4268
- "name": "count",
4269
- "type": "integer",
4270
- "primaryKey": false,
4271
- "notNull": true,
4272
- "default": 0
4273
- }
4274
- },
4275
- "indexes": {},
4276
- "foreignKeys": {},
4277
- "compositePrimaryKeys": {
4278
- "junior_stats_date_namespace_metric_name_pk": {
4279
- "name": "junior_stats_date_namespace_metric_name_pk",
4280
- "columns": ["date", "namespace", "metric", "name"]
4281
- }
4282
- },
4283
- "uniqueConstraints": {},
4284
- "policies": {},
4285
- "checkConstraints": {},
4286
- "isRLSEnabled": false
4287
- },
4288
- "public.junior_users": {
4289
- "name": "junior_users",
4290
- "schema": "",
4291
- "columns": {
4292
- "id": {
4293
- "name": "id",
4294
- "type": "text",
4295
- "primaryKey": true,
4296
- "notNull": true
4297
- },
4298
- "primary_email": {
4299
- "name": "primary_email",
4300
- "type": "text",
4301
- "primaryKey": false,
4302
- "notNull": true
4303
- },
4304
- "primary_email_normalized": {
4305
- "name": "primary_email_normalized",
4306
- "type": "text",
4307
- "primaryKey": false,
4308
- "notNull": true
4309
- },
4310
- "display_name": {
4311
- "name": "display_name",
4312
- "type": "text",
4313
- "primaryKey": false,
4314
- "notNull": false
4315
- },
4316
- "timezone": {
4317
- "name": "timezone",
4318
- "type": "text",
4319
- "primaryKey": false,
4320
- "notNull": false
4321
- },
4322
- "customization": {
4323
- "name": "customization",
4324
- "type": "text",
4325
- "primaryKey": false,
4326
- "notNull": false
4327
- },
4328
- "notification_schedule": {
4329
- "name": "notification_schedule",
4330
- "type": "jsonb",
4331
- "primaryKey": false,
4332
- "notNull": false
4333
- },
4334
- "is_admin": {
4335
- "name": "is_admin",
4336
- "type": "boolean",
4337
- "primaryKey": false,
4338
- "notNull": true,
4339
- "default": false
4340
- },
4341
- "auto_archive_default": {
4342
- "name": "auto_archive_default",
4343
- "type": "boolean",
4344
- "primaryKey": false,
4345
- "notNull": true,
4346
- "default": false
4347
- },
4348
- "auto_archive_grace_hours": {
4349
- "name": "auto_archive_grace_hours",
4350
- "type": "integer",
4351
- "primaryKey": false,
4352
- "notNull": true,
4353
- "default": 24
4354
- },
4355
- "created_at": {
4356
- "name": "created_at",
4357
- "type": "timestamp with time zone",
4358
- "primaryKey": false,
4359
- "notNull": true
4360
- },
4361
- "updated_at": {
4362
- "name": "updated_at",
4363
- "type": "timestamp with time zone",
4364
- "primaryKey": false,
4365
- "notNull": true
4366
- }
4367
- },
4368
- "indexes": {
4369
- "junior_users_primary_email_normalized_uidx": {
4370
- "name": "junior_users_primary_email_normalized_uidx",
4371
- "columns": [
4372
- {
4373
- "expression": "primary_email_normalized",
4374
- "isExpression": false,
4375
- "asc": true,
4376
- "nulls": "last"
4377
- }
4378
- ],
4379
- "isUnique": true,
4380
- "concurrently": false,
4381
- "method": "btree",
4382
- "with": {}
4383
- }
4384
- },
4385
- "foreignKeys": {},
4386
- "compositePrimaryKeys": {},
4387
- "uniqueConstraints": {},
4388
- "policies": {},
4389
- "checkConstraints": {},
4390
- "isRLSEnabled": false
4391
- },
4392
- "public.junior_workspace_repos": {
4393
- "name": "junior_workspace_repos",
4394
- "schema": "",
4395
- "columns": {
4396
- "workspace_id": {
4397
- "name": "workspace_id",
4398
- "type": "text",
4399
- "primaryKey": false,
4400
- "notNull": true
4401
- },
4402
- "provider": {
4403
- "name": "provider",
4404
- "type": "text",
4405
- "primaryKey": false,
4406
- "notNull": true
4407
- },
4408
- "repo": {
4409
- "name": "repo",
4410
- "type": "text",
4411
- "primaryKey": false,
4412
- "notNull": true
4413
- }
4414
- },
4415
- "indexes": {},
4416
- "foreignKeys": {
4417
- "junior_workspace_repos_workspace_id_junior_workspaces_id_fk": {
4418
- "name": "junior_workspace_repos_workspace_id_junior_workspaces_id_fk",
4419
- "tableFrom": "junior_workspace_repos",
4420
- "tableTo": "junior_workspaces",
4421
- "columnsFrom": ["workspace_id"],
4422
- "columnsTo": ["id"],
4423
- "onDelete": "cascade",
4424
- "onUpdate": "no action"
4425
- }
4426
- },
4427
- "compositePrimaryKeys": {
4428
- "junior_workspace_repos_workspace_id_provider_repo_pk": {
4429
- "name": "junior_workspace_repos_workspace_id_provider_repo_pk",
4430
- "columns": ["workspace_id", "provider", "repo"]
4431
- }
4432
- },
4433
- "uniqueConstraints": {},
4434
- "policies": {},
4435
- "checkConstraints": {},
4436
- "isRLSEnabled": false
4437
- },
4438
- "public.junior_workspaces": {
4439
- "name": "junior_workspaces",
4440
- "schema": "",
4441
- "columns": {
4442
- "id": {
4443
- "name": "id",
4444
- "type": "text",
4445
- "primaryKey": true,
4446
- "notNull": true
4447
- },
4448
- "name": {
4449
- "name": "name",
4450
- "type": "text",
4451
- "primaryKey": false,
4452
- "notNull": true
4453
- },
4454
- "setup_script": {
4455
- "name": "setup_script",
4456
- "type": "text",
4457
- "primaryKey": false,
4458
- "notNull": true,
4459
- "default": "''"
4460
- },
4461
- "vcpus": {
4462
- "name": "vcpus",
4463
- "type": "integer",
4464
- "primaryKey": false,
4465
- "notNull": false
4466
- },
4467
- "created_at": {
4468
- "name": "created_at",
4469
- "type": "timestamp with time zone",
4470
- "primaryKey": false,
4471
- "notNull": true
4472
- },
4473
- "updated_at": {
4474
- "name": "updated_at",
4475
- "type": "timestamp with time zone",
4476
- "primaryKey": false,
4477
- "notNull": true
4478
- }
4479
- },
4480
- "indexes": {
4481
- "junior_workspaces_name_idx": {
4482
- "name": "junior_workspaces_name_idx",
4483
- "columns": [
4484
- {
4485
- "expression": "name",
4486
- "isExpression": false,
4487
- "asc": true,
4488
- "nulls": "last"
4489
- }
4490
- ],
4491
- "isUnique": true,
4492
- "concurrently": false,
4493
- "method": "btree",
4494
- "with": {}
4495
- }
4496
- },
4497
- "foreignKeys": {},
4498
- "compositePrimaryKeys": {},
4499
- "uniqueConstraints": {},
4500
- "policies": {},
4501
- "checkConstraints": {},
4502
- "isRLSEnabled": false
4503
- }
4504
- },
4505
- "enums": {},
4506
- "schemas": {},
4507
- "sequences": {},
4508
- "roles": {},
4509
- "policies": {},
4510
- "views": {},
4511
- "_meta": {
4512
- "columns": {},
4513
- "schemas": {},
4514
- "tables": {}
4515
- }
4516
- }