@onequery/cli 0.1.64-win32-x64 → 0.1.64

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 -447932
  172. package/vendor/x86_64-pc-windows-msvc/server/polyglot_sql_wasm_bg.wasm +0 -0
@@ -1,3089 +0,0 @@
1
- {
2
- "id": "f58f7228-f627-42d9-8ff4-f74df8e58381",
3
- "prevId": "d1282be3-634e-4595-a86c-178a52da3323",
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
- "concurrently": false,
163
- "method": "btree",
164
- "with": {}
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
- "concurrently": false,
190
- "method": "btree",
191
- "with": {}
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
- "tableTo": "organization",
199
- "columnsFrom": ["organization_id"],
200
- "columnsTo": ["id"],
201
- "onDelete": "cascade",
202
- "onUpdate": "no action"
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
- "concurrently": false,
266
- "method": "btree",
267
- "with": {}
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
- "concurrently": false,
375
- "method": "btree",
376
- "with": {}
377
- }
378
- },
379
- "foreignKeys": {
380
- "account_user_id_user_id_fk": {
381
- "name": "account_user_id_user_id_fk",
382
- "tableFrom": "account",
383
- "tableTo": "user",
384
- "columnsFrom": ["user_id"],
385
- "columnsTo": ["id"],
386
- "onDelete": "cascade",
387
- "onUpdate": "no action"
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
- "concurrently": false,
474
- "method": "btree",
475
- "with": {}
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
- "concurrently": false,
489
- "method": "btree",
490
- "with": {}
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
- "concurrently": false,
504
- "method": "btree",
505
- "with": {}
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
- "concurrently": false,
519
- "method": "btree",
520
- "with": {}
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
- "tableTo": "user",
528
- "columnsFrom": ["user_id"],
529
- "columnsTo": ["id"],
530
- "onDelete": "cascade",
531
- "onUpdate": "no action"
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
- "concurrently": false,
607
- "method": "btree",
608
- "with": {}
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
- "concurrently": false,
622
- "method": "btree",
623
- "with": {}
624
- }
625
- },
626
- "foreignKeys": {
627
- "invitation_inviter_id_user_id_fk": {
628
- "name": "invitation_inviter_id_user_id_fk",
629
- "tableFrom": "invitation",
630
- "tableTo": "user",
631
- "columnsFrom": ["inviter_id"],
632
- "columnsTo": ["id"],
633
- "onDelete": "cascade",
634
- "onUpdate": "no action"
635
- },
636
- "invitation_organization_id_organization_id_fk": {
637
- "name": "invitation_organization_id_organization_id_fk",
638
- "tableFrom": "invitation",
639
- "tableTo": "organization",
640
- "columnsFrom": ["organization_id"],
641
- "columnsTo": ["id"],
642
- "onDelete": "cascade",
643
- "onUpdate": "no action"
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
- "concurrently": false,
701
- "method": "btree",
702
- "with": {}
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
- "concurrently": false,
716
- "method": "btree",
717
- "with": {}
718
- }
719
- },
720
- "foreignKeys": {
721
- "member_organization_id_organization_id_fk": {
722
- "name": "member_organization_id_organization_id_fk",
723
- "tableFrom": "member",
724
- "tableTo": "organization",
725
- "columnsFrom": ["organization_id"],
726
- "columnsTo": ["id"],
727
- "onDelete": "cascade",
728
- "onUpdate": "no action"
729
- },
730
- "member_user_id_user_id_fk": {
731
- "name": "member_user_id_user_id_fk",
732
- "tableFrom": "member",
733
- "tableTo": "user",
734
- "columnsFrom": ["user_id"],
735
- "columnsTo": ["id"],
736
- "onDelete": "cascade",
737
- "onUpdate": "no action"
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
- "nullsNotDistinct": false,
795
- "columns": ["slug"]
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
- "concurrently": false,
844
- "method": "btree",
845
- "with": {}
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
- "concurrently": false,
929
- "method": "btree",
930
- "with": {}
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
- "tableTo": "organization",
938
- "columnsFrom": ["active_organization_id"],
939
- "columnsTo": ["id"],
940
- "onDelete": "set null",
941
- "onUpdate": "no action"
942
- },
943
- "session_user_id_user_id_fk": {
944
- "name": "session_user_id_user_id_fk",
945
- "tableFrom": "session",
946
- "tableTo": "user",
947
- "columnsFrom": ["user_id"],
948
- "columnsTo": ["id"],
949
- "onDelete": "cascade",
950
- "onUpdate": "no action"
951
- }
952
- },
953
- "compositePrimaryKeys": {},
954
- "uniqueConstraints": {
955
- "session_token_unique": {
956
- "name": "session_token_unique",
957
- "nullsNotDistinct": false,
958
- "columns": ["token"]
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
- "nullsNotDistinct": false,
1022
- "columns": ["email"]
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
- "concurrently": false,
1085
- "method": "btree",
1086
- "with": {}
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
- "concurrently": false,
1219
- "method": "btree",
1220
- "with": {}
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
- "concurrently": false,
1234
- "method": "btree",
1235
- "with": {}
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
- "tableTo": "organization",
1243
- "columnsFrom": ["organization_id"],
1244
- "columnsTo": ["id"],
1245
- "onDelete": "cascade",
1246
- "onUpdate": "no action"
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
- "concurrently": false,
1359
- "method": "btree",
1360
- "with": {}
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
- "concurrently": false,
1380
- "method": "btree",
1381
- "with": {}
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
- "tableTo": "connectors",
1389
- "columnsFrom": ["connector_id"],
1390
- "columnsTo": ["connector_id"],
1391
- "onDelete": "cascade",
1392
- "onUpdate": "no action"
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
- "concurrently": false,
1481
- "method": "btree",
1482
- "with": {}
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
- "concurrently": false,
1496
- "method": "btree",
1497
- "with": {}
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
- "concurrently": false,
1511
- "method": "btree",
1512
- "with": {}
1513
- }
1514
- },
1515
- "foreignKeys": {
1516
- "connectors_organization_id_organization_id_fk": {
1517
- "name": "connectors_organization_id_organization_id_fk",
1518
- "tableFrom": "connectors",
1519
- "tableTo": "organization",
1520
- "columnsFrom": ["organization_id"],
1521
- "columnsTo": ["id"],
1522
- "onDelete": "cascade",
1523
- "onUpdate": "no action"
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
- "concurrently": false,
1697
- "method": "btree",
1698
- "with": {}
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
- "concurrently": false,
1712
- "method": "btree",
1713
- "with": {}
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
- "concurrently": false,
1727
- "method": "btree",
1728
- "with": {}
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
- "tableTo": "connectors",
1736
- "columnsFrom": ["connector_id"],
1737
- "columnsTo": ["connector_id"],
1738
- "onDelete": "cascade",
1739
- "onUpdate": "no action"
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
- "tableTo": "organization",
1745
- "columnsFrom": ["organization_id"],
1746
- "columnsTo": ["id"],
1747
- "onDelete": "cascade",
1748
- "onUpdate": "no action"
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
- "concurrently": false,
1863
- "method": "btree",
1864
- "with": {}
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
- "concurrently": false,
1878
- "method": "btree",
1879
- "with": {}
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
- "concurrently": false,
1899
- "method": "btree",
1900
- "with": {}
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
- "concurrently": false,
1914
- "method": "btree",
1915
- "with": {}
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
- "tableTo": "organization",
1923
- "columnsFrom": ["organization_id"],
1924
- "columnsTo": ["id"],
1925
- "onDelete": "cascade",
1926
- "onUpdate": "no action"
1927
- }
1928
- },
1929
- "compositePrimaryKeys": {},
1930
- "uniqueConstraints": {
1931
- "data_sources_organization_name_unique": {
1932
- "name": "data_sources_organization_name_unique",
1933
- "nullsNotDistinct": false,
1934
- "columns": ["organization_id", "name"]
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
- "concurrently": false,
2054
- "method": "btree",
2055
- "with": {}
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
- "concurrently": false,
2069
- "method": "btree",
2070
- "with": {}
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
- "concurrently": false,
2084
- "method": "btree",
2085
- "with": {}
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
- "concurrently": false,
2099
- "method": "btree",
2100
- "with": {}
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
- "tableTo": "data_sources",
2108
- "columnsFrom": ["data_source_id"],
2109
- "columnsTo": ["id"],
2110
- "onDelete": "cascade",
2111
- "onUpdate": "no action"
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
- "tableTo": "user",
2117
- "columnsFrom": ["memo_updated_by"],
2118
- "columnsTo": ["id"],
2119
- "onDelete": "set null",
2120
- "onUpdate": "no action"
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
- "tableTo": "organization",
2126
- "columnsFrom": ["organization_id"],
2127
- "columnsTo": ["id"],
2128
- "onDelete": "cascade",
2129
- "onUpdate": "no action"
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
- "concurrently": false,
2207
- "method": "btree",
2208
- "with": {}
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
- "concurrently": false,
2222
- "method": "btree",
2223
- "with": {}
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
- "tableTo": "organization",
2231
- "columnsFrom": ["organization_id"],
2232
- "columnsTo": ["id"],
2233
- "onDelete": "cascade",
2234
- "onUpdate": "no action"
2235
- }
2236
- },
2237
- "compositePrimaryKeys": {},
2238
- "uniqueConstraints": {},
2239
- "policies": {},
2240
- "checkConstraints": {},
2241
- "isRLSEnabled": true
2242
- },
2243
- "public.pending_workflow_effects": {
2244
- "name": "pending_workflow_effects",
2245
- "schema": "",
2246
- "columns": {
2247
- "attempt_count": {
2248
- "name": "attempt_count",
2249
- "type": "integer",
2250
- "primaryKey": false,
2251
- "notNull": true,
2252
- "default": 0
2253
- },
2254
- "effect_id": {
2255
- "name": "effect_id",
2256
- "type": "text",
2257
- "primaryKey": false,
2258
- "notNull": true
2259
- },
2260
- "effect_type": {
2261
- "name": "effect_type",
2262
- "type": "text",
2263
- "primaryKey": false,
2264
- "notNull": true
2265
- },
2266
- "family": {
2267
- "name": "family",
2268
- "type": "text",
2269
- "primaryKey": false,
2270
- "notNull": true
2271
- },
2272
- "last_error_code": {
2273
- "name": "last_error_code",
2274
- "type": "text",
2275
- "primaryKey": false,
2276
- "notNull": false
2277
- },
2278
- "last_error_detail": {
2279
- "name": "last_error_detail",
2280
- "type": "text",
2281
- "primaryKey": false,
2282
- "notNull": false
2283
- },
2284
- "last_started_at": {
2285
- "name": "last_started_at",
2286
- "type": "timestamp with time zone",
2287
- "primaryKey": false,
2288
- "notNull": false
2289
- },
2290
- "organization_id": {
2291
- "name": "organization_id",
2292
- "type": "text",
2293
- "primaryKey": false,
2294
- "notNull": true
2295
- },
2296
- "payload_bytes": {
2297
- "name": "payload_bytes",
2298
- "type": "bytea",
2299
- "primaryKey": false,
2300
- "notNull": true
2301
- },
2302
- "scheduled_at": {
2303
- "name": "scheduled_at",
2304
- "type": "timestamp with time zone",
2305
- "primaryKey": false,
2306
- "notNull": true
2307
- },
2308
- "scheduled_by_entry_id": {
2309
- "name": "scheduled_by_entry_id",
2310
- "type": "text",
2311
- "primaryKey": false,
2312
- "notNull": true
2313
- },
2314
- "status": {
2315
- "name": "status",
2316
- "type": "text",
2317
- "primaryKey": false,
2318
- "notNull": true
2319
- },
2320
- "stream_id": {
2321
- "name": "stream_id",
2322
- "type": "text",
2323
- "primaryKey": false,
2324
- "notNull": true
2325
- },
2326
- "stream_position": {
2327
- "name": "stream_position",
2328
- "type": "integer",
2329
- "primaryKey": false,
2330
- "notNull": true
2331
- }
2332
- },
2333
- "indexes": {
2334
- "idx_pending_workflow_effects_family_effect_unique": {
2335
- "name": "idx_pending_workflow_effects_family_effect_unique",
2336
- "columns": [
2337
- {
2338
- "expression": "family",
2339
- "isExpression": false,
2340
- "asc": true,
2341
- "nulls": "last"
2342
- },
2343
- {
2344
- "expression": "effect_id",
2345
- "isExpression": false,
2346
- "asc": true,
2347
- "nulls": "last"
2348
- }
2349
- ],
2350
- "isUnique": true,
2351
- "concurrently": false,
2352
- "method": "btree",
2353
- "with": {}
2354
- },
2355
- "idx_pending_workflow_effects_worker_scan": {
2356
- "name": "idx_pending_workflow_effects_worker_scan",
2357
- "columns": [
2358
- {
2359
- "expression": "family",
2360
- "isExpression": false,
2361
- "asc": true,
2362
- "nulls": "last"
2363
- },
2364
- {
2365
- "expression": "organization_id",
2366
- "isExpression": false,
2367
- "asc": true,
2368
- "nulls": "last"
2369
- },
2370
- {
2371
- "expression": "status",
2372
- "isExpression": false,
2373
- "asc": true,
2374
- "nulls": "last"
2375
- },
2376
- {
2377
- "expression": "scheduled_at",
2378
- "isExpression": false,
2379
- "asc": true,
2380
- "nulls": "last"
2381
- }
2382
- ],
2383
- "isUnique": false,
2384
- "concurrently": false,
2385
- "method": "btree",
2386
- "with": {}
2387
- },
2388
- "idx_pending_workflow_effects_stream": {
2389
- "name": "idx_pending_workflow_effects_stream",
2390
- "columns": [
2391
- {
2392
- "expression": "family",
2393
- "isExpression": false,
2394
- "asc": true,
2395
- "nulls": "last"
2396
- },
2397
- {
2398
- "expression": "stream_id",
2399
- "isExpression": false,
2400
- "asc": true,
2401
- "nulls": "last"
2402
- }
2403
- ],
2404
- "isUnique": false,
2405
- "concurrently": false,
2406
- "method": "btree",
2407
- "with": {}
2408
- }
2409
- },
2410
- "foreignKeys": {
2411
- "pending_workflow_effects_organization_id_organization_id_fk": {
2412
- "name": "pending_workflow_effects_organization_id_organization_id_fk",
2413
- "tableFrom": "pending_workflow_effects",
2414
- "tableTo": "organization",
2415
- "columnsFrom": ["organization_id"],
2416
- "columnsTo": ["id"],
2417
- "onDelete": "cascade",
2418
- "onUpdate": "no action"
2419
- }
2420
- },
2421
- "compositePrimaryKeys": {},
2422
- "uniqueConstraints": {},
2423
- "policies": {},
2424
- "checkConstraints": {},
2425
- "isRLSEnabled": true
2426
- },
2427
- "public.query_actions": {
2428
- "name": "query_actions",
2429
- "schema": "",
2430
- "columns": {
2431
- "completed_at": {
2432
- "name": "completed_at",
2433
- "type": "timestamp with time zone",
2434
- "primaryKey": false,
2435
- "notNull": false
2436
- },
2437
- "failure_code": {
2438
- "name": "failure_code",
2439
- "type": "text",
2440
- "primaryKey": false,
2441
- "notNull": false
2442
- },
2443
- "id": {
2444
- "name": "id",
2445
- "type": "text",
2446
- "primaryKey": true,
2447
- "notNull": true
2448
- },
2449
- "last_event_id": {
2450
- "name": "last_event_id",
2451
- "type": "text",
2452
- "primaryKey": false,
2453
- "notNull": true
2454
- },
2455
- "last_event_sequence": {
2456
- "name": "last_event_sequence",
2457
- "type": "integer",
2458
- "primaryKey": false,
2459
- "notNull": true
2460
- },
2461
- "organization_id": {
2462
- "name": "organization_id",
2463
- "type": "text",
2464
- "primaryKey": false,
2465
- "notNull": true
2466
- },
2467
- "outcome": {
2468
- "name": "outcome",
2469
- "type": "text",
2470
- "primaryKey": false,
2471
- "notNull": true
2472
- },
2473
- "phase": {
2474
- "name": "phase",
2475
- "type": "text",
2476
- "primaryKey": false,
2477
- "notNull": true
2478
- },
2479
- "query_mode": {
2480
- "name": "query_mode",
2481
- "type": "text",
2482
- "primaryKey": false,
2483
- "notNull": true
2484
- },
2485
- "query_text": {
2486
- "name": "query_text",
2487
- "type": "text",
2488
- "primaryKey": false,
2489
- "notNull": true
2490
- },
2491
- "source_descriptor_json": {
2492
- "name": "source_descriptor_json",
2493
- "type": "jsonb",
2494
- "primaryKey": false,
2495
- "notNull": false
2496
- },
2497
- "started_at": {
2498
- "name": "started_at",
2499
- "type": "timestamp with time zone",
2500
- "primaryKey": false,
2501
- "notNull": true
2502
- },
2503
- "usage_recording_status": {
2504
- "name": "usage_recording_status",
2505
- "type": "text",
2506
- "primaryKey": false,
2507
- "notNull": true
2508
- },
2509
- "validated_query": {
2510
- "name": "validated_query",
2511
- "type": "text",
2512
- "primaryKey": false,
2513
- "notNull": false
2514
- }
2515
- },
2516
- "indexes": {
2517
- "idx_query_actions_org_started": {
2518
- "name": "idx_query_actions_org_started",
2519
- "columns": [
2520
- {
2521
- "expression": "organization_id",
2522
- "isExpression": false,
2523
- "asc": true,
2524
- "nulls": "last"
2525
- },
2526
- {
2527
- "expression": "started_at",
2528
- "isExpression": false,
2529
- "asc": true,
2530
- "nulls": "last"
2531
- }
2532
- ],
2533
- "isUnique": false,
2534
- "concurrently": false,
2535
- "method": "btree",
2536
- "with": {}
2537
- }
2538
- },
2539
- "foreignKeys": {
2540
- "query_actions_organization_id_organization_id_fk": {
2541
- "name": "query_actions_organization_id_organization_id_fk",
2542
- "tableFrom": "query_actions",
2543
- "tableTo": "organization",
2544
- "columnsFrom": ["organization_id"],
2545
- "columnsTo": ["id"],
2546
- "onDelete": "cascade",
2547
- "onUpdate": "no action"
2548
- }
2549
- },
2550
- "compositePrimaryKeys": {},
2551
- "uniqueConstraints": {},
2552
- "policies": {},
2553
- "checkConstraints": {
2554
- "query_actions_completed_at_outcome_check": {
2555
- "name": "query_actions_completed_at_outcome_check",
2556
- "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))"
2557
- },
2558
- "query_actions_completed_phase_outcome_check": {
2559
- "name": "query_actions_completed_phase_outcome_check",
2560
- "value": "((\"query_actions\".\"outcome\" = 'pending' and \"query_actions\".\"phase\" <> 'completed') or (\"query_actions\".\"outcome\" <> 'pending' and \"query_actions\".\"phase\" = 'completed'))"
2561
- },
2562
- "query_actions_failure_code_outcome_check": {
2563
- "name": "query_actions_failure_code_outcome_check",
2564
- "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))"
2565
- },
2566
- "query_actions_last_event_sequence_positive_check": {
2567
- "name": "query_actions_last_event_sequence_positive_check",
2568
- "value": "\"query_actions\".\"last_event_sequence\" > 0"
2569
- }
2570
- },
2571
- "isRLSEnabled": true
2572
- },
2573
- "public.user_profiles": {
2574
- "name": "user_profiles",
2575
- "schema": "",
2576
- "columns": {
2577
- "created_at": {
2578
- "name": "created_at",
2579
- "type": "timestamp with time zone",
2580
- "primaryKey": false,
2581
- "notNull": true,
2582
- "default": "now()"
2583
- },
2584
- "id": {
2585
- "name": "id",
2586
- "type": "text",
2587
- "primaryKey": true,
2588
- "notNull": true
2589
- },
2590
- "updated_at": {
2591
- "name": "updated_at",
2592
- "type": "timestamp with time zone",
2593
- "primaryKey": false,
2594
- "notNull": true,
2595
- "default": "now()"
2596
- },
2597
- "user_id": {
2598
- "name": "user_id",
2599
- "type": "text",
2600
- "primaryKey": false,
2601
- "notNull": true
2602
- }
2603
- },
2604
- "indexes": {
2605
- "idx_user_profiles_user": {
2606
- "name": "idx_user_profiles_user",
2607
- "columns": [
2608
- {
2609
- "expression": "user_id",
2610
- "isExpression": false,
2611
- "asc": true,
2612
- "nulls": "last"
2613
- }
2614
- ],
2615
- "isUnique": true,
2616
- "concurrently": false,
2617
- "method": "btree",
2618
- "with": {}
2619
- }
2620
- },
2621
- "foreignKeys": {
2622
- "user_profiles_user_id_user_id_fk": {
2623
- "name": "user_profiles_user_id_user_id_fk",
2624
- "tableFrom": "user_profiles",
2625
- "tableTo": "user",
2626
- "columnsFrom": ["user_id"],
2627
- "columnsTo": ["id"],
2628
- "onDelete": "cascade",
2629
- "onUpdate": "no action"
2630
- }
2631
- },
2632
- "compositePrimaryKeys": {},
2633
- "uniqueConstraints": {},
2634
- "policies": {},
2635
- "checkConstraints": {},
2636
- "isRLSEnabled": true
2637
- },
2638
- "public.source_api_actions": {
2639
- "name": "source_api_actions",
2640
- "schema": "",
2641
- "columns": {
2642
- "attempt_number": {
2643
- "name": "attempt_number",
2644
- "type": "integer",
2645
- "primaryKey": false,
2646
- "notNull": false
2647
- },
2648
- "completed_at": {
2649
- "name": "completed_at",
2650
- "type": "timestamp with time zone",
2651
- "primaryKey": false,
2652
- "notNull": false
2653
- },
2654
- "failure_code": {
2655
- "name": "failure_code",
2656
- "type": "text",
2657
- "primaryKey": false,
2658
- "notNull": false
2659
- },
2660
- "id": {
2661
- "name": "id",
2662
- "type": "text",
2663
- "primaryKey": true,
2664
- "notNull": true
2665
- },
2666
- "invoke_mode": {
2667
- "name": "invoke_mode",
2668
- "type": "text",
2669
- "primaryKey": false,
2670
- "notNull": false
2671
- },
2672
- "last_event_id": {
2673
- "name": "last_event_id",
2674
- "type": "text",
2675
- "primaryKey": false,
2676
- "notNull": true
2677
- },
2678
- "last_event_sequence": {
2679
- "name": "last_event_sequence",
2680
- "type": "integer",
2681
- "primaryKey": false,
2682
- "notNull": true
2683
- },
2684
- "organization_id": {
2685
- "name": "organization_id",
2686
- "type": "text",
2687
- "primaryKey": false,
2688
- "notNull": true
2689
- },
2690
- "outcome": {
2691
- "name": "outcome",
2692
- "type": "text",
2693
- "primaryKey": false,
2694
- "notNull": true
2695
- },
2696
- "page_progress_json": {
2697
- "name": "page_progress_json",
2698
- "type": "jsonb",
2699
- "primaryKey": false,
2700
- "notNull": false
2701
- },
2702
- "phase": {
2703
- "name": "phase",
2704
- "type": "text",
2705
- "primaryKey": false,
2706
- "notNull": true
2707
- },
2708
- "prepared_request_fingerprint": {
2709
- "name": "prepared_request_fingerprint",
2710
- "type": "text",
2711
- "primaryKey": false,
2712
- "notNull": false
2713
- },
2714
- "request_descriptor_json": {
2715
- "name": "request_descriptor_json",
2716
- "type": "jsonb",
2717
- "primaryKey": false,
2718
- "notNull": false
2719
- },
2720
- "request_kind": {
2721
- "name": "request_kind",
2722
- "type": "text",
2723
- "primaryKey": false,
2724
- "notNull": true
2725
- },
2726
- "source_descriptor_json": {
2727
- "name": "source_descriptor_json",
2728
- "type": "jsonb",
2729
- "primaryKey": false,
2730
- "notNull": false
2731
- },
2732
- "started_at": {
2733
- "name": "started_at",
2734
- "type": "timestamp with time zone",
2735
- "primaryKey": false,
2736
- "notNull": true
2737
- }
2738
- },
2739
- "indexes": {
2740
- "idx_source_api_actions_org_started": {
2741
- "name": "idx_source_api_actions_org_started",
2742
- "columns": [
2743
- {
2744
- "expression": "organization_id",
2745
- "isExpression": false,
2746
- "asc": true,
2747
- "nulls": "last"
2748
- },
2749
- {
2750
- "expression": "started_at",
2751
- "isExpression": false,
2752
- "asc": true,
2753
- "nulls": "last"
2754
- }
2755
- ],
2756
- "isUnique": false,
2757
- "concurrently": false,
2758
- "method": "btree",
2759
- "with": {}
2760
- }
2761
- },
2762
- "foreignKeys": {
2763
- "source_api_actions_organization_id_organization_id_fk": {
2764
- "name": "source_api_actions_organization_id_organization_id_fk",
2765
- "tableFrom": "source_api_actions",
2766
- "tableTo": "organization",
2767
- "columnsFrom": ["organization_id"],
2768
- "columnsTo": ["id"],
2769
- "onDelete": "cascade",
2770
- "onUpdate": "no action"
2771
- }
2772
- },
2773
- "compositePrimaryKeys": {},
2774
- "uniqueConstraints": {},
2775
- "policies": {},
2776
- "checkConstraints": {
2777
- "source_api_actions_completed_at_outcome_check": {
2778
- "name": "source_api_actions_completed_at_outcome_check",
2779
- "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))"
2780
- },
2781
- "source_api_actions_completed_phase_outcome_check": {
2782
- "name": "source_api_actions_completed_phase_outcome_check",
2783
- "value": "((\"source_api_actions\".\"outcome\" = 'pending' and \"source_api_actions\".\"phase\" <> 'completed') or (\"source_api_actions\".\"outcome\" <> 'pending' and \"source_api_actions\".\"phase\" = 'completed'))"
2784
- },
2785
- "source_api_actions_failure_code_outcome_check": {
2786
- "name": "source_api_actions_failure_code_outcome_check",
2787
- "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))"
2788
- },
2789
- "source_api_actions_last_event_sequence_positive_check": {
2790
- "name": "source_api_actions_last_event_sequence_positive_check",
2791
- "value": "\"source_api_actions\".\"last_event_sequence\" > 0"
2792
- }
2793
- },
2794
- "isRLSEnabled": true
2795
- },
2796
- "public.workflow_journal": {
2797
- "name": "workflow_journal",
2798
- "schema": "",
2799
- "columns": {
2800
- "actor_snapshot_json": {
2801
- "name": "actor_snapshot_json",
2802
- "type": "jsonb",
2803
- "primaryKey": false,
2804
- "notNull": false
2805
- },
2806
- "caused_by_event_id": {
2807
- "name": "caused_by_event_id",
2808
- "type": "text",
2809
- "primaryKey": false,
2810
- "notNull": false
2811
- },
2812
- "command_invocation_id": {
2813
- "name": "command_invocation_id",
2814
- "type": "text",
2815
- "primaryKey": false,
2816
- "notNull": false
2817
- },
2818
- "commit_id": {
2819
- "name": "commit_id",
2820
- "type": "text",
2821
- "primaryKey": false,
2822
- "notNull": true
2823
- },
2824
- "commit_position": {
2825
- "name": "commit_position",
2826
- "type": "bigserial",
2827
- "primaryKey": false,
2828
- "notNull": true
2829
- },
2830
- "entry_kind": {
2831
- "name": "entry_kind",
2832
- "type": "text",
2833
- "primaryKey": false,
2834
- "notNull": true
2835
- },
2836
- "event_id": {
2837
- "name": "event_id",
2838
- "type": "text",
2839
- "primaryKey": false,
2840
- "notNull": false
2841
- },
2842
- "event_type": {
2843
- "name": "event_type",
2844
- "type": "text",
2845
- "primaryKey": false,
2846
- "notNull": false
2847
- },
2848
- "effect_id": {
2849
- "name": "effect_id",
2850
- "type": "text",
2851
- "primaryKey": false,
2852
- "notNull": false
2853
- },
2854
- "effect_type": {
2855
- "name": "effect_type",
2856
- "type": "text",
2857
- "primaryKey": false,
2858
- "notNull": false
2859
- },
2860
- "family": {
2861
- "name": "family",
2862
- "type": "text",
2863
- "primaryKey": false,
2864
- "notNull": true
2865
- },
2866
- "id": {
2867
- "name": "id",
2868
- "type": "text",
2869
- "primaryKey": true,
2870
- "notNull": true
2871
- },
2872
- "occurred_at": {
2873
- "name": "occurred_at",
2874
- "type": "timestamp with time zone",
2875
- "primaryKey": false,
2876
- "notNull": true
2877
- },
2878
- "organization_id": {
2879
- "name": "organization_id",
2880
- "type": "text",
2881
- "primaryKey": false,
2882
- "notNull": true
2883
- },
2884
- "payload_bytes": {
2885
- "name": "payload_bytes",
2886
- "type": "bytea",
2887
- "primaryKey": false,
2888
- "notNull": false
2889
- },
2890
- "payload_type": {
2891
- "name": "payload_type",
2892
- "type": "text",
2893
- "primaryKey": false,
2894
- "notNull": false
2895
- },
2896
- "request_id": {
2897
- "name": "request_id",
2898
- "type": "text",
2899
- "primaryKey": false,
2900
- "notNull": false
2901
- },
2902
- "stream_id": {
2903
- "name": "stream_id",
2904
- "type": "text",
2905
- "primaryKey": false,
2906
- "notNull": true
2907
- },
2908
- "stream_position": {
2909
- "name": "stream_position",
2910
- "type": "integer",
2911
- "primaryKey": false,
2912
- "notNull": true
2913
- },
2914
- "surface": {
2915
- "name": "surface",
2916
- "type": "text",
2917
- "primaryKey": false,
2918
- "notNull": false
2919
- }
2920
- },
2921
- "indexes": {
2922
- "idx_workflow_journal_stream_position_unique": {
2923
- "name": "idx_workflow_journal_stream_position_unique",
2924
- "columns": [
2925
- {
2926
- "expression": "family",
2927
- "isExpression": false,
2928
- "asc": true,
2929
- "nulls": "last"
2930
- },
2931
- {
2932
- "expression": "stream_id",
2933
- "isExpression": false,
2934
- "asc": true,
2935
- "nulls": "last"
2936
- },
2937
- {
2938
- "expression": "stream_position",
2939
- "isExpression": false,
2940
- "asc": true,
2941
- "nulls": "last"
2942
- }
2943
- ],
2944
- "isUnique": true,
2945
- "concurrently": false,
2946
- "method": "btree",
2947
- "with": {}
2948
- },
2949
- "idx_workflow_journal_commit_position_unique": {
2950
- "name": "idx_workflow_journal_commit_position_unique",
2951
- "columns": [
2952
- {
2953
- "expression": "commit_position",
2954
- "isExpression": false,
2955
- "asc": true,
2956
- "nulls": "last"
2957
- }
2958
- ],
2959
- "isUnique": true,
2960
- "concurrently": false,
2961
- "method": "btree",
2962
- "with": {}
2963
- },
2964
- "idx_workflow_journal_command_invocation_unique": {
2965
- "name": "idx_workflow_journal_command_invocation_unique",
2966
- "columns": [
2967
- {
2968
- "expression": "family",
2969
- "isExpression": false,
2970
- "asc": true,
2971
- "nulls": "last"
2972
- },
2973
- {
2974
- "expression": "command_invocation_id",
2975
- "isExpression": false,
2976
- "asc": true,
2977
- "nulls": "last"
2978
- }
2979
- ],
2980
- "isUnique": true,
2981
- "concurrently": false,
2982
- "method": "btree",
2983
- "with": {}
2984
- },
2985
- "idx_workflow_journal_commit": {
2986
- "name": "idx_workflow_journal_commit",
2987
- "columns": [
2988
- {
2989
- "expression": "commit_id",
2990
- "isExpression": false,
2991
- "asc": true,
2992
- "nulls": "last"
2993
- }
2994
- ],
2995
- "isUnique": false,
2996
- "concurrently": false,
2997
- "method": "btree",
2998
- "with": {}
2999
- },
3000
- "idx_workflow_journal_stream": {
3001
- "name": "idx_workflow_journal_stream",
3002
- "columns": [
3003
- {
3004
- "expression": "family",
3005
- "isExpression": false,
3006
- "asc": true,
3007
- "nulls": "last"
3008
- },
3009
- {
3010
- "expression": "stream_id",
3011
- "isExpression": false,
3012
- "asc": true,
3013
- "nulls": "last"
3014
- },
3015
- {
3016
- "expression": "stream_position",
3017
- "isExpression": false,
3018
- "asc": true,
3019
- "nulls": "last"
3020
- }
3021
- ],
3022
- "isUnique": false,
3023
- "concurrently": false,
3024
- "method": "btree",
3025
- "with": {}
3026
- },
3027
- "idx_workflow_journal_effect": {
3028
- "name": "idx_workflow_journal_effect",
3029
- "columns": [
3030
- {
3031
- "expression": "family",
3032
- "isExpression": false,
3033
- "asc": true,
3034
- "nulls": "last"
3035
- },
3036
- {
3037
- "expression": "stream_id",
3038
- "isExpression": false,
3039
- "asc": true,
3040
- "nulls": "last"
3041
- },
3042
- {
3043
- "expression": "effect_id",
3044
- "isExpression": false,
3045
- "asc": true,
3046
- "nulls": "last"
3047
- }
3048
- ],
3049
- "isUnique": false,
3050
- "concurrently": false,
3051
- "method": "btree",
3052
- "with": {}
3053
- }
3054
- },
3055
- "foreignKeys": {
3056
- "workflow_journal_organization_id_organization_id_fk": {
3057
- "name": "workflow_journal_organization_id_organization_id_fk",
3058
- "tableFrom": "workflow_journal",
3059
- "tableTo": "organization",
3060
- "columnsFrom": ["organization_id"],
3061
- "columnsTo": ["id"],
3062
- "onDelete": "cascade",
3063
- "onUpdate": "no action"
3064
- }
3065
- },
3066
- "compositePrimaryKeys": {},
3067
- "uniqueConstraints": {},
3068
- "policies": {},
3069
- "checkConstraints": {
3070
- "workflow_journal_command_invocation_check": {
3071
- "name": "workflow_journal_command_invocation_check",
3072
- "value": "(\"workflow_journal\".\"entry_kind\" = 'command' and \"workflow_journal\".\"command_invocation_id\" is not null) or (\"workflow_journal\".\"entry_kind\" <> 'command' and \"workflow_journal\".\"command_invocation_id\" is null)"
3073
- }
3074
- },
3075
- "isRLSEnabled": true
3076
- }
3077
- },
3078
- "enums": {},
3079
- "schemas": {},
3080
- "sequences": {},
3081
- "roles": {},
3082
- "policies": {},
3083
- "views": {},
3084
- "_meta": {
3085
- "columns": {},
3086
- "schemas": {},
3087
- "tables": {}
3088
- }
3089
- }