@kky42/pievo-server 1.0.0 → 2.0.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 (100) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/assets/{LoopView-B4H9QibC.js → LoopView-d0XYkzpx.js} +3 -3
  3. package/.output/public/assets/Modal-D_od-AuP.js +1 -0
  4. package/.output/public/assets/{SignIn-SHuRRyOv.js → SignIn-CbMeIAJZ.js} +1 -1
  5. package/.output/public/assets/app-vKFxjMMk.css +2 -0
  6. package/.output/public/assets/{artifactView-DFuubXLJ.js → artifactView-DekEs5ME.js} +1 -1
  7. package/.output/public/assets/index-DSF-1ahT.js +12 -0
  8. package/.output/public/assets/{invite._token-T8oo4Qtw.js → invite._token-Cl9Oarnq.js} +1 -1
  9. package/.output/public/assets/{lifecycleUi-DKkChdnU.js → lifecycleUi-DGVOf5yS.js} +1 -1
  10. package/.output/public/assets/{loopApi-BM2nj71x.js → loopApi-5s2-kCnu.js} +1 -1
  11. package/.output/public/assets/loops._loopId-B-dYxc9i.js +4 -0
  12. package/.output/public/assets/{loops._loopId_.runs._runId-_CflHV38.js → loops._loopId_.runs._runId-DepMp3Me.js} +2 -2
  13. package/.output/public/assets/notifyFns-b_jCi5XK.js +1 -0
  14. package/.output/public/assets/{preload-helper-CKUiEq3b.js → preload-helper-ycaoAemE.js} +1 -1
  15. package/.output/public/assets/{routes-B9tgli5f.js → routes-BB4aDC1D.js} +1 -1
  16. package/.output/public/assets/{t._teamId-Bm21mngW.js → t._teamId-D552b9PT.js} +1 -1
  17. package/.output/server/_libs/@base-ui/react+[...].mjs +23 -2375
  18. package/.output/server/_libs/@tanstack/react-router+[...].mjs +1 -1
  19. package/.output/server/_libs/html-react-parser+[...].mjs +1 -1
  20. package/.output/server/_libs/react-redux+[...].mjs +1 -1
  21. package/.output/server/_libs/recharts+victory-vendor.mjs +1 -1
  22. package/.output/server/_libs/uiw__react-codemirror.mjs +1 -1
  23. package/.output/server/_ssr/{CodeField-tm4rr6G3.mjs → CodeField-B7oOmmwH.mjs} +4 -4
  24. package/.output/server/_ssr/{DashboardView-CC7htv28.mjs → DashboardView-D3E-zevQ.mjs} +45 -35
  25. package/.output/server/_ssr/{LoopPlaybook-BXH8mhiX.mjs → LoopPlaybook-DJlWGia5.mjs} +3 -3
  26. package/.output/server/_ssr/{LoopView-DCugEbHx.mjs → LoopView-BtMANpb_.mjs} +5 -5
  27. package/.output/server/_ssr/Modal-DpKZHLZK.mjs +1 -1
  28. package/.output/server/_ssr/{SignIn-dTndU6Hw.mjs → SignIn-CjFonm71.mjs} +3 -3
  29. package/.output/server/_ssr/actionUi-CZbEixbf.mjs +1 -1
  30. package/.output/server/_ssr/{adapters-BS8XosjF.mjs → adapters-vbuo_-wD.mjs} +10 -5
  31. package/.output/server/_ssr/{artifactFiles-Cagtj7J0.mjs → artifactFiles-BGod8IWQ.mjs} +3 -3
  32. package/.output/server/_ssr/{artifactView-DS4O22wl.mjs → artifactView-CYV1r48i.mjs} +3 -3
  33. package/.output/server/_ssr/artifacts-CduiDAM2.mjs +2 -0
  34. package/.output/server/_ssr/{auth-DY1DuYZd.mjs → auth-Ca-um-e8.mjs} +9 -9
  35. package/.output/server/_ssr/{boot-CMHTxQpJ.mjs → boot-C0f0HGCw.mjs} +1 -1
  36. package/.output/server/_ssr/{boot-BbtG0ImW.mjs → boot-CkFZynUz.mjs} +533 -294
  37. package/.output/server/_ssr/{bun-sqlite-dialect-BW9W1_Ps-CU1Spd6z.mjs → bun-sqlite-dialect-BW9W1_Ps-CG9VPNj0.mjs} +2 -2
  38. package/.output/server/_ssr/{d1-sqlite-dialect-BLC8LXE6-DfG7tB8s.mjs → d1-sqlite-dialect-BLC8LXE6-DBf7xVin.mjs} +2 -2
  39. package/.output/server/_ssr/db-Cs0gnPZZ.mjs +2 -0
  40. package/.output/server/_ssr/{dist-BIxFFVZg.mjs → dist-CwI9FwLx.mjs} +2 -2
  41. package/.output/server/_ssr/{factory-Blq0DYfT.mjs → factory-L3gsmDL7.mjs} +2 -2
  42. package/.output/server/_ssr/{invite._token-NewFt27g.mjs → invite._token-CN2p7Gt3.mjs} +6 -6
  43. package/.output/server/_ssr/invite._token-DJxGLILJ.mjs +1 -1
  44. package/.output/server/_ssr/{invite._token-BRCo9LGB.mjs → invite._token-KLCPnHk-.mjs} +4 -4
  45. package/.output/server/_ssr/{kysely-adapter-D3XTe64J.mjs → kysely-adapter-Czkfz-W-.mjs} +1 -1
  46. package/.output/server/_ssr/{lifecycleUi-C9lg1r3r.mjs → lifecycleUi-BhRsBvJ7.mjs} +4 -4
  47. package/.output/server/_ssr/logger-Cj1GFV_8.mjs +2 -0
  48. package/.output/server/_ssr/{loopApi-Cxe8WyOB.mjs → loopApi-BfMnXaKT.mjs} +7 -7
  49. package/.output/server/_ssr/{loopApi-BtfkZQYK.mjs → loopApi-CVf9RC6s.mjs} +32 -16
  50. package/.output/server/_ssr/{loops._loopId-DhnArGdL.mjs → loops._loopId-CbuhuTAp.mjs} +239 -397
  51. package/.output/server/_ssr/{loops._loopId-7NQJPB9W.mjs → loops._loopId-gNSxIQBe.mjs} +4 -4
  52. package/.output/server/_ssr/{loops._loopId_.runs._runId-Dip5Xk-q.mjs → loops._loopId_.runs._runId-0MahUyHy.mjs} +48 -6
  53. package/.output/server/_ssr/{loops._loopId_.runs._runId-Bvuo2nki.mjs → loops._loopId_.runs._runId-BptlCXat.mjs} +4 -4
  54. package/.output/server/_ssr/{machineFns-Dvr5ICUy.mjs → machineFns-D5rQWyLl.mjs} +3 -3
  55. package/.output/server/_ssr/{node-sqlite-dialect-DhyOpJTX.mjs → node-sqlite-dialect-Dr9_QokR.mjs} +2 -2
  56. package/.output/server/_ssr/{notifyFns-BcMRY5kP.mjs → notifyFns-BobPaLWi.mjs} +3 -3
  57. package/.output/server/_ssr/{notifyFns-Q458pZmE.mjs → notifyFns-c7ZY2TWF.mjs} +5 -5
  58. package/.output/server/_ssr/{router-J8KZ30xw.mjs → router-B8JTBtGd.mjs} +30 -30
  59. package/.output/server/_ssr/{routes-D4am3Zff.mjs → routes-B-MWifFy.mjs} +6 -6
  60. package/.output/server/_ssr/{routes-BoGrcf-b.mjs → routes-BJCWMIzb.mjs} +5 -5
  61. package/.output/server/_ssr/routes-Bcs4T1ox.mjs +1 -1
  62. package/.output/server/_ssr/{runDiff-CpEFqo7G.mjs → runDiff-C0w1D4a3.mjs} +2 -2
  63. package/.output/server/_ssr/ssr.mjs +49 -49
  64. package/.output/server/_ssr/store-LYphMSJ-.mjs +2 -0
  65. package/.output/server/_ssr/t._teamId-Dy_McbRt.mjs +1 -1
  66. package/.output/server/_ssr/{t._teamId-CeUhzgzT.mjs → t._teamId-FYVEIAGw.mjs} +6 -6
  67. package/.output/server/_ssr/{t._teamId-DR-hQK7o.mjs → t._teamId-fw8RfHyI.mjs} +5 -5
  68. package/.output/server/_ssr/{teamFns-DA4ovI5g.mjs → teamFns-D4I-0dEB.mjs} +2 -2
  69. package/.output/server/_ssr/{teamFns-BIDnsg2A.mjs → teamFns-Dz41U7gA.mjs} +3 -3
  70. package/.output/server/_ssr/tokens-3ZFpqsuf.mjs +2 -0
  71. package/.output/server/_ssr/ui-Dej2qjuS.mjs +1 -1
  72. package/.output/server/{_tanstack-start-manifest_v-CVS6c7re.mjs → _tanstack-start-manifest_v-C9p30TZH.mjs} +20 -20
  73. package/.output/server/drizzle/0009_ordinary_electro.sql +1 -0
  74. package/.output/server/drizzle/0010_workable_rage.sql +14 -0
  75. package/.output/server/drizzle/0011_steep_marvel_zombies.sql +3 -0
  76. package/.output/server/drizzle/meta/0009_snapshot.json +1793 -0
  77. package/.output/server/drizzle/meta/0010_snapshot.json +1891 -0
  78. package/.output/server/drizzle/meta/0011_snapshot.json +1872 -0
  79. package/.output/server/drizzle/meta/_journal.json +21 -0
  80. package/.output/server/index.mjs +101 -101
  81. package/drizzle/0009_ordinary_electro.sql +1 -0
  82. package/drizzle/0010_workable_rage.sql +14 -0
  83. package/drizzle/0011_steep_marvel_zombies.sql +3 -0
  84. package/drizzle/meta/0009_snapshot.json +1793 -0
  85. package/drizzle/meta/0010_snapshot.json +1891 -0
  86. package/drizzle/meta/0011_snapshot.json +1872 -0
  87. package/drizzle/meta/_journal.json +21 -0
  88. package/package.json +1 -1
  89. package/scripts/pievo-server.mjs +5 -0
  90. package/scripts/server-cli-lib.mjs +2 -0
  91. package/.output/public/assets/Modal-D33gNSgx.js +0 -1
  92. package/.output/public/assets/app-DElSo_jy.css +0 -2
  93. package/.output/public/assets/index-DfpTWRSz.js +0 -12
  94. package/.output/public/assets/loops._loopId-B19Jw7jC.js +0 -5
  95. package/.output/public/assets/notifyFns-DCubjpRy.js +0 -1
  96. package/.output/server/_ssr/artifacts-DngKyW2u.mjs +0 -2
  97. package/.output/server/_ssr/db-DWAuZq1o.mjs +0 -2
  98. package/.output/server/_ssr/logger-Dw82jNjH.mjs +0 -2
  99. package/.output/server/_ssr/store-b3JcQ08F.mjs +0 -2
  100. package/.output/server/_ssr/tokens-ytd60FUt.mjs +0 -2
