@alvax-ai/db 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (304) hide show
  1. package/dist/check-migration-numbering.d.ts +2 -0
  2. package/dist/check-migration-numbering.d.ts.map +1 -0
  3. package/dist/check-migration-numbering.js +64 -0
  4. package/dist/check-migration-numbering.js.map +1 -0
  5. package/dist/client.d.ts +33 -0
  6. package/dist/client.d.ts.map +1 -0
  7. package/dist/client.js +382 -0
  8. package/dist/client.js.map +1 -0
  9. package/dist/embedded-postgres-error.d.ts +9 -0
  10. package/dist/embedded-postgres-error.d.ts.map +1 -0
  11. package/dist/embedded-postgres-error.js +73 -0
  12. package/dist/embedded-postgres-error.js.map +1 -0
  13. package/dist/index.d.ts +6 -0
  14. package/dist/index.d.ts.map +1 -0
  15. package/dist/index.js +6 -0
  16. package/dist/index.js.map +1 -0
  17. package/dist/migrate.d.ts +2 -0
  18. package/dist/migrate.d.ts.map +1 -0
  19. package/dist/migrate.js +25 -0
  20. package/dist/migrate.js.map +1 -0
  21. package/dist/migration-runtime.d.ts +7 -0
  22. package/dist/migration-runtime.d.ts.map +1 -0
  23. package/dist/migration-runtime.js +164 -0
  24. package/dist/migration-runtime.js.map +1 -0
  25. package/dist/migrations/0000_solid_sir_ram.sql +21 -0
  26. package/dist/migrations/0001_goofy_reavers.sql +185 -0
  27. package/dist/migrations/0002_majestic_vanisher.sql +188 -0
  28. package/dist/migrations/0003_narrow_kabuki.sql +58 -0
  29. package/dist/migrations/0004_stormy_vapor.sql +65 -0
  30. package/dist/migrations/0005_public_blade.sql +59 -0
  31. package/dist/migrations/0006_clean_firestar.sql +52 -0
  32. package/dist/migrations/0007_modern_wilson_fisk.sql +22 -0
  33. package/dist/migrations/0008_slim_beyonder.sql +20 -0
  34. package/dist/migrations/0009_minor_charles_xavier.sql +108 -0
  35. package/dist/migrations/0010_glamorous_tusk.sql +37 -0
  36. package/dist/migrations/0011_neat_mystique.sql +120 -0
  37. package/dist/migrations/0012_clumsy_dazzler.sql +36 -0
  38. package/dist/migrations/0013_perfect_ares.sql +96 -0
  39. package/dist/migrations/0014_overjoyed_hitman.sql +1 -0
  40. package/dist/migrations/0015_graceful_ultimo.sql +43 -0
  41. package/dist/migrations/0016_far_reavers.sql +68 -0
  42. package/dist/migrations/0017_lame_sauron.sql +34 -0
  43. package/dist/migrations/0018_ambiguous_master_mold.sql +51 -0
  44. package/dist/migrations/0019_material_joshua_kane.sql +15 -0
  45. package/dist/migrations/0020_mature_jack_murdock.sql +3 -0
  46. package/dist/migrations/0021_safe_vulture.sql +2 -0
  47. package/dist/migrations/0022_bumpy_wrecker.sql +73 -0
  48. package/dist/migrations/0023_tan_bruce_banner.sql +1 -0
  49. package/dist/migrations/0024_moaning_guardsmen.sql +44 -0
  50. package/dist/migrations/meta/0000_snapshot.json +162 -0
  51. package/dist/migrations/meta/0001_snapshot.json +1761 -0
  52. package/dist/migrations/meta/0002_snapshot.json +3466 -0
  53. package/dist/migrations/meta/0003_snapshot.json +4003 -0
  54. package/dist/migrations/meta/0004_snapshot.json +4628 -0
  55. package/dist/migrations/meta/0005_snapshot.json +5156 -0
  56. package/dist/migrations/meta/0006_snapshot.json +5613 -0
  57. package/dist/migrations/meta/0007_snapshot.json +5786 -0
  58. package/dist/migrations/meta/0008_snapshot.json +5966 -0
  59. package/dist/migrations/meta/0009_snapshot.json +6944 -0
  60. package/dist/migrations/meta/0010_snapshot.json +7243 -0
  61. package/dist/migrations/meta/0011_snapshot.json +8324 -0
  62. package/dist/migrations/meta/0012_snapshot.json +8647 -0
  63. package/dist/migrations/meta/0013_snapshot.json +9448 -0
  64. package/dist/migrations/meta/0014_snapshot.json +9455 -0
  65. package/dist/migrations/meta/0015_snapshot.json +9845 -0
  66. package/dist/migrations/meta/0016_snapshot.json +10457 -0
  67. package/dist/migrations/meta/0017_snapshot.json +10802 -0
  68. package/dist/migrations/meta/0018_snapshot.json +11289 -0
  69. package/dist/migrations/meta/0019_snapshot.json +11425 -0
  70. package/dist/migrations/meta/0020_snapshot.json +11445 -0
  71. package/dist/migrations/meta/0021_snapshot.json +11459 -0
  72. package/dist/migrations/meta/0022_snapshot.json +12063 -0
  73. package/dist/migrations/meta/0023_snapshot.json +12069 -0
  74. package/dist/migrations/meta/0024_snapshot.json +12524 -0
  75. package/dist/migrations/meta/_journal.json +181 -0
  76. package/dist/runtime-config.d.ts +11 -0
  77. package/dist/runtime-config.d.ts.map +1 -0
  78. package/dist/runtime-config.js +56 -0
  79. package/dist/runtime-config.js.map +1 -0
  80. package/dist/schema/activity_log.d.ts +197 -0
  81. package/dist/schema/activity_log.d.ts.map +1 -0
  82. package/dist/schema/activity_log.js +24 -0
  83. package/dist/schema/activity_log.js.map +1 -0
  84. package/dist/schema/agent_runtime_state.d.ts +248 -0
  85. package/dist/schema/agent_runtime_state.d.ts.map +1 -0
  86. package/dist/schema/agent_runtime_state.js +23 -0
  87. package/dist/schema/agent_runtime_state.js.map +1 -0
  88. package/dist/schema/agent_task_sessions.d.ts +197 -0
  89. package/dist/schema/agent_task_sessions.d.ts.map +1 -0
  90. package/dist/schema/agent_task_sessions.js +22 -0
  91. package/dist/schema/agent_task_sessions.js.map +1 -0
  92. package/dist/schema/agent_wakeup_requests.d.ts +333 -0
  93. package/dist/schema/agent_wakeup_requests.d.ts.map +1 -0
  94. package/dist/schema/agent_wakeup_requests.js +29 -0
  95. package/dist/schema/agent_wakeup_requests.js.map +1 -0
  96. package/dist/schema/agents.d.ts +390 -0
  97. package/dist/schema/agents.d.ts.map +1 -0
  98. package/dist/schema/agents.js +32 -0
  99. package/dist/schema/agents.js.map +1 -0
  100. package/dist/schema/approval_comments.d.ts +144 -0
  101. package/dist/schema/approval_comments.d.ts.map +1 -0
  102. package/dist/schema/approval_comments.js +19 -0
  103. package/dist/schema/approval_comments.js.map +1 -0
  104. package/dist/schema/approvals.d.ts +214 -0
  105. package/dist/schema/approvals.d.ts.map +1 -0
  106. package/dist/schema/approvals.js +20 -0
  107. package/dist/schema/approvals.js.map +1 -0
  108. package/dist/schema/assets.d.ts +212 -0
  109. package/dist/schema/assets.d.ts.map +1 -0
  110. package/dist/schema/assets.js +23 -0
  111. package/dist/schema/assets.js.map +1 -0
  112. package/dist/schema/budget_incidents.d.ts +297 -0
  113. package/dist/schema/budget_incidents.d.ts.map +1 -0
  114. package/dist/schema/budget_incidents.js +29 -0
  115. package/dist/schema/budget_incidents.js.map +1 -0
  116. package/dist/schema/budget_policies.d.ts +263 -0
  117. package/dist/schema/budget_policies.d.ts.map +1 -0
  118. package/dist/schema/budget_policies.js +24 -0
  119. package/dist/schema/budget_policies.js.map +1 -0
  120. package/dist/schema/command_context_summaries.d.ts +127 -0
  121. package/dist/schema/command_context_summaries.d.ts.map +1 -0
  122. package/dist/schema/command_context_summaries.js +16 -0
  123. package/dist/schema/command_context_summaries.js.map +1 -0
  124. package/dist/schema/command_messages.d.ts +163 -0
  125. package/dist/schema/command_messages.d.ts.map +1 -0
  126. package/dist/schema/command_messages.js +20 -0
  127. package/dist/schema/command_messages.js.map +1 -0
  128. package/dist/schema/command_threads.d.ts +127 -0
  129. package/dist/schema/command_threads.d.ts.map +1 -0
  130. package/dist/schema/command_threads.js +14 -0
  131. package/dist/schema/command_threads.js.map +1 -0
  132. package/dist/schema/companies.d.ts +301 -0
  133. package/dist/schema/companies.d.ts.map +1 -0
  134. package/dist/schema/companies.js +27 -0
  135. package/dist/schema/companies.js.map +1 -0
  136. package/dist/schema/company_profile_setup_messages.d.ts +171 -0
  137. package/dist/schema/company_profile_setup_messages.d.ts.map +1 -0
  138. package/dist/schema/company_profile_setup_messages.js +18 -0
  139. package/dist/schema/company_profile_setup_messages.js.map +1 -0
  140. package/dist/schema/company_profile_setup_runs.d.ts +234 -0
  141. package/dist/schema/company_profile_setup_runs.d.ts.map +1 -0
  142. package/dist/schema/company_profile_setup_runs.js +22 -0
  143. package/dist/schema/company_profile_setup_runs.js.map +1 -0
  144. package/dist/schema/company_profile_setup_sessions.d.ts +179 -0
  145. package/dist/schema/company_profile_setup_sessions.d.ts.map +1 -0
  146. package/dist/schema/company_profile_setup_sessions.js +18 -0
  147. package/dist/schema/company_profile_setup_sessions.js.map +1 -0
  148. package/dist/schema/company_profiles.d.ts +291 -0
  149. package/dist/schema/company_profiles.d.ts.map +1 -0
  150. package/dist/schema/company_profiles.js +24 -0
  151. package/dist/schema/company_profiles.js.map +1 -0
  152. package/dist/schema/company_runtime_adapter_checks.d.ts +206 -0
  153. package/dist/schema/company_runtime_adapter_checks.d.ts.map +1 -0
  154. package/dist/schema/company_runtime_adapter_checks.js +19 -0
  155. package/dist/schema/company_runtime_adapter_checks.js.map +1 -0
  156. package/dist/schema/company_runtime_profiles.d.ts +165 -0
  157. package/dist/schema/company_runtime_profiles.d.ts.map +1 -0
  158. package/dist/schema/company_runtime_profiles.js +18 -0
  159. package/dist/schema/company_runtime_profiles.js.map +1 -0
  160. package/dist/schema/company_secret_versions.d.ts +163 -0
  161. package/dist/schema/company_secret_versions.d.ts.map +1 -0
  162. package/dist/schema/company_secret_versions.js +19 -0
  163. package/dist/schema/company_secret_versions.js.map +1 -0
  164. package/dist/schema/company_secrets.d.ts +195 -0
  165. package/dist/schema/company_secrets.d.ts.map +1 -0
  166. package/dist/schema/company_secrets.js +21 -0
  167. package/dist/schema/company_secrets.js.map +1 -0
  168. package/dist/schema/company_skills.d.ts +284 -0
  169. package/dist/schema/company_skills.d.ts.map +1 -0
  170. package/dist/schema/company_skills.js +24 -0
  171. package/dist/schema/company_skills.js.map +1 -0
  172. package/dist/schema/cost_events.d.ts +314 -0
  173. package/dist/schema/cost_events.d.ts.map +1 -0
  174. package/dist/schema/cost_events.js +34 -0
  175. package/dist/schema/cost_events.js.map +1 -0
  176. package/dist/schema/document_revisions.d.ts +212 -0
  177. package/dist/schema/document_revisions.d.ts.map +1 -0
  178. package/dist/schema/document_revisions.js +23 -0
  179. package/dist/schema/document_revisions.js.map +1 -0
  180. package/dist/schema/documents.d.ts +229 -0
  181. package/dist/schema/documents.d.ts.map +1 -0
  182. package/dist/schema/documents.js +22 -0
  183. package/dist/schema/documents.js.map +1 -0
  184. package/dist/schema/environments.d.ts +182 -0
  185. package/dist/schema/environments.d.ts.map +1 -0
  186. package/dist/schema/environments.js +22 -0
  187. package/dist/schema/environments.js.map +1 -0
  188. package/dist/schema/execution_workspaces.d.ts +418 -0
  189. package/dist/schema/execution_workspaces.d.ts.map +1 -0
  190. package/dist/schema/execution_workspaces.js +38 -0
  191. package/dist/schema/execution_workspaces.js.map +1 -0
  192. package/dist/schema/goals.d.ts +178 -0
  193. package/dist/schema/goals.d.ts.map +1 -0
  194. package/dist/schema/goals.js +18 -0
  195. package/dist/schema/goals.js.map +1 -0
  196. package/dist/schema/heartbeat_run_events.d.ts +214 -0
  197. package/dist/schema/heartbeat_run_events.d.ts.map +1 -0
  198. package/dist/schema/heartbeat_run_events.js +23 -0
  199. package/dist/schema/heartbeat_run_events.js.map +1 -0
  200. package/dist/schema/heartbeat_runs.d.ts +830 -0
  201. package/dist/schema/heartbeat_runs.d.ts.map +1 -0
  202. package/dist/schema/heartbeat_runs.js +62 -0
  203. package/dist/schema/heartbeat_runs.js.map +1 -0
  204. package/dist/schema/inbox_dismissals.d.ts +127 -0
  205. package/dist/schema/inbox_dismissals.d.ts.map +1 -0
  206. package/dist/schema/inbox_dismissals.js +16 -0
  207. package/dist/schema/inbox_dismissals.js.map +1 -0
  208. package/dist/schema/index.d.ts +56 -0
  209. package/dist/schema/index.d.ts.map +1 -0
  210. package/dist/schema/index.js +56 -0
  211. package/dist/schema/index.js.map +1 -0
  212. package/dist/schema/issue_approvals.d.ts +110 -0
  213. package/dist/schema/issue_approvals.d.ts.map +1 -0
  214. package/dist/schema/issue_approvals.js +19 -0
  215. package/dist/schema/issue_approvals.js.map +1 -0
  216. package/dist/schema/issue_comments.d.ts +216 -0
  217. package/dist/schema/issue_comments.d.ts.map +1 -0
  218. package/dist/schema/issue_comments.js +25 -0
  219. package/dist/schema/issue_comments.js.map +1 -0
  220. package/dist/schema/issue_documents.d.ts +127 -0
  221. package/dist/schema/issue_documents.d.ts.map +1 -0
  222. package/dist/schema/issue_documents.js +18 -0
  223. package/dist/schema/issue_documents.js.map +1 -0
  224. package/dist/schema/issue_inbox_archives.d.ts +127 -0
  225. package/dist/schema/issue_inbox_archives.d.ts.map +1 -0
  226. package/dist/schema/issue_inbox_archives.js +17 -0
  227. package/dist/schema/issue_inbox_archives.js.map +1 -0
  228. package/dist/schema/issue_read_states.d.ts +127 -0
  229. package/dist/schema/issue_read_states.d.ts.map +1 -0
  230. package/dist/schema/issue_read_states.js +17 -0
  231. package/dist/schema/issue_read_states.js.map +1 -0
  232. package/dist/schema/issue_relations.d.ts +163 -0
  233. package/dist/schema/issue_relations.d.ts.map +1 -0
  234. package/dist/schema/issue_relations.js +21 -0
  235. package/dist/schema/issue_relations.js.map +1 -0
  236. package/dist/schema/issue_thread_interactions.d.ts +352 -0
  237. package/dist/schema/issue_thread_interactions.d.ts.map +1 -0
  238. package/dist/schema/issue_thread_interactions.js +38 -0
  239. package/dist/schema/issue_thread_interactions.js.map +1 -0
  240. package/dist/schema/issue_tree_hold_members.d.ts +280 -0
  241. package/dist/schema/issue_tree_hold_members.d.ts.map +1 -0
  242. package/dist/schema/issue_tree_hold_members.js +29 -0
  243. package/dist/schema/issue_tree_hold_members.js.map +1 -0
  244. package/dist/schema/issue_tree_holds.d.ts +352 -0
  245. package/dist/schema/issue_tree_holds.d.ts.map +1 -0
  246. package/dist/schema/issue_tree_holds.js +31 -0
  247. package/dist/schema/issue_tree_holds.js.map +1 -0
  248. package/dist/schema/issue_work_products.d.ts +350 -0
  249. package/dist/schema/issue_work_products.d.ts.map +1 -0
  250. package/dist/schema/issue_work_products.js +33 -0
  251. package/dist/schema/issue_work_products.js.map +1 -0
  252. package/dist/schema/issues.d.ts +781 -0
  253. package/dist/schema/issues.d.ts.map +1 -0
  254. package/dist/schema/issues.js +104 -0
  255. package/dist/schema/issues.js.map +1 -0
  256. package/dist/schema/knowledge_data_table_columns.d.ts +280 -0
  257. package/dist/schema/knowledge_data_table_columns.d.ts.map +1 -0
  258. package/dist/schema/knowledge_data_table_columns.js +37 -0
  259. package/dist/schema/knowledge_data_table_columns.js.map +1 -0
  260. package/dist/schema/knowledge_data_table_rows.d.ts +214 -0
  261. package/dist/schema/knowledge_data_table_rows.d.ts.map +1 -0
  262. package/dist/schema/knowledge_data_table_rows.js +27 -0
  263. package/dist/schema/knowledge_data_table_rows.js.map +1 -0
  264. package/dist/schema/knowledge_data_tables.d.ts +212 -0
  265. package/dist/schema/knowledge_data_tables.d.ts.map +1 -0
  266. package/dist/schema/knowledge_data_tables.js +25 -0
  267. package/dist/schema/knowledge_data_tables.js.map +1 -0
  268. package/dist/schema/knowledge_documents.d.ts +231 -0
  269. package/dist/schema/knowledge_documents.d.ts.map +1 -0
  270. package/dist/schema/knowledge_documents.js +29 -0
  271. package/dist/schema/knowledge_documents.js.map +1 -0
  272. package/dist/schema/project_goals.d.ts +93 -0
  273. package/dist/schema/project_goals.d.ts.map +1 -0
  274. package/dist/schema/project_goals.js +17 -0
  275. package/dist/schema/project_goals.js.map +1 -0
  276. package/dist/schema/project_workspaces.d.ts +333 -0
  277. package/dist/schema/project_workspaces.d.ts.map +1 -0
  278. package/dist/schema/project_workspaces.js +31 -0
  279. package/dist/schema/project_workspaces.js.map +1 -0
  280. package/dist/schema/projects.d.ts +284 -0
  281. package/dist/schema/projects.d.ts.map +1 -0
  282. package/dist/schema/projects.js +25 -0
  283. package/dist/schema/projects.js.map +1 -0
  284. package/dist/schema/routines.d.ts +1277 -0
  285. package/dist/schema/routines.d.ts.map +1 -0
  286. package/dist/schema/routines.js +108 -0
  287. package/dist/schema/routines.js.map +1 -0
  288. package/dist/schema/system_assistant_run_events.d.ts +180 -0
  289. package/dist/schema/system_assistant_run_events.d.ts.map +1 -0
  290. package/dist/schema/system_assistant_run_events.js +19 -0
  291. package/dist/schema/system_assistant_run_events.js.map +1 -0
  292. package/dist/schema/system_assistant_runs.d.ts +195 -0
  293. package/dist/schema/system_assistant_runs.d.ts.map +1 -0
  294. package/dist/schema/system_assistant_runs.js +23 -0
  295. package/dist/schema/system_assistant_runs.js.map +1 -0
  296. package/dist/schema/workspace_operations.d.ts +367 -0
  297. package/dist/schema/workspace_operations.d.ts.map +1 -0
  298. package/dist/schema/workspace_operations.js +35 -0
  299. package/dist/schema/workspace_operations.js.map +1 -0
  300. package/dist/schema/workspace_runtime_services.d.ts +469 -0
  301. package/dist/schema/workspace_runtime_services.d.ts.map +1 -0
  302. package/dist/schema/workspace_runtime_services.js +46 -0
  303. package/dist/schema/workspace_runtime_services.js.map +1 -0
  304. package/package.json +56 -0
