@onequery/cli 0.1.65-win32-x64 → 0.1.65

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 (172) hide show
  1. package/bin/onequery.js +266 -0
  2. package/bin/package-constants.d.ts +75 -0
  3. package/bin/package-constants.js +160 -0
  4. package/package.json +24 -17
  5. package/runtime-bundle.json +55 -0
  6. package/vendor/x86_64-pc-windows-msvc/onequery/onequery.exe +0 -0
  7. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/CompositeItem-BB408Cyb.js +0 -1
  8. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/CompositeList-DbbDW_rT.js +0 -1
  9. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/DialogTitle-ChNkcIa6.js +0 -1
  10. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/IconArrowRight-DsOD7mDl.js +0 -1
  11. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/IconCheck-Gc24xPT2.js +0 -1
  12. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/IconChevronDown-B-39MA7-.js +0 -1
  13. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/IconChevronRight-DD16tNHZ.js +0 -1
  14. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/IconCoins-C7Nn0L6R.js +0 -1
  15. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/IconHistory-DuLS8PKF.js +0 -1
  16. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/IconLoader2-BpZcTuHV.js +0 -1
  17. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/IconPlus-CZiRiEUF.js +0 -1
  18. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/IconTerminal2-PxNqcz3d.js +0 -1
  19. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/IconX-rRpRFwc5.js +0 -1
  20. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/Separator-M05FshHx.js +0 -1
  21. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/_authenticated-CcSc_Pt7.js +0 -1
  22. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/_org_slug-BvJDit6U.js +0 -1
  23. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/alert-BIGxI3XN.js +0 -1
  24. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/api-base-url-DIb6qukm.js +0 -1
  25. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/api-client-tp8XTpAa.js +0 -1
  26. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/api-paths-DcYkf-C_.js +0 -1
  27. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/app-routes-CMyon6Em.js +0 -1
  28. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/audit-CdPU9Jf2.js +0 -2
  29. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/auth-bootstrap-query-B1MHd_NV.js +0 -1
  30. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/auth-client-D-YHMy0G.js +0 -3
  31. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/avatar-SaFoLofF.js +0 -1
  32. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/badge-BFPkSrVD.js +0 -1
  33. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/budget-CX5MplAP.js +0 -1
  34. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/callback-BWQ3ETBy.js +0 -1
  35. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/card-Dllm2lhp.js +0 -1
  36. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/checkbox-Bii9Pcrx.js +0 -1
  37. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/compiler-runtime-DCc3R3Xn.js +0 -1
  38. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/connect-database-C1Jb2l53.js +0 -1
  39. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/copy-button-BO1KBdf9.js +0 -1
  40. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/create-org-BSzKv5ue.js +0 -1
  41. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/createReactComponent-_L2mp4Ui.js +0 -1
  42. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/data-source-connection-form-CbDL0cgG.js +0 -273
  43. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/device-Bbz7apAX.js +0 -1
  44. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/dist-BNi06Dzx.js +0 -3
  45. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/dropdown-menu-Cw2MW0pD.js +0 -1
  46. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/empty-DjRo5ytz.js +0 -1
  47. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/format-date-Rg05aHXh.js +0 -1
  48. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/getDisabledMountTransitionStyles-C0uz3iMh.js +0 -1
  49. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/getPseudoElementBounds-CRlxTrfr.js +0 -12
  50. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/home-BNjpNKdt.js +0 -1
  51. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/index-B4OsjuJp.css +0 -2
  52. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/index-CXR0dKJj.js +0 -10
  53. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/input-BRu0b1Tq.js +0 -1
  54. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/integrations-BWC7iPQ5.js +0 -1
  55. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
  56. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
  57. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
  58. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
  59. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
  60. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
  61. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
  62. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/invite._invitationId-DmJnR4R5.js +0 -1
  63. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/jsx-runtime-DG_AJzB_.js +0 -1
  64. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/label-f2wVZcni.js +0 -1
  65. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/link-Cgvqhh5w.js +0 -1
  66. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/matchContext-CDajBC0L.js +0 -1
  67. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/organization-permissions-BXV_ess0.js +0 -1
  68. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/organization-query-keys-ieaSNxMR.js +0 -1
  69. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/query-CY--GYXb.js +0 -1
  70. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/query-timing-YBkSOxxF.js +0 -1
  71. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/queryOptions-bXtOUR_h.js +0 -1
  72. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/routes-CxJ2aoMf.js +0 -1
  73. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/schemas-EcBBwCo1.js +0 -64
  74. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/select-yNaL0SXM.js +0 -1
  75. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/separator-BH7Gsum-.js +0 -1
  76. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/settings-C8us2bWX.js +0 -1
  77. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/signin-BgfqB9QB.js +0 -1
  78. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/src-C5F1uEDb.js +0 -1
  79. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/team-CYPsHFTt.js +0 -1
  80. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/textarea-CnA77PLS.js +0 -1
  81. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/theme-toggle-CRaDbyxE.js +0 -1
  82. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/use-optimistic-mutation-3PPnMc-O.js +0 -1
  83. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/useBaseQuery-CO5Q8xm4.js +0 -1
  84. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/useBaseUiId-CtNp109T.js +0 -1
  85. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/useCompositeItem-D243hyne.js +0 -1
  86. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/useControlled-C-85HRFr.js +0 -1
  87. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/useQuery-DyOxsY45.js +0 -1
  88. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/useRender-CzpKCg11.js +0 -1
  89. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/useRouterState-DpT8luFk.js +0 -1
  90. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/useSuspenseQuery-CBFRU4At.js +0 -1
  91. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/useValueChanged-BNrgSVVM.js +0 -1
  92. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/utils-C8DGLIgm.js +0 -1
  93. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/xstate-react.esm-Bo3CCIRt.js +0 -1
  94. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/zod-D0PWrP9q.js +0 -1
  95. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/favicon.ico +0 -0
  96. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/amplitude/step1_settings_sidebar.png +0 -0
  97. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/amplitude/step2_projects.png +0 -0
  98. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/amplitude/step3_project_keys.png +0 -0
  99. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/amplitude/step4_api_keys.png +0 -0
  100. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/bigquery/step1_service_accounts.png +0 -0
  101. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/bigquery/step2_bigquery_roles.png +0 -0
  102. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/bigquery/step3_add_key_menu.png +0 -0
  103. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/bigquery/step4_create_json_key.png +0 -0
  104. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/cloudflare-workers-observability/step2_enable_workers_logs.png +0 -0
  105. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/cloudflare-workers-observability/step3_user_api_tokens.png +0 -0
  106. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/cloudflare-workers-observability/step4_create_api_token.png +0 -0
  107. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/cloudflare-workers-observability/step5_workers_pages_account_id.png +0 -0
  108. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/cloudflare-workers-observability/step6_workers_observability_permission.png +0 -0
  109. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/ga4/step1_service_accounts.png +0 -0
  110. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/ga4/step2_create_json_key.png +0 -0
  111. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/ga4/step3_add_user_viewer.png +0 -0
  112. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/ga4/step4_property_details.png +0 -0
  113. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/github-token-guide/step1_signin.png +0 -0
  114. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/github-token-guide/step2_new_fine_grained_token_sanitized.png +0 -0
  115. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/github-token-guide/step3_permissions_configured_sanitized.png +0 -0
  116. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/github-token-guide/step4_token_created_sanitized.png +0 -0
  117. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/google-search-console/step1_confirm_property.png +0 -0
  118. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/google-search-console/step2_scope_selected.png +0 -0
  119. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/google-search-console/step3_copy_access_token.png +0 -0
  120. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/mixpanel/step1_service_accounts.png +0 -0
  121. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/mixpanel/step2_create_service_account.png +0 -0
  122. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/mixpanel/step3_credentials.png +0 -0
  123. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/mixpanel/step4_project_settings.png +0 -0
  124. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/postgresql/step1_create_user.png +0 -0
  125. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/postgresql/step2_connection.png +0 -0
  126. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/posthog/step1_project_settings.png +0 -0
  127. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/posthog/step2_personal_api_keys.png +0 -0
  128. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/posthog/step3_create_key_modal.png +0 -0
  129. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/rds/step1_connect.png +0 -0
  130. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/rds/step2_create_user.png +0 -0
  131. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/rds/step3_grant.png +0 -0
  132. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/rds/step4_info.png +0 -0
  133. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/sentry/step1_personal_tokens.png +0 -0
  134. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/sentry/step2_create_token_permissions.png +0 -0
  135. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/sentry/step3_organization_slug.png +0 -0
  136. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/sentry/step4_project_slug.png +0 -0
  137. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/vercel/step1_tokens_page.png +0 -0
  138. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/images/vercel/step2_configure_token.png +0 -0
  139. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/index.html +0 -47
  140. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/onequery.svg +0 -44
  141. package/vendor/x86_64-pc-windows-msvc/runtime/migrations/20260327065242_curious_nightmare.sql +0 -403
  142. package/vendor/x86_64-pc-windows-msvc/runtime/migrations/20260403103652_slippery_hellfire_club.sql +0 -8
  143. package/vendor/x86_64-pc-windows-msvc/runtime/migrations/20260403112219_gigantic_namora.sql +0 -1
  144. package/vendor/x86_64-pc-windows-msvc/runtime/migrations/20260420071232_previous_justin_hammer.sql +0 -141
  145. package/vendor/x86_64-pc-windows-msvc/runtime/migrations/20260420093157_spooky_cassandra_nova.sql +0 -29
  146. package/vendor/x86_64-pc-windows-msvc/runtime/migrations/20260420101631_even_ogun.sql +0 -5
  147. package/vendor/x86_64-pc-windows-msvc/runtime/migrations/20260425110519_smart_amazoness.sql +0 -8
  148. package/vendor/x86_64-pc-windows-msvc/runtime/migrations/20260428033542_rename_source_query_interface_missing.sql +0 -36
  149. package/vendor/x86_64-pc-windows-msvc/runtime/migrations/20260430114113_jittery_scorpion.sql +0 -28
  150. package/vendor/x86_64-pc-windows-msvc/runtime/migrations/20260430135906_flippant_timeslip.sql +0 -4
  151. package/vendor/x86_64-pc-windows-msvc/runtime/migrations/20260502000100_drop_old_workflow_audit_tables.sql +0 -15
  152. package/vendor/x86_64-pc-windows-msvc/runtime/migrations/20260503011110_moaning_jack_flag.sql +0 -22
  153. package/vendor/x86_64-pc-windows-msvc/runtime/migrations/20260514143216_reset_workflow_audit_history.sql +0 -20
  154. package/vendor/x86_64-pc-windows-msvc/runtime/migrations/20260524081943_colorful_firelord.sql +0 -1
  155. package/vendor/x86_64-pc-windows-msvc/runtime/migrations/meta/20260327065242_snapshot.json +0 -2817
  156. package/vendor/x86_64-pc-windows-msvc/runtime/migrations/meta/20260403103652_snapshot.json +0 -2864
  157. package/vendor/x86_64-pc-windows-msvc/runtime/migrations/meta/20260403112219_snapshot.json +0 -2870
  158. package/vendor/x86_64-pc-windows-msvc/runtime/migrations/meta/20260420071232_snapshot.json +0 -3879
  159. package/vendor/x86_64-pc-windows-msvc/runtime/migrations/meta/20260420093157_snapshot.json +0 -4088
  160. package/vendor/x86_64-pc-windows-msvc/runtime/migrations/meta/20260420101631_snapshot.json +0 -3250
  161. package/vendor/x86_64-pc-windows-msvc/runtime/migrations/meta/20260425110519_snapshot.json +0 -3250
  162. package/vendor/x86_64-pc-windows-msvc/runtime/migrations/meta/20260428033542_snapshot.json +0 -3250
  163. package/vendor/x86_64-pc-windows-msvc/runtime/migrations/meta/20260430114113_snapshot.json +0 -3507
  164. package/vendor/x86_64-pc-windows-msvc/runtime/migrations/meta/20260430135906_snapshot.json +0 -3531
  165. package/vendor/x86_64-pc-windows-msvc/runtime/migrations/meta/20260503011110_snapshot.json +0 -3089
  166. package/vendor/x86_64-pc-windows-msvc/runtime/migrations/meta/20260524081943_snapshot.json +0 -3082
  167. package/vendor/x86_64-pc-windows-msvc/runtime/migrations/meta/_journal.json +0 -104
  168. package/vendor/x86_64-pc-windows-msvc/runtime/pglite/initdb.wasm +0 -0
  169. package/vendor/x86_64-pc-windows-msvc/runtime/pglite/pglite.data +0 -0
  170. package/vendor/x86_64-pc-windows-msvc/runtime/pglite/pglite.wasm +0 -0
  171. package/vendor/x86_64-pc-windows-msvc/server/onequery-server.mjs +0 -447972
  172. package/vendor/x86_64-pc-windows-msvc/server/polyglot_sql_wasm_bg.wasm +0 -0