@@ -0,0 +1,1891 @@
1
+ {
2
+ "id": "5a8c090c-9b42-4ad8-b133-ae08a62903dd",
3
+ "prevId": "85ec76e4-3a1c-42a4-aaa9-270a6d3f8f84",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.artifact_files": {
8
+ "name": "artifact_files",
9
+ "schema": "",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "text",
14
+ "primaryKey": true,
15
+ "notNull": true
16
+ },
17
+ "loop_id": {
18
+ "name": "loop_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "path": {
24
+ "name": "path",
25
+ "type": "text",
26
+ "primaryKey": false,
27
+ "notNull": true
28
+ },
29
+ "hash": {
30
+ "name": "hash",
31
+ "type": "text",
32
+ "primaryKey": false,
33
+ "notNull": false
34
+ },
35
+ "size": {
36
+ "name": "size",
37
+ "type": "integer",
38
+ "primaryKey": false,
39
+ "notNull": false
40
+ },
41
+ "binary": {
42
+ "name": "binary",
43
+ "type": "boolean",
44
+ "primaryKey": false,
45
+ "notNull": true,
46
+ "default": false
47
+ },
48
+ "oversize": {
49
+ "name": "oversize",
50
+ "type": "boolean",
51
+ "primaryKey": false,
52
+ "notNull": true,
53
+ "default": false
54
+ },
55
+ "deleted": {
56
+ "name": "deleted",
57
+ "type": "boolean",
58
+ "primaryKey": false,
59
+ "notNull": true,
60
+ "default": false
61
+ },
62
+ "updated_at": {
63
+ "name": "updated_at",
64
+ "type": "text",
65
+ "primaryKey": false,
66
+ "notNull": true
67
+ },
68
+ "last_run_id": {
69
+ "name": "last_run_id",
70
+ "type": "text",
71
+ "primaryKey": false,
72
+ "notNull": false
73
+ }
74
+ },
75
+ "indexes": {
76
+ "artifact_files_loop_idx": {
77
+ "name": "artifact_files_loop_idx",
78
+ "columns": [
79
+ {
80
+ "expression": "loop_id",
81
+ "isExpression": false,
82
+ "asc": true,
83
+ "nulls": "last"
84
+ }
85
+ ],
86
+ "isUnique": false,
87
+ "concurrently": false,
88
+ "method": "btree",
89
+ "with": {}
90
+ },
91
+ "artifact_files_loop_path_idx": {
92
+ "name": "artifact_files_loop_path_idx",
93
+ "columns": [
94
+ {
95
+ "expression": "loop_id",
96
+ "isExpression": false,
97
+ "asc": true,
98
+ "nulls": "last"
99
+ },
100
+ {
101
+ "expression": "path",
102
+ "isExpression": false,
103
+ "asc": true,
104
+ "nulls": "last"
105
+ }
106
+ ],
107
+ "isUnique": true,
108
+ "concurrently": false,
109
+ "method": "btree",
110
+ "with": {}
111
+ },
112
+ "artifact_files_hash_idx": {
113
+ "name": "artifact_files_hash_idx",
114
+ "columns": [
115
+ {
116
+ "expression": "hash",
117
+ "isExpression": false,
118
+ "asc": true,
119
+ "nulls": "last"
120
+ }
121
+ ],
122
+ "isUnique": false,
123
+ "concurrently": false,
124
+ "method": "btree",
125
+ "with": {}
126
+ }
127
+ },
128
+ "foreignKeys": {},
129
+ "compositePrimaryKeys": {},
130
+ "uniqueConstraints": {},
131
+ "policies": {},
132
+ "checkConstraints": {},
133
+ "isRLSEnabled": false
134
+ },
135
+ "public.blobs": {
136
+ "name": "blobs",
137
+ "schema": "",
138
+ "columns": {
139
+ "hash": {
140
+ "name": "hash",
141
+ "type": "text",
142
+ "primaryKey": true,
143
+ "notNull": true
144
+ },
145
+ "size": {
146
+ "name": "size",
147
+ "type": "integer",
148
+ "primaryKey": false,
149
+ "notNull": true
150
+ },
151
+ "binary": {
152
+ "name": "binary",
153
+ "type": "boolean",
154
+ "primaryKey": false,
155
+ "notNull": true,
156
+ "default": false
157
+ },
158
+ "meta": {
159
+ "name": "meta",
160
+ "type": "jsonb",
161
+ "primaryKey": false,
162
+ "notNull": false
163
+ },
164
+ "created_at": {
165
+ "name": "created_at",
166
+ "type": "text",
167
+ "primaryKey": false,
168
+ "notNull": true
169
+ }
170
+ },
171
+ "indexes": {},
172
+ "foreignKeys": {},
173
+ "compositePrimaryKeys": {},
174
+ "uniqueConstraints": {},
175
+ "policies": {},
176
+ "checkConstraints": {},
177
+ "isRLSEnabled": false
178
+ },
179
+ "public.connect_keys": {
180
+ "name": "connect_keys",
181
+ "schema": "",
182
+ "columns": {
183
+ "machine_id": {
184
+ "name": "machine_id",
185
+ "type": "text",
186
+ "primaryKey": true,
187
+ "notNull": true
188
+ },
189
+ "user_id": {
190
+ "name": "user_id",
191
+ "type": "text",
192
+ "primaryKey": false,
193
+ "notNull": true
194
+ },
195
+ "team_id": {
196
+ "name": "team_id",
197
+ "type": "text",
198
+ "primaryKey": false,
199
+ "notNull": false
200
+ },
201
+ "minted_at": {
202
+ "name": "minted_at",
203
+ "type": "text",
204
+ "primaryKey": false,
205
+ "notNull": true
206
+ }
207
+ },
208
+ "indexes": {},
209
+ "foreignKeys": {},
210
+ "compositePrimaryKeys": {},
211
+ "uniqueConstraints": {},
212
+ "policies": {},
213
+ "checkConstraints": {},
214
+ "isRLSEnabled": false
215
+ },
216
+ "public.loops": {
217
+ "name": "loops",
218
+ "schema": "",
219
+ "columns": {
220
+ "id": {
221
+ "name": "id",
222
+ "type": "text",
223
+ "primaryKey": true,
224
+ "notNull": true
225
+ },
226
+ "user_id": {
227
+ "name": "user_id",
228
+ "type": "text",
229
+ "primaryKey": false,
230
+ "notNull": true
231
+ },
232
+ "team_id": {
233
+ "name": "team_id",
234
+ "type": "text",
235
+ "primaryKey": false,
236
+ "notNull": false
237
+ },
238
+ "channel_id": {
239
+ "name": "channel_id",
240
+ "type": "text",
241
+ "primaryKey": false,
242
+ "notNull": false
243
+ },
244
+ "machine_id": {
245
+ "name": "machine_id",
246
+ "type": "text",
247
+ "primaryKey": false,
248
+ "notNull": true
249
+ },
250
+ "name": {
251
+ "name": "name",
252
+ "type": "text",
253
+ "primaryKey": false,
254
+ "notNull": false
255
+ },
256
+ "cron": {
257
+ "name": "cron",
258
+ "type": "text",
259
+ "primaryKey": false,
260
+ "notNull": true
261
+ },
262
+ "schedule_mode": {
263
+ "name": "schedule_mode",
264
+ "type": "text",
265
+ "primaryKey": false,
266
+ "notNull": true,
267
+ "default": "'cron'"
268
+ },
269
+ "continuous_delay_minutes": {
270
+ "name": "continuous_delay_minutes",
271
+ "type": "integer",
272
+ "primaryKey": false,
273
+ "notNull": true,
274
+ "default": 1
275
+ },
276
+ "timezone": {
277
+ "name": "timezone",
278
+ "type": "text",
279
+ "primaryKey": false,
280
+ "notNull": false
281
+ },
282
+ "workdir": {
283
+ "name": "workdir",
284
+ "type": "text",
285
+ "primaryKey": false,
286
+ "notNull": false
287
+ },
288
+ "task_file": {
289
+ "name": "task_file",
290
+ "type": "text",
291
+ "primaryKey": false,
292
+ "notNull": false
293
+ },
294
+ "task_file_content": {
295
+ "name": "task_file_content",
296
+ "type": "text",
297
+ "primaryKey": false,
298
+ "notNull": false
299
+ },
300
+ "task_file_synced_at": {
301
+ "name": "task_file_synced_at",
302
+ "type": "text",
303
+ "primaryKey": false,
304
+ "notNull": false
305
+ },
306
+ "workflow": {
307
+ "name": "workflow",
308
+ "type": "text",
309
+ "primaryKey": false,
310
+ "notNull": false
311
+ },
312
+ "ui": {
313
+ "name": "ui",
314
+ "type": "text",
315
+ "primaryKey": false,
316
+ "notNull": false
317
+ },
318
+ "state_schema": {
319
+ "name": "state_schema",
320
+ "type": "jsonb",
321
+ "primaryKey": false,
322
+ "notNull": false
323
+ },
324
+ "notify": {
325
+ "name": "notify",
326
+ "type": "text",
327
+ "primaryKey": false,
328
+ "notNull": true,
329
+ "default": "'auto'"
330
+ },
331
+ "allow_control": {
332
+ "name": "allow_control",
333
+ "type": "boolean",
334
+ "primaryKey": false,
335
+ "notNull": true,
336
+ "default": true
337
+ },
338
+ "goal": {
339
+ "name": "goal",
340
+ "type": "text",
341
+ "primaryKey": false,
342
+ "notNull": false
343
+ },
344
+ "completed_at": {
345
+ "name": "completed_at",
346
+ "type": "text",
347
+ "primaryKey": false,
348
+ "notNull": false
349
+ },
350
+ "delete_requested_at": {
351
+ "name": "delete_requested_at",
352
+ "type": "timestamp with time zone",
353
+ "primaryKey": false,
354
+ "notNull": false
355
+ },
356
+ "completion_reason": {
357
+ "name": "completion_reason",
358
+ "type": "text",
359
+ "primaryKey": false,
360
+ "notNull": false
361
+ },
362
+ "pause_cause": {
363
+ "name": "pause_cause",
364
+ "type": "jsonb",
365
+ "primaryKey": false,
366
+ "notNull": false
367
+ },
368
+ "model": {
369
+ "name": "model",
370
+ "type": "text",
371
+ "primaryKey": false,
372
+ "notNull": false
373
+ },
374
+ "reasoning_effort": {
375
+ "name": "reasoning_effort",
376
+ "type": "text",
377
+ "primaryKey": false,
378
+ "notNull": false
379
+ },
380
+ "agent": {
381
+ "name": "agent",
382
+ "type": "text",
383
+ "primaryKey": false,
384
+ "notNull": true,
385
+ "default": "'claude-code'"
386
+ },
387
+ "enabled": {
388
+ "name": "enabled",
389
+ "type": "boolean",
390
+ "primaryKey": false,
391
+ "notNull": true,
392
+ "default": true
393
+ },
394
+ "next_run_at": {
395
+ "name": "next_run_at",
396
+ "type": "text",
397
+ "primaryKey": false,
398
+ "notNull": false
399
+ },
400
+ "evolve_due": {
401
+ "name": "evolve_due",
402
+ "type": "boolean",
403
+ "primaryKey": false,
404
+ "notNull": false
405
+ },
406
+ "edit_request": {
407
+ "name": "edit_request",
408
+ "type": "text",
409
+ "primaryKey": false,
410
+ "notNull": false
411
+ },
412
+ "next_cadence_at": {
413
+ "name": "next_cadence_at",
414
+ "type": "text",
415
+ "primaryKey": false,
416
+ "notNull": false
417
+ },
418
+ "state": {
419
+ "name": "state",
420
+ "type": "jsonb",
421
+ "primaryKey": false,
422
+ "notNull": false
423
+ },
424
+ "evolved_run_count": {
425
+ "name": "evolved_run_count",
426
+ "type": "integer",
427
+ "primaryKey": false,
428
+ "notNull": false
429
+ },
430
+ "created_at": {
431
+ "name": "created_at",
432
+ "type": "text",
433
+ "primaryKey": false,
434
+ "notNull": true
435
+ },
436
+ "updated_at": {
437
+ "name": "updated_at",
438
+ "type": "text",
439
+ "primaryKey": false,
440
+ "notNull": true
441
+ }
442
+ },
443
+ "indexes": {
444
+ "loops_user_idx": {
445
+ "name": "loops_user_idx",
446
+ "columns": [
447
+ {
448
+ "expression": "user_id",
449
+ "isExpression": false,
450
+ "asc": true,
451
+ "nulls": "last"
452
+ }
453
+ ],
454
+ "isUnique": false,
455
+ "concurrently": false,
456
+ "method": "btree",
457
+ "with": {}
458
+ },
459
+ "loops_team_idx": {
460
+ "name": "loops_team_idx",
461
+ "columns": [
462
+ {
463
+ "expression": "team_id",
464
+ "isExpression": false,
465
+ "asc": true,
466
+ "nulls": "last"
467
+ }
468
+ ],
469
+ "isUnique": false,
470
+ "concurrently": false,
471
+ "method": "btree",
472
+ "with": {}
473
+ },
474
+ "loops_machine_idx": {
475
+ "name": "loops_machine_idx",
476
+ "columns": [
477
+ {
478
+ "expression": "machine_id",
479
+ "isExpression": false,
480
+ "asc": true,
481
+ "nulls": "last"
482
+ }
483
+ ],
484
+ "isUnique": false,
485
+ "concurrently": false,
486
+ "method": "btree",
487
+ "with": {}
488
+ },
489
+ "delete_requested_loops": {
490
+ "name": "delete_requested_loops",
491
+ "columns": [
492
+ {
493
+ "expression": "delete_requested_at",
494
+ "isExpression": false,
495
+ "asc": true,
496
+ "nulls": "last"
497
+ }
498
+ ],
499
+ "isUnique": false,
500
+ "where": "\"loops\".\"delete_requested_at\" IS NOT NULL",
501
+ "concurrently": false,
502
+ "method": "btree",
503
+ "with": {}
504
+ }
505
+ },
506
+ "foreignKeys": {},
507
+ "compositePrimaryKeys": {},
508
+ "uniqueConstraints": {},
509
+ "policies": {},
510
+ "checkConstraints": {},
511
+ "isRLSEnabled": false
512
+ },
513
+ "public.machines": {
514
+ "name": "machines",
515
+ "schema": "",
516
+ "columns": {
517
+ "id": {
518
+ "name": "id",
519
+ "type": "text",
520
+ "primaryKey": true,
521
+ "notNull": true
522
+ },
523
+ "user_id": {
524
+ "name": "user_id",
525
+ "type": "text",
526
+ "primaryKey": false,
527
+ "notNull": true
528
+ },
529
+ "team_id": {
530
+ "name": "team_id",
531
+ "type": "text",
532
+ "primaryKey": false,
533
+ "notNull": false
534
+ },
535
+ "name": {
536
+ "name": "name",
537
+ "type": "text",
538
+ "primaryKey": false,
539
+ "notNull": true
540
+ },
541
+ "hostname": {
542
+ "name": "hostname",
543
+ "type": "text",
544
+ "primaryKey": false,
545
+ "notNull": false
546
+ },
547
+ "platform": {
548
+ "name": "platform",
549
+ "type": "text",
550
+ "primaryKey": false,
551
+ "notNull": false
552
+ },
553
+ "arch": {
554
+ "name": "arch",
555
+ "type": "text",
556
+ "primaryKey": false,
557
+ "notNull": false
558
+ },
559
+ "daemon_version": {
560
+ "name": "daemon_version",
561
+ "type": "text",
562
+ "primaryKey": false,
563
+ "notNull": false
564
+ },
565
+ "daemon_protocol": {
566
+ "name": "daemon_protocol",
567
+ "type": "integer",
568
+ "primaryKey": false,
569
+ "notNull": false
570
+ },
571
+ "token_hash": {
572
+ "name": "token_hash",
573
+ "type": "text",
574
+ "primaryKey": false,
575
+ "notNull": true
576
+ },
577
+ "token": {
578
+ "name": "token",
579
+ "type": "text",
580
+ "primaryKey": false,
581
+ "notNull": false
582
+ },
583
+ "roots": {
584
+ "name": "roots",
585
+ "type": "jsonb",
586
+ "primaryKey": false,
587
+ "notNull": false
588
+ },
589
+ "last_seen": {
590
+ "name": "last_seen",
591
+ "type": "text",
592
+ "primaryKey": false,
593
+ "notNull": false
594
+ },
595
+ "online": {
596
+ "name": "online",
597
+ "type": "boolean",
598
+ "primaryKey": false,
599
+ "notNull": true,
600
+ "default": false
601
+ },
602
+ "created_at": {
603
+ "name": "created_at",
604
+ "type": "text",
605
+ "primaryKey": false,
606
+ "notNull": true
607
+ }
608
+ },
609
+ "indexes": {
610
+ "machines_user_idx": {
611
+ "name": "machines_user_idx",
612
+ "columns": [
613
+ {
614
+ "expression": "user_id",
615
+ "isExpression": false,
616
+ "asc": true,
617
+ "nulls": "last"
618
+ }
619
+ ],
620
+ "isUnique": false,
621
+ "concurrently": false,
622
+ "method": "btree",
623
+ "with": {}
624
+ },
625
+ "machines_team_idx": {
626
+ "name": "machines_team_idx",
627
+ "columns": [
628
+ {
629
+ "expression": "team_id",
630
+ "isExpression": false,
631
+ "asc": true,
632
+ "nulls": "last"
633
+ }
634
+ ],
635
+ "isUnique": false,
636
+ "concurrently": false,
637
+ "method": "btree",
638
+ "with": {}
639
+ }
640
+ },
641
+ "foreignKeys": {},
642
+ "compositePrimaryKeys": {},
643
+ "uniqueConstraints": {},
644
+ "policies": {},
645
+ "checkConstraints": {},
646
+ "isRLSEnabled": false
647
+ },
648
+ "public.notification_channels": {
649
+ "name": "notification_channels",
650
+ "schema": "",
651
+ "columns": {
652
+ "id": {
653
+ "name": "id",
654
+ "type": "text",
655
+ "primaryKey": true,
656
+ "notNull": true
657
+ },
658
+ "team_id": {
659
+ "name": "team_id",
660
+ "type": "text",
661
+ "primaryKey": false,
662
+ "notNull": true
663
+ },
664
+ "type": {
665
+ "name": "type",
666
+ "type": "text",
667
+ "primaryKey": false,
668
+ "notNull": true
669
+ },
670
+ "name": {
671
+ "name": "name",
672
+ "type": "text",
673
+ "primaryKey": false,
674
+ "notNull": true
675
+ },
676
+ "config": {
677
+ "name": "config",
678
+ "type": "jsonb",
679
+ "primaryKey": false,
680
+ "notNull": true
681
+ },
682
+ "created_at": {
683
+ "name": "created_at",
684
+ "type": "text",
685
+ "primaryKey": false,
686
+ "notNull": true
687
+ }
688
+ },
689
+ "indexes": {
690
+ "notification_channels_team_idx": {
691
+ "name": "notification_channels_team_idx",
692
+ "columns": [
693
+ {
694
+ "expression": "team_id",
695
+ "isExpression": false,
696
+ "asc": true,
697
+ "nulls": "last"
698
+ }
699
+ ],
700
+ "isUnique": false,
701
+ "concurrently": false,
702
+ "method": "btree",
703
+ "with": {}
704
+ }
705
+ },
706
+ "foreignKeys": {},
707
+ "compositePrimaryKeys": {},
708
+ "uniqueConstraints": {},
709
+ "policies": {},
710
+ "checkConstraints": {},
711
+ "isRLSEnabled": false
712
+ },
713
+ "public.run_leases": {
714
+ "name": "run_leases",
715
+ "schema": "",
716
+ "columns": {
717
+ "token_hash": {
718
+ "name": "token_hash",
719
+ "type": "text",
720
+ "primaryKey": true,
721
+ "notNull": true
722
+ },
723
+ "run_id": {
724
+ "name": "run_id",
725
+ "type": "text",
726
+ "primaryKey": false,
727
+ "notNull": true
728
+ },
729
+ "loop_id": {
730
+ "name": "loop_id",
731
+ "type": "text",
732
+ "primaryKey": false,
733
+ "notNull": true
734
+ },
735
+ "machine_id": {
736
+ "name": "machine_id",
737
+ "type": "text",
738
+ "primaryKey": false,
739
+ "notNull": true
740
+ },
741
+ "role": {
742
+ "name": "role",
743
+ "type": "text",
744
+ "primaryKey": false,
745
+ "notNull": true
746
+ },
747
+ "allow_control": {
748
+ "name": "allow_control",
749
+ "type": "boolean",
750
+ "primaryKey": false,
751
+ "notNull": true,
752
+ "default": false
753
+ },
754
+ "can_set_ui": {
755
+ "name": "can_set_ui",
756
+ "type": "boolean",
757
+ "primaryKey": false,
758
+ "notNull": true,
759
+ "default": false
760
+ },
761
+ "can_set_schema": {
762
+ "name": "can_set_schema",
763
+ "type": "boolean",
764
+ "primaryKey": false,
765
+ "notNull": true,
766
+ "default": false
767
+ },
768
+ "can_set_workflow": {
769
+ "name": "can_set_workflow",
770
+ "type": "boolean",
771
+ "primaryKey": false,
772
+ "notNull": true,
773
+ "default": false
774
+ },
775
+ "can_finish": {
776
+ "name": "can_finish",
777
+ "type": "boolean",
778
+ "primaryKey": false,
779
+ "notNull": true,
780
+ "default": false
781
+ },
782
+ "state": {
783
+ "name": "state",
784
+ "type": "text",
785
+ "primaryKey": false,
786
+ "notNull": true,
787
+ "default": "'active'"
788
+ },
789
+ "expires_at": {
790
+ "name": "expires_at",
791
+ "type": "text",
792
+ "primaryKey": false,
793
+ "notNull": false
794
+ },
795
+ "created_at": {
796
+ "name": "created_at",
797
+ "type": "text",
798
+ "primaryKey": false,
799
+ "notNull": true
800
+ }
801
+ },
802
+ "indexes": {
803
+ "run_leases_run_idx": {
804
+ "name": "run_leases_run_idx",
805
+ "columns": [
806
+ {
807
+ "expression": "run_id",
808
+ "isExpression": false,
809
+ "asc": true,
810
+ "nulls": "last"
811
+ }
812
+ ],
813
+ "isUnique": false,
814
+ "concurrently": false,
815
+ "method": "btree",
816
+ "with": {}
817
+ },
818
+ "run_leases_loop_idx": {
819
+ "name": "run_leases_loop_idx",
820
+ "columns": [
821
+ {
822
+ "expression": "loop_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
+ "compositePrimaryKeys": {},
836
+ "uniqueConstraints": {},
837
+ "policies": {},
838
+ "checkConstraints": {},
839
+ "isRLSEnabled": false
840
+ },
841
+ "public.run_report_receipts": {
842
+ "name": "run_report_receipts",
843
+ "schema": "",
844
+ "columns": {
845
+ "report_id": {
846
+ "name": "report_id",
847
+ "type": "text",
848
+ "primaryKey": true,
849
+ "notNull": true
850
+ },
851
+ "run_id": {
852
+ "name": "run_id",
853
+ "type": "text",
854
+ "primaryKey": false,
855
+ "notNull": true
856
+ },
857
+ "payload_digest": {
858
+ "name": "payload_digest",
859
+ "type": "text",
860
+ "primaryKey": false,
861
+ "notNull": true
862
+ },
863
+ "ack_status": {
864
+ "name": "ack_status",
865
+ "type": "integer",
866
+ "primaryKey": false,
867
+ "notNull": true
868
+ },
869
+ "ack_body": {
870
+ "name": "ack_body",
871
+ "type": "jsonb",
872
+ "primaryKey": false,
873
+ "notNull": true
874
+ },
875
+ "created_at": {
876
+ "name": "created_at",
877
+ "type": "timestamp with time zone",
878
+ "primaryKey": false,
879
+ "notNull": true
880
+ }
881
+ },
882
+ "indexes": {
883
+ "report_receipts_created": {
884
+ "name": "report_receipts_created",
885
+ "columns": [
886
+ {
887
+ "expression": "created_at",
888
+ "isExpression": false,
889
+ "asc": true,
890
+ "nulls": "last"
891
+ }
892
+ ],
893
+ "isUnique": false,
894
+ "concurrently": false,
895
+ "method": "btree",
896
+ "with": {}
897
+ }
898
+ },
899
+ "foreignKeys": {},
900
+ "compositePrimaryKeys": {},
901
+ "uniqueConstraints": {},
902
+ "policies": {},
903
+ "checkConstraints": {},
904
+ "isRLSEnabled": false
905
+ },
906
+ "public.run_snapshots": {
907
+ "name": "run_snapshots",
908
+ "schema": "",
909
+ "columns": {
910
+ "run_id": {
911
+ "name": "run_id",
912
+ "type": "text",
913
+ "primaryKey": true,
914
+ "notNull": true
915
+ },
916
+ "loop_id": {
917
+ "name": "loop_id",
918
+ "type": "text",
919
+ "primaryKey": false,
920
+ "notNull": true
921
+ },
922
+ "manifest": {
923
+ "name": "manifest",
924
+ "type": "jsonb",
925
+ "primaryKey": false,
926
+ "notNull": true
927
+ },
928
+ "created_at": {
929
+ "name": "created_at",
930
+ "type": "text",
931
+ "primaryKey": false,
932
+ "notNull": true
933
+ }
934
+ },
935
+ "indexes": {
936
+ "run_snapshots_loop_idx": {
937
+ "name": "run_snapshots_loop_idx",
938
+ "columns": [
939
+ {
940
+ "expression": "loop_id",
941
+ "isExpression": false,
942
+ "asc": true,
943
+ "nulls": "last"
944
+ }
945
+ ],
946
+ "isUnique": false,
947
+ "concurrently": false,
948
+ "method": "btree",
949
+ "with": {}
950
+ }
951
+ },
952
+ "foreignKeys": {},
953
+ "compositePrimaryKeys": {},
954
+ "uniqueConstraints": {},
955
+ "policies": {},
956
+ "checkConstraints": {},
957
+ "isRLSEnabled": false
958
+ },
959
+ "public.runs": {
960
+ "name": "runs",
961
+ "schema": "",
962
+ "columns": {
963
+ "id": {
964
+ "name": "id",
965
+ "type": "text",
966
+ "primaryKey": true,
967
+ "notNull": true
968
+ },
969
+ "loop_id": {
970
+ "name": "loop_id",
971
+ "type": "text",
972
+ "primaryKey": false,
973
+ "notNull": true
974
+ },
975
+ "user_id": {
976
+ "name": "user_id",
977
+ "type": "text",
978
+ "primaryKey": false,
979
+ "notNull": true
980
+ },
981
+ "machine_id": {
982
+ "name": "machine_id",
983
+ "type": "text",
984
+ "primaryKey": false,
985
+ "notNull": true
986
+ },
987
+ "agent": {
988
+ "name": "agent",
989
+ "type": "text",
990
+ "primaryKey": false,
991
+ "notNull": false
992
+ },
993
+ "phase": {
994
+ "name": "phase",
995
+ "type": "text",
996
+ "primaryKey": false,
997
+ "notNull": true
998
+ },
999
+ "role": {
1000
+ "name": "role",
1001
+ "type": "text",
1002
+ "primaryKey": false,
1003
+ "notNull": true
1004
+ },
1005
+ "requested_by": {
1006
+ "name": "requested_by",
1007
+ "type": "text",
1008
+ "primaryKey": false,
1009
+ "notNull": true,
1010
+ "default": "'system'"
1011
+ },
1012
+ "request_text": {
1013
+ "name": "request_text",
1014
+ "type": "text",
1015
+ "primaryKey": false,
1016
+ "notNull": false
1017
+ },
1018
+ "ts": {
1019
+ "name": "ts",
1020
+ "type": "text",
1021
+ "primaryKey": false,
1022
+ "notNull": true
1023
+ },
1024
+ "created_at": {
1025
+ "name": "created_at",
1026
+ "type": "text",
1027
+ "primaryKey": false,
1028
+ "notNull": true,
1029
+ "default": "CURRENT_TIMESTAMP::text"
1030
+ },
1031
+ "updated_at": {
1032
+ "name": "updated_at",
1033
+ "type": "text",
1034
+ "primaryKey": false,
1035
+ "notNull": true,
1036
+ "default": "CURRENT_TIMESTAMP::text"
1037
+ },
1038
+ "outcome": {
1039
+ "name": "outcome",
1040
+ "type": "text",
1041
+ "primaryKey": false,
1042
+ "notNull": false
1043
+ },
1044
+ "status": {
1045
+ "name": "status",
1046
+ "type": "text",
1047
+ "primaryKey": false,
1048
+ "notNull": false
1049
+ },
1050
+ "message": {
1051
+ "name": "message",
1052
+ "type": "text",
1053
+ "primaryKey": false,
1054
+ "notNull": false
1055
+ },
1056
+ "duration_ms": {
1057
+ "name": "duration_ms",
1058
+ "type": "integer",
1059
+ "primaryKey": false,
1060
+ "notNull": false
1061
+ },
1062
+ "exit_code": {
1063
+ "name": "exit_code",
1064
+ "type": "integer",
1065
+ "primaryKey": false,
1066
+ "notNull": false
1067
+ },
1068
+ "final_text": {
1069
+ "name": "final_text",
1070
+ "type": "text",
1071
+ "primaryKey": false,
1072
+ "notNull": false
1073
+ },
1074
+ "error": {
1075
+ "name": "error",
1076
+ "type": "text",
1077
+ "primaryKey": false,
1078
+ "notNull": false
1079
+ },
1080
+ "state": {
1081
+ "name": "state",
1082
+ "type": "jsonb",
1083
+ "primaryKey": false,
1084
+ "notNull": false
1085
+ },
1086
+ "control": {
1087
+ "name": "control",
1088
+ "type": "jsonb",
1089
+ "primaryKey": false,
1090
+ "notNull": false
1091
+ },
1092
+ "session_id": {
1093
+ "name": "session_id",
1094
+ "type": "text",
1095
+ "primaryKey": false,
1096
+ "notNull": false
1097
+ },
1098
+ "usage": {
1099
+ "name": "usage",
1100
+ "type": "jsonb",
1101
+ "primaryKey": false,
1102
+ "notNull": false
1103
+ },
1104
+ "cancel_requested_at": {
1105
+ "name": "cancel_requested_at",
1106
+ "type": "timestamp with time zone",
1107
+ "primaryKey": false,
1108
+ "notNull": false
1109
+ },
1110
+ "heartbeat_at": {
1111
+ "name": "heartbeat_at",
1112
+ "type": "text",
1113
+ "primaryKey": false,
1114
+ "notNull": false
1115
+ },
1116
+ "deferred_at": {
1117
+ "name": "deferred_at",
1118
+ "type": "text",
1119
+ "primaryKey": false,
1120
+ "notNull": false
1121
+ },
1122
+ "report_incident": {
1123
+ "name": "report_incident",
1124
+ "type": "jsonb",
1125
+ "primaryKey": false,
1126
+ "notNull": false
1127
+ }
1128
+ },
1129
+ "indexes": {
1130
+ "runs_loop_idx": {
1131
+ "name": "runs_loop_idx",
1132
+ "columns": [
1133
+ {
1134
+ "expression": "loop_id",
1135
+ "isExpression": false,
1136
+ "asc": true,
1137
+ "nulls": "last"
1138
+ }
1139
+ ],
1140
+ "isUnique": false,
1141
+ "concurrently": false,
1142
+ "method": "btree",
1143
+ "with": {}
1144
+ },
1145
+ "runs_phase_idx": {
1146
+ "name": "runs_phase_idx",
1147
+ "columns": [
1148
+ {
1149
+ "expression": "phase",
1150
+ "isExpression": false,
1151
+ "asc": true,
1152
+ "nulls": "last"
1153
+ }
1154
+ ],
1155
+ "isUnique": false,
1156
+ "concurrently": false,
1157
+ "method": "btree",
1158
+ "with": {}
1159
+ },
1160
+ "runs_machine_phase_ready_idx": {
1161
+ "name": "runs_machine_phase_ready_idx",
1162
+ "columns": [
1163
+ {
1164
+ "expression": "machine_id",
1165
+ "isExpression": false,
1166
+ "asc": true,
1167
+ "nulls": "last"
1168
+ },
1169
+ {
1170
+ "expression": "phase",
1171
+ "isExpression": false,
1172
+ "asc": true,
1173
+ "nulls": "last"
1174
+ }
1175
+ ],
1176
+ "isUnique": false,
1177
+ "concurrently": false,
1178
+ "method": "btree",
1179
+ "with": {}
1180
+ },
1181
+ "runs_loop_ts_idx": {
1182
+ "name": "runs_loop_ts_idx",
1183
+ "columns": [
1184
+ {
1185
+ "expression": "loop_id",
1186
+ "isExpression": false,
1187
+ "asc": true,
1188
+ "nulls": "last"
1189
+ },
1190
+ {
1191
+ "expression": "ts",
1192
+ "isExpression": false,
1193
+ "asc": true,
1194
+ "nulls": "last"
1195
+ }
1196
+ ],
1197
+ "isUnique": false,
1198
+ "concurrently": false,
1199
+ "method": "btree",
1200
+ "with": {}
1201
+ },
1202
+ "runs_loop_role_pending_idx": {
1203
+ "name": "runs_loop_role_pending_idx",
1204
+ "columns": [
1205
+ {
1206
+ "expression": "loop_id",
1207
+ "isExpression": false,
1208
+ "asc": true,
1209
+ "nulls": "last"
1210
+ },
1211
+ {
1212
+ "expression": "role",
1213
+ "isExpression": false,
1214
+ "asc": true,
1215
+ "nulls": "last"
1216
+ }
1217
+ ],
1218
+ "isUnique": true,
1219
+ "where": "\"runs\".\"phase\" = 'pending'",
1220
+ "concurrently": false,
1221
+ "method": "btree",
1222
+ "with": {}
1223
+ },
1224
+ "one_running_run_per_machine": {
1225
+ "name": "one_running_run_per_machine",
1226
+ "columns": [
1227
+ {
1228
+ "expression": "machine_id",
1229
+ "isExpression": false,
1230
+ "asc": true,
1231
+ "nulls": "last"
1232
+ }
1233
+ ],
1234
+ "isUnique": true,
1235
+ "where": "\"runs\".\"phase\" = 'running'",
1236
+ "concurrently": false,
1237
+ "method": "btree",
1238
+ "with": {}
1239
+ }
1240
+ },
1241
+ "foreignKeys": {},
1242
+ "compositePrimaryKeys": {},
1243
+ "uniqueConstraints": {},
1244
+ "policies": {},
1245
+ "checkConstraints": {},
1246
+ "isRLSEnabled": false
1247
+ },
1248
+ "public.team_invites": {
1249
+ "name": "team_invites",
1250
+ "schema": "",
1251
+ "columns": {
1252
+ "token": {
1253
+ "name": "token",
1254
+ "type": "text",
1255
+ "primaryKey": true,
1256
+ "notNull": true
1257
+ },
1258
+ "team_id": {
1259
+ "name": "team_id",
1260
+ "type": "text",
1261
+ "primaryKey": false,
1262
+ "notNull": true
1263
+ },
1264
+ "role": {
1265
+ "name": "role",
1266
+ "type": "text",
1267
+ "primaryKey": false,
1268
+ "notNull": true,
1269
+ "default": "'member'"
1270
+ },
1271
+ "invited_by_user_id": {
1272
+ "name": "invited_by_user_id",
1273
+ "type": "text",
1274
+ "primaryKey": false,
1275
+ "notNull": true
1276
+ },
1277
+ "expires_at": {
1278
+ "name": "expires_at",
1279
+ "type": "text",
1280
+ "primaryKey": false,
1281
+ "notNull": true
1282
+ },
1283
+ "redeemed_at": {
1284
+ "name": "redeemed_at",
1285
+ "type": "text",
1286
+ "primaryKey": false,
1287
+ "notNull": false
1288
+ },
1289
+ "redeemed_by_user_id": {
1290
+ "name": "redeemed_by_user_id",
1291
+ "type": "text",
1292
+ "primaryKey": false,
1293
+ "notNull": false
1294
+ },
1295
+ "created_at": {
1296
+ "name": "created_at",
1297
+ "type": "text",
1298
+ "primaryKey": false,
1299
+ "notNull": true
1300
+ }
1301
+ },
1302
+ "indexes": {
1303
+ "team_invites_team_idx": {
1304
+ "name": "team_invites_team_idx",
1305
+ "columns": [
1306
+ {
1307
+ "expression": "team_id",
1308
+ "isExpression": false,
1309
+ "asc": true,
1310
+ "nulls": "last"
1311
+ }
1312
+ ],
1313
+ "isUnique": false,
1314
+ "concurrently": false,
1315
+ "method": "btree",
1316
+ "with": {}
1317
+ }
1318
+ },
1319
+ "foreignKeys": {},
1320
+ "compositePrimaryKeys": {},
1321
+ "uniqueConstraints": {},
1322
+ "policies": {},
1323
+ "checkConstraints": {},
1324
+ "isRLSEnabled": false
1325
+ },
1326
+ "public.team_members": {
1327
+ "name": "team_members",
1328
+ "schema": "",
1329
+ "columns": {
1330
+ "id": {
1331
+ "name": "id",
1332
+ "type": "text",
1333
+ "primaryKey": true,
1334
+ "notNull": true
1335
+ },
1336
+ "team_id": {
1337
+ "name": "team_id",
1338
+ "type": "text",
1339
+ "primaryKey": false,
1340
+ "notNull": true
1341
+ },
1342
+ "user_id": {
1343
+ "name": "user_id",
1344
+ "type": "text",
1345
+ "primaryKey": false,
1346
+ "notNull": true
1347
+ },
1348
+ "role": {
1349
+ "name": "role",
1350
+ "type": "text",
1351
+ "primaryKey": false,
1352
+ "notNull": true,
1353
+ "default": "'member'"
1354
+ },
1355
+ "created_at": {
1356
+ "name": "created_at",
1357
+ "type": "text",
1358
+ "primaryKey": false,
1359
+ "notNull": true
1360
+ }
1361
+ },
1362
+ "indexes": {
1363
+ "team_members_team_idx": {
1364
+ "name": "team_members_team_idx",
1365
+ "columns": [
1366
+ {
1367
+ "expression": "team_id",
1368
+ "isExpression": false,
1369
+ "asc": true,
1370
+ "nulls": "last"
1371
+ }
1372
+ ],
1373
+ "isUnique": false,
1374
+ "concurrently": false,
1375
+ "method": "btree",
1376
+ "with": {}
1377
+ },
1378
+ "team_members_user_idx": {
1379
+ "name": "team_members_user_idx",
1380
+ "columns": [
1381
+ {
1382
+ "expression": "user_id",
1383
+ "isExpression": false,
1384
+ "asc": true,
1385
+ "nulls": "last"
1386
+ }
1387
+ ],
1388
+ "isUnique": false,
1389
+ "concurrently": false,
1390
+ "method": "btree",
1391
+ "with": {}
1392
+ }
1393
+ },
1394
+ "foreignKeys": {},
1395
+ "compositePrimaryKeys": {},
1396
+ "uniqueConstraints": {},
1397
+ "policies": {},
1398
+ "checkConstraints": {},
1399
+ "isRLSEnabled": false
1400
+ },
1401
+ "public.teams": {
1402
+ "name": "teams",
1403
+ "schema": "",
1404
+ "columns": {
1405
+ "id": {
1406
+ "name": "id",
1407
+ "type": "text",
1408
+ "primaryKey": true,
1409
+ "notNull": true
1410
+ },
1411
+ "name": {
1412
+ "name": "name",
1413
+ "type": "text",
1414
+ "primaryKey": false,
1415
+ "notNull": true
1416
+ },
1417
+ "owner_user_id": {
1418
+ "name": "owner_user_id",
1419
+ "type": "text",
1420
+ "primaryKey": false,
1421
+ "notNull": false
1422
+ },
1423
+ "created_at": {
1424
+ "name": "created_at",
1425
+ "type": "text",
1426
+ "primaryKey": false,
1427
+ "notNull": true
1428
+ }
1429
+ },
1430
+ "indexes": {},
1431
+ "foreignKeys": {},
1432
+ "compositePrimaryKeys": {},
1433
+ "uniqueConstraints": {},
1434
+ "policies": {},
1435
+ "checkConstraints": {},
1436
+ "isRLSEnabled": false
1437
+ },
1438
+ "public.terminal_report_incidents": {
1439
+ "name": "terminal_report_incidents",
1440
+ "schema": "",
1441
+ "columns": {
1442
+ "id": {
1443
+ "name": "id",
1444
+ "type": "text",
1445
+ "primaryKey": true,
1446
+ "notNull": true
1447
+ },
1448
+ "run_id": {
1449
+ "name": "run_id",
1450
+ "type": "text",
1451
+ "primaryKey": false,
1452
+ "notNull": true
1453
+ },
1454
+ "report_id": {
1455
+ "name": "report_id",
1456
+ "type": "text",
1457
+ "primaryKey": false,
1458
+ "notNull": true
1459
+ },
1460
+ "payload_digest": {
1461
+ "name": "payload_digest",
1462
+ "type": "text",
1463
+ "primaryKey": false,
1464
+ "notNull": true
1465
+ },
1466
+ "disposition": {
1467
+ "name": "disposition",
1468
+ "type": "text",
1469
+ "primaryKey": false,
1470
+ "notNull": true
1471
+ },
1472
+ "ack_body": {
1473
+ "name": "ack_body",
1474
+ "type": "jsonb",
1475
+ "primaryKey": false,
1476
+ "notNull": true
1477
+ },
1478
+ "created_at": {
1479
+ "name": "created_at",
1480
+ "type": "timestamp with time zone",
1481
+ "primaryKey": false,
1482
+ "notNull": true
1483
+ }
1484
+ },
1485
+ "indexes": {
1486
+ "terminal_report_incidents_report_id": {
1487
+ "name": "terminal_report_incidents_report_id",
1488
+ "columns": [
1489
+ {
1490
+ "expression": "report_id",
1491
+ "isExpression": false,
1492
+ "asc": true,
1493
+ "nulls": "last"
1494
+ }
1495
+ ],
1496
+ "isUnique": false,
1497
+ "concurrently": false,
1498
+ "method": "btree",
1499
+ "with": {}
1500
+ },
1501
+ "terminal_report_incidents_created": {
1502
+ "name": "terminal_report_incidents_created",
1503
+ "columns": [
1504
+ {
1505
+ "expression": "created_at",
1506
+ "isExpression": false,
1507
+ "asc": true,
1508
+ "nulls": "last"
1509
+ }
1510
+ ],
1511
+ "isUnique": false,
1512
+ "concurrently": false,
1513
+ "method": "btree",
1514
+ "with": {}
1515
+ }
1516
+ },
1517
+ "foreignKeys": {},
1518
+ "compositePrimaryKeys": {},
1519
+ "uniqueConstraints": {},
1520
+ "policies": {},
1521
+ "checkConstraints": {},
1522
+ "isRLSEnabled": false
1523
+ },
1524
+ "public.account": {
1525
+ "name": "account",
1526
+ "schema": "",
1527
+ "columns": {
1528
+ "id": {
1529
+ "name": "id",
1530
+ "type": "text",
1531
+ "primaryKey": true,
1532
+ "notNull": true
1533
+ },
1534
+ "account_id": {
1535
+ "name": "account_id",
1536
+ "type": "text",
1537
+ "primaryKey": false,
1538
+ "notNull": true
1539
+ },
1540
+ "provider_id": {
1541
+ "name": "provider_id",
1542
+ "type": "text",
1543
+ "primaryKey": false,
1544
+ "notNull": true
1545
+ },
1546
+ "user_id": {
1547
+ "name": "user_id",
1548
+ "type": "text",
1549
+ "primaryKey": false,
1550
+ "notNull": true
1551
+ },
1552
+ "access_token": {
1553
+ "name": "access_token",
1554
+ "type": "text",
1555
+ "primaryKey": false,
1556
+ "notNull": false
1557
+ },
1558
+ "refresh_token": {
1559
+ "name": "refresh_token",
1560
+ "type": "text",
1561
+ "primaryKey": false,
1562
+ "notNull": false
1563
+ },
1564
+ "id_token": {
1565
+ "name": "id_token",
1566
+ "type": "text",
1567
+ "primaryKey": false,
1568
+ "notNull": false
1569
+ },
1570
+ "access_token_expires_at": {
1571
+ "name": "access_token_expires_at",
1572
+ "type": "timestamp",
1573
+ "primaryKey": false,
1574
+ "notNull": false
1575
+ },
1576
+ "refresh_token_expires_at": {
1577
+ "name": "refresh_token_expires_at",
1578
+ "type": "timestamp",
1579
+ "primaryKey": false,
1580
+ "notNull": false
1581
+ },
1582
+ "scope": {
1583
+ "name": "scope",
1584
+ "type": "text",
1585
+ "primaryKey": false,
1586
+ "notNull": false
1587
+ },
1588
+ "password": {
1589
+ "name": "password",
1590
+ "type": "text",
1591
+ "primaryKey": false,
1592
+ "notNull": false
1593
+ },
1594
+ "created_at": {
1595
+ "name": "created_at",
1596
+ "type": "timestamp",
1597
+ "primaryKey": false,
1598
+ "notNull": true,
1599
+ "default": "now()"
1600
+ },
1601
+ "updated_at": {
1602
+ "name": "updated_at",
1603
+ "type": "timestamp",
1604
+ "primaryKey": false,
1605
+ "notNull": true
1606
+ }
1607
+ },
1608
+ "indexes": {
1609
+ "account_userId_idx": {
1610
+ "name": "account_userId_idx",
1611
+ "columns": [
1612
+ {
1613
+ "expression": "user_id",
1614
+ "isExpression": false,
1615
+ "asc": true,
1616
+ "nulls": "last"
1617
+ }
1618
+ ],
1619
+ "isUnique": false,
1620
+ "concurrently": false,
1621
+ "method": "btree",
1622
+ "with": {}
1623
+ }
1624
+ },
1625
+ "foreignKeys": {
1626
+ "account_user_id_user_id_fk": {
1627
+ "name": "account_user_id_user_id_fk",
1628
+ "tableFrom": "account",
1629
+ "tableTo": "user",
1630
+ "columnsFrom": [
1631
+ "user_id"
1632
+ ],
1633
+ "columnsTo": [
1634
+ "id"
1635
+ ],
1636
+ "onDelete": "cascade",
1637
+ "onUpdate": "no action"
1638
+ }
1639
+ },
1640
+ "compositePrimaryKeys": {},
1641
+ "uniqueConstraints": {},
1642
+ "policies": {},
1643
+ "checkConstraints": {},
1644
+ "isRLSEnabled": false
1645
+ },
1646
+ "public.session": {
1647
+ "name": "session",
1648
+ "schema": "",
1649
+ "columns": {
1650
+ "id": {
1651
+ "name": "id",
1652
+ "type": "text",
1653
+ "primaryKey": true,
1654
+ "notNull": true
1655
+ },
1656
+ "expires_at": {
1657
+ "name": "expires_at",
1658
+ "type": "timestamp",
1659
+ "primaryKey": false,
1660
+ "notNull": true
1661
+ },
1662
+ "token": {
1663
+ "name": "token",
1664
+ "type": "text",
1665
+ "primaryKey": false,
1666
+ "notNull": true
1667
+ },
1668
+ "created_at": {
1669
+ "name": "created_at",
1670
+ "type": "timestamp",
1671
+ "primaryKey": false,
1672
+ "notNull": true,
1673
+ "default": "now()"
1674
+ },
1675
+ "updated_at": {
1676
+ "name": "updated_at",
1677
+ "type": "timestamp",
1678
+ "primaryKey": false,
1679
+ "notNull": true
1680
+ },
1681
+ "ip_address": {
1682
+ "name": "ip_address",
1683
+ "type": "text",
1684
+ "primaryKey": false,
1685
+ "notNull": false
1686
+ },
1687
+ "user_agent": {
1688
+ "name": "user_agent",
1689
+ "type": "text",
1690
+ "primaryKey": false,
1691
+ "notNull": false
1692
+ },
1693
+ "user_id": {
1694
+ "name": "user_id",
1695
+ "type": "text",
1696
+ "primaryKey": false,
1697
+ "notNull": true
1698
+ }
1699
+ },
1700
+ "indexes": {
1701
+ "session_userId_idx": {
1702
+ "name": "session_userId_idx",
1703
+ "columns": [
1704
+ {
1705
+ "expression": "user_id",
1706
+ "isExpression": false,
1707
+ "asc": true,
1708
+ "nulls": "last"
1709
+ }
1710
+ ],
1711
+ "isUnique": false,
1712
+ "concurrently": false,
1713
+ "method": "btree",
1714
+ "with": {}
1715
+ }
1716
+ },
1717
+ "foreignKeys": {
1718
+ "session_user_id_user_id_fk": {
1719
+ "name": "session_user_id_user_id_fk",
1720
+ "tableFrom": "session",
1721
+ "tableTo": "user",
1722
+ "columnsFrom": [
1723
+ "user_id"
1724
+ ],
1725
+ "columnsTo": [
1726
+ "id"
1727
+ ],
1728
+ "onDelete": "cascade",
1729
+ "onUpdate": "no action"
1730
+ }
1731
+ },
1732
+ "compositePrimaryKeys": {},
1733
+ "uniqueConstraints": {
1734
+ "session_token_unique": {
1735
+ "name": "session_token_unique",
1736
+ "nullsNotDistinct": false,
1737
+ "columns": [
1738
+ "token"
1739
+ ]
1740
+ }
1741
+ },
1742
+ "policies": {},
1743
+ "checkConstraints": {},
1744
+ "isRLSEnabled": false
1745
+ },
1746
+ "public.user": {
1747
+ "name": "user",
1748
+ "schema": "",
1749
+ "columns": {
1750
+ "id": {
1751
+ "name": "id",
1752
+ "type": "text",
1753
+ "primaryKey": true,
1754
+ "notNull": true
1755
+ },
1756
+ "name": {
1757
+ "name": "name",
1758
+ "type": "text",
1759
+ "primaryKey": false,
1760
+ "notNull": true
1761
+ },
1762
+ "email": {
1763
+ "name": "email",
1764
+ "type": "text",
1765
+ "primaryKey": false,
1766
+ "notNull": true
1767
+ },
1768
+ "email_verified": {
1769
+ "name": "email_verified",
1770
+ "type": "boolean",
1771
+ "primaryKey": false,
1772
+ "notNull": true,
1773
+ "default": false
1774
+ },
1775
+ "image": {
1776
+ "name": "image",
1777
+ "type": "text",
1778
+ "primaryKey": false,
1779
+ "notNull": false
1780
+ },
1781
+ "created_at": {
1782
+ "name": "created_at",
1783
+ "type": "timestamp",
1784
+ "primaryKey": false,
1785
+ "notNull": true,
1786
+ "default": "now()"
1787
+ },
1788
+ "updated_at": {
1789
+ "name": "updated_at",
1790
+ "type": "timestamp",
1791
+ "primaryKey": false,
1792
+ "notNull": true,
1793
+ "default": "now()"
1794
+ }
1795
+ },
1796
+ "indexes": {},
1797
+ "foreignKeys": {},
1798
+ "compositePrimaryKeys": {},
1799
+ "uniqueConstraints": {
1800
+ "user_email_unique": {
1801
+ "name": "user_email_unique",
1802
+ "nullsNotDistinct": false,
1803
+ "columns": [
1804
+ "email"
1805
+ ]
1806
+ }
1807
+ },
1808
+ "policies": {},
1809
+ "checkConstraints": {},
1810
+ "isRLSEnabled": false
1811
+ },
1812
+ "public.verification": {
1813
+ "name": "verification",
1814
+ "schema": "",
1815
+ "columns": {
1816
+ "id": {
1817
+ "name": "id",
1818
+ "type": "text",
1819
+ "primaryKey": true,
1820
+ "notNull": true
1821
+ },
1822
+ "identifier": {
1823
+ "name": "identifier",
1824
+ "type": "text",
1825
+ "primaryKey": false,
1826
+ "notNull": true
1827
+ },
1828
+ "value": {
1829
+ "name": "value",
1830
+ "type": "text",
1831
+ "primaryKey": false,
1832
+ "notNull": true
1833
+ },
1834
+ "expires_at": {
1835
+ "name": "expires_at",
1836
+ "type": "timestamp",
1837
+ "primaryKey": false,
1838
+ "notNull": true
1839
+ },
1840
+ "created_at": {
1841
+ "name": "created_at",
1842
+ "type": "timestamp",
1843
+ "primaryKey": false,
1844
+ "notNull": true,
1845
+ "default": "now()"
1846
+ },
1847
+ "updated_at": {
1848
+ "name": "updated_at",
1849
+ "type": "timestamp",
1850
+ "primaryKey": false,
1851
+ "notNull": true,
1852
+ "default": "now()"
1853
+ }
1854
+ },
1855
+ "indexes": {
1856
+ "verification_identifier_idx": {
1857
+ "name": "verification_identifier_idx",
1858
+ "columns": [
1859
+ {
1860
+ "expression": "identifier",
1861
+ "isExpression": false,
1862
+ "asc": true,
1863
+ "nulls": "last"
1864
+ }
1865
+ ],
1866
+ "isUnique": false,
1867
+ "concurrently": false,
1868
+ "method": "btree",
1869
+ "with": {}
1870
+ }
1871
+ },
1872
+ "foreignKeys": {},
1873
+ "compositePrimaryKeys": {},
1874
+ "uniqueConstraints": {},
1875
+ "policies": {},
1876
+ "checkConstraints": {},
1877
+ "isRLSEnabled": false
1878
+ }
1879
+ },
1880
+ "enums": {},
1881
+ "schemas": {},
1882
+ "sequences": {},
1883
+ "roles": {},
1884
+ "policies": {},
1885
+ "views": {},
1886
+ "_meta": {
1887
+ "columns": {},
1888
+ "schemas": {},
1889
+ "tables": {}
1890
+ }
1891
+ }