@@ -0,0 +1,1761 @@
1
+ {
2
+ "id": "4eb936c3-79c7-476a-a9e8-96bf356fda31",
3
+ "prevId": "903033a2-6edf-4c42-8615-9116ac6dd624",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.agent_runtime_state": {
8
+ "name": "agent_runtime_state",
9
+ "schema": "",
10
+ "columns": {
11
+ "agent_id": {
12
+ "name": "agent_id",
13
+ "type": "uuid",
14
+ "primaryKey": true,
15
+ "notNull": true
16
+ },
17
+ "company_id": {
18
+ "name": "company_id",
19
+ "type": "uuid",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "adapter_type": {
24
+ "name": "adapter_type",
25
+ "type": "text",
26
+ "primaryKey": false,
27
+ "notNull": true
28
+ },
29
+ "session_id": {
30
+ "name": "session_id",
31
+ "type": "text",
32
+ "primaryKey": false,
33
+ "notNull": false
34
+ },
35
+ "state_json": {
36
+ "name": "state_json",
37
+ "type": "jsonb",
38
+ "primaryKey": false,
39
+ "notNull": true,
40
+ "default": "'{}'::jsonb"
41
+ },
42
+ "last_run_id": {
43
+ "name": "last_run_id",
44
+ "type": "uuid",
45
+ "primaryKey": false,
46
+ "notNull": false
47
+ },
48
+ "last_run_status": {
49
+ "name": "last_run_status",
50
+ "type": "text",
51
+ "primaryKey": false,
52
+ "notNull": false
53
+ },
54
+ "total_input_tokens": {
55
+ "name": "total_input_tokens",
56
+ "type": "bigint",
57
+ "primaryKey": false,
58
+ "notNull": true,
59
+ "default": 0
60
+ },
61
+ "total_output_tokens": {
62
+ "name": "total_output_tokens",
63
+ "type": "bigint",
64
+ "primaryKey": false,
65
+ "notNull": true,
66
+ "default": 0
67
+ },
68
+ "total_cached_input_tokens": {
69
+ "name": "total_cached_input_tokens",
70
+ "type": "bigint",
71
+ "primaryKey": false,
72
+ "notNull": true,
73
+ "default": 0
74
+ },
75
+ "total_cost_cents": {
76
+ "name": "total_cost_cents",
77
+ "type": "bigint",
78
+ "primaryKey": false,
79
+ "notNull": true,
80
+ "default": 0
81
+ },
82
+ "last_error": {
83
+ "name": "last_error",
84
+ "type": "text",
85
+ "primaryKey": false,
86
+ "notNull": false
87
+ },
88
+ "created_at": {
89
+ "name": "created_at",
90
+ "type": "timestamp with time zone",
91
+ "primaryKey": false,
92
+ "notNull": true,
93
+ "default": "now()"
94
+ },
95
+ "updated_at": {
96
+ "name": "updated_at",
97
+ "type": "timestamp with time zone",
98
+ "primaryKey": false,
99
+ "notNull": true,
100
+ "default": "now()"
101
+ }
102
+ },
103
+ "indexes": {
104
+ "agent_runtime_state_company_agent_idx": {
105
+ "name": "agent_runtime_state_company_agent_idx",
106
+ "columns": [
107
+ {
108
+ "expression": "company_id",
109
+ "isExpression": false,
110
+ "asc": true,
111
+ "nulls": "last"
112
+ },
113
+ {
114
+ "expression": "agent_id",
115
+ "isExpression": false,
116
+ "asc": true,
117
+ "nulls": "last"
118
+ }
119
+ ],
120
+ "isUnique": false,
121
+ "concurrently": false,
122
+ "method": "btree",
123
+ "with": {}
124
+ },
125
+ "agent_runtime_state_company_updated_idx": {
126
+ "name": "agent_runtime_state_company_updated_idx",
127
+ "columns": [
128
+ {
129
+ "expression": "company_id",
130
+ "isExpression": false,
131
+ "asc": true,
132
+ "nulls": "last"
133
+ },
134
+ {
135
+ "expression": "updated_at",
136
+ "isExpression": false,
137
+ "asc": true,
138
+ "nulls": "last"
139
+ }
140
+ ],
141
+ "isUnique": false,
142
+ "concurrently": false,
143
+ "method": "btree",
144
+ "with": {}
145
+ }
146
+ },
147
+ "foreignKeys": {
148
+ "agent_runtime_state_agent_id_agents_id_fk": {
149
+ "name": "agent_runtime_state_agent_id_agents_id_fk",
150
+ "tableFrom": "agent_runtime_state",
151
+ "tableTo": "agents",
152
+ "columnsFrom": [
153
+ "agent_id"
154
+ ],
155
+ "columnsTo": [
156
+ "id"
157
+ ],
158
+ "onDelete": "no action",
159
+ "onUpdate": "no action"
160
+ },
161
+ "agent_runtime_state_company_id_companies_id_fk": {
162
+ "name": "agent_runtime_state_company_id_companies_id_fk",
163
+ "tableFrom": "agent_runtime_state",
164
+ "tableTo": "companies",
165
+ "columnsFrom": [
166
+ "company_id"
167
+ ],
168
+ "columnsTo": [
169
+ "id"
170
+ ],
171
+ "onDelete": "no action",
172
+ "onUpdate": "no action"
173
+ }
174
+ },
175
+ "compositePrimaryKeys": {},
176
+ "uniqueConstraints": {},
177
+ "policies": {},
178
+ "checkConstraints": {},
179
+ "isRLSEnabled": false
180
+ },
181
+ "public.agent_task_sessions": {
182
+ "name": "agent_task_sessions",
183
+ "schema": "",
184
+ "columns": {
185
+ "id": {
186
+ "name": "id",
187
+ "type": "uuid",
188
+ "primaryKey": true,
189
+ "notNull": true,
190
+ "default": "gen_random_uuid()"
191
+ },
192
+ "company_id": {
193
+ "name": "company_id",
194
+ "type": "uuid",
195
+ "primaryKey": false,
196
+ "notNull": true
197
+ },
198
+ "agent_id": {
199
+ "name": "agent_id",
200
+ "type": "uuid",
201
+ "primaryKey": false,
202
+ "notNull": true
203
+ },
204
+ "adapter_type": {
205
+ "name": "adapter_type",
206
+ "type": "text",
207
+ "primaryKey": false,
208
+ "notNull": true
209
+ },
210
+ "task_key": {
211
+ "name": "task_key",
212
+ "type": "text",
213
+ "primaryKey": false,
214
+ "notNull": true
215
+ },
216
+ "session_params_json": {
217
+ "name": "session_params_json",
218
+ "type": "jsonb",
219
+ "primaryKey": false,
220
+ "notNull": false
221
+ },
222
+ "session_display_id": {
223
+ "name": "session_display_id",
224
+ "type": "text",
225
+ "primaryKey": false,
226
+ "notNull": false
227
+ },
228
+ "last_run_id": {
229
+ "name": "last_run_id",
230
+ "type": "uuid",
231
+ "primaryKey": false,
232
+ "notNull": false
233
+ },
234
+ "last_error": {
235
+ "name": "last_error",
236
+ "type": "text",
237
+ "primaryKey": false,
238
+ "notNull": false
239
+ },
240
+ "created_at": {
241
+ "name": "created_at",
242
+ "type": "timestamp with time zone",
243
+ "primaryKey": false,
244
+ "notNull": true,
245
+ "default": "now()"
246
+ },
247
+ "updated_at": {
248
+ "name": "updated_at",
249
+ "type": "timestamp with time zone",
250
+ "primaryKey": false,
251
+ "notNull": true,
252
+ "default": "now()"
253
+ }
254
+ },
255
+ "indexes": {
256
+ "agent_task_sessions_company_agent_adapter_task_uniq": {
257
+ "name": "agent_task_sessions_company_agent_adapter_task_uniq",
258
+ "columns": [
259
+ {
260
+ "expression": "company_id",
261
+ "isExpression": false,
262
+ "asc": true,
263
+ "nulls": "last"
264
+ },
265
+ {
266
+ "expression": "agent_id",
267
+ "isExpression": false,
268
+ "asc": true,
269
+ "nulls": "last"
270
+ },
271
+ {
272
+ "expression": "adapter_type",
273
+ "isExpression": false,
274
+ "asc": true,
275
+ "nulls": "last"
276
+ },
277
+ {
278
+ "expression": "task_key",
279
+ "isExpression": false,
280
+ "asc": true,
281
+ "nulls": "last"
282
+ }
283
+ ],
284
+ "isUnique": true,
285
+ "concurrently": false,
286
+ "method": "btree",
287
+ "with": {}
288
+ },
289
+ "agent_task_sessions_company_agent_updated_idx": {
290
+ "name": "agent_task_sessions_company_agent_updated_idx",
291
+ "columns": [
292
+ {
293
+ "expression": "company_id",
294
+ "isExpression": false,
295
+ "asc": true,
296
+ "nulls": "last"
297
+ },
298
+ {
299
+ "expression": "agent_id",
300
+ "isExpression": false,
301
+ "asc": true,
302
+ "nulls": "last"
303
+ },
304
+ {
305
+ "expression": "updated_at",
306
+ "isExpression": false,
307
+ "asc": true,
308
+ "nulls": "last"
309
+ }
310
+ ],
311
+ "isUnique": false,
312
+ "concurrently": false,
313
+ "method": "btree",
314
+ "with": {}
315
+ },
316
+ "agent_task_sessions_company_task_updated_idx": {
317
+ "name": "agent_task_sessions_company_task_updated_idx",
318
+ "columns": [
319
+ {
320
+ "expression": "company_id",
321
+ "isExpression": false,
322
+ "asc": true,
323
+ "nulls": "last"
324
+ },
325
+ {
326
+ "expression": "task_key",
327
+ "isExpression": false,
328
+ "asc": true,
329
+ "nulls": "last"
330
+ },
331
+ {
332
+ "expression": "updated_at",
333
+ "isExpression": false,
334
+ "asc": true,
335
+ "nulls": "last"
336
+ }
337
+ ],
338
+ "isUnique": false,
339
+ "concurrently": false,
340
+ "method": "btree",
341
+ "with": {}
342
+ }
343
+ },
344
+ "foreignKeys": {
345
+ "agent_task_sessions_company_id_companies_id_fk": {
346
+ "name": "agent_task_sessions_company_id_companies_id_fk",
347
+ "tableFrom": "agent_task_sessions",
348
+ "tableTo": "companies",
349
+ "columnsFrom": [
350
+ "company_id"
351
+ ],
352
+ "columnsTo": [
353
+ "id"
354
+ ],
355
+ "onDelete": "no action",
356
+ "onUpdate": "no action"
357
+ },
358
+ "agent_task_sessions_agent_id_agents_id_fk": {
359
+ "name": "agent_task_sessions_agent_id_agents_id_fk",
360
+ "tableFrom": "agent_task_sessions",
361
+ "tableTo": "agents",
362
+ "columnsFrom": [
363
+ "agent_id"
364
+ ],
365
+ "columnsTo": [
366
+ "id"
367
+ ],
368
+ "onDelete": "no action",
369
+ "onUpdate": "no action"
370
+ },
371
+ "agent_task_sessions_last_run_id_heartbeat_runs_id_fk": {
372
+ "name": "agent_task_sessions_last_run_id_heartbeat_runs_id_fk",
373
+ "tableFrom": "agent_task_sessions",
374
+ "tableTo": "heartbeat_runs",
375
+ "columnsFrom": [
376
+ "last_run_id"
377
+ ],
378
+ "columnsTo": [
379
+ "id"
380
+ ],
381
+ "onDelete": "no action",
382
+ "onUpdate": "no action"
383
+ }
384
+ },
385
+ "compositePrimaryKeys": {},
386
+ "uniqueConstraints": {},
387
+ "policies": {},
388
+ "checkConstraints": {},
389
+ "isRLSEnabled": false
390
+ },
391
+ "public.agent_wakeup_requests": {
392
+ "name": "agent_wakeup_requests",
393
+ "schema": "",
394
+ "columns": {
395
+ "id": {
396
+ "name": "id",
397
+ "type": "uuid",
398
+ "primaryKey": true,
399
+ "notNull": true,
400
+ "default": "gen_random_uuid()"
401
+ },
402
+ "company_id": {
403
+ "name": "company_id",
404
+ "type": "uuid",
405
+ "primaryKey": false,
406
+ "notNull": true
407
+ },
408
+ "agent_id": {
409
+ "name": "agent_id",
410
+ "type": "uuid",
411
+ "primaryKey": false,
412
+ "notNull": true
413
+ },
414
+ "source": {
415
+ "name": "source",
416
+ "type": "text",
417
+ "primaryKey": false,
418
+ "notNull": true
419
+ },
420
+ "trigger_detail": {
421
+ "name": "trigger_detail",
422
+ "type": "text",
423
+ "primaryKey": false,
424
+ "notNull": false
425
+ },
426
+ "reason": {
427
+ "name": "reason",
428
+ "type": "text",
429
+ "primaryKey": false,
430
+ "notNull": false
431
+ },
432
+ "payload": {
433
+ "name": "payload",
434
+ "type": "jsonb",
435
+ "primaryKey": false,
436
+ "notNull": false
437
+ },
438
+ "status": {
439
+ "name": "status",
440
+ "type": "text",
441
+ "primaryKey": false,
442
+ "notNull": true,
443
+ "default": "'queued'"
444
+ },
445
+ "coalesced_count": {
446
+ "name": "coalesced_count",
447
+ "type": "integer",
448
+ "primaryKey": false,
449
+ "notNull": true,
450
+ "default": 0
451
+ },
452
+ "requested_by_actor_type": {
453
+ "name": "requested_by_actor_type",
454
+ "type": "text",
455
+ "primaryKey": false,
456
+ "notNull": false
457
+ },
458
+ "requested_by_actor_id": {
459
+ "name": "requested_by_actor_id",
460
+ "type": "text",
461
+ "primaryKey": false,
462
+ "notNull": false
463
+ },
464
+ "idempotency_key": {
465
+ "name": "idempotency_key",
466
+ "type": "text",
467
+ "primaryKey": false,
468
+ "notNull": false
469
+ },
470
+ "run_id": {
471
+ "name": "run_id",
472
+ "type": "uuid",
473
+ "primaryKey": false,
474
+ "notNull": false
475
+ },
476
+ "requested_at": {
477
+ "name": "requested_at",
478
+ "type": "timestamp with time zone",
479
+ "primaryKey": false,
480
+ "notNull": true,
481
+ "default": "now()"
482
+ },
483
+ "claimed_at": {
484
+ "name": "claimed_at",
485
+ "type": "timestamp with time zone",
486
+ "primaryKey": false,
487
+ "notNull": false
488
+ },
489
+ "finished_at": {
490
+ "name": "finished_at",
491
+ "type": "timestamp with time zone",
492
+ "primaryKey": false,
493
+ "notNull": false
494
+ },
495
+ "error": {
496
+ "name": "error",
497
+ "type": "text",
498
+ "primaryKey": false,
499
+ "notNull": false
500
+ },
501
+ "created_at": {
502
+ "name": "created_at",
503
+ "type": "timestamp with time zone",
504
+ "primaryKey": false,
505
+ "notNull": true,
506
+ "default": "now()"
507
+ },
508
+ "updated_at": {
509
+ "name": "updated_at",
510
+ "type": "timestamp with time zone",
511
+ "primaryKey": false,
512
+ "notNull": true,
513
+ "default": "now()"
514
+ }
515
+ },
516
+ "indexes": {
517
+ "agent_wakeup_requests_company_agent_status_idx": {
518
+ "name": "agent_wakeup_requests_company_agent_status_idx",
519
+ "columns": [
520
+ {
521
+ "expression": "company_id",
522
+ "isExpression": false,
523
+ "asc": true,
524
+ "nulls": "last"
525
+ },
526
+ {
527
+ "expression": "agent_id",
528
+ "isExpression": false,
529
+ "asc": true,
530
+ "nulls": "last"
531
+ },
532
+ {
533
+ "expression": "status",
534
+ "isExpression": false,
535
+ "asc": true,
536
+ "nulls": "last"
537
+ }
538
+ ],
539
+ "isUnique": false,
540
+ "concurrently": false,
541
+ "method": "btree",
542
+ "with": {}
543
+ },
544
+ "agent_wakeup_requests_company_requested_idx": {
545
+ "name": "agent_wakeup_requests_company_requested_idx",
546
+ "columns": [
547
+ {
548
+ "expression": "company_id",
549
+ "isExpression": false,
550
+ "asc": true,
551
+ "nulls": "last"
552
+ },
553
+ {
554
+ "expression": "requested_at",
555
+ "isExpression": false,
556
+ "asc": true,
557
+ "nulls": "last"
558
+ }
559
+ ],
560
+ "isUnique": false,
561
+ "concurrently": false,
562
+ "method": "btree",
563
+ "with": {}
564
+ },
565
+ "agent_wakeup_requests_agent_requested_idx": {
566
+ "name": "agent_wakeup_requests_agent_requested_idx",
567
+ "columns": [
568
+ {
569
+ "expression": "agent_id",
570
+ "isExpression": false,
571
+ "asc": true,
572
+ "nulls": "last"
573
+ },
574
+ {
575
+ "expression": "requested_at",
576
+ "isExpression": false,
577
+ "asc": true,
578
+ "nulls": "last"
579
+ }
580
+ ],
581
+ "isUnique": false,
582
+ "concurrently": false,
583
+ "method": "btree",
584
+ "with": {}
585
+ }
586
+ },
587
+ "foreignKeys": {
588
+ "agent_wakeup_requests_company_id_companies_id_fk": {
589
+ "name": "agent_wakeup_requests_company_id_companies_id_fk",
590
+ "tableFrom": "agent_wakeup_requests",
591
+ "tableTo": "companies",
592
+ "columnsFrom": [
593
+ "company_id"
594
+ ],
595
+ "columnsTo": [
596
+ "id"
597
+ ],
598
+ "onDelete": "no action",
599
+ "onUpdate": "no action"
600
+ },
601
+ "agent_wakeup_requests_agent_id_agents_id_fk": {
602
+ "name": "agent_wakeup_requests_agent_id_agents_id_fk",
603
+ "tableFrom": "agent_wakeup_requests",
604
+ "tableTo": "agents",
605
+ "columnsFrom": [
606
+ "agent_id"
607
+ ],
608
+ "columnsTo": [
609
+ "id"
610
+ ],
611
+ "onDelete": "no action",
612
+ "onUpdate": "no action"
613
+ }
614
+ },
615
+ "compositePrimaryKeys": {},
616
+ "uniqueConstraints": {},
617
+ "policies": {},
618
+ "checkConstraints": {},
619
+ "isRLSEnabled": false
620
+ },
621
+ "public.agents": {
622
+ "name": "agents",
623
+ "schema": "",
624
+ "columns": {
625
+ "id": {
626
+ "name": "id",
627
+ "type": "uuid",
628
+ "primaryKey": true,
629
+ "notNull": true,
630
+ "default": "gen_random_uuid()"
631
+ },
632
+ "company_id": {
633
+ "name": "company_id",
634
+ "type": "uuid",
635
+ "primaryKey": false,
636
+ "notNull": true
637
+ },
638
+ "name": {
639
+ "name": "name",
640
+ "type": "text",
641
+ "primaryKey": false,
642
+ "notNull": true
643
+ },
644
+ "role": {
645
+ "name": "role",
646
+ "type": "text",
647
+ "primaryKey": false,
648
+ "notNull": true,
649
+ "default": "'general'"
650
+ },
651
+ "title": {
652
+ "name": "title",
653
+ "type": "text",
654
+ "primaryKey": false,
655
+ "notNull": false
656
+ },
657
+ "icon": {
658
+ "name": "icon",
659
+ "type": "text",
660
+ "primaryKey": false,
661
+ "notNull": false
662
+ },
663
+ "status": {
664
+ "name": "status",
665
+ "type": "text",
666
+ "primaryKey": false,
667
+ "notNull": true,
668
+ "default": "'idle'"
669
+ },
670
+ "reports_to": {
671
+ "name": "reports_to",
672
+ "type": "uuid",
673
+ "primaryKey": false,
674
+ "notNull": false
675
+ },
676
+ "capabilities": {
677
+ "name": "capabilities",
678
+ "type": "text",
679
+ "primaryKey": false,
680
+ "notNull": false
681
+ },
682
+ "adapter_type": {
683
+ "name": "adapter_type",
684
+ "type": "text",
685
+ "primaryKey": false,
686
+ "notNull": true,
687
+ "default": "'process'"
688
+ },
689
+ "adapter_config": {
690
+ "name": "adapter_config",
691
+ "type": "jsonb",
692
+ "primaryKey": false,
693
+ "notNull": true,
694
+ "default": "'{}'::jsonb"
695
+ },
696
+ "runtime_config": {
697
+ "name": "runtime_config",
698
+ "type": "jsonb",
699
+ "primaryKey": false,
700
+ "notNull": true,
701
+ "default": "'{}'::jsonb"
702
+ },
703
+ "default_environment_id": {
704
+ "name": "default_environment_id",
705
+ "type": "uuid",
706
+ "primaryKey": false,
707
+ "notNull": false
708
+ },
709
+ "budget_monthly_cents": {
710
+ "name": "budget_monthly_cents",
711
+ "type": "integer",
712
+ "primaryKey": false,
713
+ "notNull": true,
714
+ "default": 0
715
+ },
716
+ "spent_monthly_cents": {
717
+ "name": "spent_monthly_cents",
718
+ "type": "integer",
719
+ "primaryKey": false,
720
+ "notNull": true,
721
+ "default": 0
722
+ },
723
+ "pause_reason": {
724
+ "name": "pause_reason",
725
+ "type": "text",
726
+ "primaryKey": false,
727
+ "notNull": false
728
+ },
729
+ "paused_at": {
730
+ "name": "paused_at",
731
+ "type": "timestamp with time zone",
732
+ "primaryKey": false,
733
+ "notNull": false
734
+ },
735
+ "permissions": {
736
+ "name": "permissions",
737
+ "type": "jsonb",
738
+ "primaryKey": false,
739
+ "notNull": true,
740
+ "default": "'{}'::jsonb"
741
+ },
742
+ "last_heartbeat_at": {
743
+ "name": "last_heartbeat_at",
744
+ "type": "timestamp with time zone",
745
+ "primaryKey": false,
746
+ "notNull": false
747
+ },
748
+ "metadata": {
749
+ "name": "metadata",
750
+ "type": "jsonb",
751
+ "primaryKey": false,
752
+ "notNull": false
753
+ },
754
+ "created_at": {
755
+ "name": "created_at",
756
+ "type": "timestamp with time zone",
757
+ "primaryKey": false,
758
+ "notNull": true,
759
+ "default": "now()"
760
+ },
761
+ "updated_at": {
762
+ "name": "updated_at",
763
+ "type": "timestamp with time zone",
764
+ "primaryKey": false,
765
+ "notNull": true,
766
+ "default": "now()"
767
+ }
768
+ },
769
+ "indexes": {
770
+ "agents_company_status_idx": {
771
+ "name": "agents_company_status_idx",
772
+ "columns": [
773
+ {
774
+ "expression": "company_id",
775
+ "isExpression": false,
776
+ "asc": true,
777
+ "nulls": "last"
778
+ },
779
+ {
780
+ "expression": "status",
781
+ "isExpression": false,
782
+ "asc": true,
783
+ "nulls": "last"
784
+ }
785
+ ],
786
+ "isUnique": false,
787
+ "concurrently": false,
788
+ "method": "btree",
789
+ "with": {}
790
+ },
791
+ "agents_company_reports_to_idx": {
792
+ "name": "agents_company_reports_to_idx",
793
+ "columns": [
794
+ {
795
+ "expression": "company_id",
796
+ "isExpression": false,
797
+ "asc": true,
798
+ "nulls": "last"
799
+ },
800
+ {
801
+ "expression": "reports_to",
802
+ "isExpression": false,
803
+ "asc": true,
804
+ "nulls": "last"
805
+ }
806
+ ],
807
+ "isUnique": false,
808
+ "concurrently": false,
809
+ "method": "btree",
810
+ "with": {}
811
+ },
812
+ "agents_company_default_environment_idx": {
813
+ "name": "agents_company_default_environment_idx",
814
+ "columns": [
815
+ {
816
+ "expression": "company_id",
817
+ "isExpression": false,
818
+ "asc": true,
819
+ "nulls": "last"
820
+ },
821
+ {
822
+ "expression": "default_environment_id",
823
+ "isExpression": false,
824
+ "asc": true,
825
+ "nulls": "last"
826
+ }
827
+ ],
828
+ "isUnique": false,
829
+ "concurrently": false,
830
+ "method": "btree",
831
+ "with": {}
832
+ }
833
+ },
834
+ "foreignKeys": {
835
+ "agents_company_id_companies_id_fk": {
836
+ "name": "agents_company_id_companies_id_fk",
837
+ "tableFrom": "agents",
838
+ "tableTo": "companies",
839
+ "columnsFrom": [
840
+ "company_id"
841
+ ],
842
+ "columnsTo": [
843
+ "id"
844
+ ],
845
+ "onDelete": "no action",
846
+ "onUpdate": "no action"
847
+ },
848
+ "agents_reports_to_agents_id_fk": {
849
+ "name": "agents_reports_to_agents_id_fk",
850
+ "tableFrom": "agents",
851
+ "tableTo": "agents",
852
+ "columnsFrom": [
853
+ "reports_to"
854
+ ],
855
+ "columnsTo": [
856
+ "id"
857
+ ],
858
+ "onDelete": "no action",
859
+ "onUpdate": "no action"
860
+ },
861
+ "agents_default_environment_id_environments_id_fk": {
862
+ "name": "agents_default_environment_id_environments_id_fk",
863
+ "tableFrom": "agents",
864
+ "tableTo": "environments",
865
+ "columnsFrom": [
866
+ "default_environment_id"
867
+ ],
868
+ "columnsTo": [
869
+ "id"
870
+ ],
871
+ "onDelete": "set null",
872
+ "onUpdate": "no action"
873
+ }
874
+ },
875
+ "compositePrimaryKeys": {},
876
+ "uniqueConstraints": {},
877
+ "policies": {},
878
+ "checkConstraints": {},
879
+ "isRLSEnabled": false
880
+ },
881
+ "public.companies": {
882
+ "name": "companies",
883
+ "schema": "",
884
+ "columns": {
885
+ "id": {
886
+ "name": "id",
887
+ "type": "uuid",
888
+ "primaryKey": true,
889
+ "notNull": true,
890
+ "default": "gen_random_uuid()"
891
+ },
892
+ "name": {
893
+ "name": "name",
894
+ "type": "text",
895
+ "primaryKey": false,
896
+ "notNull": true
897
+ },
898
+ "description": {
899
+ "name": "description",
900
+ "type": "text",
901
+ "primaryKey": false,
902
+ "notNull": false
903
+ },
904
+ "created_at": {
905
+ "name": "created_at",
906
+ "type": "timestamp with time zone",
907
+ "primaryKey": false,
908
+ "notNull": true,
909
+ "default": "now()"
910
+ },
911
+ "updated_at": {
912
+ "name": "updated_at",
913
+ "type": "timestamp with time zone",
914
+ "primaryKey": false,
915
+ "notNull": true,
916
+ "default": "now()"
917
+ }
918
+ },
919
+ "indexes": {},
920
+ "foreignKeys": {},
921
+ "compositePrimaryKeys": {},
922
+ "uniqueConstraints": {},
923
+ "policies": {},
924
+ "checkConstraints": {},
925
+ "isRLSEnabled": false
926
+ },
927
+ "public.environments": {
928
+ "name": "environments",
929
+ "schema": "",
930
+ "columns": {
931
+ "id": {
932
+ "name": "id",
933
+ "type": "uuid",
934
+ "primaryKey": true,
935
+ "notNull": true,
936
+ "default": "gen_random_uuid()"
937
+ },
938
+ "company_id": {
939
+ "name": "company_id",
940
+ "type": "uuid",
941
+ "primaryKey": false,
942
+ "notNull": true
943
+ },
944
+ "name": {
945
+ "name": "name",
946
+ "type": "text",
947
+ "primaryKey": false,
948
+ "notNull": true
949
+ },
950
+ "description": {
951
+ "name": "description",
952
+ "type": "text",
953
+ "primaryKey": false,
954
+ "notNull": false
955
+ },
956
+ "driver": {
957
+ "name": "driver",
958
+ "type": "text",
959
+ "primaryKey": false,
960
+ "notNull": true,
961
+ "default": "'local'"
962
+ },
963
+ "status": {
964
+ "name": "status",
965
+ "type": "text",
966
+ "primaryKey": false,
967
+ "notNull": true,
968
+ "default": "'active'"
969
+ },
970
+ "config": {
971
+ "name": "config",
972
+ "type": "jsonb",
973
+ "primaryKey": false,
974
+ "notNull": true,
975
+ "default": "'{}'::jsonb"
976
+ },
977
+ "metadata": {
978
+ "name": "metadata",
979
+ "type": "jsonb",
980
+ "primaryKey": false,
981
+ "notNull": false
982
+ },
983
+ "created_at": {
984
+ "name": "created_at",
985
+ "type": "timestamp with time zone",
986
+ "primaryKey": false,
987
+ "notNull": true,
988
+ "default": "now()"
989
+ },
990
+ "updated_at": {
991
+ "name": "updated_at",
992
+ "type": "timestamp with time zone",
993
+ "primaryKey": false,
994
+ "notNull": true,
995
+ "default": "now()"
996
+ }
997
+ },
998
+ "indexes": {
999
+ "environments_company_status_idx": {
1000
+ "name": "environments_company_status_idx",
1001
+ "columns": [
1002
+ {
1003
+ "expression": "company_id",
1004
+ "isExpression": false,
1005
+ "asc": true,
1006
+ "nulls": "last"
1007
+ },
1008
+ {
1009
+ "expression": "status",
1010
+ "isExpression": false,
1011
+ "asc": true,
1012
+ "nulls": "last"
1013
+ }
1014
+ ],
1015
+ "isUnique": false,
1016
+ "concurrently": false,
1017
+ "method": "btree",
1018
+ "with": {}
1019
+ },
1020
+ "environments_company_driver_idx": {
1021
+ "name": "environments_company_driver_idx",
1022
+ "columns": [
1023
+ {
1024
+ "expression": "company_id",
1025
+ "isExpression": false,
1026
+ "asc": true,
1027
+ "nulls": "last"
1028
+ },
1029
+ {
1030
+ "expression": "driver",
1031
+ "isExpression": false,
1032
+ "asc": true,
1033
+ "nulls": "last"
1034
+ }
1035
+ ],
1036
+ "isUnique": true,
1037
+ "where": "\"environments\".\"driver\" = 'local'",
1038
+ "concurrently": false,
1039
+ "method": "btree",
1040
+ "with": {}
1041
+ },
1042
+ "environments_company_name_idx": {
1043
+ "name": "environments_company_name_idx",
1044
+ "columns": [
1045
+ {
1046
+ "expression": "company_id",
1047
+ "isExpression": false,
1048
+ "asc": true,
1049
+ "nulls": "last"
1050
+ },
1051
+ {
1052
+ "expression": "name",
1053
+ "isExpression": false,
1054
+ "asc": true,
1055
+ "nulls": "last"
1056
+ }
1057
+ ],
1058
+ "isUnique": false,
1059
+ "concurrently": false,
1060
+ "method": "btree",
1061
+ "with": {}
1062
+ }
1063
+ },
1064
+ "foreignKeys": {
1065
+ "environments_company_id_companies_id_fk": {
1066
+ "name": "environments_company_id_companies_id_fk",
1067
+ "tableFrom": "environments",
1068
+ "tableTo": "companies",
1069
+ "columnsFrom": [
1070
+ "company_id"
1071
+ ],
1072
+ "columnsTo": [
1073
+ "id"
1074
+ ],
1075
+ "onDelete": "cascade",
1076
+ "onUpdate": "no action"
1077
+ }
1078
+ },
1079
+ "compositePrimaryKeys": {},
1080
+ "uniqueConstraints": {},
1081
+ "policies": {},
1082
+ "checkConstraints": {},
1083
+ "isRLSEnabled": false
1084
+ },
1085
+ "public.heartbeat_run_events": {
1086
+ "name": "heartbeat_run_events",
1087
+ "schema": "",
1088
+ "columns": {
1089
+ "id": {
1090
+ "name": "id",
1091
+ "type": "bigserial",
1092
+ "primaryKey": true,
1093
+ "notNull": true
1094
+ },
1095
+ "company_id": {
1096
+ "name": "company_id",
1097
+ "type": "uuid",
1098
+ "primaryKey": false,
1099
+ "notNull": true
1100
+ },
1101
+ "run_id": {
1102
+ "name": "run_id",
1103
+ "type": "uuid",
1104
+ "primaryKey": false,
1105
+ "notNull": true
1106
+ },
1107
+ "agent_id": {
1108
+ "name": "agent_id",
1109
+ "type": "uuid",
1110
+ "primaryKey": false,
1111
+ "notNull": true
1112
+ },
1113
+ "seq": {
1114
+ "name": "seq",
1115
+ "type": "integer",
1116
+ "primaryKey": false,
1117
+ "notNull": true
1118
+ },
1119
+ "event_type": {
1120
+ "name": "event_type",
1121
+ "type": "text",
1122
+ "primaryKey": false,
1123
+ "notNull": true
1124
+ },
1125
+ "stream": {
1126
+ "name": "stream",
1127
+ "type": "text",
1128
+ "primaryKey": false,
1129
+ "notNull": false
1130
+ },
1131
+ "level": {
1132
+ "name": "level",
1133
+ "type": "text",
1134
+ "primaryKey": false,
1135
+ "notNull": false
1136
+ },
1137
+ "color": {
1138
+ "name": "color",
1139
+ "type": "text",
1140
+ "primaryKey": false,
1141
+ "notNull": false
1142
+ },
1143
+ "message": {
1144
+ "name": "message",
1145
+ "type": "text",
1146
+ "primaryKey": false,
1147
+ "notNull": false
1148
+ },
1149
+ "payload": {
1150
+ "name": "payload",
1151
+ "type": "jsonb",
1152
+ "primaryKey": false,
1153
+ "notNull": false
1154
+ },
1155
+ "created_at": {
1156
+ "name": "created_at",
1157
+ "type": "timestamp with time zone",
1158
+ "primaryKey": false,
1159
+ "notNull": true,
1160
+ "default": "now()"
1161
+ }
1162
+ },
1163
+ "indexes": {
1164
+ "heartbeat_run_events_run_seq_idx": {
1165
+ "name": "heartbeat_run_events_run_seq_idx",
1166
+ "columns": [
1167
+ {
1168
+ "expression": "run_id",
1169
+ "isExpression": false,
1170
+ "asc": true,
1171
+ "nulls": "last"
1172
+ },
1173
+ {
1174
+ "expression": "seq",
1175
+ "isExpression": false,
1176
+ "asc": true,
1177
+ "nulls": "last"
1178
+ }
1179
+ ],
1180
+ "isUnique": false,
1181
+ "concurrently": false,
1182
+ "method": "btree",
1183
+ "with": {}
1184
+ },
1185
+ "heartbeat_run_events_company_run_idx": {
1186
+ "name": "heartbeat_run_events_company_run_idx",
1187
+ "columns": [
1188
+ {
1189
+ "expression": "company_id",
1190
+ "isExpression": false,
1191
+ "asc": true,
1192
+ "nulls": "last"
1193
+ },
1194
+ {
1195
+ "expression": "run_id",
1196
+ "isExpression": false,
1197
+ "asc": true,
1198
+ "nulls": "last"
1199
+ }
1200
+ ],
1201
+ "isUnique": false,
1202
+ "concurrently": false,
1203
+ "method": "btree",
1204
+ "with": {}
1205
+ },
1206
+ "heartbeat_run_events_company_created_idx": {
1207
+ "name": "heartbeat_run_events_company_created_idx",
1208
+ "columns": [
1209
+ {
1210
+ "expression": "company_id",
1211
+ "isExpression": false,
1212
+ "asc": true,
1213
+ "nulls": "last"
1214
+ },
1215
+ {
1216
+ "expression": "created_at",
1217
+ "isExpression": false,
1218
+ "asc": true,
1219
+ "nulls": "last"
1220
+ }
1221
+ ],
1222
+ "isUnique": false,
1223
+ "concurrently": false,
1224
+ "method": "btree",
1225
+ "with": {}
1226
+ }
1227
+ },
1228
+ "foreignKeys": {
1229
+ "heartbeat_run_events_company_id_companies_id_fk": {
1230
+ "name": "heartbeat_run_events_company_id_companies_id_fk",
1231
+ "tableFrom": "heartbeat_run_events",
1232
+ "tableTo": "companies",
1233
+ "columnsFrom": [
1234
+ "company_id"
1235
+ ],
1236
+ "columnsTo": [
1237
+ "id"
1238
+ ],
1239
+ "onDelete": "no action",
1240
+ "onUpdate": "no action"
1241
+ },
1242
+ "heartbeat_run_events_run_id_heartbeat_runs_id_fk": {
1243
+ "name": "heartbeat_run_events_run_id_heartbeat_runs_id_fk",
1244
+ "tableFrom": "heartbeat_run_events",
1245
+ "tableTo": "heartbeat_runs",
1246
+ "columnsFrom": [
1247
+ "run_id"
1248
+ ],
1249
+ "columnsTo": [
1250
+ "id"
1251
+ ],
1252
+ "onDelete": "no action",
1253
+ "onUpdate": "no action"
1254
+ },
1255
+ "heartbeat_run_events_agent_id_agents_id_fk": {
1256
+ "name": "heartbeat_run_events_agent_id_agents_id_fk",
1257
+ "tableFrom": "heartbeat_run_events",
1258
+ "tableTo": "agents",
1259
+ "columnsFrom": [
1260
+ "agent_id"
1261
+ ],
1262
+ "columnsTo": [
1263
+ "id"
1264
+ ],
1265
+ "onDelete": "no action",
1266
+ "onUpdate": "no action"
1267
+ }
1268
+ },
1269
+ "compositePrimaryKeys": {},
1270
+ "uniqueConstraints": {},
1271
+ "policies": {},
1272
+ "checkConstraints": {},
1273
+ "isRLSEnabled": false
1274
+ },
1275
+ "public.heartbeat_runs": {
1276
+ "name": "heartbeat_runs",
1277
+ "schema": "",
1278
+ "columns": {
1279
+ "id": {
1280
+ "name": "id",
1281
+ "type": "uuid",
1282
+ "primaryKey": true,
1283
+ "notNull": true,
1284
+ "default": "gen_random_uuid()"
1285
+ },
1286
+ "company_id": {
1287
+ "name": "company_id",
1288
+ "type": "uuid",
1289
+ "primaryKey": false,
1290
+ "notNull": true
1291
+ },
1292
+ "agent_id": {
1293
+ "name": "agent_id",
1294
+ "type": "uuid",
1295
+ "primaryKey": false,
1296
+ "notNull": true
1297
+ },
1298
+ "invocation_source": {
1299
+ "name": "invocation_source",
1300
+ "type": "text",
1301
+ "primaryKey": false,
1302
+ "notNull": true,
1303
+ "default": "'on_demand'"
1304
+ },
1305
+ "trigger_detail": {
1306
+ "name": "trigger_detail",
1307
+ "type": "text",
1308
+ "primaryKey": false,
1309
+ "notNull": false
1310
+ },
1311
+ "status": {
1312
+ "name": "status",
1313
+ "type": "text",
1314
+ "primaryKey": false,
1315
+ "notNull": true,
1316
+ "default": "'queued'"
1317
+ },
1318
+ "started_at": {
1319
+ "name": "started_at",
1320
+ "type": "timestamp with time zone",
1321
+ "primaryKey": false,
1322
+ "notNull": false
1323
+ },
1324
+ "finished_at": {
1325
+ "name": "finished_at",
1326
+ "type": "timestamp with time zone",
1327
+ "primaryKey": false,
1328
+ "notNull": false
1329
+ },
1330
+ "error": {
1331
+ "name": "error",
1332
+ "type": "text",
1333
+ "primaryKey": false,
1334
+ "notNull": false
1335
+ },
1336
+ "wakeup_request_id": {
1337
+ "name": "wakeup_request_id",
1338
+ "type": "uuid",
1339
+ "primaryKey": false,
1340
+ "notNull": false
1341
+ },
1342
+ "exit_code": {
1343
+ "name": "exit_code",
1344
+ "type": "integer",
1345
+ "primaryKey": false,
1346
+ "notNull": false
1347
+ },
1348
+ "signal": {
1349
+ "name": "signal",
1350
+ "type": "text",
1351
+ "primaryKey": false,
1352
+ "notNull": false
1353
+ },
1354
+ "usage_json": {
1355
+ "name": "usage_json",
1356
+ "type": "jsonb",
1357
+ "primaryKey": false,
1358
+ "notNull": false
1359
+ },
1360
+ "result_json": {
1361
+ "name": "result_json",
1362
+ "type": "jsonb",
1363
+ "primaryKey": false,
1364
+ "notNull": false
1365
+ },
1366
+ "session_id_before": {
1367
+ "name": "session_id_before",
1368
+ "type": "text",
1369
+ "primaryKey": false,
1370
+ "notNull": false
1371
+ },
1372
+ "session_id_after": {
1373
+ "name": "session_id_after",
1374
+ "type": "text",
1375
+ "primaryKey": false,
1376
+ "notNull": false
1377
+ },
1378
+ "log_store": {
1379
+ "name": "log_store",
1380
+ "type": "text",
1381
+ "primaryKey": false,
1382
+ "notNull": false
1383
+ },
1384
+ "log_ref": {
1385
+ "name": "log_ref",
1386
+ "type": "text",
1387
+ "primaryKey": false,
1388
+ "notNull": false
1389
+ },
1390
+ "log_bytes": {
1391
+ "name": "log_bytes",
1392
+ "type": "bigint",
1393
+ "primaryKey": false,
1394
+ "notNull": false
1395
+ },
1396
+ "log_sha256": {
1397
+ "name": "log_sha256",
1398
+ "type": "text",
1399
+ "primaryKey": false,
1400
+ "notNull": false
1401
+ },
1402
+ "log_compressed": {
1403
+ "name": "log_compressed",
1404
+ "type": "boolean",
1405
+ "primaryKey": false,
1406
+ "notNull": true,
1407
+ "default": false
1408
+ },
1409
+ "stdout_excerpt": {
1410
+ "name": "stdout_excerpt",
1411
+ "type": "text",
1412
+ "primaryKey": false,
1413
+ "notNull": false
1414
+ },
1415
+ "stderr_excerpt": {
1416
+ "name": "stderr_excerpt",
1417
+ "type": "text",
1418
+ "primaryKey": false,
1419
+ "notNull": false
1420
+ },
1421
+ "error_code": {
1422
+ "name": "error_code",
1423
+ "type": "text",
1424
+ "primaryKey": false,
1425
+ "notNull": false
1426
+ },
1427
+ "external_run_id": {
1428
+ "name": "external_run_id",
1429
+ "type": "text",
1430
+ "primaryKey": false,
1431
+ "notNull": false
1432
+ },
1433
+ "process_pid": {
1434
+ "name": "process_pid",
1435
+ "type": "integer",
1436
+ "primaryKey": false,
1437
+ "notNull": false
1438
+ },
1439
+ "process_group_id": {
1440
+ "name": "process_group_id",
1441
+ "type": "integer",
1442
+ "primaryKey": false,
1443
+ "notNull": false
1444
+ },
1445
+ "process_started_at": {
1446
+ "name": "process_started_at",
1447
+ "type": "timestamp with time zone",
1448
+ "primaryKey": false,
1449
+ "notNull": false
1450
+ },
1451
+ "last_output_at": {
1452
+ "name": "last_output_at",
1453
+ "type": "timestamp with time zone",
1454
+ "primaryKey": false,
1455
+ "notNull": false
1456
+ },
1457
+ "last_output_seq": {
1458
+ "name": "last_output_seq",
1459
+ "type": "integer",
1460
+ "primaryKey": false,
1461
+ "notNull": true,
1462
+ "default": 0
1463
+ },
1464
+ "last_output_stream": {
1465
+ "name": "last_output_stream",
1466
+ "type": "text",
1467
+ "primaryKey": false,
1468
+ "notNull": false
1469
+ },
1470
+ "last_output_bytes": {
1471
+ "name": "last_output_bytes",
1472
+ "type": "bigint",
1473
+ "primaryKey": false,
1474
+ "notNull": false
1475
+ },
1476
+ "retry_of_run_id": {
1477
+ "name": "retry_of_run_id",
1478
+ "type": "uuid",
1479
+ "primaryKey": false,
1480
+ "notNull": false
1481
+ },
1482
+ "process_loss_retry_count": {
1483
+ "name": "process_loss_retry_count",
1484
+ "type": "integer",
1485
+ "primaryKey": false,
1486
+ "notNull": true,
1487
+ "default": 0
1488
+ },
1489
+ "scheduled_retry_at": {
1490
+ "name": "scheduled_retry_at",
1491
+ "type": "timestamp with time zone",
1492
+ "primaryKey": false,
1493
+ "notNull": false
1494
+ },
1495
+ "scheduled_retry_attempt": {
1496
+ "name": "scheduled_retry_attempt",
1497
+ "type": "integer",
1498
+ "primaryKey": false,
1499
+ "notNull": true,
1500
+ "default": 0
1501
+ },
1502
+ "scheduled_retry_reason": {
1503
+ "name": "scheduled_retry_reason",
1504
+ "type": "text",
1505
+ "primaryKey": false,
1506
+ "notNull": false
1507
+ },
1508
+ "issue_comment_status": {
1509
+ "name": "issue_comment_status",
1510
+ "type": "text",
1511
+ "primaryKey": false,
1512
+ "notNull": true,
1513
+ "default": "'not_applicable'"
1514
+ },
1515
+ "issue_comment_satisfied_by_comment_id": {
1516
+ "name": "issue_comment_satisfied_by_comment_id",
1517
+ "type": "uuid",
1518
+ "primaryKey": false,
1519
+ "notNull": false
1520
+ },
1521
+ "issue_comment_retry_queued_at": {
1522
+ "name": "issue_comment_retry_queued_at",
1523
+ "type": "timestamp with time zone",
1524
+ "primaryKey": false,
1525
+ "notNull": false
1526
+ },
1527
+ "liveness_state": {
1528
+ "name": "liveness_state",
1529
+ "type": "text",
1530
+ "primaryKey": false,
1531
+ "notNull": false
1532
+ },
1533
+ "liveness_reason": {
1534
+ "name": "liveness_reason",
1535
+ "type": "text",
1536
+ "primaryKey": false,
1537
+ "notNull": false
1538
+ },
1539
+ "continuation_attempt": {
1540
+ "name": "continuation_attempt",
1541
+ "type": "integer",
1542
+ "primaryKey": false,
1543
+ "notNull": true,
1544
+ "default": 0
1545
+ },
1546
+ "last_useful_action_at": {
1547
+ "name": "last_useful_action_at",
1548
+ "type": "timestamp with time zone",
1549
+ "primaryKey": false,
1550
+ "notNull": false
1551
+ },
1552
+ "next_action": {
1553
+ "name": "next_action",
1554
+ "type": "text",
1555
+ "primaryKey": false,
1556
+ "notNull": false
1557
+ },
1558
+ "context_snapshot": {
1559
+ "name": "context_snapshot",
1560
+ "type": "jsonb",
1561
+ "primaryKey": false,
1562
+ "notNull": false
1563
+ },
1564
+ "created_at": {
1565
+ "name": "created_at",
1566
+ "type": "timestamp with time zone",
1567
+ "primaryKey": false,
1568
+ "notNull": true,
1569
+ "default": "now()"
1570
+ },
1571
+ "updated_at": {
1572
+ "name": "updated_at",
1573
+ "type": "timestamp with time zone",
1574
+ "primaryKey": false,
1575
+ "notNull": true,
1576
+ "default": "now()"
1577
+ }
1578
+ },
1579
+ "indexes": {
1580
+ "heartbeat_runs_company_agent_started_idx": {
1581
+ "name": "heartbeat_runs_company_agent_started_idx",
1582
+ "columns": [
1583
+ {
1584
+ "expression": "company_id",
1585
+ "isExpression": false,
1586
+ "asc": true,
1587
+ "nulls": "last"
1588
+ },
1589
+ {
1590
+ "expression": "agent_id",
1591
+ "isExpression": false,
1592
+ "asc": true,
1593
+ "nulls": "last"
1594
+ },
1595
+ {
1596
+ "expression": "started_at",
1597
+ "isExpression": false,
1598
+ "asc": true,
1599
+ "nulls": "last"
1600
+ }
1601
+ ],
1602
+ "isUnique": false,
1603
+ "concurrently": false,
1604
+ "method": "btree",
1605
+ "with": {}
1606
+ },
1607
+ "heartbeat_runs_company_liveness_idx": {
1608
+ "name": "heartbeat_runs_company_liveness_idx",
1609
+ "columns": [
1610
+ {
1611
+ "expression": "company_id",
1612
+ "isExpression": false,
1613
+ "asc": true,
1614
+ "nulls": "last"
1615
+ },
1616
+ {
1617
+ "expression": "liveness_state",
1618
+ "isExpression": false,
1619
+ "asc": true,
1620
+ "nulls": "last"
1621
+ },
1622
+ {
1623
+ "expression": "created_at",
1624
+ "isExpression": false,
1625
+ "asc": true,
1626
+ "nulls": "last"
1627
+ }
1628
+ ],
1629
+ "isUnique": false,
1630
+ "concurrently": false,
1631
+ "method": "btree",
1632
+ "with": {}
1633
+ },
1634
+ "heartbeat_runs_company_status_last_output_idx": {
1635
+ "name": "heartbeat_runs_company_status_last_output_idx",
1636
+ "columns": [
1637
+ {
1638
+ "expression": "company_id",
1639
+ "isExpression": false,
1640
+ "asc": true,
1641
+ "nulls": "last"
1642
+ },
1643
+ {
1644
+ "expression": "status",
1645
+ "isExpression": false,
1646
+ "asc": true,
1647
+ "nulls": "last"
1648
+ },
1649
+ {
1650
+ "expression": "last_output_at",
1651
+ "isExpression": false,
1652
+ "asc": true,
1653
+ "nulls": "last"
1654
+ }
1655
+ ],
1656
+ "isUnique": false,
1657
+ "concurrently": false,
1658
+ "method": "btree",
1659
+ "with": {}
1660
+ },
1661
+ "heartbeat_runs_company_status_process_started_idx": {
1662
+ "name": "heartbeat_runs_company_status_process_started_idx",
1663
+ "columns": [
1664
+ {
1665
+ "expression": "company_id",
1666
+ "isExpression": false,
1667
+ "asc": true,
1668
+ "nulls": "last"
1669
+ },
1670
+ {
1671
+ "expression": "status",
1672
+ "isExpression": false,
1673
+ "asc": true,
1674
+ "nulls": "last"
1675
+ },
1676
+ {
1677
+ "expression": "process_started_at",
1678
+ "isExpression": false,
1679
+ "asc": true,
1680
+ "nulls": "last"
1681
+ }
1682
+ ],
1683
+ "isUnique": false,
1684
+ "concurrently": false,
1685
+ "method": "btree",
1686
+ "with": {}
1687
+ }
1688
+ },
1689
+ "foreignKeys": {
1690
+ "heartbeat_runs_company_id_companies_id_fk": {
1691
+ "name": "heartbeat_runs_company_id_companies_id_fk",
1692
+ "tableFrom": "heartbeat_runs",
1693
+ "tableTo": "companies",
1694
+ "columnsFrom": [
1695
+ "company_id"
1696
+ ],
1697
+ "columnsTo": [
1698
+ "id"
1699
+ ],
1700
+ "onDelete": "no action",
1701
+ "onUpdate": "no action"
1702
+ },
1703
+ "heartbeat_runs_agent_id_agents_id_fk": {
1704
+ "name": "heartbeat_runs_agent_id_agents_id_fk",
1705
+ "tableFrom": "heartbeat_runs",
1706
+ "tableTo": "agents",
1707
+ "columnsFrom": [
1708
+ "agent_id"
1709
+ ],
1710
+ "columnsTo": [
1711
+ "id"
1712
+ ],
1713
+ "onDelete": "no action",
1714
+ "onUpdate": "no action"
1715
+ },
1716
+ "heartbeat_runs_wakeup_request_id_agent_wakeup_requests_id_fk": {
1717
+ "name": "heartbeat_runs_wakeup_request_id_agent_wakeup_requests_id_fk",
1718
+ "tableFrom": "heartbeat_runs",
1719
+ "tableTo": "agent_wakeup_requests",
1720
+ "columnsFrom": [
1721
+ "wakeup_request_id"
1722
+ ],
1723
+ "columnsTo": [
1724
+ "id"
1725
+ ],
1726
+ "onDelete": "no action",
1727
+ "onUpdate": "no action"
1728
+ },
1729
+ "heartbeat_runs_retry_of_run_id_heartbeat_runs_id_fk": {
1730
+ "name": "heartbeat_runs_retry_of_run_id_heartbeat_runs_id_fk",
1731
+ "tableFrom": "heartbeat_runs",
1732
+ "tableTo": "heartbeat_runs",
1733
+ "columnsFrom": [
1734
+ "retry_of_run_id"
1735
+ ],
1736
+ "columnsTo": [
1737
+ "id"
1738
+ ],
1739
+ "onDelete": "set null",
1740
+ "onUpdate": "no action"
1741
+ }
1742
+ },
1743
+ "compositePrimaryKeys": {},
1744
+ "uniqueConstraints": {},
1745
+ "policies": {},
1746
+ "checkConstraints": {},
1747
+ "isRLSEnabled": false
1748
+ }
1749
+ },
1750
+ "enums": {},
1751
+ "schemas": {},
1752
+ "sequences": {},
1753
+ "roles": {},
1754
+ "policies": {},
1755
+ "views": {},
1756
+ "_meta": {
1757
+ "columns": {},
1758
+ "schemas": {},
1759
+ "tables": {}
1760
+ }
1761
+ }