@@ -1,3250 +0,0 @@
1
- {
2
- "id": "4657a378-2009-4321-84b5-b0578682eee3",
3
- "prevId": "bd27fbeb-91fd-46c9-86bd-6f3dba3b2dfd",
4
- "version": "7",
5
- "dialect": "postgresql",
6
- "tables": {
7
- "public.audit_feed_entries": {
8
- "name": "audit_feed_entries",
9
- "schema": "",
10
- "columns": {
11
- "action_name": {
12
- "name": "action_name",
13
- "type": "text",
14
- "primaryKey": false,
15
- "notNull": true
16
- },
17
- "completed_at": {
18
- "name": "completed_at",
19
- "type": "timestamp with time zone",
20
- "primaryKey": false,
21
- "notNull": false
22
- },
23
- "failure_code": {
24
- "name": "failure_code",
25
- "type": "text",
26
- "primaryKey": false,
27
- "notNull": false
28
- },
29
- "family": {
30
- "name": "family",
31
- "type": "text",
32
- "primaryKey": false,
33
- "notNull": true
34
- },
35
- "family_action_id": {
36
- "name": "family_action_id",
37
- "type": "text",
38
- "primaryKey": false,
39
- "notNull": true
40
- },
41
- "family_preview_json": {
42
- "name": "family_preview_json",
43
- "type": "jsonb",
44
- "primaryKey": false,
45
- "notNull": false
46
- },
47
- "last_event_at": {
48
- "name": "last_event_at",
49
- "type": "timestamp with time zone",
50
- "primaryKey": false,
51
- "notNull": true
52
- },
53
- "last_projected_sequence": {
54
- "name": "last_projected_sequence",
55
- "type": "integer",
56
- "primaryKey": false,
57
- "notNull": true
58
- },
59
- "last_event_type": {
60
- "name": "last_event_type",
61
- "type": "text",
62
- "primaryKey": false,
63
- "notNull": true
64
- },
65
- "metrics_json": {
66
- "name": "metrics_json",
67
- "type": "jsonb",
68
- "primaryKey": false,
69
- "notNull": false
70
- },
71
- "organization_id": {
72
- "name": "organization_id",
73
- "type": "text",
74
- "primaryKey": false,
75
- "notNull": true
76
- },
77
- "origin_actor_json": {
78
- "name": "origin_actor_json",
79
- "type": "jsonb",
80
- "primaryKey": false,
81
- "notNull": true
82
- },
83
- "origin_surface": {
84
- "name": "origin_surface",
85
- "type": "text",
86
- "primaryKey": false,
87
- "notNull": true
88
- },
89
- "outcome": {
90
- "name": "outcome",
91
- "type": "text",
92
- "primaryKey": false,
93
- "notNull": true
94
- },
95
- "phase": {
96
- "name": "phase",
97
- "type": "text",
98
- "primaryKey": false,
99
- "notNull": true
100
- },
101
- "search_document": {
102
- "name": "search_document",
103
- "type": "text",
104
- "primaryKey": false,
105
- "notNull": true
106
- },
107
- "started_at": {
108
- "name": "started_at",
109
- "type": "timestamp with time zone",
110
- "primaryKey": false,
111
- "notNull": true
112
- },
113
- "subtitle": {
114
- "name": "subtitle",
115
- "type": "text",
116
- "primaryKey": false,
117
- "notNull": true
118
- },
119
- "target_json": {
120
- "name": "target_json",
121
- "type": "jsonb",
122
- "primaryKey": false,
123
- "notNull": true
124
- },
125
- "title": {
126
- "name": "title",
127
- "type": "text",
128
- "primaryKey": false,
129
- "notNull": true
130
- }
131
- },
132
- "indexes": {
133
- "idx_audit_feed_entries_org_started_identity": {
134
- "name": "idx_audit_feed_entries_org_started_identity",
135
- "columns": [
136
- {
137
- "expression": "organization_id",
138
- "isExpression": false,
139
- "asc": true,
140
- "nulls": "last"
141
- },
142
- {
143
- "expression": "started_at",
144
- "isExpression": false,
145
- "asc": true,
146
- "nulls": "last"
147
- },
148
- {
149
- "expression": "family",
150
- "isExpression": false,
151
- "asc": true,
152
- "nulls": "last"
153
- },
154
- {
155
- "expression": "family_action_id",
156
- "isExpression": false,
157
- "asc": true,
158
- "nulls": "last"
159
- }
160
- ],
161
- "isUnique": false,
162
- "with": {},
163
- "method": "btree",
164
- "concurrently": false
165
- },
166
- "idx_audit_feed_entries_org_family_started": {
167
- "name": "idx_audit_feed_entries_org_family_started",
168
- "columns": [
169
- {
170
- "expression": "organization_id",
171
- "isExpression": false,
172
- "asc": true,
173
- "nulls": "last"
174
- },
175
- {
176
- "expression": "family",
177
- "isExpression": false,
178
- "asc": true,
179
- "nulls": "last"
180
- },
181
- {
182
- "expression": "started_at",
183
- "isExpression": false,
184
- "asc": true,
185
- "nulls": "last"
186
- }
187
- ],
188
- "isUnique": false,
189
- "with": {},
190
- "method": "btree",
191
- "concurrently": false
192
- }
193
- },
194
- "foreignKeys": {
195
- "audit_feed_entries_organization_id_organization_id_fk": {
196
- "name": "audit_feed_entries_organization_id_organization_id_fk",
197
- "tableFrom": "audit_feed_entries",
198
- "columnsFrom": ["organization_id"],
199
- "tableTo": "organization",
200
- "columnsTo": ["id"],
201
- "onUpdate": "no action",
202
- "onDelete": "cascade"
203
- }
204
- },
205
- "compositePrimaryKeys": {
206
- "audit_feed_entries_family_action_pk": {
207
- "name": "audit_feed_entries_family_action_pk",
208
- "columns": ["family", "family_action_id"]
209
- }
210
- },
211
- "uniqueConstraints": {},
212
- "policies": {},
213
- "checkConstraints": {},
214
- "isRLSEnabled": true
215
- },
216
- "public.audit_projection_checkpoints": {
217
- "name": "audit_projection_checkpoints",
218
- "schema": "",
219
- "columns": {
220
- "family": {
221
- "name": "family",
222
- "type": "text",
223
- "primaryKey": false,
224
- "notNull": true
225
- },
226
- "last_commit_position": {
227
- "name": "last_commit_position",
228
- "type": "bigint",
229
- "primaryKey": false,
230
- "notNull": true,
231
- "default": "0"
232
- },
233
- "projection_name": {
234
- "name": "projection_name",
235
- "type": "text",
236
- "primaryKey": false,
237
- "notNull": true
238
- },
239
- "updated_at": {
240
- "name": "updated_at",
241
- "type": "timestamp with time zone",
242
- "primaryKey": false,
243
- "notNull": true,
244
- "default": "now()"
245
- }
246
- },
247
- "indexes": {
248
- "idx_audit_projection_checkpoints_projection_family_unique": {
249
- "name": "idx_audit_projection_checkpoints_projection_family_unique",
250
- "columns": [
251
- {
252
- "expression": "projection_name",
253
- "isExpression": false,
254
- "asc": true,
255
- "nulls": "last"
256
- },
257
- {
258
- "expression": "family",
259
- "isExpression": false,
260
- "asc": true,
261
- "nulls": "last"
262
- }
263
- ],
264
- "isUnique": true,
265
- "with": {},
266
- "method": "btree",
267
- "concurrently": false
268
- }
269
- },
270
- "foreignKeys": {},
271
- "compositePrimaryKeys": {},
272
- "uniqueConstraints": {},
273
- "policies": {},
274
- "checkConstraints": {},
275
- "isRLSEnabled": true
276
- },
277
- "public.account": {
278
- "name": "account",
279
- "schema": "",
280
- "columns": {
281
- "access_token": {
282
- "name": "access_token",
283
- "type": "text",
284
- "primaryKey": false,
285
- "notNull": false
286
- },
287
- "access_token_expires_at": {
288
- "name": "access_token_expires_at",
289
- "type": "timestamp",
290
- "primaryKey": false,
291
- "notNull": false
292
- },
293
- "account_id": {
294
- "name": "account_id",
295
- "type": "text",
296
- "primaryKey": false,
297
- "notNull": true
298
- },
299
- "created_at": {
300
- "name": "created_at",
301
- "type": "timestamp",
302
- "primaryKey": false,
303
- "notNull": true,
304
- "default": "now()"
305
- },
306
- "id": {
307
- "name": "id",
308
- "type": "text",
309
- "primaryKey": true,
310
- "notNull": true
311
- },
312
- "id_token": {
313
- "name": "id_token",
314
- "type": "text",
315
- "primaryKey": false,
316
- "notNull": false
317
- },
318
- "password": {
319
- "name": "password",
320
- "type": "text",
321
- "primaryKey": false,
322
- "notNull": false
323
- },
324
- "provider_id": {
325
- "name": "provider_id",
326
- "type": "text",
327
- "primaryKey": false,
328
- "notNull": true
329
- },
330
- "refresh_token": {
331
- "name": "refresh_token",
332
- "type": "text",
333
- "primaryKey": false,
334
- "notNull": false
335
- },
336
- "refresh_token_expires_at": {
337
- "name": "refresh_token_expires_at",
338
- "type": "timestamp",
339
- "primaryKey": false,
340
- "notNull": false
341
- },
342
- "scope": {
343
- "name": "scope",
344
- "type": "text",
345
- "primaryKey": false,
346
- "notNull": false
347
- },
348
- "updated_at": {
349
- "name": "updated_at",
350
- "type": "timestamp",
351
- "primaryKey": false,
352
- "notNull": true,
353
- "default": "now()"
354
- },
355
- "user_id": {
356
- "name": "user_id",
357
- "type": "text",
358
- "primaryKey": false,
359
- "notNull": true
360
- }
361
- },
362
- "indexes": {
363
- "account_userId_idx": {
364
- "name": "account_userId_idx",
365
- "columns": [
366
- {
367
- "expression": "user_id",
368
- "isExpression": false,
369
- "asc": true,
370
- "nulls": "last"
371
- }
372
- ],
373
- "isUnique": false,
374
- "with": {},
375
- "method": "btree",
376
- "concurrently": false
377
- }
378
- },
379
- "foreignKeys": {
380
- "account_user_id_user_id_fk": {
381
- "name": "account_user_id_user_id_fk",
382
- "tableFrom": "account",
383
- "columnsFrom": ["user_id"],
384
- "tableTo": "user",
385
- "columnsTo": ["id"],
386
- "onUpdate": "no action",
387
- "onDelete": "cascade"
388
- }
389
- },
390
- "compositePrimaryKeys": {},
391
- "uniqueConstraints": {},
392
- "policies": {},
393
- "checkConstraints": {},
394
- "isRLSEnabled": true
395
- },
396
- "public.device_code": {
397
- "name": "device_code",
398
- "schema": "",
399
- "columns": {
400
- "client_id": {
401
- "name": "client_id",
402
- "type": "text",
403
- "primaryKey": false,
404
- "notNull": false
405
- },
406
- "device_code": {
407
- "name": "device_code",
408
- "type": "text",
409
- "primaryKey": false,
410
- "notNull": true
411
- },
412
- "expires_at": {
413
- "name": "expires_at",
414
- "type": "timestamp",
415
- "primaryKey": false,
416
- "notNull": true
417
- },
418
- "id": {
419
- "name": "id",
420
- "type": "text",
421
- "primaryKey": true,
422
- "notNull": true
423
- },
424
- "last_polled_at": {
425
- "name": "last_polled_at",
426
- "type": "timestamp",
427
- "primaryKey": false,
428
- "notNull": false
429
- },
430
- "polling_interval": {
431
- "name": "polling_interval",
432
- "type": "integer",
433
- "primaryKey": false,
434
- "notNull": false
435
- },
436
- "scope": {
437
- "name": "scope",
438
- "type": "text",
439
- "primaryKey": false,
440
- "notNull": false
441
- },
442
- "status": {
443
- "name": "status",
444
- "type": "text",
445
- "primaryKey": false,
446
- "notNull": true
447
- },
448
- "user_code": {
449
- "name": "user_code",
450
- "type": "text",
451
- "primaryKey": false,
452
- "notNull": true
453
- },
454
- "user_id": {
455
- "name": "user_id",
456
- "type": "text",
457
- "primaryKey": false,
458
- "notNull": false
459
- }
460
- },
461
- "indexes": {
462
- "device_code_device_code_key": {
463
- "name": "device_code_device_code_key",
464
- "columns": [
465
- {
466
- "expression": "device_code",
467
- "isExpression": false,
468
- "asc": true,
469
- "nulls": "last"
470
- }
471
- ],
472
- "isUnique": true,
473
- "with": {},
474
- "method": "btree",
475
- "concurrently": false
476
- },
477
- "device_code_user_code_key": {
478
- "name": "device_code_user_code_key",
479
- "columns": [
480
- {
481
- "expression": "user_code",
482
- "isExpression": false,
483
- "asc": true,
484
- "nulls": "last"
485
- }
486
- ],
487
- "isUnique": true,
488
- "with": {},
489
- "method": "btree",
490
- "concurrently": false
491
- },
492
- "device_code_user_id_idx": {
493
- "name": "device_code_user_id_idx",
494
- "columns": [
495
- {
496
- "expression": "user_id",
497
- "isExpression": false,
498
- "asc": true,
499
- "nulls": "last"
500
- }
501
- ],
502
- "isUnique": false,
503
- "with": {},
504
- "method": "btree",
505
- "concurrently": false
506
- },
507
- "device_code_expires_at_idx": {
508
- "name": "device_code_expires_at_idx",
509
- "columns": [
510
- {
511
- "expression": "expires_at",
512
- "isExpression": false,
513
- "asc": true,
514
- "nulls": "last"
515
- }
516
- ],
517
- "isUnique": false,
518
- "with": {},
519
- "method": "btree",
520
- "concurrently": false
521
- }
522
- },
523
- "foreignKeys": {
524
- "device_code_user_id_user_id_fk": {
525
- "name": "device_code_user_id_user_id_fk",
526
- "tableFrom": "device_code",
527
- "columnsFrom": ["user_id"],
528
- "tableTo": "user",
529
- "columnsTo": ["id"],
530
- "onUpdate": "no action",
531
- "onDelete": "cascade"
532
- }
533
- },
534
- "compositePrimaryKeys": {},
535
- "uniqueConstraints": {},
536
- "policies": {},
537
- "checkConstraints": {},
538
- "isRLSEnabled": true
539
- },
540
- "public.invitation": {
541
- "name": "invitation",
542
- "schema": "",
543
- "columns": {
544
- "created_at": {
545
- "name": "created_at",
546
- "type": "timestamp",
547
- "primaryKey": false,
548
- "notNull": true,
549
- "default": "now()"
550
- },
551
- "email": {
552
- "name": "email",
553
- "type": "text",
554
- "primaryKey": false,
555
- "notNull": true
556
- },
557
- "expires_at": {
558
- "name": "expires_at",
559
- "type": "timestamp",
560
- "primaryKey": false,
561
- "notNull": true
562
- },
563
- "id": {
564
- "name": "id",
565
- "type": "text",
566
- "primaryKey": true,
567
- "notNull": true
568
- },
569
- "inviter_id": {
570
- "name": "inviter_id",
571
- "type": "text",
572
- "primaryKey": false,
573
- "notNull": true
574
- },
575
- "organization_id": {
576
- "name": "organization_id",
577
- "type": "text",
578
- "primaryKey": false,
579
- "notNull": true
580
- },
581
- "role": {
582
- "name": "role",
583
- "type": "text",
584
- "primaryKey": false,
585
- "notNull": false
586
- },
587
- "status": {
588
- "name": "status",
589
- "type": "text",
590
- "primaryKey": false,
591
- "notNull": true
592
- }
593
- },
594
- "indexes": {
595
- "invitation_organizationId_idx": {
596
- "name": "invitation_organizationId_idx",
597
- "columns": [
598
- {
599
- "expression": "organization_id",
600
- "isExpression": false,
601
- "asc": true,
602
- "nulls": "last"
603
- }
604
- ],
605
- "isUnique": false,
606
- "with": {},
607
- "method": "btree",
608
- "concurrently": false
609
- },
610
- "invitation_email_idx": {
611
- "name": "invitation_email_idx",
612
- "columns": [
613
- {
614
- "expression": "email",
615
- "isExpression": false,
616
- "asc": true,
617
- "nulls": "last"
618
- }
619
- ],
620
- "isUnique": false,
621
- "with": {},
622
- "method": "btree",
623
- "concurrently": false
624
- }
625
- },
626
- "foreignKeys": {
627
- "invitation_inviter_id_user_id_fk": {
628
- "name": "invitation_inviter_id_user_id_fk",
629
- "tableFrom": "invitation",
630
- "columnsFrom": ["inviter_id"],
631
- "tableTo": "user",
632
- "columnsTo": ["id"],
633
- "onUpdate": "no action",
634
- "onDelete": "cascade"
635
- },
636
- "invitation_organization_id_organization_id_fk": {
637
- "name": "invitation_organization_id_organization_id_fk",
638
- "tableFrom": "invitation",
639
- "columnsFrom": ["organization_id"],
640
- "tableTo": "organization",
641
- "columnsTo": ["id"],
642
- "onUpdate": "no action",
643
- "onDelete": "cascade"
644
- }
645
- },
646
- "compositePrimaryKeys": {},
647
- "uniqueConstraints": {},
648
- "policies": {},
649
- "checkConstraints": {},
650
- "isRLSEnabled": true
651
- },
652
- "public.member": {
653
- "name": "member",
654
- "schema": "",
655
- "columns": {
656
- "created_at": {
657
- "name": "created_at",
658
- "type": "timestamp",
659
- "primaryKey": false,
660
- "notNull": true,
661
- "default": "now()"
662
- },
663
- "id": {
664
- "name": "id",
665
- "type": "text",
666
- "primaryKey": true,
667
- "notNull": true
668
- },
669
- "organization_id": {
670
- "name": "organization_id",
671
- "type": "text",
672
- "primaryKey": false,
673
- "notNull": true
674
- },
675
- "role": {
676
- "name": "role",
677
- "type": "text",
678
- "primaryKey": false,
679
- "notNull": true
680
- },
681
- "user_id": {
682
- "name": "user_id",
683
- "type": "text",
684
- "primaryKey": false,
685
- "notNull": true
686
- }
687
- },
688
- "indexes": {
689
- "member_organizationId_idx": {
690
- "name": "member_organizationId_idx",
691
- "columns": [
692
- {
693
- "expression": "organization_id",
694
- "isExpression": false,
695
- "asc": true,
696
- "nulls": "last"
697
- }
698
- ],
699
- "isUnique": false,
700
- "with": {},
701
- "method": "btree",
702
- "concurrently": false
703
- },
704
- "member_userId_idx": {
705
- "name": "member_userId_idx",
706
- "columns": [
707
- {
708
- "expression": "user_id",
709
- "isExpression": false,
710
- "asc": true,
711
- "nulls": "last"
712
- }
713
- ],
714
- "isUnique": false,
715
- "with": {},
716
- "method": "btree",
717
- "concurrently": false
718
- }
719
- },
720
- "foreignKeys": {
721
- "member_organization_id_organization_id_fk": {
722
- "name": "member_organization_id_organization_id_fk",
723
- "tableFrom": "member",
724
- "columnsFrom": ["organization_id"],
725
- "tableTo": "organization",
726
- "columnsTo": ["id"],
727
- "onUpdate": "no action",
728
- "onDelete": "cascade"
729
- },
730
- "member_user_id_user_id_fk": {
731
- "name": "member_user_id_user_id_fk",
732
- "tableFrom": "member",
733
- "columnsFrom": ["user_id"],
734
- "tableTo": "user",
735
- "columnsTo": ["id"],
736
- "onUpdate": "no action",
737
- "onDelete": "cascade"
738
- }
739
- },
740
- "compositePrimaryKeys": {},
741
- "uniqueConstraints": {},
742
- "policies": {},
743
- "checkConstraints": {},
744
- "isRLSEnabled": true
745
- },
746
- "public.organization": {
747
- "name": "organization",
748
- "schema": "",
749
- "columns": {
750
- "created_at": {
751
- "name": "created_at",
752
- "type": "timestamp",
753
- "primaryKey": false,
754
- "notNull": true,
755
- "default": "now()"
756
- },
757
- "id": {
758
- "name": "id",
759
- "type": "text",
760
- "primaryKey": true,
761
- "notNull": true
762
- },
763
- "logo": {
764
- "name": "logo",
765
- "type": "text",
766
- "primaryKey": false,
767
- "notNull": false
768
- },
769
- "metadata": {
770
- "name": "metadata",
771
- "type": "text",
772
- "primaryKey": false,
773
- "notNull": false
774
- },
775
- "name": {
776
- "name": "name",
777
- "type": "text",
778
- "primaryKey": false,
779
- "notNull": true
780
- },
781
- "slug": {
782
- "name": "slug",
783
- "type": "text",
784
- "primaryKey": false,
785
- "notNull": false
786
- }
787
- },
788
- "indexes": {},
789
- "foreignKeys": {},
790
- "compositePrimaryKeys": {},
791
- "uniqueConstraints": {
792
- "organization_slug_unique": {
793
- "name": "organization_slug_unique",
794
- "columns": ["slug"],
795
- "nullsNotDistinct": false
796
- }
797
- },
798
- "policies": {},
799
- "checkConstraints": {},
800
- "isRLSEnabled": true
801
- },
802
- "public.rate_limit": {
803
- "name": "rate_limit",
804
- "schema": "",
805
- "columns": {
806
- "id": {
807
- "name": "id",
808
- "type": "text",
809
- "primaryKey": true,
810
- "notNull": true
811
- },
812
- "count": {
813
- "name": "count",
814
- "type": "integer",
815
- "primaryKey": false,
816
- "notNull": true
817
- },
818
- "key": {
819
- "name": "key",
820
- "type": "text",
821
- "primaryKey": false,
822
- "notNull": true
823
- },
824
- "last_request": {
825
- "name": "last_request",
826
- "type": "bigint",
827
- "primaryKey": false,
828
- "notNull": true
829
- }
830
- },
831
- "indexes": {
832
- "rate_limit_key_key": {
833
- "name": "rate_limit_key_key",
834
- "columns": [
835
- {
836
- "expression": "key",
837
- "isExpression": false,
838
- "asc": true,
839
- "nulls": "last"
840
- }
841
- ],
842
- "isUnique": true,
843
- "with": {},
844
- "method": "btree",
845
- "concurrently": false
846
- }
847
- },
848
- "foreignKeys": {},
849
- "compositePrimaryKeys": {},
850
- "uniqueConstraints": {},
851
- "policies": {},
852
- "checkConstraints": {},
853
- "isRLSEnabled": true
854
- },
855
- "public.session": {
856
- "name": "session",
857
- "schema": "",
858
- "columns": {
859
- "active_organization_id": {
860
- "name": "active_organization_id",
861
- "type": "text",
862
- "primaryKey": false,
863
- "notNull": false
864
- },
865
- "created_at": {
866
- "name": "created_at",
867
- "type": "timestamp",
868
- "primaryKey": false,
869
- "notNull": true,
870
- "default": "now()"
871
- },
872
- "expires_at": {
873
- "name": "expires_at",
874
- "type": "timestamp",
875
- "primaryKey": false,
876
- "notNull": true
877
- },
878
- "id": {
879
- "name": "id",
880
- "type": "text",
881
- "primaryKey": true,
882
- "notNull": true
883
- },
884
- "ip_address": {
885
- "name": "ip_address",
886
- "type": "text",
887
- "primaryKey": false,
888
- "notNull": false
889
- },
890
- "token": {
891
- "name": "token",
892
- "type": "text",
893
- "primaryKey": false,
894
- "notNull": true
895
- },
896
- "updated_at": {
897
- "name": "updated_at",
898
- "type": "timestamp",
899
- "primaryKey": false,
900
- "notNull": true,
901
- "default": "now()"
902
- },
903
- "user_agent": {
904
- "name": "user_agent",
905
- "type": "text",
906
- "primaryKey": false,
907
- "notNull": false
908
- },
909
- "user_id": {
910
- "name": "user_id",
911
- "type": "text",
912
- "primaryKey": false,
913
- "notNull": true
914
- }
915
- },
916
- "indexes": {
917
- "session_userId_idx": {
918
- "name": "session_userId_idx",
919
- "columns": [
920
- {
921
- "expression": "user_id",
922
- "isExpression": false,
923
- "asc": true,
924
- "nulls": "last"
925
- }
926
- ],
927
- "isUnique": false,
928
- "with": {},
929
- "method": "btree",
930
- "concurrently": false
931
- }
932
- },
933
- "foreignKeys": {
934
- "session_active_organization_id_organization_id_fk": {
935
- "name": "session_active_organization_id_organization_id_fk",
936
- "tableFrom": "session",
937
- "columnsFrom": ["active_organization_id"],
938
- "tableTo": "organization",
939
- "columnsTo": ["id"],
940
- "onUpdate": "no action",
941
- "onDelete": "set null"
942
- },
943
- "session_user_id_user_id_fk": {
944
- "name": "session_user_id_user_id_fk",
945
- "tableFrom": "session",
946
- "columnsFrom": ["user_id"],
947
- "tableTo": "user",
948
- "columnsTo": ["id"],
949
- "onUpdate": "no action",
950
- "onDelete": "cascade"
951
- }
952
- },
953
- "compositePrimaryKeys": {},
954
- "uniqueConstraints": {
955
- "session_token_unique": {
956
- "name": "session_token_unique",
957
- "columns": ["token"],
958
- "nullsNotDistinct": false
959
- }
960
- },
961
- "policies": {},
962
- "checkConstraints": {},
963
- "isRLSEnabled": true
964
- },
965
- "public.user": {
966
- "name": "user",
967
- "schema": "",
968
- "columns": {
969
- "created_at": {
970
- "name": "created_at",
971
- "type": "timestamp",
972
- "primaryKey": false,
973
- "notNull": true,
974
- "default": "now()"
975
- },
976
- "email": {
977
- "name": "email",
978
- "type": "text",
979
- "primaryKey": false,
980
- "notNull": true
981
- },
982
- "email_verified": {
983
- "name": "email_verified",
984
- "type": "boolean",
985
- "primaryKey": false,
986
- "notNull": true,
987
- "default": false
988
- },
989
- "id": {
990
- "name": "id",
991
- "type": "text",
992
- "primaryKey": true,
993
- "notNull": true
994
- },
995
- "image": {
996
- "name": "image",
997
- "type": "text",
998
- "primaryKey": false,
999
- "notNull": false
1000
- },
1001
- "name": {
1002
- "name": "name",
1003
- "type": "text",
1004
- "primaryKey": false,
1005
- "notNull": true
1006
- },
1007
- "updated_at": {
1008
- "name": "updated_at",
1009
- "type": "timestamp",
1010
- "primaryKey": false,
1011
- "notNull": true,
1012
- "default": "now()"
1013
- }
1014
- },
1015
- "indexes": {},
1016
- "foreignKeys": {},
1017
- "compositePrimaryKeys": {},
1018
- "uniqueConstraints": {
1019
- "user_email_unique": {
1020
- "name": "user_email_unique",
1021
- "columns": ["email"],
1022
- "nullsNotDistinct": false
1023
- }
1024
- },
1025
- "policies": {},
1026
- "checkConstraints": {},
1027
- "isRLSEnabled": true
1028
- },
1029
- "public.verification": {
1030
- "name": "verification",
1031
- "schema": "",
1032
- "columns": {
1033
- "created_at": {
1034
- "name": "created_at",
1035
- "type": "timestamp",
1036
- "primaryKey": false,
1037
- "notNull": true,
1038
- "default": "now()"
1039
- },
1040
- "expires_at": {
1041
- "name": "expires_at",
1042
- "type": "timestamp",
1043
- "primaryKey": false,
1044
- "notNull": true
1045
- },
1046
- "id": {
1047
- "name": "id",
1048
- "type": "text",
1049
- "primaryKey": true,
1050
- "notNull": true
1051
- },
1052
- "identifier": {
1053
- "name": "identifier",
1054
- "type": "text",
1055
- "primaryKey": false,
1056
- "notNull": true
1057
- },
1058
- "updated_at": {
1059
- "name": "updated_at",
1060
- "type": "timestamp",
1061
- "primaryKey": false,
1062
- "notNull": true,
1063
- "default": "now()"
1064
- },
1065
- "value": {
1066
- "name": "value",
1067
- "type": "text",
1068
- "primaryKey": false,
1069
- "notNull": true
1070
- }
1071
- },
1072
- "indexes": {
1073
- "verification_identifier_idx": {
1074
- "name": "verification_identifier_idx",
1075
- "columns": [
1076
- {
1077
- "expression": "identifier",
1078
- "isExpression": false,
1079
- "asc": true,
1080
- "nulls": "last"
1081
- }
1082
- ],
1083
- "isUnique": false,
1084
- "with": {},
1085
- "method": "btree",
1086
- "concurrently": false
1087
- }
1088
- },
1089
- "foreignKeys": {},
1090
- "compositePrimaryKeys": {},
1091
- "uniqueConstraints": {},
1092
- "policies": {},
1093
- "checkConstraints": {},
1094
- "isRLSEnabled": true
1095
- },
1096
- "public.bigquery_query_costs": {
1097
- "name": "bigquery_query_costs",
1098
- "schema": "",
1099
- "columns": {
1100
- "actual_bytes_billed": {
1101
- "name": "actual_bytes_billed",
1102
- "type": "bigint",
1103
- "primaryKey": false,
1104
- "notNull": false
1105
- },
1106
- "actual_bytes_processed": {
1107
- "name": "actual_bytes_processed",
1108
- "type": "bigint",
1109
- "primaryKey": false,
1110
- "notNull": false
1111
- },
1112
- "actual_cost_usd": {
1113
- "name": "actual_cost_usd",
1114
- "type": "double precision",
1115
- "primaryKey": false,
1116
- "notNull": false
1117
- },
1118
- "cache_hit": {
1119
- "name": "cache_hit",
1120
- "type": "boolean",
1121
- "primaryKey": false,
1122
- "notNull": false
1123
- },
1124
- "connection_name": {
1125
- "name": "connection_name",
1126
- "type": "text",
1127
- "primaryKey": false,
1128
- "notNull": true
1129
- },
1130
- "created_at": {
1131
- "name": "created_at",
1132
- "type": "timestamp with time zone",
1133
- "primaryKey": false,
1134
- "notNull": true,
1135
- "default": "now()"
1136
- },
1137
- "currency": {
1138
- "name": "currency",
1139
- "type": "text",
1140
- "primaryKey": false,
1141
- "notNull": true,
1142
- "default": "'USD'"
1143
- },
1144
- "estimated_bytes_processed": {
1145
- "name": "estimated_bytes_processed",
1146
- "type": "bigint",
1147
- "primaryKey": false,
1148
- "notNull": false
1149
- },
1150
- "estimated_cost_usd": {
1151
- "name": "estimated_cost_usd",
1152
- "type": "double precision",
1153
- "primaryKey": false,
1154
- "notNull": false
1155
- },
1156
- "executed_at": {
1157
- "name": "executed_at",
1158
- "type": "timestamp with time zone",
1159
- "primaryKey": false,
1160
- "notNull": true
1161
- },
1162
- "id": {
1163
- "name": "id",
1164
- "type": "text",
1165
- "primaryKey": true,
1166
- "notNull": true
1167
- },
1168
- "job_id": {
1169
- "name": "job_id",
1170
- "type": "text",
1171
- "primaryKey": false,
1172
- "notNull": false
1173
- },
1174
- "location": {
1175
- "name": "location",
1176
- "type": "text",
1177
- "primaryKey": false,
1178
- "notNull": false
1179
- },
1180
- "organization_id": {
1181
- "name": "organization_id",
1182
- "type": "text",
1183
- "primaryKey": false,
1184
- "notNull": true
1185
- },
1186
- "pricing_model": {
1187
- "name": "pricing_model",
1188
- "type": "text",
1189
- "primaryKey": false,
1190
- "notNull": true,
1191
- "default": "'unknown'"
1192
- },
1193
- "query_id": {
1194
- "name": "query_id",
1195
- "type": "text",
1196
- "primaryKey": false,
1197
- "notNull": true
1198
- },
1199
- "tool_call_id": {
1200
- "name": "tool_call_id",
1201
- "type": "text",
1202
- "primaryKey": false,
1203
- "notNull": true
1204
- }
1205
- },
1206
- "indexes": {
1207
- "idx_bigquery_query_costs_org": {
1208
- "name": "idx_bigquery_query_costs_org",
1209
- "columns": [
1210
- {
1211
- "expression": "organization_id",
1212
- "isExpression": false,
1213
- "asc": true,
1214
- "nulls": "last"
1215
- }
1216
- ],
1217
- "isUnique": false,
1218
- "with": {},
1219
- "method": "btree",
1220
- "concurrently": false
1221
- },
1222
- "idx_bigquery_query_costs_executed_at": {
1223
- "name": "idx_bigquery_query_costs_executed_at",
1224
- "columns": [
1225
- {
1226
- "expression": "executed_at",
1227
- "isExpression": false,
1228
- "asc": true,
1229
- "nulls": "last"
1230
- }
1231
- ],
1232
- "isUnique": false,
1233
- "with": {},
1234
- "method": "btree",
1235
- "concurrently": false
1236
- }
1237
- },
1238
- "foreignKeys": {
1239
- "bigquery_query_costs_organization_id_organization_id_fk": {
1240
- "name": "bigquery_query_costs_organization_id_organization_id_fk",
1241
- "tableFrom": "bigquery_query_costs",
1242
- "columnsFrom": ["organization_id"],
1243
- "tableTo": "organization",
1244
- "columnsTo": ["id"],
1245
- "onUpdate": "no action",
1246
- "onDelete": "cascade"
1247
- }
1248
- },
1249
- "compositePrimaryKeys": {},
1250
- "uniqueConstraints": {},
1251
- "policies": {},
1252
- "checkConstraints": {},
1253
- "isRLSEnabled": true
1254
- },
1255
- "public.connector_jobs": {
1256
- "name": "connector_jobs",
1257
- "schema": "",
1258
- "columns": {
1259
- "completed_at": {
1260
- "name": "completed_at",
1261
- "type": "timestamp with time zone",
1262
- "primaryKey": false,
1263
- "notNull": false
1264
- },
1265
- "connector_id": {
1266
- "name": "connector_id",
1267
- "type": "text",
1268
- "primaryKey": false,
1269
- "notNull": true
1270
- },
1271
- "created_at": {
1272
- "name": "created_at",
1273
- "type": "timestamp with time zone",
1274
- "primaryKey": false,
1275
- "notNull": true,
1276
- "default": "now()"
1277
- },
1278
- "database": {
1279
- "name": "database",
1280
- "type": "text",
1281
- "primaryKey": false,
1282
- "notNull": true
1283
- },
1284
- "job_id": {
1285
- "name": "job_id",
1286
- "type": "text",
1287
- "primaryKey": true,
1288
- "notNull": true
1289
- },
1290
- "leased_at": {
1291
- "name": "leased_at",
1292
- "type": "timestamp with time zone",
1293
- "primaryKey": false,
1294
- "notNull": false
1295
- },
1296
- "max_rows": {
1297
- "name": "max_rows",
1298
- "type": "integer",
1299
- "primaryKey": false,
1300
- "notNull": false
1301
- },
1302
- "outcome": {
1303
- "name": "outcome",
1304
- "type": "jsonb",
1305
- "primaryKey": false,
1306
- "notNull": false
1307
- },
1308
- "sql": {
1309
- "name": "sql",
1310
- "type": "text",
1311
- "primaryKey": false,
1312
- "notNull": true
1313
- },
1314
- "status": {
1315
- "name": "status",
1316
- "type": "text",
1317
- "primaryKey": false,
1318
- "notNull": true
1319
- },
1320
- "timeout_ms": {
1321
- "name": "timeout_ms",
1322
- "type": "integer",
1323
- "primaryKey": false,
1324
- "notNull": false
1325
- },
1326
- "updated_at": {
1327
- "name": "updated_at",
1328
- "type": "timestamp with time zone",
1329
- "primaryKey": false,
1330
- "notNull": true,
1331
- "default": "now()"
1332
- },
1333
- "workgroup": {
1334
- "name": "workgroup",
1335
- "type": "text",
1336
- "primaryKey": false,
1337
- "notNull": false
1338
- }
1339
- },
1340
- "indexes": {
1341
- "idx_connector_jobs_connector_created": {
1342
- "name": "idx_connector_jobs_connector_created",
1343
- "columns": [
1344
- {
1345
- "expression": "connector_id",
1346
- "isExpression": false,
1347
- "asc": true,
1348
- "nulls": "last"
1349
- },
1350
- {
1351
- "expression": "created_at",
1352
- "isExpression": false,
1353
- "asc": true,
1354
- "nulls": "last"
1355
- }
1356
- ],
1357
- "isUnique": false,
1358
- "with": {},
1359
- "method": "btree",
1360
- "concurrently": false
1361
- },
1362
- "idx_connector_jobs_status_created": {
1363
- "name": "idx_connector_jobs_status_created",
1364
- "columns": [
1365
- {
1366
- "expression": "status",
1367
- "isExpression": false,
1368
- "asc": true,
1369
- "nulls": "last"
1370
- },
1371
- {
1372
- "expression": "created_at",
1373
- "isExpression": false,
1374
- "asc": true,
1375
- "nulls": "last"
1376
- }
1377
- ],
1378
- "isUnique": false,
1379
- "with": {},
1380
- "method": "btree",
1381
- "concurrently": false
1382
- }
1383
- },
1384
- "foreignKeys": {
1385
- "connector_jobs_connector_id_connectors_connector_id_fk": {
1386
- "name": "connector_jobs_connector_id_connectors_connector_id_fk",
1387
- "tableFrom": "connector_jobs",
1388
- "columnsFrom": ["connector_id"],
1389
- "tableTo": "connectors",
1390
- "columnsTo": ["connector_id"],
1391
- "onUpdate": "no action",
1392
- "onDelete": "cascade"
1393
- }
1394
- },
1395
- "compositePrimaryKeys": {},
1396
- "uniqueConstraints": {},
1397
- "policies": {},
1398
- "checkConstraints": {},
1399
- "isRLSEnabled": true
1400
- },
1401
- "public.connectors": {
1402
- "name": "connectors",
1403
- "schema": "",
1404
- "columns": {
1405
- "auth_token_hash": {
1406
- "name": "auth_token_hash",
1407
- "type": "text",
1408
- "primaryKey": false,
1409
- "notNull": true
1410
- },
1411
- "connector_id": {
1412
- "name": "connector_id",
1413
- "type": "text",
1414
- "primaryKey": true,
1415
- "notNull": true
1416
- },
1417
- "connector_name": {
1418
- "name": "connector_name",
1419
- "type": "text",
1420
- "primaryKey": false,
1421
- "notNull": true
1422
- },
1423
- "health_status": {
1424
- "name": "health_status",
1425
- "type": "text",
1426
- "primaryKey": false,
1427
- "notNull": false
1428
- },
1429
- "last_heartbeat_at": {
1430
- "name": "last_heartbeat_at",
1431
- "type": "timestamp with time zone",
1432
- "primaryKey": false,
1433
- "notNull": false
1434
- },
1435
- "last_seen_at": {
1436
- "name": "last_seen_at",
1437
- "type": "timestamp with time zone",
1438
- "primaryKey": false,
1439
- "notNull": false
1440
- },
1441
- "metadata": {
1442
- "name": "metadata",
1443
- "type": "jsonb",
1444
- "primaryKey": false,
1445
- "notNull": false
1446
- },
1447
- "organization_id": {
1448
- "name": "organization_id",
1449
- "type": "text",
1450
- "primaryKey": false,
1451
- "notNull": true
1452
- },
1453
- "registered_at": {
1454
- "name": "registered_at",
1455
- "type": "timestamp with time zone",
1456
- "primaryKey": false,
1457
- "notNull": true,
1458
- "default": "now()"
1459
- },
1460
- "updated_at": {
1461
- "name": "updated_at",
1462
- "type": "timestamp with time zone",
1463
- "primaryKey": false,
1464
- "notNull": true,
1465
- "default": "now()"
1466
- }
1467
- },
1468
- "indexes": {
1469
- "idx_connectors_organization": {
1470
- "name": "idx_connectors_organization",
1471
- "columns": [
1472
- {
1473
- "expression": "organization_id",
1474
- "isExpression": false,
1475
- "asc": true,
1476
- "nulls": "last"
1477
- }
1478
- ],
1479
- "isUnique": false,
1480
- "with": {},
1481
- "method": "btree",
1482
- "concurrently": false
1483
- },
1484
- "idx_connectors_last_seen": {
1485
- "name": "idx_connectors_last_seen",
1486
- "columns": [
1487
- {
1488
- "expression": "last_seen_at",
1489
- "isExpression": false,
1490
- "asc": true,
1491
- "nulls": "last"
1492
- }
1493
- ],
1494
- "isUnique": false,
1495
- "with": {},
1496
- "method": "btree",
1497
- "concurrently": false
1498
- },
1499
- "idx_connectors_auth_token_hash_unique": {
1500
- "name": "idx_connectors_auth_token_hash_unique",
1501
- "columns": [
1502
- {
1503
- "expression": "auth_token_hash",
1504
- "isExpression": false,
1505
- "asc": true,
1506
- "nulls": "last"
1507
- }
1508
- ],
1509
- "isUnique": true,
1510
- "with": {},
1511
- "method": "btree",
1512
- "concurrently": false
1513
- }
1514
- },
1515
- "foreignKeys": {
1516
- "connectors_organization_id_organization_id_fk": {
1517
- "name": "connectors_organization_id_organization_id_fk",
1518
- "tableFrom": "connectors",
1519
- "columnsFrom": ["organization_id"],
1520
- "tableTo": "organization",
1521
- "columnsTo": ["id"],
1522
- "onUpdate": "no action",
1523
- "onDelete": "cascade"
1524
- }
1525
- },
1526
- "compositePrimaryKeys": {},
1527
- "uniqueConstraints": {},
1528
- "policies": {},
1529
- "checkConstraints": {},
1530
- "isRLSEnabled": true
1531
- },
1532
- "public.data_source_query_costs": {
1533
- "name": "data_source_query_costs",
1534
- "schema": "",
1535
- "columns": {
1536
- "actual_cost_usd": {
1537
- "name": "actual_cost_usd",
1538
- "type": "double precision",
1539
- "primaryKey": false,
1540
- "notNull": false
1541
- },
1542
- "actual_processed_bytes": {
1543
- "name": "actual_processed_bytes",
1544
- "type": "bigint",
1545
- "primaryKey": false,
1546
- "notNull": false
1547
- },
1548
- "billable_bytes": {
1549
- "name": "billable_bytes",
1550
- "type": "bigint",
1551
- "primaryKey": false,
1552
- "notNull": false
1553
- },
1554
- "cache_hit": {
1555
- "name": "cache_hit",
1556
- "type": "boolean",
1557
- "primaryKey": false,
1558
- "notNull": false
1559
- },
1560
- "connection_name": {
1561
- "name": "connection_name",
1562
- "type": "text",
1563
- "primaryKey": false,
1564
- "notNull": true
1565
- },
1566
- "connector_id": {
1567
- "name": "connector_id",
1568
- "type": "text",
1569
- "primaryKey": false,
1570
- "notNull": false
1571
- },
1572
- "created_at": {
1573
- "name": "created_at",
1574
- "type": "timestamp with time zone",
1575
- "primaryKey": false,
1576
- "notNull": true,
1577
- "default": "now()"
1578
- },
1579
- "currency": {
1580
- "name": "currency",
1581
- "type": "text",
1582
- "primaryKey": false,
1583
- "notNull": true,
1584
- "default": "'USD'"
1585
- },
1586
- "database": {
1587
- "name": "database",
1588
- "type": "text",
1589
- "primaryKey": false,
1590
- "notNull": false
1591
- },
1592
- "estimated_cost_usd": {
1593
- "name": "estimated_cost_usd",
1594
- "type": "double precision",
1595
- "primaryKey": false,
1596
- "notNull": false
1597
- },
1598
- "estimated_processed_bytes": {
1599
- "name": "estimated_processed_bytes",
1600
- "type": "bigint",
1601
- "primaryKey": false,
1602
- "notNull": false
1603
- },
1604
- "executed_at": {
1605
- "name": "executed_at",
1606
- "type": "timestamp with time zone",
1607
- "primaryKey": false,
1608
- "notNull": true
1609
- },
1610
- "execution_time_ms": {
1611
- "name": "execution_time_ms",
1612
- "type": "integer",
1613
- "primaryKey": false,
1614
- "notNull": false
1615
- },
1616
- "id": {
1617
- "name": "id",
1618
- "type": "text",
1619
- "primaryKey": true,
1620
- "notNull": true
1621
- },
1622
- "job_id": {
1623
- "name": "job_id",
1624
- "type": "text",
1625
- "primaryKey": false,
1626
- "notNull": false
1627
- },
1628
- "location": {
1629
- "name": "location",
1630
- "type": "text",
1631
- "primaryKey": false,
1632
- "notNull": false
1633
- },
1634
- "organization_id": {
1635
- "name": "organization_id",
1636
- "type": "text",
1637
- "primaryKey": false,
1638
- "notNull": true
1639
- },
1640
- "pricing_model": {
1641
- "name": "pricing_model",
1642
- "type": "text",
1643
- "primaryKey": false,
1644
- "notNull": true,
1645
- "default": "'unknown'"
1646
- },
1647
- "provider": {
1648
- "name": "provider",
1649
- "type": "text",
1650
- "primaryKey": false,
1651
- "notNull": true
1652
- },
1653
- "query_execution_id": {
1654
- "name": "query_execution_id",
1655
- "type": "text",
1656
- "primaryKey": false,
1657
- "notNull": false
1658
- },
1659
- "query_id": {
1660
- "name": "query_id",
1661
- "type": "text",
1662
- "primaryKey": false,
1663
- "notNull": true
1664
- },
1665
- "row_count": {
1666
- "name": "row_count",
1667
- "type": "integer",
1668
- "primaryKey": false,
1669
- "notNull": false
1670
- },
1671
- "tool_call_id": {
1672
- "name": "tool_call_id",
1673
- "type": "text",
1674
- "primaryKey": false,
1675
- "notNull": true
1676
- },
1677
- "workgroup": {
1678
- "name": "workgroup",
1679
- "type": "text",
1680
- "primaryKey": false,
1681
- "notNull": false
1682
- }
1683
- },
1684
- "indexes": {
1685
- "idx_data_source_query_costs_org": {
1686
- "name": "idx_data_source_query_costs_org",
1687
- "columns": [
1688
- {
1689
- "expression": "organization_id",
1690
- "isExpression": false,
1691
- "asc": true,
1692
- "nulls": "last"
1693
- }
1694
- ],
1695
- "isUnique": false,
1696
- "with": {},
1697
- "method": "btree",
1698
- "concurrently": false
1699
- },
1700
- "idx_data_source_query_costs_provider": {
1701
- "name": "idx_data_source_query_costs_provider",
1702
- "columns": [
1703
- {
1704
- "expression": "provider",
1705
- "isExpression": false,
1706
- "asc": true,
1707
- "nulls": "last"
1708
- }
1709
- ],
1710
- "isUnique": false,
1711
- "with": {},
1712
- "method": "btree",
1713
- "concurrently": false
1714
- },
1715
- "idx_data_source_query_costs_executed_at": {
1716
- "name": "idx_data_source_query_costs_executed_at",
1717
- "columns": [
1718
- {
1719
- "expression": "executed_at",
1720
- "isExpression": false,
1721
- "asc": true,
1722
- "nulls": "last"
1723
- }
1724
- ],
1725
- "isUnique": false,
1726
- "with": {},
1727
- "method": "btree",
1728
- "concurrently": false
1729
- }
1730
- },
1731
- "foreignKeys": {
1732
- "data_source_query_costs_connector_id_connectors_connector_id_fk": {
1733
- "name": "data_source_query_costs_connector_id_connectors_connector_id_fk",
1734
- "tableFrom": "data_source_query_costs",
1735
- "columnsFrom": ["connector_id"],
1736
- "tableTo": "connectors",
1737
- "columnsTo": ["connector_id"],
1738
- "onUpdate": "no action",
1739
- "onDelete": "cascade"
1740
- },
1741
- "data_source_query_costs_organization_id_organization_id_fk": {
1742
- "name": "data_source_query_costs_organization_id_organization_id_fk",
1743
- "tableFrom": "data_source_query_costs",
1744
- "columnsFrom": ["organization_id"],
1745
- "tableTo": "organization",
1746
- "columnsTo": ["id"],
1747
- "onUpdate": "no action",
1748
- "onDelete": "cascade"
1749
- }
1750
- },
1751
- "compositePrimaryKeys": {},
1752
- "uniqueConstraints": {},
1753
- "policies": {},
1754
- "checkConstraints": {},
1755
- "isRLSEnabled": true
1756
- },
1757
- "public.data_sources": {
1758
- "name": "data_sources",
1759
- "schema": "",
1760
- "columns": {
1761
- "created_at": {
1762
- "name": "created_at",
1763
- "type": "timestamp with time zone",
1764
- "primaryKey": false,
1765
- "notNull": true,
1766
- "default": "now()"
1767
- },
1768
- "credentials_encrypted": {
1769
- "name": "credentials_encrypted",
1770
- "type": "text",
1771
- "primaryKey": false,
1772
- "notNull": true
1773
- },
1774
- "credentials_iv": {
1775
- "name": "credentials_iv",
1776
- "type": "text",
1777
- "primaryKey": false,
1778
- "notNull": true
1779
- },
1780
- "error_message": {
1781
- "name": "error_message",
1782
- "type": "text",
1783
- "primaryKey": false,
1784
- "notNull": false
1785
- },
1786
- "id": {
1787
- "name": "id",
1788
- "type": "text",
1789
- "primaryKey": true,
1790
- "notNull": true
1791
- },
1792
- "last_used_at": {
1793
- "name": "last_used_at",
1794
- "type": "timestamp with time zone",
1795
- "primaryKey": false,
1796
- "notNull": false
1797
- },
1798
- "name": {
1799
- "name": "name",
1800
- "type": "text",
1801
- "primaryKey": false,
1802
- "notNull": true
1803
- },
1804
- "organization_id": {
1805
- "name": "organization_id",
1806
- "type": "text",
1807
- "primaryKey": false,
1808
- "notNull": true
1809
- },
1810
- "provider": {
1811
- "name": "provider",
1812
- "type": "text",
1813
- "primaryKey": false,
1814
- "notNull": true
1815
- },
1816
- "provider_account_id": {
1817
- "name": "provider_account_id",
1818
- "type": "text",
1819
- "primaryKey": false,
1820
- "notNull": false
1821
- },
1822
- "scope": {
1823
- "name": "scope",
1824
- "type": "text",
1825
- "primaryKey": false,
1826
- "notNull": false
1827
- },
1828
- "status": {
1829
- "name": "status",
1830
- "type": "text",
1831
- "primaryKey": false,
1832
- "notNull": true,
1833
- "default": "'active'"
1834
- },
1835
- "updated_at": {
1836
- "name": "updated_at",
1837
- "type": "timestamp with time zone",
1838
- "primaryKey": false,
1839
- "notNull": true,
1840
- "default": "now()"
1841
- },
1842
- "use_as_data_source": {
1843
- "name": "use_as_data_source",
1844
- "type": "boolean",
1845
- "primaryKey": false,
1846
- "notNull": true,
1847
- "default": true
1848
- }
1849
- },
1850
- "indexes": {
1851
- "idx_data_sources_organization": {
1852
- "name": "idx_data_sources_organization",
1853
- "columns": [
1854
- {
1855
- "expression": "organization_id",
1856
- "isExpression": false,
1857
- "asc": true,
1858
- "nulls": "last"
1859
- }
1860
- ],
1861
- "isUnique": false,
1862
- "with": {},
1863
- "method": "btree",
1864
- "concurrently": false
1865
- },
1866
- "idx_data_sources_provider": {
1867
- "name": "idx_data_sources_provider",
1868
- "columns": [
1869
- {
1870
- "expression": "provider",
1871
- "isExpression": false,
1872
- "asc": true,
1873
- "nulls": "last"
1874
- }
1875
- ],
1876
- "isUnique": false,
1877
- "with": {},
1878
- "method": "btree",
1879
- "concurrently": false
1880
- },
1881
- "idx_data_sources_provider_account": {
1882
- "name": "idx_data_sources_provider_account",
1883
- "columns": [
1884
- {
1885
- "expression": "provider",
1886
- "isExpression": false,
1887
- "asc": true,
1888
- "nulls": "last"
1889
- },
1890
- {
1891
- "expression": "provider_account_id",
1892
- "isExpression": false,
1893
- "asc": true,
1894
- "nulls": "last"
1895
- }
1896
- ],
1897
- "isUnique": false,
1898
- "with": {},
1899
- "method": "btree",
1900
- "concurrently": false
1901
- },
1902
- "idx_data_sources_status": {
1903
- "name": "idx_data_sources_status",
1904
- "columns": [
1905
- {
1906
- "expression": "status",
1907
- "isExpression": false,
1908
- "asc": true,
1909
- "nulls": "last"
1910
- }
1911
- ],
1912
- "isUnique": false,
1913
- "with": {},
1914
- "method": "btree",
1915
- "concurrently": false
1916
- }
1917
- },
1918
- "foreignKeys": {
1919
- "data_sources_organization_id_organization_id_fk": {
1920
- "name": "data_sources_organization_id_organization_id_fk",
1921
- "tableFrom": "data_sources",
1922
- "columnsFrom": ["organization_id"],
1923
- "tableTo": "organization",
1924
- "columnsTo": ["id"],
1925
- "onUpdate": "no action",
1926
- "onDelete": "cascade"
1927
- }
1928
- },
1929
- "compositePrimaryKeys": {},
1930
- "uniqueConstraints": {
1931
- "data_sources_organization_name_unique": {
1932
- "name": "data_sources_organization_name_unique",
1933
- "columns": ["organization_id", "name"],
1934
- "nullsNotDistinct": false
1935
- }
1936
- },
1937
- "policies": {},
1938
- "checkConstraints": {},
1939
- "isRLSEnabled": true
1940
- },
1941
- "public.data_source_table_usage": {
1942
- "name": "data_source_table_usage",
1943
- "schema": "",
1944
- "columns": {
1945
- "column_memos": {
1946
- "name": "column_memos",
1947
- "type": "jsonb",
1948
- "primaryKey": false,
1949
- "notNull": true,
1950
- "default": "'{}'::jsonb"
1951
- },
1952
- "created_at": {
1953
- "name": "created_at",
1954
- "type": "timestamp with time zone",
1955
- "primaryKey": false,
1956
- "notNull": true,
1957
- "default": "now()"
1958
- },
1959
- "data_source_id": {
1960
- "name": "data_source_id",
1961
- "type": "text",
1962
- "primaryKey": false,
1963
- "notNull": true
1964
- },
1965
- "formatted": {
1966
- "name": "formatted",
1967
- "type": "text",
1968
- "primaryKey": false,
1969
- "notNull": true
1970
- },
1971
- "generated_at": {
1972
- "name": "generated_at",
1973
- "type": "timestamp with time zone",
1974
- "primaryKey": false,
1975
- "notNull": true
1976
- },
1977
- "id": {
1978
- "name": "id",
1979
- "type": "text",
1980
- "primaryKey": true,
1981
- "notNull": true
1982
- },
1983
- "memo_updated_at": {
1984
- "name": "memo_updated_at",
1985
- "type": "timestamp with time zone",
1986
- "primaryKey": false,
1987
- "notNull": false
1988
- },
1989
- "memo_updated_by": {
1990
- "name": "memo_updated_by",
1991
- "type": "text",
1992
- "primaryKey": false,
1993
- "notNull": false
1994
- },
1995
- "organization_id": {
1996
- "name": "organization_id",
1997
- "type": "text",
1998
- "primaryKey": false,
1999
- "notNull": true
2000
- },
2001
- "provider": {
2002
- "name": "provider",
2003
- "type": "text",
2004
- "primaryKey": false,
2005
- "notNull": true
2006
- },
2007
- "schema_hash": {
2008
- "name": "schema_hash",
2009
- "type": "text",
2010
- "primaryKey": false,
2011
- "notNull": false
2012
- },
2013
- "table_lineage": {
2014
- "name": "table_lineage",
2015
- "type": "jsonb",
2016
- "primaryKey": false,
2017
- "notNull": true,
2018
- "default": "'{}'::jsonb"
2019
- },
2020
- "table_memos": {
2021
- "name": "table_memos",
2022
- "type": "jsonb",
2023
- "primaryKey": false,
2024
- "notNull": true,
2025
- "default": "'{}'::jsonb"
2026
- },
2027
- "tables": {
2028
- "name": "tables",
2029
- "type": "jsonb",
2030
- "primaryKey": false,
2031
- "notNull": true
2032
- },
2033
- "updated_at": {
2034
- "name": "updated_at",
2035
- "type": "timestamp with time zone",
2036
- "primaryKey": false,
2037
- "notNull": true,
2038
- "default": "now()"
2039
- }
2040
- },
2041
- "indexes": {
2042
- "idx_data_source_table_usage_source": {
2043
- "name": "idx_data_source_table_usage_source",
2044
- "columns": [
2045
- {
2046
- "expression": "data_source_id",
2047
- "isExpression": false,
2048
- "asc": true,
2049
- "nulls": "last"
2050
- }
2051
- ],
2052
- "isUnique": true,
2053
- "with": {},
2054
- "method": "btree",
2055
- "concurrently": false
2056
- },
2057
- "idx_data_source_table_usage_org": {
2058
- "name": "idx_data_source_table_usage_org",
2059
- "columns": [
2060
- {
2061
- "expression": "organization_id",
2062
- "isExpression": false,
2063
- "asc": true,
2064
- "nulls": "last"
2065
- }
2066
- ],
2067
- "isUnique": false,
2068
- "with": {},
2069
- "method": "btree",
2070
- "concurrently": false
2071
- },
2072
- "idx_data_source_table_usage_provider": {
2073
- "name": "idx_data_source_table_usage_provider",
2074
- "columns": [
2075
- {
2076
- "expression": "provider",
2077
- "isExpression": false,
2078
- "asc": true,
2079
- "nulls": "last"
2080
- }
2081
- ],
2082
- "isUnique": false,
2083
- "with": {},
2084
- "method": "btree",
2085
- "concurrently": false
2086
- },
2087
- "idx_data_source_table_usage_generated_at": {
2088
- "name": "idx_data_source_table_usage_generated_at",
2089
- "columns": [
2090
- {
2091
- "expression": "generated_at",
2092
- "isExpression": false,
2093
- "asc": true,
2094
- "nulls": "last"
2095
- }
2096
- ],
2097
- "isUnique": false,
2098
- "with": {},
2099
- "method": "btree",
2100
- "concurrently": false
2101
- }
2102
- },
2103
- "foreignKeys": {
2104
- "data_source_table_usage_data_source_id_data_sources_id_fk": {
2105
- "name": "data_source_table_usage_data_source_id_data_sources_id_fk",
2106
- "tableFrom": "data_source_table_usage",
2107
- "columnsFrom": ["data_source_id"],
2108
- "tableTo": "data_sources",
2109
- "columnsTo": ["id"],
2110
- "onUpdate": "no action",
2111
- "onDelete": "cascade"
2112
- },
2113
- "data_source_table_usage_memo_updated_by_user_id_fk": {
2114
- "name": "data_source_table_usage_memo_updated_by_user_id_fk",
2115
- "tableFrom": "data_source_table_usage",
2116
- "columnsFrom": ["memo_updated_by"],
2117
- "tableTo": "user",
2118
- "columnsTo": ["id"],
2119
- "onUpdate": "no action",
2120
- "onDelete": "set null"
2121
- },
2122
- "data_source_table_usage_organization_id_organization_id_fk": {
2123
- "name": "data_source_table_usage_organization_id_organization_id_fk",
2124
- "tableFrom": "data_source_table_usage",
2125
- "columnsFrom": ["organization_id"],
2126
- "tableTo": "organization",
2127
- "columnsTo": ["id"],
2128
- "onUpdate": "no action",
2129
- "onDelete": "cascade"
2130
- }
2131
- },
2132
- "compositePrimaryKeys": {},
2133
- "uniqueConstraints": {},
2134
- "policies": {},
2135
- "checkConstraints": {},
2136
- "isRLSEnabled": true
2137
- },
2138
- "public.organization_profiles": {
2139
- "name": "organization_profiles",
2140
- "schema": "",
2141
- "columns": {
2142
- "id": {
2143
- "name": "id",
2144
- "type": "text",
2145
- "primaryKey": true,
2146
- "notNull": true
2147
- },
2148
- "organization_id": {
2149
- "name": "organization_id",
2150
- "type": "text",
2151
- "primaryKey": false,
2152
- "notNull": true
2153
- },
2154
- "north_star_metric": {
2155
- "name": "north_star_metric",
2156
- "type": "text",
2157
- "primaryKey": false,
2158
- "notNull": false
2159
- },
2160
- "kpis": {
2161
- "name": "kpis",
2162
- "type": "jsonb",
2163
- "primaryKey": false,
2164
- "notNull": true,
2165
- "default": "'[]'::jsonb"
2166
- },
2167
- "website_url": {
2168
- "name": "website_url",
2169
- "type": "text",
2170
- "primaryKey": false,
2171
- "notNull": false
2172
- },
2173
- "monthly_budget_usd": {
2174
- "name": "monthly_budget_usd",
2175
- "type": "double precision",
2176
- "primaryKey": false,
2177
- "notNull": false
2178
- },
2179
- "created_at": {
2180
- "name": "created_at",
2181
- "type": "timestamp with time zone",
2182
- "primaryKey": false,
2183
- "notNull": true,
2184
- "default": "now()"
2185
- },
2186
- "updated_at": {
2187
- "name": "updated_at",
2188
- "type": "timestamp with time zone",
2189
- "primaryKey": false,
2190
- "notNull": true,
2191
- "default": "now()"
2192
- }
2193
- },
2194
- "indexes": {
2195
- "idx_org_profiles_org": {
2196
- "name": "idx_org_profiles_org",
2197
- "columns": [
2198
- {
2199
- "expression": "organization_id",
2200
- "isExpression": false,
2201
- "asc": true,
2202
- "nulls": "last"
2203
- }
2204
- ],
2205
- "isUnique": true,
2206
- "with": {},
2207
- "method": "btree",
2208
- "concurrently": false
2209
- },
2210
- "idx_org_profiles_created": {
2211
- "name": "idx_org_profiles_created",
2212
- "columns": [
2213
- {
2214
- "expression": "created_at",
2215
- "isExpression": false,
2216
- "asc": true,
2217
- "nulls": "last"
2218
- }
2219
- ],
2220
- "isUnique": false,
2221
- "with": {},
2222
- "method": "btree",
2223
- "concurrently": false
2224
- }
2225
- },
2226
- "foreignKeys": {
2227
- "organization_profiles_organization_id_organization_id_fk": {
2228
- "name": "organization_profiles_organization_id_organization_id_fk",
2229
- "tableFrom": "organization_profiles",
2230
- "columnsFrom": ["organization_id"],
2231
- "tableTo": "organization",
2232
- "columnsTo": ["id"],
2233
- "onUpdate": "no action",
2234
- "onDelete": "cascade"
2235
- }
2236
- },
2237
- "compositePrimaryKeys": {},
2238
- "uniqueConstraints": {},
2239
- "policies": {},
2240
- "checkConstraints": {},
2241
- "isRLSEnabled": true
2242
- },
2243
- "public.query_actions": {
2244
- "name": "query_actions",
2245
- "schema": "",
2246
- "columns": {
2247
- "completed_at": {
2248
- "name": "completed_at",
2249
- "type": "timestamp with time zone",
2250
- "primaryKey": false,
2251
- "notNull": false
2252
- },
2253
- "failure_code": {
2254
- "name": "failure_code",
2255
- "type": "text",
2256
- "primaryKey": false,
2257
- "notNull": false
2258
- },
2259
- "id": {
2260
- "name": "id",
2261
- "type": "text",
2262
- "primaryKey": true,
2263
- "notNull": true
2264
- },
2265
- "last_event_id": {
2266
- "name": "last_event_id",
2267
- "type": "text",
2268
- "primaryKey": false,
2269
- "notNull": true
2270
- },
2271
- "last_event_sequence": {
2272
- "name": "last_event_sequence",
2273
- "type": "integer",
2274
- "primaryKey": false,
2275
- "notNull": true
2276
- },
2277
- "organization_id": {
2278
- "name": "organization_id",
2279
- "type": "text",
2280
- "primaryKey": false,
2281
- "notNull": true
2282
- },
2283
- "outcome": {
2284
- "name": "outcome",
2285
- "type": "text",
2286
- "primaryKey": false,
2287
- "notNull": true
2288
- },
2289
- "phase": {
2290
- "name": "phase",
2291
- "type": "text",
2292
- "primaryKey": false,
2293
- "notNull": true
2294
- },
2295
- "query_mode": {
2296
- "name": "query_mode",
2297
- "type": "text",
2298
- "primaryKey": false,
2299
- "notNull": true
2300
- },
2301
- "query_text": {
2302
- "name": "query_text",
2303
- "type": "text",
2304
- "primaryKey": false,
2305
- "notNull": true
2306
- },
2307
- "source_descriptor_json": {
2308
- "name": "source_descriptor_json",
2309
- "type": "jsonb",
2310
- "primaryKey": false,
2311
- "notNull": false
2312
- },
2313
- "started_at": {
2314
- "name": "started_at",
2315
- "type": "timestamp with time zone",
2316
- "primaryKey": false,
2317
- "notNull": true
2318
- },
2319
- "usage_recording_status": {
2320
- "name": "usage_recording_status",
2321
- "type": "text",
2322
- "primaryKey": false,
2323
- "notNull": true
2324
- },
2325
- "validated_query": {
2326
- "name": "validated_query",
2327
- "type": "text",
2328
- "primaryKey": false,
2329
- "notNull": false
2330
- }
2331
- },
2332
- "indexes": {
2333
- "idx_query_actions_org_started": {
2334
- "name": "idx_query_actions_org_started",
2335
- "columns": [
2336
- {
2337
- "expression": "organization_id",
2338
- "isExpression": false,
2339
- "asc": true,
2340
- "nulls": "last"
2341
- },
2342
- {
2343
- "expression": "started_at",
2344
- "isExpression": false,
2345
- "asc": true,
2346
- "nulls": "last"
2347
- }
2348
- ],
2349
- "isUnique": false,
2350
- "with": {},
2351
- "method": "btree",
2352
- "concurrently": false
2353
- }
2354
- },
2355
- "foreignKeys": {
2356
- "query_actions_organization_id_organization_id_fk": {
2357
- "name": "query_actions_organization_id_organization_id_fk",
2358
- "tableFrom": "query_actions",
2359
- "columnsFrom": ["organization_id"],
2360
- "tableTo": "organization",
2361
- "columnsTo": ["id"],
2362
- "onUpdate": "no action",
2363
- "onDelete": "cascade"
2364
- }
2365
- },
2366
- "compositePrimaryKeys": {},
2367
- "uniqueConstraints": {},
2368
- "policies": {},
2369
- "checkConstraints": {
2370
- "query_actions_completed_at_outcome_check": {
2371
- "name": "query_actions_completed_at_outcome_check",
2372
- "value": "((\"query_actions\".\"outcome\" = 'pending' and \"query_actions\".\"completed_at\" is null) or (\"query_actions\".\"outcome\" <> 'pending' and \"query_actions\".\"completed_at\" is not null))"
2373
- },
2374
- "query_actions_completed_phase_outcome_check": {
2375
- "name": "query_actions_completed_phase_outcome_check",
2376
- "value": "((\"query_actions\".\"outcome\" = 'pending' and \"query_actions\".\"phase\" <> 'completed') or (\"query_actions\".\"outcome\" <> 'pending' and \"query_actions\".\"phase\" = 'completed'))"
2377
- },
2378
- "query_actions_failure_code_outcome_check": {
2379
- "name": "query_actions_failure_code_outcome_check",
2380
- "value": "((\"query_actions\".\"outcome\" = 'failed' and \"query_actions\".\"failure_code\" is not null) or (\"query_actions\".\"outcome\" <> 'failed' and \"query_actions\".\"failure_code\" is null))"
2381
- },
2382
- "query_actions_last_event_sequence_positive_check": {
2383
- "name": "query_actions_last_event_sequence_positive_check",
2384
- "value": "\"query_actions\".\"last_event_sequence\" > 0"
2385
- }
2386
- },
2387
- "isRLSEnabled": true
2388
- },
2389
- "public.query_action_events": {
2390
- "name": "query_action_events",
2391
- "schema": "",
2392
- "columns": {
2393
- "action_id": {
2394
- "name": "action_id",
2395
- "type": "text",
2396
- "primaryKey": false,
2397
- "notNull": true
2398
- },
2399
- "command_id": {
2400
- "name": "command_id",
2401
- "type": "text",
2402
- "primaryKey": false,
2403
- "notNull": true
2404
- },
2405
- "commit_position": {
2406
- "name": "commit_position",
2407
- "type": "bigserial",
2408
- "primaryKey": false,
2409
- "notNull": true
2410
- },
2411
- "event_type": {
2412
- "name": "event_type",
2413
- "type": "text",
2414
- "primaryKey": false,
2415
- "notNull": true
2416
- },
2417
- "id": {
2418
- "name": "id",
2419
- "type": "text",
2420
- "primaryKey": true,
2421
- "notNull": true
2422
- },
2423
- "occurred_at": {
2424
- "name": "occurred_at",
2425
- "type": "timestamp with time zone",
2426
- "primaryKey": false,
2427
- "notNull": true
2428
- },
2429
- "payload_bytes": {
2430
- "name": "payload_bytes",
2431
- "type": "bytea",
2432
- "primaryKey": false,
2433
- "notNull": true
2434
- },
2435
- "sequence": {
2436
- "name": "sequence",
2437
- "type": "integer",
2438
- "primaryKey": false,
2439
- "notNull": true
2440
- }
2441
- },
2442
- "indexes": {
2443
- "idx_query_action_events_action_sequence_unique": {
2444
- "name": "idx_query_action_events_action_sequence_unique",
2445
- "columns": [
2446
- {
2447
- "expression": "action_id",
2448
- "isExpression": false,
2449
- "asc": true,
2450
- "nulls": "last"
2451
- },
2452
- {
2453
- "expression": "sequence",
2454
- "isExpression": false,
2455
- "asc": true,
2456
- "nulls": "last"
2457
- }
2458
- ],
2459
- "isUnique": true,
2460
- "with": {},
2461
- "method": "btree",
2462
- "concurrently": false
2463
- },
2464
- "idx_query_action_events_commit_position_unique": {
2465
- "name": "idx_query_action_events_commit_position_unique",
2466
- "columns": [
2467
- {
2468
- "expression": "commit_position",
2469
- "isExpression": false,
2470
- "asc": true,
2471
- "nulls": "last"
2472
- }
2473
- ],
2474
- "isUnique": true,
2475
- "with": {},
2476
- "method": "btree",
2477
- "concurrently": false
2478
- },
2479
- "idx_query_action_events_command_sequence": {
2480
- "name": "idx_query_action_events_command_sequence",
2481
- "columns": [
2482
- {
2483
- "expression": "command_id",
2484
- "isExpression": false,
2485
- "asc": true,
2486
- "nulls": "last"
2487
- },
2488
- {
2489
- "expression": "sequence",
2490
- "isExpression": false,
2491
- "asc": true,
2492
- "nulls": "last"
2493
- }
2494
- ],
2495
- "isUnique": false,
2496
- "with": {},
2497
- "method": "btree",
2498
- "concurrently": false
2499
- }
2500
- },
2501
- "foreignKeys": {
2502
- "query_action_events_command_id_workflow_commands_id_fk": {
2503
- "name": "query_action_events_command_id_workflow_commands_id_fk",
2504
- "tableFrom": "query_action_events",
2505
- "columnsFrom": ["command_id"],
2506
- "tableTo": "workflow_commands",
2507
- "columnsTo": ["id"],
2508
- "onUpdate": "no action",
2509
- "onDelete": "cascade"
2510
- }
2511
- },
2512
- "compositePrimaryKeys": {},
2513
- "uniqueConstraints": {},
2514
- "policies": {},
2515
- "checkConstraints": {},
2516
- "isRLSEnabled": true
2517
- },
2518
- "public.user_profiles": {
2519
- "name": "user_profiles",
2520
- "schema": "",
2521
- "columns": {
2522
- "created_at": {
2523
- "name": "created_at",
2524
- "type": "timestamp with time zone",
2525
- "primaryKey": false,
2526
- "notNull": true,
2527
- "default": "now()"
2528
- },
2529
- "id": {
2530
- "name": "id",
2531
- "type": "text",
2532
- "primaryKey": true,
2533
- "notNull": true
2534
- },
2535
- "updated_at": {
2536
- "name": "updated_at",
2537
- "type": "timestamp with time zone",
2538
- "primaryKey": false,
2539
- "notNull": true,
2540
- "default": "now()"
2541
- },
2542
- "user_id": {
2543
- "name": "user_id",
2544
- "type": "text",
2545
- "primaryKey": false,
2546
- "notNull": true
2547
- }
2548
- },
2549
- "indexes": {
2550
- "idx_user_profiles_user": {
2551
- "name": "idx_user_profiles_user",
2552
- "columns": [
2553
- {
2554
- "expression": "user_id",
2555
- "isExpression": false,
2556
- "asc": true,
2557
- "nulls": "last"
2558
- }
2559
- ],
2560
- "isUnique": true,
2561
- "with": {},
2562
- "method": "btree",
2563
- "concurrently": false
2564
- }
2565
- },
2566
- "foreignKeys": {
2567
- "user_profiles_user_id_user_id_fk": {
2568
- "name": "user_profiles_user_id_user_id_fk",
2569
- "tableFrom": "user_profiles",
2570
- "columnsFrom": ["user_id"],
2571
- "tableTo": "user",
2572
- "columnsTo": ["id"],
2573
- "onUpdate": "no action",
2574
- "onDelete": "cascade"
2575
- }
2576
- },
2577
- "compositePrimaryKeys": {},
2578
- "uniqueConstraints": {},
2579
- "policies": {},
2580
- "checkConstraints": {},
2581
- "isRLSEnabled": true
2582
- },
2583
- "public.source_api_actions": {
2584
- "name": "source_api_actions",
2585
- "schema": "",
2586
- "columns": {
2587
- "attempt_number": {
2588
- "name": "attempt_number",
2589
- "type": "integer",
2590
- "primaryKey": false,
2591
- "notNull": false
2592
- },
2593
- "completed_at": {
2594
- "name": "completed_at",
2595
- "type": "timestamp with time zone",
2596
- "primaryKey": false,
2597
- "notNull": false
2598
- },
2599
- "failure_code": {
2600
- "name": "failure_code",
2601
- "type": "text",
2602
- "primaryKey": false,
2603
- "notNull": false
2604
- },
2605
- "id": {
2606
- "name": "id",
2607
- "type": "text",
2608
- "primaryKey": true,
2609
- "notNull": true
2610
- },
2611
- "invoke_mode": {
2612
- "name": "invoke_mode",
2613
- "type": "text",
2614
- "primaryKey": false,
2615
- "notNull": false
2616
- },
2617
- "last_event_id": {
2618
- "name": "last_event_id",
2619
- "type": "text",
2620
- "primaryKey": false,
2621
- "notNull": true
2622
- },
2623
- "last_event_sequence": {
2624
- "name": "last_event_sequence",
2625
- "type": "integer",
2626
- "primaryKey": false,
2627
- "notNull": true
2628
- },
2629
- "organization_id": {
2630
- "name": "organization_id",
2631
- "type": "text",
2632
- "primaryKey": false,
2633
- "notNull": true
2634
- },
2635
- "outcome": {
2636
- "name": "outcome",
2637
- "type": "text",
2638
- "primaryKey": false,
2639
- "notNull": true
2640
- },
2641
- "page_progress_json": {
2642
- "name": "page_progress_json",
2643
- "type": "jsonb",
2644
- "primaryKey": false,
2645
- "notNull": false
2646
- },
2647
- "phase": {
2648
- "name": "phase",
2649
- "type": "text",
2650
- "primaryKey": false,
2651
- "notNull": true
2652
- },
2653
- "prepared_request_fingerprint": {
2654
- "name": "prepared_request_fingerprint",
2655
- "type": "text",
2656
- "primaryKey": false,
2657
- "notNull": false
2658
- },
2659
- "request_descriptor_json": {
2660
- "name": "request_descriptor_json",
2661
- "type": "jsonb",
2662
- "primaryKey": false,
2663
- "notNull": false
2664
- },
2665
- "request_kind": {
2666
- "name": "request_kind",
2667
- "type": "text",
2668
- "primaryKey": false,
2669
- "notNull": true
2670
- },
2671
- "source_descriptor_json": {
2672
- "name": "source_descriptor_json",
2673
- "type": "jsonb",
2674
- "primaryKey": false,
2675
- "notNull": false
2676
- },
2677
- "started_at": {
2678
- "name": "started_at",
2679
- "type": "timestamp with time zone",
2680
- "primaryKey": false,
2681
- "notNull": true
2682
- }
2683
- },
2684
- "indexes": {
2685
- "idx_source_api_actions_org_started": {
2686
- "name": "idx_source_api_actions_org_started",
2687
- "columns": [
2688
- {
2689
- "expression": "organization_id",
2690
- "isExpression": false,
2691
- "asc": true,
2692
- "nulls": "last"
2693
- },
2694
- {
2695
- "expression": "started_at",
2696
- "isExpression": false,
2697
- "asc": true,
2698
- "nulls": "last"
2699
- }
2700
- ],
2701
- "isUnique": false,
2702
- "with": {},
2703
- "method": "btree",
2704
- "concurrently": false
2705
- }
2706
- },
2707
- "foreignKeys": {
2708
- "source_api_actions_organization_id_organization_id_fk": {
2709
- "name": "source_api_actions_organization_id_organization_id_fk",
2710
- "tableFrom": "source_api_actions",
2711
- "columnsFrom": ["organization_id"],
2712
- "tableTo": "organization",
2713
- "columnsTo": ["id"],
2714
- "onUpdate": "no action",
2715
- "onDelete": "cascade"
2716
- }
2717
- },
2718
- "compositePrimaryKeys": {},
2719
- "uniqueConstraints": {},
2720
- "policies": {},
2721
- "checkConstraints": {
2722
- "source_api_actions_completed_at_outcome_check": {
2723
- "name": "source_api_actions_completed_at_outcome_check",
2724
- "value": "((\"source_api_actions\".\"outcome\" = 'pending' and \"source_api_actions\".\"completed_at\" is null) or (\"source_api_actions\".\"outcome\" <> 'pending' and \"source_api_actions\".\"completed_at\" is not null))"
2725
- },
2726
- "source_api_actions_completed_phase_outcome_check": {
2727
- "name": "source_api_actions_completed_phase_outcome_check",
2728
- "value": "((\"source_api_actions\".\"outcome\" = 'pending' and \"source_api_actions\".\"phase\" <> 'completed') or (\"source_api_actions\".\"outcome\" <> 'pending' and \"source_api_actions\".\"phase\" = 'completed'))"
2729
- },
2730
- "source_api_actions_failure_code_outcome_check": {
2731
- "name": "source_api_actions_failure_code_outcome_check",
2732
- "value": "((\"source_api_actions\".\"outcome\" = 'failed' and \"source_api_actions\".\"failure_code\" is not null) or (\"source_api_actions\".\"outcome\" <> 'failed' and \"source_api_actions\".\"failure_code\" is null))"
2733
- },
2734
- "source_api_actions_last_event_sequence_positive_check": {
2735
- "name": "source_api_actions_last_event_sequence_positive_check",
2736
- "value": "\"source_api_actions\".\"last_event_sequence\" > 0"
2737
- }
2738
- },
2739
- "isRLSEnabled": true
2740
- },
2741
- "public.source_api_action_events": {
2742
- "name": "source_api_action_events",
2743
- "schema": "",
2744
- "columns": {
2745
- "action_id": {
2746
- "name": "action_id",
2747
- "type": "text",
2748
- "primaryKey": false,
2749
- "notNull": true
2750
- },
2751
- "command_id": {
2752
- "name": "command_id",
2753
- "type": "text",
2754
- "primaryKey": false,
2755
- "notNull": true
2756
- },
2757
- "commit_position": {
2758
- "name": "commit_position",
2759
- "type": "bigserial",
2760
- "primaryKey": false,
2761
- "notNull": true
2762
- },
2763
- "event_type": {
2764
- "name": "event_type",
2765
- "type": "text",
2766
- "primaryKey": false,
2767
- "notNull": true
2768
- },
2769
- "id": {
2770
- "name": "id",
2771
- "type": "text",
2772
- "primaryKey": true,
2773
- "notNull": true
2774
- },
2775
- "occurred_at": {
2776
- "name": "occurred_at",
2777
- "type": "timestamp with time zone",
2778
- "primaryKey": false,
2779
- "notNull": true
2780
- },
2781
- "payload_bytes": {
2782
- "name": "payload_bytes",
2783
- "type": "bytea",
2784
- "primaryKey": false,
2785
- "notNull": true
2786
- },
2787
- "sequence": {
2788
- "name": "sequence",
2789
- "type": "integer",
2790
- "primaryKey": false,
2791
- "notNull": true
2792
- }
2793
- },
2794
- "indexes": {
2795
- "idx_source_api_action_events_action_sequence_unique": {
2796
- "name": "idx_source_api_action_events_action_sequence_unique",
2797
- "columns": [
2798
- {
2799
- "expression": "action_id",
2800
- "isExpression": false,
2801
- "asc": true,
2802
- "nulls": "last"
2803
- },
2804
- {
2805
- "expression": "sequence",
2806
- "isExpression": false,
2807
- "asc": true,
2808
- "nulls": "last"
2809
- }
2810
- ],
2811
- "isUnique": true,
2812
- "with": {},
2813
- "method": "btree",
2814
- "concurrently": false
2815
- },
2816
- "idx_source_api_action_events_commit_position_unique": {
2817
- "name": "idx_source_api_action_events_commit_position_unique",
2818
- "columns": [
2819
- {
2820
- "expression": "commit_position",
2821
- "isExpression": false,
2822
- "asc": true,
2823
- "nulls": "last"
2824
- }
2825
- ],
2826
- "isUnique": true,
2827
- "with": {},
2828
- "method": "btree",
2829
- "concurrently": false
2830
- },
2831
- "idx_source_api_action_events_command_sequence": {
2832
- "name": "idx_source_api_action_events_command_sequence",
2833
- "columns": [
2834
- {
2835
- "expression": "command_id",
2836
- "isExpression": false,
2837
- "asc": true,
2838
- "nulls": "last"
2839
- },
2840
- {
2841
- "expression": "sequence",
2842
- "isExpression": false,
2843
- "asc": true,
2844
- "nulls": "last"
2845
- }
2846
- ],
2847
- "isUnique": false,
2848
- "with": {},
2849
- "method": "btree",
2850
- "concurrently": false
2851
- }
2852
- },
2853
- "foreignKeys": {
2854
- "source_api_action_events_command_id_workflow_commands_id_fk": {
2855
- "name": "source_api_action_events_command_id_workflow_commands_id_fk",
2856
- "tableFrom": "source_api_action_events",
2857
- "columnsFrom": ["command_id"],
2858
- "tableTo": "workflow_commands",
2859
- "columnsTo": ["id"],
2860
- "onUpdate": "no action",
2861
- "onDelete": "cascade"
2862
- }
2863
- },
2864
- "compositePrimaryKeys": {},
2865
- "uniqueConstraints": {},
2866
- "policies": {},
2867
- "checkConstraints": {},
2868
- "isRLSEnabled": true
2869
- },
2870
- "public.workflow_commands": {
2871
- "name": "workflow_commands",
2872
- "schema": "",
2873
- "columns": {
2874
- "action_id": {
2875
- "name": "action_id",
2876
- "type": "text",
2877
- "primaryKey": false,
2878
- "notNull": false
2879
- },
2880
- "actor_snapshot_json": {
2881
- "name": "actor_snapshot_json",
2882
- "type": "jsonb",
2883
- "primaryKey": false,
2884
- "notNull": true
2885
- },
2886
- "caused_by_event_id": {
2887
- "name": "caused_by_event_id",
2888
- "type": "text",
2889
- "primaryKey": false,
2890
- "notNull": false
2891
- },
2892
- "command_invocation_id": {
2893
- "name": "command_invocation_id",
2894
- "type": "text",
2895
- "primaryKey": false,
2896
- "notNull": true
2897
- },
2898
- "command_payload_bytes": {
2899
- "name": "command_payload_bytes",
2900
- "type": "bytea",
2901
- "primaryKey": false,
2902
- "notNull": true
2903
- },
2904
- "command_type": {
2905
- "name": "command_type",
2906
- "type": "text",
2907
- "primaryKey": false,
2908
- "notNull": true
2909
- },
2910
- "created_at": {
2911
- "name": "created_at",
2912
- "type": "timestamp with time zone",
2913
- "primaryKey": false,
2914
- "notNull": true
2915
- },
2916
- "decision_kind": {
2917
- "name": "decision_kind",
2918
- "type": "text",
2919
- "primaryKey": false,
2920
- "notNull": true
2921
- },
2922
- "family": {
2923
- "name": "family",
2924
- "type": "text",
2925
- "primaryKey": false,
2926
- "notNull": true
2927
- },
2928
- "id": {
2929
- "name": "id",
2930
- "type": "text",
2931
- "primaryKey": true,
2932
- "notNull": true
2933
- },
2934
- "organization_id": {
2935
- "name": "organization_id",
2936
- "type": "text",
2937
- "primaryKey": false,
2938
- "notNull": true
2939
- },
2940
- "reject_code": {
2941
- "name": "reject_code",
2942
- "type": "text",
2943
- "primaryKey": false,
2944
- "notNull": false
2945
- },
2946
- "reject_detail": {
2947
- "name": "reject_detail",
2948
- "type": "text",
2949
- "primaryKey": false,
2950
- "notNull": false
2951
- },
2952
- "request_id": {
2953
- "name": "request_id",
2954
- "type": "text",
2955
- "primaryKey": false,
2956
- "notNull": true
2957
- },
2958
- "surface": {
2959
- "name": "surface",
2960
- "type": "text",
2961
- "primaryKey": false,
2962
- "notNull": true
2963
- }
2964
- },
2965
- "indexes": {
2966
- "idx_workflow_commands_family_invocation_unique": {
2967
- "name": "idx_workflow_commands_family_invocation_unique",
2968
- "columns": [
2969
- {
2970
- "expression": "family",
2971
- "isExpression": false,
2972
- "asc": true,
2973
- "nulls": "last"
2974
- },
2975
- {
2976
- "expression": "command_invocation_id",
2977
- "isExpression": false,
2978
- "asc": true,
2979
- "nulls": "last"
2980
- }
2981
- ],
2982
- "isUnique": true,
2983
- "with": {},
2984
- "method": "btree",
2985
- "concurrently": false
2986
- },
2987
- "idx_workflow_commands_action_created": {
2988
- "name": "idx_workflow_commands_action_created",
2989
- "columns": [
2990
- {
2991
- "expression": "family",
2992
- "isExpression": false,
2993
- "asc": true,
2994
- "nulls": "last"
2995
- },
2996
- {
2997
- "expression": "action_id",
2998
- "isExpression": false,
2999
- "asc": true,
3000
- "nulls": "last"
3001
- },
3002
- {
3003
- "expression": "created_at",
3004
- "isExpression": false,
3005
- "asc": true,
3006
- "nulls": "last"
3007
- }
3008
- ],
3009
- "isUnique": false,
3010
- "with": {},
3011
- "method": "btree",
3012
- "concurrently": false
3013
- },
3014
- "idx_workflow_commands_org_created": {
3015
- "name": "idx_workflow_commands_org_created",
3016
- "columns": [
3017
- {
3018
- "expression": "organization_id",
3019
- "isExpression": false,
3020
- "asc": true,
3021
- "nulls": "last"
3022
- },
3023
- {
3024
- "expression": "created_at",
3025
- "isExpression": false,
3026
- "asc": true,
3027
- "nulls": "last"
3028
- }
3029
- ],
3030
- "isUnique": false,
3031
- "with": {},
3032
- "method": "btree",
3033
- "concurrently": false
3034
- }
3035
- },
3036
- "foreignKeys": {
3037
- "workflow_commands_organization_id_organization_id_fk": {
3038
- "name": "workflow_commands_organization_id_organization_id_fk",
3039
- "tableFrom": "workflow_commands",
3040
- "columnsFrom": ["organization_id"],
3041
- "tableTo": "organization",
3042
- "columnsTo": ["id"],
3043
- "onUpdate": "no action",
3044
- "onDelete": "cascade"
3045
- }
3046
- },
3047
- "compositePrimaryKeys": {},
3048
- "uniqueConstraints": {},
3049
- "policies": {},
3050
- "checkConstraints": {
3051
- "workflow_commands_decision_reject_alignment_check": {
3052
- "name": "workflow_commands_decision_reject_alignment_check",
3053
- "value": "((\"workflow_commands\".\"decision_kind\" = 'rejected' and \"workflow_commands\".\"reject_code\" is not null) or (\"workflow_commands\".\"decision_kind\" = 'accepted' and \"workflow_commands\".\"reject_code\" is null))"
3054
- },
3055
- "workflow_commands_accepted_action_id_check": {
3056
- "name": "workflow_commands_accepted_action_id_check",
3057
- "value": "(\"workflow_commands\".\"decision_kind\" = 'rejected' or \"workflow_commands\".\"action_id\" is not null)"
3058
- }
3059
- },
3060
- "isRLSEnabled": true
3061
- },
3062
- "public.workflow_effect_dispatches": {
3063
- "name": "workflow_effect_dispatches",
3064
- "schema": "",
3065
- "columns": {
3066
- "action_id": {
3067
- "name": "action_id",
3068
- "type": "text",
3069
- "primaryKey": false,
3070
- "notNull": true
3071
- },
3072
- "attempt_count": {
3073
- "name": "attempt_count",
3074
- "type": "integer",
3075
- "primaryKey": false,
3076
- "notNull": true,
3077
- "default": 0
3078
- },
3079
- "available_at": {
3080
- "name": "available_at",
3081
- "type": "timestamp with time zone",
3082
- "primaryKey": false,
3083
- "notNull": true,
3084
- "default": "now()"
3085
- },
3086
- "completed_at": {
3087
- "name": "completed_at",
3088
- "type": "timestamp with time zone",
3089
- "primaryKey": false,
3090
- "notNull": false
3091
- },
3092
- "created_at": {
3093
- "name": "created_at",
3094
- "type": "timestamp with time zone",
3095
- "primaryKey": false,
3096
- "notNull": true,
3097
- "default": "now()"
3098
- },
3099
- "effect_key": {
3100
- "name": "effect_key",
3101
- "type": "text",
3102
- "primaryKey": false,
3103
- "notNull": true
3104
- },
3105
- "effect_type": {
3106
- "name": "effect_type",
3107
- "type": "text",
3108
- "primaryKey": false,
3109
- "notNull": true
3110
- },
3111
- "family": {
3112
- "name": "family",
3113
- "type": "text",
3114
- "primaryKey": false,
3115
- "notNull": true
3116
- },
3117
- "id": {
3118
- "name": "id",
3119
- "type": "text",
3120
- "primaryKey": true,
3121
- "notNull": true
3122
- },
3123
- "last_error_code": {
3124
- "name": "last_error_code",
3125
- "type": "text",
3126
- "primaryKey": false,
3127
- "notNull": false
3128
- },
3129
- "last_error_detail": {
3130
- "name": "last_error_detail",
3131
- "type": "text",
3132
- "primaryKey": false,
3133
- "notNull": false
3134
- },
3135
- "leased_until": {
3136
- "name": "leased_until",
3137
- "type": "timestamp with time zone",
3138
- "primaryKey": false,
3139
- "notNull": false
3140
- },
3141
- "origin_event_id": {
3142
- "name": "origin_event_id",
3143
- "type": "text",
3144
- "primaryKey": false,
3145
- "notNull": true
3146
- },
3147
- "payload_bytes": {
3148
- "name": "payload_bytes",
3149
- "type": "bytea",
3150
- "primaryKey": false,
3151
- "notNull": true
3152
- },
3153
- "status": {
3154
- "name": "status",
3155
- "type": "text",
3156
- "primaryKey": false,
3157
- "notNull": true,
3158
- "default": "'pending'"
3159
- }
3160
- },
3161
- "indexes": {
3162
- "idx_workflow_effect_dispatches_effect_key_unique": {
3163
- "name": "idx_workflow_effect_dispatches_effect_key_unique",
3164
- "columns": [
3165
- {
3166
- "expression": "effect_key",
3167
- "isExpression": false,
3168
- "asc": true,
3169
- "nulls": "last"
3170
- }
3171
- ],
3172
- "isUnique": true,
3173
- "with": {},
3174
- "method": "btree",
3175
- "concurrently": false
3176
- },
3177
- "idx_workflow_effect_dispatches_status_available": {
3178
- "name": "idx_workflow_effect_dispatches_status_available",
3179
- "columns": [
3180
- {
3181
- "expression": "status",
3182
- "isExpression": false,
3183
- "asc": true,
3184
- "nulls": "last"
3185
- },
3186
- {
3187
- "expression": "available_at",
3188
- "isExpression": false,
3189
- "asc": true,
3190
- "nulls": "last"
3191
- }
3192
- ],
3193
- "isUnique": false,
3194
- "with": {},
3195
- "method": "btree",
3196
- "concurrently": false
3197
- },
3198
- "idx_workflow_effect_dispatches_family_action_created": {
3199
- "name": "idx_workflow_effect_dispatches_family_action_created",
3200
- "columns": [
3201
- {
3202
- "expression": "family",
3203
- "isExpression": false,
3204
- "asc": true,
3205
- "nulls": "last"
3206
- },
3207
- {
3208
- "expression": "action_id",
3209
- "isExpression": false,
3210
- "asc": true,
3211
- "nulls": "last"
3212
- },
3213
- {
3214
- "expression": "created_at",
3215
- "isExpression": false,
3216
- "asc": true,
3217
- "nulls": "last"
3218
- }
3219
- ],
3220
- "isUnique": false,
3221
- "with": {},
3222
- "method": "btree",
3223
- "concurrently": false
3224
- }
3225
- },
3226
- "foreignKeys": {},
3227
- "compositePrimaryKeys": {},
3228
- "uniqueConstraints": {},
3229
- "policies": {},
3230
- "checkConstraints": {
3231
- "workflow_effect_dispatches_completion_status_check": {
3232
- "name": "workflow_effect_dispatches_completion_status_check",
3233
- "value": "((\"workflow_effect_dispatches\".\"status\" = 'completed' and \"workflow_effect_dispatches\".\"completed_at\" is not null) or (\"workflow_effect_dispatches\".\"status\" <> 'completed' and \"workflow_effect_dispatches\".\"completed_at\" is null))"
3234
- }
3235
- },
3236
- "isRLSEnabled": true
3237
- }
3238
- },
3239
- "enums": {},
3240
- "schemas": {},
3241
- "views": {},
3242
- "sequences": {},
3243
- "roles": {},
3244
- "policies": {},
3245
- "_meta": {
3246
- "columns": {},
3247
- "schemas": {},
3248
- "tables": {}
3249
- }
3250
- }