@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,1793 @@
1
+ {
2
+ "id": "85ec76e4-3a1c-42a4-aaa9-270a6d3f8f84",
3
+ "prevId": "fd6277cf-d3e2-4507-bb4e-28c4b3d1f18b",
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
+ "model": {
363
+ "name": "model",
364
+ "type": "text",
365
+ "primaryKey": false,
366
+ "notNull": false
367
+ },
368
+ "reasoning_effort": {
369
+ "name": "reasoning_effort",
370
+ "type": "text",
371
+ "primaryKey": false,
372
+ "notNull": false
373
+ },
374
+ "agent": {
375
+ "name": "agent",
376
+ "type": "text",
377
+ "primaryKey": false,
378
+ "notNull": true,
379
+ "default": "'claude-code'"
380
+ },
381
+ "enabled": {
382
+ "name": "enabled",
383
+ "type": "boolean",
384
+ "primaryKey": false,
385
+ "notNull": true,
386
+ "default": true
387
+ },
388
+ "next_run_at": {
389
+ "name": "next_run_at",
390
+ "type": "text",
391
+ "primaryKey": false,
392
+ "notNull": false
393
+ },
394
+ "evolve_due": {
395
+ "name": "evolve_due",
396
+ "type": "boolean",
397
+ "primaryKey": false,
398
+ "notNull": false
399
+ },
400
+ "edit_request": {
401
+ "name": "edit_request",
402
+ "type": "text",
403
+ "primaryKey": false,
404
+ "notNull": false
405
+ },
406
+ "next_cadence_at": {
407
+ "name": "next_cadence_at",
408
+ "type": "text",
409
+ "primaryKey": false,
410
+ "notNull": false
411
+ },
412
+ "state": {
413
+ "name": "state",
414
+ "type": "jsonb",
415
+ "primaryKey": false,
416
+ "notNull": false
417
+ },
418
+ "evolved_run_count": {
419
+ "name": "evolved_run_count",
420
+ "type": "integer",
421
+ "primaryKey": false,
422
+ "notNull": false
423
+ },
424
+ "created_at": {
425
+ "name": "created_at",
426
+ "type": "text",
427
+ "primaryKey": false,
428
+ "notNull": true
429
+ },
430
+ "updated_at": {
431
+ "name": "updated_at",
432
+ "type": "text",
433
+ "primaryKey": false,
434
+ "notNull": true
435
+ }
436
+ },
437
+ "indexes": {
438
+ "loops_user_idx": {
439
+ "name": "loops_user_idx",
440
+ "columns": [
441
+ {
442
+ "expression": "user_id",
443
+ "isExpression": false,
444
+ "asc": true,
445
+ "nulls": "last"
446
+ }
447
+ ],
448
+ "isUnique": false,
449
+ "concurrently": false,
450
+ "method": "btree",
451
+ "with": {}
452
+ },
453
+ "loops_team_idx": {
454
+ "name": "loops_team_idx",
455
+ "columns": [
456
+ {
457
+ "expression": "team_id",
458
+ "isExpression": false,
459
+ "asc": true,
460
+ "nulls": "last"
461
+ }
462
+ ],
463
+ "isUnique": false,
464
+ "concurrently": false,
465
+ "method": "btree",
466
+ "with": {}
467
+ },
468
+ "loops_machine_idx": {
469
+ "name": "loops_machine_idx",
470
+ "columns": [
471
+ {
472
+ "expression": "machine_id",
473
+ "isExpression": false,
474
+ "asc": true,
475
+ "nulls": "last"
476
+ }
477
+ ],
478
+ "isUnique": false,
479
+ "concurrently": false,
480
+ "method": "btree",
481
+ "with": {}
482
+ },
483
+ "delete_requested_loops": {
484
+ "name": "delete_requested_loops",
485
+ "columns": [
486
+ {
487
+ "expression": "delete_requested_at",
488
+ "isExpression": false,
489
+ "asc": true,
490
+ "nulls": "last"
491
+ }
492
+ ],
493
+ "isUnique": false,
494
+ "where": "\"loops\".\"delete_requested_at\" IS NOT NULL",
495
+ "concurrently": false,
496
+ "method": "btree",
497
+ "with": {}
498
+ }
499
+ },
500
+ "foreignKeys": {},
501
+ "compositePrimaryKeys": {},
502
+ "uniqueConstraints": {},
503
+ "policies": {},
504
+ "checkConstraints": {},
505
+ "isRLSEnabled": false
506
+ },
507
+ "public.machines": {
508
+ "name": "machines",
509
+ "schema": "",
510
+ "columns": {
511
+ "id": {
512
+ "name": "id",
513
+ "type": "text",
514
+ "primaryKey": true,
515
+ "notNull": true
516
+ },
517
+ "user_id": {
518
+ "name": "user_id",
519
+ "type": "text",
520
+ "primaryKey": false,
521
+ "notNull": true
522
+ },
523
+ "team_id": {
524
+ "name": "team_id",
525
+ "type": "text",
526
+ "primaryKey": false,
527
+ "notNull": false
528
+ },
529
+ "name": {
530
+ "name": "name",
531
+ "type": "text",
532
+ "primaryKey": false,
533
+ "notNull": true
534
+ },
535
+ "hostname": {
536
+ "name": "hostname",
537
+ "type": "text",
538
+ "primaryKey": false,
539
+ "notNull": false
540
+ },
541
+ "platform": {
542
+ "name": "platform",
543
+ "type": "text",
544
+ "primaryKey": false,
545
+ "notNull": false
546
+ },
547
+ "arch": {
548
+ "name": "arch",
549
+ "type": "text",
550
+ "primaryKey": false,
551
+ "notNull": false
552
+ },
553
+ "daemon_version": {
554
+ "name": "daemon_version",
555
+ "type": "text",
556
+ "primaryKey": false,
557
+ "notNull": false
558
+ },
559
+ "daemon_protocol": {
560
+ "name": "daemon_protocol",
561
+ "type": "integer",
562
+ "primaryKey": false,
563
+ "notNull": false
564
+ },
565
+ "token_hash": {
566
+ "name": "token_hash",
567
+ "type": "text",
568
+ "primaryKey": false,
569
+ "notNull": true
570
+ },
571
+ "token": {
572
+ "name": "token",
573
+ "type": "text",
574
+ "primaryKey": false,
575
+ "notNull": false
576
+ },
577
+ "roots": {
578
+ "name": "roots",
579
+ "type": "jsonb",
580
+ "primaryKey": false,
581
+ "notNull": false
582
+ },
583
+ "last_seen": {
584
+ "name": "last_seen",
585
+ "type": "text",
586
+ "primaryKey": false,
587
+ "notNull": false
588
+ },
589
+ "online": {
590
+ "name": "online",
591
+ "type": "boolean",
592
+ "primaryKey": false,
593
+ "notNull": true,
594
+ "default": false
595
+ },
596
+ "created_at": {
597
+ "name": "created_at",
598
+ "type": "text",
599
+ "primaryKey": false,
600
+ "notNull": true
601
+ }
602
+ },
603
+ "indexes": {
604
+ "machines_user_idx": {
605
+ "name": "machines_user_idx",
606
+ "columns": [
607
+ {
608
+ "expression": "user_id",
609
+ "isExpression": false,
610
+ "asc": true,
611
+ "nulls": "last"
612
+ }
613
+ ],
614
+ "isUnique": false,
615
+ "concurrently": false,
616
+ "method": "btree",
617
+ "with": {}
618
+ },
619
+ "machines_team_idx": {
620
+ "name": "machines_team_idx",
621
+ "columns": [
622
+ {
623
+ "expression": "team_id",
624
+ "isExpression": false,
625
+ "asc": true,
626
+ "nulls": "last"
627
+ }
628
+ ],
629
+ "isUnique": false,
630
+ "concurrently": false,
631
+ "method": "btree",
632
+ "with": {}
633
+ }
634
+ },
635
+ "foreignKeys": {},
636
+ "compositePrimaryKeys": {},
637
+ "uniqueConstraints": {},
638
+ "policies": {},
639
+ "checkConstraints": {},
640
+ "isRLSEnabled": false
641
+ },
642
+ "public.notification_channels": {
643
+ "name": "notification_channels",
644
+ "schema": "",
645
+ "columns": {
646
+ "id": {
647
+ "name": "id",
648
+ "type": "text",
649
+ "primaryKey": true,
650
+ "notNull": true
651
+ },
652
+ "team_id": {
653
+ "name": "team_id",
654
+ "type": "text",
655
+ "primaryKey": false,
656
+ "notNull": true
657
+ },
658
+ "type": {
659
+ "name": "type",
660
+ "type": "text",
661
+ "primaryKey": false,
662
+ "notNull": true
663
+ },
664
+ "name": {
665
+ "name": "name",
666
+ "type": "text",
667
+ "primaryKey": false,
668
+ "notNull": true
669
+ },
670
+ "config": {
671
+ "name": "config",
672
+ "type": "jsonb",
673
+ "primaryKey": false,
674
+ "notNull": true
675
+ },
676
+ "created_at": {
677
+ "name": "created_at",
678
+ "type": "text",
679
+ "primaryKey": false,
680
+ "notNull": true
681
+ }
682
+ },
683
+ "indexes": {
684
+ "notification_channels_team_idx": {
685
+ "name": "notification_channels_team_idx",
686
+ "columns": [
687
+ {
688
+ "expression": "team_id",
689
+ "isExpression": false,
690
+ "asc": true,
691
+ "nulls": "last"
692
+ }
693
+ ],
694
+ "isUnique": false,
695
+ "concurrently": false,
696
+ "method": "btree",
697
+ "with": {}
698
+ }
699
+ },
700
+ "foreignKeys": {},
701
+ "compositePrimaryKeys": {},
702
+ "uniqueConstraints": {},
703
+ "policies": {},
704
+ "checkConstraints": {},
705
+ "isRLSEnabled": false
706
+ },
707
+ "public.run_leases": {
708
+ "name": "run_leases",
709
+ "schema": "",
710
+ "columns": {
711
+ "token_hash": {
712
+ "name": "token_hash",
713
+ "type": "text",
714
+ "primaryKey": true,
715
+ "notNull": true
716
+ },
717
+ "run_id": {
718
+ "name": "run_id",
719
+ "type": "text",
720
+ "primaryKey": false,
721
+ "notNull": true
722
+ },
723
+ "loop_id": {
724
+ "name": "loop_id",
725
+ "type": "text",
726
+ "primaryKey": false,
727
+ "notNull": true
728
+ },
729
+ "machine_id": {
730
+ "name": "machine_id",
731
+ "type": "text",
732
+ "primaryKey": false,
733
+ "notNull": true
734
+ },
735
+ "role": {
736
+ "name": "role",
737
+ "type": "text",
738
+ "primaryKey": false,
739
+ "notNull": true
740
+ },
741
+ "allow_control": {
742
+ "name": "allow_control",
743
+ "type": "boolean",
744
+ "primaryKey": false,
745
+ "notNull": true,
746
+ "default": false
747
+ },
748
+ "can_set_ui": {
749
+ "name": "can_set_ui",
750
+ "type": "boolean",
751
+ "primaryKey": false,
752
+ "notNull": true,
753
+ "default": false
754
+ },
755
+ "can_set_schema": {
756
+ "name": "can_set_schema",
757
+ "type": "boolean",
758
+ "primaryKey": false,
759
+ "notNull": true,
760
+ "default": false
761
+ },
762
+ "can_set_workflow": {
763
+ "name": "can_set_workflow",
764
+ "type": "boolean",
765
+ "primaryKey": false,
766
+ "notNull": true,
767
+ "default": false
768
+ },
769
+ "can_finish": {
770
+ "name": "can_finish",
771
+ "type": "boolean",
772
+ "primaryKey": false,
773
+ "notNull": true,
774
+ "default": false
775
+ },
776
+ "state": {
777
+ "name": "state",
778
+ "type": "text",
779
+ "primaryKey": false,
780
+ "notNull": true,
781
+ "default": "'active'"
782
+ },
783
+ "expires_at": {
784
+ "name": "expires_at",
785
+ "type": "text",
786
+ "primaryKey": false,
787
+ "notNull": false
788
+ },
789
+ "created_at": {
790
+ "name": "created_at",
791
+ "type": "text",
792
+ "primaryKey": false,
793
+ "notNull": true
794
+ }
795
+ },
796
+ "indexes": {
797
+ "run_leases_run_idx": {
798
+ "name": "run_leases_run_idx",
799
+ "columns": [
800
+ {
801
+ "expression": "run_id",
802
+ "isExpression": false,
803
+ "asc": true,
804
+ "nulls": "last"
805
+ }
806
+ ],
807
+ "isUnique": false,
808
+ "concurrently": false,
809
+ "method": "btree",
810
+ "with": {}
811
+ },
812
+ "run_leases_loop_idx": {
813
+ "name": "run_leases_loop_idx",
814
+ "columns": [
815
+ {
816
+ "expression": "loop_id",
817
+ "isExpression": false,
818
+ "asc": true,
819
+ "nulls": "last"
820
+ }
821
+ ],
822
+ "isUnique": false,
823
+ "concurrently": false,
824
+ "method": "btree",
825
+ "with": {}
826
+ }
827
+ },
828
+ "foreignKeys": {},
829
+ "compositePrimaryKeys": {},
830
+ "uniqueConstraints": {},
831
+ "policies": {},
832
+ "checkConstraints": {},
833
+ "isRLSEnabled": false
834
+ },
835
+ "public.run_report_receipts": {
836
+ "name": "run_report_receipts",
837
+ "schema": "",
838
+ "columns": {
839
+ "report_id": {
840
+ "name": "report_id",
841
+ "type": "text",
842
+ "primaryKey": true,
843
+ "notNull": true
844
+ },
845
+ "run_id": {
846
+ "name": "run_id",
847
+ "type": "text",
848
+ "primaryKey": false,
849
+ "notNull": true
850
+ },
851
+ "payload_digest": {
852
+ "name": "payload_digest",
853
+ "type": "text",
854
+ "primaryKey": false,
855
+ "notNull": true
856
+ },
857
+ "ack_status": {
858
+ "name": "ack_status",
859
+ "type": "integer",
860
+ "primaryKey": false,
861
+ "notNull": true
862
+ },
863
+ "ack_body": {
864
+ "name": "ack_body",
865
+ "type": "jsonb",
866
+ "primaryKey": false,
867
+ "notNull": true
868
+ },
869
+ "created_at": {
870
+ "name": "created_at",
871
+ "type": "timestamp with time zone",
872
+ "primaryKey": false,
873
+ "notNull": true
874
+ }
875
+ },
876
+ "indexes": {
877
+ "report_receipts_created": {
878
+ "name": "report_receipts_created",
879
+ "columns": [
880
+ {
881
+ "expression": "created_at",
882
+ "isExpression": false,
883
+ "asc": true,
884
+ "nulls": "last"
885
+ }
886
+ ],
887
+ "isUnique": false,
888
+ "concurrently": false,
889
+ "method": "btree",
890
+ "with": {}
891
+ }
892
+ },
893
+ "foreignKeys": {},
894
+ "compositePrimaryKeys": {},
895
+ "uniqueConstraints": {},
896
+ "policies": {},
897
+ "checkConstraints": {},
898
+ "isRLSEnabled": false
899
+ },
900
+ "public.run_snapshots": {
901
+ "name": "run_snapshots",
902
+ "schema": "",
903
+ "columns": {
904
+ "run_id": {
905
+ "name": "run_id",
906
+ "type": "text",
907
+ "primaryKey": true,
908
+ "notNull": true
909
+ },
910
+ "loop_id": {
911
+ "name": "loop_id",
912
+ "type": "text",
913
+ "primaryKey": false,
914
+ "notNull": true
915
+ },
916
+ "manifest": {
917
+ "name": "manifest",
918
+ "type": "jsonb",
919
+ "primaryKey": false,
920
+ "notNull": true
921
+ },
922
+ "created_at": {
923
+ "name": "created_at",
924
+ "type": "text",
925
+ "primaryKey": false,
926
+ "notNull": true
927
+ }
928
+ },
929
+ "indexes": {
930
+ "run_snapshots_loop_idx": {
931
+ "name": "run_snapshots_loop_idx",
932
+ "columns": [
933
+ {
934
+ "expression": "loop_id",
935
+ "isExpression": false,
936
+ "asc": true,
937
+ "nulls": "last"
938
+ }
939
+ ],
940
+ "isUnique": false,
941
+ "concurrently": false,
942
+ "method": "btree",
943
+ "with": {}
944
+ }
945
+ },
946
+ "foreignKeys": {},
947
+ "compositePrimaryKeys": {},
948
+ "uniqueConstraints": {},
949
+ "policies": {},
950
+ "checkConstraints": {},
951
+ "isRLSEnabled": false
952
+ },
953
+ "public.runs": {
954
+ "name": "runs",
955
+ "schema": "",
956
+ "columns": {
957
+ "id": {
958
+ "name": "id",
959
+ "type": "text",
960
+ "primaryKey": true,
961
+ "notNull": true
962
+ },
963
+ "loop_id": {
964
+ "name": "loop_id",
965
+ "type": "text",
966
+ "primaryKey": false,
967
+ "notNull": true
968
+ },
969
+ "user_id": {
970
+ "name": "user_id",
971
+ "type": "text",
972
+ "primaryKey": false,
973
+ "notNull": true
974
+ },
975
+ "machine_id": {
976
+ "name": "machine_id",
977
+ "type": "text",
978
+ "primaryKey": false,
979
+ "notNull": true
980
+ },
981
+ "agent": {
982
+ "name": "agent",
983
+ "type": "text",
984
+ "primaryKey": false,
985
+ "notNull": false
986
+ },
987
+ "phase": {
988
+ "name": "phase",
989
+ "type": "text",
990
+ "primaryKey": false,
991
+ "notNull": true
992
+ },
993
+ "role": {
994
+ "name": "role",
995
+ "type": "text",
996
+ "primaryKey": false,
997
+ "notNull": true
998
+ },
999
+ "requested_by": {
1000
+ "name": "requested_by",
1001
+ "type": "text",
1002
+ "primaryKey": false,
1003
+ "notNull": true,
1004
+ "default": "'system'"
1005
+ },
1006
+ "request_text": {
1007
+ "name": "request_text",
1008
+ "type": "text",
1009
+ "primaryKey": false,
1010
+ "notNull": false
1011
+ },
1012
+ "ts": {
1013
+ "name": "ts",
1014
+ "type": "text",
1015
+ "primaryKey": false,
1016
+ "notNull": true
1017
+ },
1018
+ "created_at": {
1019
+ "name": "created_at",
1020
+ "type": "text",
1021
+ "primaryKey": false,
1022
+ "notNull": true,
1023
+ "default": "CURRENT_TIMESTAMP::text"
1024
+ },
1025
+ "updated_at": {
1026
+ "name": "updated_at",
1027
+ "type": "text",
1028
+ "primaryKey": false,
1029
+ "notNull": true,
1030
+ "default": "CURRENT_TIMESTAMP::text"
1031
+ },
1032
+ "outcome": {
1033
+ "name": "outcome",
1034
+ "type": "text",
1035
+ "primaryKey": false,
1036
+ "notNull": false
1037
+ },
1038
+ "status": {
1039
+ "name": "status",
1040
+ "type": "text",
1041
+ "primaryKey": false,
1042
+ "notNull": false
1043
+ },
1044
+ "message": {
1045
+ "name": "message",
1046
+ "type": "text",
1047
+ "primaryKey": false,
1048
+ "notNull": false
1049
+ },
1050
+ "duration_ms": {
1051
+ "name": "duration_ms",
1052
+ "type": "integer",
1053
+ "primaryKey": false,
1054
+ "notNull": false
1055
+ },
1056
+ "exit_code": {
1057
+ "name": "exit_code",
1058
+ "type": "integer",
1059
+ "primaryKey": false,
1060
+ "notNull": false
1061
+ },
1062
+ "final_text": {
1063
+ "name": "final_text",
1064
+ "type": "text",
1065
+ "primaryKey": false,
1066
+ "notNull": false
1067
+ },
1068
+ "error": {
1069
+ "name": "error",
1070
+ "type": "text",
1071
+ "primaryKey": false,
1072
+ "notNull": false
1073
+ },
1074
+ "state": {
1075
+ "name": "state",
1076
+ "type": "jsonb",
1077
+ "primaryKey": false,
1078
+ "notNull": false
1079
+ },
1080
+ "control": {
1081
+ "name": "control",
1082
+ "type": "jsonb",
1083
+ "primaryKey": false,
1084
+ "notNull": false
1085
+ },
1086
+ "session_id": {
1087
+ "name": "session_id",
1088
+ "type": "text",
1089
+ "primaryKey": false,
1090
+ "notNull": false
1091
+ },
1092
+ "usage": {
1093
+ "name": "usage",
1094
+ "type": "jsonb",
1095
+ "primaryKey": false,
1096
+ "notNull": false
1097
+ },
1098
+ "cancel_requested_at": {
1099
+ "name": "cancel_requested_at",
1100
+ "type": "timestamp with time zone",
1101
+ "primaryKey": false,
1102
+ "notNull": false
1103
+ },
1104
+ "heartbeat_at": {
1105
+ "name": "heartbeat_at",
1106
+ "type": "text",
1107
+ "primaryKey": false,
1108
+ "notNull": false
1109
+ },
1110
+ "deferred_at": {
1111
+ "name": "deferred_at",
1112
+ "type": "text",
1113
+ "primaryKey": false,
1114
+ "notNull": false
1115
+ }
1116
+ },
1117
+ "indexes": {
1118
+ "runs_loop_idx": {
1119
+ "name": "runs_loop_idx",
1120
+ "columns": [
1121
+ {
1122
+ "expression": "loop_id",
1123
+ "isExpression": false,
1124
+ "asc": true,
1125
+ "nulls": "last"
1126
+ }
1127
+ ],
1128
+ "isUnique": false,
1129
+ "concurrently": false,
1130
+ "method": "btree",
1131
+ "with": {}
1132
+ },
1133
+ "runs_phase_idx": {
1134
+ "name": "runs_phase_idx",
1135
+ "columns": [
1136
+ {
1137
+ "expression": "phase",
1138
+ "isExpression": false,
1139
+ "asc": true,
1140
+ "nulls": "last"
1141
+ }
1142
+ ],
1143
+ "isUnique": false,
1144
+ "concurrently": false,
1145
+ "method": "btree",
1146
+ "with": {}
1147
+ },
1148
+ "runs_machine_phase_ready_idx": {
1149
+ "name": "runs_machine_phase_ready_idx",
1150
+ "columns": [
1151
+ {
1152
+ "expression": "machine_id",
1153
+ "isExpression": false,
1154
+ "asc": true,
1155
+ "nulls": "last"
1156
+ },
1157
+ {
1158
+ "expression": "phase",
1159
+ "isExpression": false,
1160
+ "asc": true,
1161
+ "nulls": "last"
1162
+ }
1163
+ ],
1164
+ "isUnique": false,
1165
+ "concurrently": false,
1166
+ "method": "btree",
1167
+ "with": {}
1168
+ },
1169
+ "runs_loop_ts_idx": {
1170
+ "name": "runs_loop_ts_idx",
1171
+ "columns": [
1172
+ {
1173
+ "expression": "loop_id",
1174
+ "isExpression": false,
1175
+ "asc": true,
1176
+ "nulls": "last"
1177
+ },
1178
+ {
1179
+ "expression": "ts",
1180
+ "isExpression": false,
1181
+ "asc": true,
1182
+ "nulls": "last"
1183
+ }
1184
+ ],
1185
+ "isUnique": false,
1186
+ "concurrently": false,
1187
+ "method": "btree",
1188
+ "with": {}
1189
+ },
1190
+ "runs_loop_role_pending_idx": {
1191
+ "name": "runs_loop_role_pending_idx",
1192
+ "columns": [
1193
+ {
1194
+ "expression": "loop_id",
1195
+ "isExpression": false,
1196
+ "asc": true,
1197
+ "nulls": "last"
1198
+ },
1199
+ {
1200
+ "expression": "role",
1201
+ "isExpression": false,
1202
+ "asc": true,
1203
+ "nulls": "last"
1204
+ }
1205
+ ],
1206
+ "isUnique": true,
1207
+ "where": "\"runs\".\"phase\" = 'pending'",
1208
+ "concurrently": false,
1209
+ "method": "btree",
1210
+ "with": {}
1211
+ },
1212
+ "one_running_run_per_machine": {
1213
+ "name": "one_running_run_per_machine",
1214
+ "columns": [
1215
+ {
1216
+ "expression": "machine_id",
1217
+ "isExpression": false,
1218
+ "asc": true,
1219
+ "nulls": "last"
1220
+ }
1221
+ ],
1222
+ "isUnique": true,
1223
+ "where": "\"runs\".\"phase\" = 'running'",
1224
+ "concurrently": false,
1225
+ "method": "btree",
1226
+ "with": {}
1227
+ }
1228
+ },
1229
+ "foreignKeys": {},
1230
+ "compositePrimaryKeys": {},
1231
+ "uniqueConstraints": {},
1232
+ "policies": {},
1233
+ "checkConstraints": {},
1234
+ "isRLSEnabled": false
1235
+ },
1236
+ "public.team_invites": {
1237
+ "name": "team_invites",
1238
+ "schema": "",
1239
+ "columns": {
1240
+ "token": {
1241
+ "name": "token",
1242
+ "type": "text",
1243
+ "primaryKey": true,
1244
+ "notNull": true
1245
+ },
1246
+ "team_id": {
1247
+ "name": "team_id",
1248
+ "type": "text",
1249
+ "primaryKey": false,
1250
+ "notNull": true
1251
+ },
1252
+ "role": {
1253
+ "name": "role",
1254
+ "type": "text",
1255
+ "primaryKey": false,
1256
+ "notNull": true,
1257
+ "default": "'member'"
1258
+ },
1259
+ "invited_by_user_id": {
1260
+ "name": "invited_by_user_id",
1261
+ "type": "text",
1262
+ "primaryKey": false,
1263
+ "notNull": true
1264
+ },
1265
+ "expires_at": {
1266
+ "name": "expires_at",
1267
+ "type": "text",
1268
+ "primaryKey": false,
1269
+ "notNull": true
1270
+ },
1271
+ "redeemed_at": {
1272
+ "name": "redeemed_at",
1273
+ "type": "text",
1274
+ "primaryKey": false,
1275
+ "notNull": false
1276
+ },
1277
+ "redeemed_by_user_id": {
1278
+ "name": "redeemed_by_user_id",
1279
+ "type": "text",
1280
+ "primaryKey": false,
1281
+ "notNull": false
1282
+ },
1283
+ "created_at": {
1284
+ "name": "created_at",
1285
+ "type": "text",
1286
+ "primaryKey": false,
1287
+ "notNull": true
1288
+ }
1289
+ },
1290
+ "indexes": {
1291
+ "team_invites_team_idx": {
1292
+ "name": "team_invites_team_idx",
1293
+ "columns": [
1294
+ {
1295
+ "expression": "team_id",
1296
+ "isExpression": false,
1297
+ "asc": true,
1298
+ "nulls": "last"
1299
+ }
1300
+ ],
1301
+ "isUnique": false,
1302
+ "concurrently": false,
1303
+ "method": "btree",
1304
+ "with": {}
1305
+ }
1306
+ },
1307
+ "foreignKeys": {},
1308
+ "compositePrimaryKeys": {},
1309
+ "uniqueConstraints": {},
1310
+ "policies": {},
1311
+ "checkConstraints": {},
1312
+ "isRLSEnabled": false
1313
+ },
1314
+ "public.team_members": {
1315
+ "name": "team_members",
1316
+ "schema": "",
1317
+ "columns": {
1318
+ "id": {
1319
+ "name": "id",
1320
+ "type": "text",
1321
+ "primaryKey": true,
1322
+ "notNull": true
1323
+ },
1324
+ "team_id": {
1325
+ "name": "team_id",
1326
+ "type": "text",
1327
+ "primaryKey": false,
1328
+ "notNull": true
1329
+ },
1330
+ "user_id": {
1331
+ "name": "user_id",
1332
+ "type": "text",
1333
+ "primaryKey": false,
1334
+ "notNull": true
1335
+ },
1336
+ "role": {
1337
+ "name": "role",
1338
+ "type": "text",
1339
+ "primaryKey": false,
1340
+ "notNull": true,
1341
+ "default": "'member'"
1342
+ },
1343
+ "created_at": {
1344
+ "name": "created_at",
1345
+ "type": "text",
1346
+ "primaryKey": false,
1347
+ "notNull": true
1348
+ }
1349
+ },
1350
+ "indexes": {
1351
+ "team_members_team_idx": {
1352
+ "name": "team_members_team_idx",
1353
+ "columns": [
1354
+ {
1355
+ "expression": "team_id",
1356
+ "isExpression": false,
1357
+ "asc": true,
1358
+ "nulls": "last"
1359
+ }
1360
+ ],
1361
+ "isUnique": false,
1362
+ "concurrently": false,
1363
+ "method": "btree",
1364
+ "with": {}
1365
+ },
1366
+ "team_members_user_idx": {
1367
+ "name": "team_members_user_idx",
1368
+ "columns": [
1369
+ {
1370
+ "expression": "user_id",
1371
+ "isExpression": false,
1372
+ "asc": true,
1373
+ "nulls": "last"
1374
+ }
1375
+ ],
1376
+ "isUnique": false,
1377
+ "concurrently": false,
1378
+ "method": "btree",
1379
+ "with": {}
1380
+ }
1381
+ },
1382
+ "foreignKeys": {},
1383
+ "compositePrimaryKeys": {},
1384
+ "uniqueConstraints": {},
1385
+ "policies": {},
1386
+ "checkConstraints": {},
1387
+ "isRLSEnabled": false
1388
+ },
1389
+ "public.teams": {
1390
+ "name": "teams",
1391
+ "schema": "",
1392
+ "columns": {
1393
+ "id": {
1394
+ "name": "id",
1395
+ "type": "text",
1396
+ "primaryKey": true,
1397
+ "notNull": true
1398
+ },
1399
+ "name": {
1400
+ "name": "name",
1401
+ "type": "text",
1402
+ "primaryKey": false,
1403
+ "notNull": true
1404
+ },
1405
+ "owner_user_id": {
1406
+ "name": "owner_user_id",
1407
+ "type": "text",
1408
+ "primaryKey": false,
1409
+ "notNull": false
1410
+ },
1411
+ "created_at": {
1412
+ "name": "created_at",
1413
+ "type": "text",
1414
+ "primaryKey": false,
1415
+ "notNull": true
1416
+ }
1417
+ },
1418
+ "indexes": {},
1419
+ "foreignKeys": {},
1420
+ "compositePrimaryKeys": {},
1421
+ "uniqueConstraints": {},
1422
+ "policies": {},
1423
+ "checkConstraints": {},
1424
+ "isRLSEnabled": false
1425
+ },
1426
+ "public.account": {
1427
+ "name": "account",
1428
+ "schema": "",
1429
+ "columns": {
1430
+ "id": {
1431
+ "name": "id",
1432
+ "type": "text",
1433
+ "primaryKey": true,
1434
+ "notNull": true
1435
+ },
1436
+ "account_id": {
1437
+ "name": "account_id",
1438
+ "type": "text",
1439
+ "primaryKey": false,
1440
+ "notNull": true
1441
+ },
1442
+ "provider_id": {
1443
+ "name": "provider_id",
1444
+ "type": "text",
1445
+ "primaryKey": false,
1446
+ "notNull": true
1447
+ },
1448
+ "user_id": {
1449
+ "name": "user_id",
1450
+ "type": "text",
1451
+ "primaryKey": false,
1452
+ "notNull": true
1453
+ },
1454
+ "access_token": {
1455
+ "name": "access_token",
1456
+ "type": "text",
1457
+ "primaryKey": false,
1458
+ "notNull": false
1459
+ },
1460
+ "refresh_token": {
1461
+ "name": "refresh_token",
1462
+ "type": "text",
1463
+ "primaryKey": false,
1464
+ "notNull": false
1465
+ },
1466
+ "id_token": {
1467
+ "name": "id_token",
1468
+ "type": "text",
1469
+ "primaryKey": false,
1470
+ "notNull": false
1471
+ },
1472
+ "access_token_expires_at": {
1473
+ "name": "access_token_expires_at",
1474
+ "type": "timestamp",
1475
+ "primaryKey": false,
1476
+ "notNull": false
1477
+ },
1478
+ "refresh_token_expires_at": {
1479
+ "name": "refresh_token_expires_at",
1480
+ "type": "timestamp",
1481
+ "primaryKey": false,
1482
+ "notNull": false
1483
+ },
1484
+ "scope": {
1485
+ "name": "scope",
1486
+ "type": "text",
1487
+ "primaryKey": false,
1488
+ "notNull": false
1489
+ },
1490
+ "password": {
1491
+ "name": "password",
1492
+ "type": "text",
1493
+ "primaryKey": false,
1494
+ "notNull": false
1495
+ },
1496
+ "created_at": {
1497
+ "name": "created_at",
1498
+ "type": "timestamp",
1499
+ "primaryKey": false,
1500
+ "notNull": true,
1501
+ "default": "now()"
1502
+ },
1503
+ "updated_at": {
1504
+ "name": "updated_at",
1505
+ "type": "timestamp",
1506
+ "primaryKey": false,
1507
+ "notNull": true
1508
+ }
1509
+ },
1510
+ "indexes": {
1511
+ "account_userId_idx": {
1512
+ "name": "account_userId_idx",
1513
+ "columns": [
1514
+ {
1515
+ "expression": "user_id",
1516
+ "isExpression": false,
1517
+ "asc": true,
1518
+ "nulls": "last"
1519
+ }
1520
+ ],
1521
+ "isUnique": false,
1522
+ "concurrently": false,
1523
+ "method": "btree",
1524
+ "with": {}
1525
+ }
1526
+ },
1527
+ "foreignKeys": {
1528
+ "account_user_id_user_id_fk": {
1529
+ "name": "account_user_id_user_id_fk",
1530
+ "tableFrom": "account",
1531
+ "tableTo": "user",
1532
+ "columnsFrom": [
1533
+ "user_id"
1534
+ ],
1535
+ "columnsTo": [
1536
+ "id"
1537
+ ],
1538
+ "onDelete": "cascade",
1539
+ "onUpdate": "no action"
1540
+ }
1541
+ },
1542
+ "compositePrimaryKeys": {},
1543
+ "uniqueConstraints": {},
1544
+ "policies": {},
1545
+ "checkConstraints": {},
1546
+ "isRLSEnabled": false
1547
+ },
1548
+ "public.session": {
1549
+ "name": "session",
1550
+ "schema": "",
1551
+ "columns": {
1552
+ "id": {
1553
+ "name": "id",
1554
+ "type": "text",
1555
+ "primaryKey": true,
1556
+ "notNull": true
1557
+ },
1558
+ "expires_at": {
1559
+ "name": "expires_at",
1560
+ "type": "timestamp",
1561
+ "primaryKey": false,
1562
+ "notNull": true
1563
+ },
1564
+ "token": {
1565
+ "name": "token",
1566
+ "type": "text",
1567
+ "primaryKey": false,
1568
+ "notNull": true
1569
+ },
1570
+ "created_at": {
1571
+ "name": "created_at",
1572
+ "type": "timestamp",
1573
+ "primaryKey": false,
1574
+ "notNull": true,
1575
+ "default": "now()"
1576
+ },
1577
+ "updated_at": {
1578
+ "name": "updated_at",
1579
+ "type": "timestamp",
1580
+ "primaryKey": false,
1581
+ "notNull": true
1582
+ },
1583
+ "ip_address": {
1584
+ "name": "ip_address",
1585
+ "type": "text",
1586
+ "primaryKey": false,
1587
+ "notNull": false
1588
+ },
1589
+ "user_agent": {
1590
+ "name": "user_agent",
1591
+ "type": "text",
1592
+ "primaryKey": false,
1593
+ "notNull": false
1594
+ },
1595
+ "user_id": {
1596
+ "name": "user_id",
1597
+ "type": "text",
1598
+ "primaryKey": false,
1599
+ "notNull": true
1600
+ }
1601
+ },
1602
+ "indexes": {
1603
+ "session_userId_idx": {
1604
+ "name": "session_userId_idx",
1605
+ "columns": [
1606
+ {
1607
+ "expression": "user_id",
1608
+ "isExpression": false,
1609
+ "asc": true,
1610
+ "nulls": "last"
1611
+ }
1612
+ ],
1613
+ "isUnique": false,
1614
+ "concurrently": false,
1615
+ "method": "btree",
1616
+ "with": {}
1617
+ }
1618
+ },
1619
+ "foreignKeys": {
1620
+ "session_user_id_user_id_fk": {
1621
+ "name": "session_user_id_user_id_fk",
1622
+ "tableFrom": "session",
1623
+ "tableTo": "user",
1624
+ "columnsFrom": [
1625
+ "user_id"
1626
+ ],
1627
+ "columnsTo": [
1628
+ "id"
1629
+ ],
1630
+ "onDelete": "cascade",
1631
+ "onUpdate": "no action"
1632
+ }
1633
+ },
1634
+ "compositePrimaryKeys": {},
1635
+ "uniqueConstraints": {
1636
+ "session_token_unique": {
1637
+ "name": "session_token_unique",
1638
+ "nullsNotDistinct": false,
1639
+ "columns": [
1640
+ "token"
1641
+ ]
1642
+ }
1643
+ },
1644
+ "policies": {},
1645
+ "checkConstraints": {},
1646
+ "isRLSEnabled": false
1647
+ },
1648
+ "public.user": {
1649
+ "name": "user",
1650
+ "schema": "",
1651
+ "columns": {
1652
+ "id": {
1653
+ "name": "id",
1654
+ "type": "text",
1655
+ "primaryKey": true,
1656
+ "notNull": true
1657
+ },
1658
+ "name": {
1659
+ "name": "name",
1660
+ "type": "text",
1661
+ "primaryKey": false,
1662
+ "notNull": true
1663
+ },
1664
+ "email": {
1665
+ "name": "email",
1666
+ "type": "text",
1667
+ "primaryKey": false,
1668
+ "notNull": true
1669
+ },
1670
+ "email_verified": {
1671
+ "name": "email_verified",
1672
+ "type": "boolean",
1673
+ "primaryKey": false,
1674
+ "notNull": true,
1675
+ "default": false
1676
+ },
1677
+ "image": {
1678
+ "name": "image",
1679
+ "type": "text",
1680
+ "primaryKey": false,
1681
+ "notNull": false
1682
+ },
1683
+ "created_at": {
1684
+ "name": "created_at",
1685
+ "type": "timestamp",
1686
+ "primaryKey": false,
1687
+ "notNull": true,
1688
+ "default": "now()"
1689
+ },
1690
+ "updated_at": {
1691
+ "name": "updated_at",
1692
+ "type": "timestamp",
1693
+ "primaryKey": false,
1694
+ "notNull": true,
1695
+ "default": "now()"
1696
+ }
1697
+ },
1698
+ "indexes": {},
1699
+ "foreignKeys": {},
1700
+ "compositePrimaryKeys": {},
1701
+ "uniqueConstraints": {
1702
+ "user_email_unique": {
1703
+ "name": "user_email_unique",
1704
+ "nullsNotDistinct": false,
1705
+ "columns": [
1706
+ "email"
1707
+ ]
1708
+ }
1709
+ },
1710
+ "policies": {},
1711
+ "checkConstraints": {},
1712
+ "isRLSEnabled": false
1713
+ },
1714
+ "public.verification": {
1715
+ "name": "verification",
1716
+ "schema": "",
1717
+ "columns": {
1718
+ "id": {
1719
+ "name": "id",
1720
+ "type": "text",
1721
+ "primaryKey": true,
1722
+ "notNull": true
1723
+ },
1724
+ "identifier": {
1725
+ "name": "identifier",
1726
+ "type": "text",
1727
+ "primaryKey": false,
1728
+ "notNull": true
1729
+ },
1730
+ "value": {
1731
+ "name": "value",
1732
+ "type": "text",
1733
+ "primaryKey": false,
1734
+ "notNull": true
1735
+ },
1736
+ "expires_at": {
1737
+ "name": "expires_at",
1738
+ "type": "timestamp",
1739
+ "primaryKey": false,
1740
+ "notNull": true
1741
+ },
1742
+ "created_at": {
1743
+ "name": "created_at",
1744
+ "type": "timestamp",
1745
+ "primaryKey": false,
1746
+ "notNull": true,
1747
+ "default": "now()"
1748
+ },
1749
+ "updated_at": {
1750
+ "name": "updated_at",
1751
+ "type": "timestamp",
1752
+ "primaryKey": false,
1753
+ "notNull": true,
1754
+ "default": "now()"
1755
+ }
1756
+ },
1757
+ "indexes": {
1758
+ "verification_identifier_idx": {
1759
+ "name": "verification_identifier_idx",
1760
+ "columns": [
1761
+ {
1762
+ "expression": "identifier",
1763
+ "isExpression": false,
1764
+ "asc": true,
1765
+ "nulls": "last"
1766
+ }
1767
+ ],
1768
+ "isUnique": false,
1769
+ "concurrently": false,
1770
+ "method": "btree",
1771
+ "with": {}
1772
+ }
1773
+ },
1774
+ "foreignKeys": {},
1775
+ "compositePrimaryKeys": {},
1776
+ "uniqueConstraints": {},
1777
+ "policies": {},
1778
+ "checkConstraints": {},
1779
+ "isRLSEnabled": false
1780
+ }
1781
+ },
1782
+ "enums": {},
1783
+ "schemas": {},
1784
+ "sequences": {},
1785
+ "roles": {},
1786
+ "policies": {},
1787
+ "views": {},
1788
+ "_meta": {
1789
+ "columns": {},
1790
+ "schemas": {},
1791
+ "tables": {}
1792
+ }
1793
+ }