@crewx/sdk 0.9.0-rc.61 → 0.9.0-rc.63

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.
@@ -0,0 +1,2315 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "9ccd911a-d8b9-4c69-8049-76b9c06b516e",
5
+ "prevId": "d73887a8-acd0-47f1-a202-8c8dadce4ea3",
6
+ "tables": {
7
+ "workspaces": {
8
+ "name": "workspaces",
9
+ "columns": {
10
+ "id": {
11
+ "name": "id",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "slug": {
18
+ "name": "slug",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "name": {
25
+ "name": "name",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ },
31
+ "workspace_path": {
32
+ "name": "workspace_path",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": false,
36
+ "autoincrement": false
37
+ },
38
+ "description": {
39
+ "name": "description",
40
+ "type": "text",
41
+ "primaryKey": false,
42
+ "notNull": false,
43
+ "autoincrement": false
44
+ },
45
+ "is_active": {
46
+ "name": "is_active",
47
+ "type": "integer",
48
+ "primaryKey": false,
49
+ "notNull": true,
50
+ "autoincrement": false,
51
+ "default": 1
52
+ },
53
+ "created_at": {
54
+ "name": "created_at",
55
+ "type": "text",
56
+ "primaryKey": false,
57
+ "notNull": true,
58
+ "autoincrement": false
59
+ },
60
+ "updated_at": {
61
+ "name": "updated_at",
62
+ "type": "text",
63
+ "primaryKey": false,
64
+ "notNull": true,
65
+ "autoincrement": false
66
+ }
67
+ },
68
+ "indexes": {
69
+ "workspaces_slug_unique": {
70
+ "name": "workspaces_slug_unique",
71
+ "columns": [
72
+ "slug"
73
+ ],
74
+ "isUnique": true
75
+ }
76
+ },
77
+ "foreignKeys": {},
78
+ "compositePrimaryKeys": {},
79
+ "uniqueConstraints": {},
80
+ "checkConstraints": {}
81
+ },
82
+ "tasks": {
83
+ "name": "tasks",
84
+ "columns": {
85
+ "id": {
86
+ "name": "id",
87
+ "type": "text",
88
+ "primaryKey": true,
89
+ "notNull": true,
90
+ "autoincrement": false
91
+ },
92
+ "agent_id": {
93
+ "name": "agent_id",
94
+ "type": "text",
95
+ "primaryKey": false,
96
+ "notNull": true,
97
+ "autoincrement": false
98
+ },
99
+ "user_id": {
100
+ "name": "user_id",
101
+ "type": "text",
102
+ "primaryKey": false,
103
+ "notNull": false,
104
+ "autoincrement": false
105
+ },
106
+ "prompt": {
107
+ "name": "prompt",
108
+ "type": "text",
109
+ "primaryKey": false,
110
+ "notNull": true,
111
+ "autoincrement": false
112
+ },
113
+ "mode": {
114
+ "name": "mode",
115
+ "type": "text",
116
+ "primaryKey": false,
117
+ "notNull": true,
118
+ "autoincrement": false,
119
+ "default": "'execute'"
120
+ },
121
+ "status": {
122
+ "name": "status",
123
+ "type": "text",
124
+ "primaryKey": false,
125
+ "notNull": true,
126
+ "autoincrement": false,
127
+ "default": "'running'"
128
+ },
129
+ "result": {
130
+ "name": "result",
131
+ "type": "text",
132
+ "primaryKey": false,
133
+ "notNull": false,
134
+ "autoincrement": false
135
+ },
136
+ "error": {
137
+ "name": "error",
138
+ "type": "text",
139
+ "primaryKey": false,
140
+ "notNull": false,
141
+ "autoincrement": false
142
+ },
143
+ "started_at": {
144
+ "name": "started_at",
145
+ "type": "text",
146
+ "primaryKey": false,
147
+ "notNull": true,
148
+ "autoincrement": false
149
+ },
150
+ "completed_at": {
151
+ "name": "completed_at",
152
+ "type": "text",
153
+ "primaryKey": false,
154
+ "notNull": false,
155
+ "autoincrement": false
156
+ },
157
+ "duration_ms": {
158
+ "name": "duration_ms",
159
+ "type": "integer",
160
+ "primaryKey": false,
161
+ "notNull": false,
162
+ "autoincrement": false
163
+ },
164
+ "metadata": {
165
+ "name": "metadata",
166
+ "type": "text",
167
+ "primaryKey": false,
168
+ "notNull": false,
169
+ "autoincrement": false
170
+ },
171
+ "workspace_id": {
172
+ "name": "workspace_id",
173
+ "type": "text",
174
+ "primaryKey": false,
175
+ "notNull": false,
176
+ "autoincrement": false
177
+ },
178
+ "trace_id": {
179
+ "name": "trace_id",
180
+ "type": "text",
181
+ "primaryKey": false,
182
+ "notNull": false,
183
+ "autoincrement": false
184
+ },
185
+ "parent_task_id": {
186
+ "name": "parent_task_id",
187
+ "type": "text",
188
+ "primaryKey": false,
189
+ "notNull": false,
190
+ "autoincrement": false
191
+ },
192
+ "caller_agent_id": {
193
+ "name": "caller_agent_id",
194
+ "type": "text",
195
+ "primaryKey": false,
196
+ "notNull": false,
197
+ "autoincrement": false
198
+ },
199
+ "model": {
200
+ "name": "model",
201
+ "type": "text",
202
+ "primaryKey": false,
203
+ "notNull": false,
204
+ "autoincrement": false
205
+ },
206
+ "platform": {
207
+ "name": "platform",
208
+ "type": "text",
209
+ "primaryKey": false,
210
+ "notNull": false,
211
+ "autoincrement": false,
212
+ "default": "'cli'"
213
+ },
214
+ "crewx_version": {
215
+ "name": "crewx_version",
216
+ "type": "text",
217
+ "primaryKey": false,
218
+ "notNull": false,
219
+ "autoincrement": false
220
+ },
221
+ "input_tokens": {
222
+ "name": "input_tokens",
223
+ "type": "integer",
224
+ "primaryKey": false,
225
+ "notNull": false,
226
+ "autoincrement": false,
227
+ "default": 0
228
+ },
229
+ "output_tokens": {
230
+ "name": "output_tokens",
231
+ "type": "integer",
232
+ "primaryKey": false,
233
+ "notNull": false,
234
+ "autoincrement": false,
235
+ "default": 0
236
+ },
237
+ "cost_usd": {
238
+ "name": "cost_usd",
239
+ "type": "real",
240
+ "primaryKey": false,
241
+ "notNull": false,
242
+ "autoincrement": false,
243
+ "default": 0
244
+ },
245
+ "pid": {
246
+ "name": "pid",
247
+ "type": "integer",
248
+ "primaryKey": false,
249
+ "notNull": false,
250
+ "autoincrement": false
251
+ },
252
+ "rendered_prompt": {
253
+ "name": "rendered_prompt",
254
+ "type": "text",
255
+ "primaryKey": false,
256
+ "notNull": false,
257
+ "autoincrement": false
258
+ },
259
+ "command": {
260
+ "name": "command",
261
+ "type": "text",
262
+ "primaryKey": false,
263
+ "notNull": false,
264
+ "autoincrement": false
265
+ },
266
+ "coding_agent_command": {
267
+ "name": "coding_agent_command",
268
+ "type": "text",
269
+ "primaryKey": false,
270
+ "notNull": false,
271
+ "autoincrement": false
272
+ },
273
+ "exit_code": {
274
+ "name": "exit_code",
275
+ "type": "integer",
276
+ "primaryKey": false,
277
+ "notNull": false,
278
+ "autoincrement": false
279
+ },
280
+ "logs": {
281
+ "name": "logs",
282
+ "type": "text",
283
+ "primaryKey": false,
284
+ "notNull": false,
285
+ "autoincrement": false
286
+ },
287
+ "thread_id": {
288
+ "name": "thread_id",
289
+ "type": "text",
290
+ "primaryKey": false,
291
+ "notNull": false,
292
+ "autoincrement": false
293
+ },
294
+ "workspace_ref": {
295
+ "name": "workspace_ref",
296
+ "type": "text",
297
+ "primaryKey": false,
298
+ "notNull": false,
299
+ "autoincrement": false
300
+ },
301
+ "project_id": {
302
+ "name": "project_id",
303
+ "type": "text",
304
+ "primaryKey": false,
305
+ "notNull": false,
306
+ "autoincrement": false
307
+ },
308
+ "project_ref": {
309
+ "name": "project_ref",
310
+ "type": "text",
311
+ "primaryKey": false,
312
+ "notNull": false,
313
+ "autoincrement": false
314
+ },
315
+ "cached_input_tokens": {
316
+ "name": "cached_input_tokens",
317
+ "type": "integer",
318
+ "primaryKey": false,
319
+ "notNull": false,
320
+ "autoincrement": false,
321
+ "default": 0
322
+ },
323
+ "run_epoch": {
324
+ "name": "run_epoch",
325
+ "type": "integer",
326
+ "primaryKey": false,
327
+ "notNull": false,
328
+ "autoincrement": false,
329
+ "default": 0
330
+ }
331
+ },
332
+ "indexes": {
333
+ "idx_tasks_agent_id": {
334
+ "name": "idx_tasks_agent_id",
335
+ "columns": [
336
+ "agent_id"
337
+ ],
338
+ "isUnique": false
339
+ },
340
+ "idx_tasks_status": {
341
+ "name": "idx_tasks_status",
342
+ "columns": [
343
+ "status"
344
+ ],
345
+ "isUnique": false
346
+ },
347
+ "idx_tasks_started_at": {
348
+ "name": "idx_tasks_started_at",
349
+ "columns": [
350
+ "started_at"
351
+ ],
352
+ "isUnique": false
353
+ },
354
+ "idx_tasks_trace_id": {
355
+ "name": "idx_tasks_trace_id",
356
+ "columns": [
357
+ "trace_id"
358
+ ],
359
+ "isUnique": false
360
+ },
361
+ "idx_tasks_parent_task_id": {
362
+ "name": "idx_tasks_parent_task_id",
363
+ "columns": [
364
+ "parent_task_id"
365
+ ],
366
+ "isUnique": false
367
+ },
368
+ "idx_tasks_crewx_version": {
369
+ "name": "idx_tasks_crewx_version",
370
+ "columns": [
371
+ "crewx_version"
372
+ ],
373
+ "isUnique": false
374
+ },
375
+ "idx_tasks_pid": {
376
+ "name": "idx_tasks_pid",
377
+ "columns": [
378
+ "pid"
379
+ ],
380
+ "isUnique": false
381
+ },
382
+ "idx_tasks_thread_id": {
383
+ "name": "idx_tasks_thread_id",
384
+ "columns": [
385
+ "thread_id"
386
+ ],
387
+ "isUnique": false
388
+ },
389
+ "idx_tasks_workspace_id": {
390
+ "name": "idx_tasks_workspace_id",
391
+ "columns": [
392
+ "workspace_id"
393
+ ],
394
+ "isUnique": false
395
+ },
396
+ "idx_tasks_workspace_ref": {
397
+ "name": "idx_tasks_workspace_ref",
398
+ "columns": [
399
+ "workspace_ref"
400
+ ],
401
+ "isUnique": false
402
+ },
403
+ "idx_tasks_project_id": {
404
+ "name": "idx_tasks_project_id",
405
+ "columns": [
406
+ "project_id"
407
+ ],
408
+ "isUnique": false
409
+ },
410
+ "idx_tasks_ws_started": {
411
+ "name": "idx_tasks_ws_started",
412
+ "columns": [
413
+ "workspace_id",
414
+ "started_at"
415
+ ],
416
+ "isUnique": false
417
+ }
418
+ },
419
+ "foreignKeys": {},
420
+ "compositePrimaryKeys": {},
421
+ "uniqueConstraints": {},
422
+ "checkConstraints": {}
423
+ },
424
+ "threads": {
425
+ "name": "threads",
426
+ "columns": {
427
+ "id": {
428
+ "name": "id",
429
+ "type": "text",
430
+ "primaryKey": true,
431
+ "notNull": true,
432
+ "autoincrement": false
433
+ },
434
+ "workspace_id": {
435
+ "name": "workspace_id",
436
+ "type": "text",
437
+ "primaryKey": false,
438
+ "notNull": false,
439
+ "autoincrement": false
440
+ },
441
+ "platform": {
442
+ "name": "platform",
443
+ "type": "text",
444
+ "primaryKey": false,
445
+ "notNull": true,
446
+ "autoincrement": false,
447
+ "default": "'cli'"
448
+ },
449
+ "title": {
450
+ "name": "title",
451
+ "type": "text",
452
+ "primaryKey": false,
453
+ "notNull": false,
454
+ "autoincrement": false
455
+ },
456
+ "first_message": {
457
+ "name": "first_message",
458
+ "type": "text",
459
+ "primaryKey": false,
460
+ "notNull": false,
461
+ "autoincrement": false
462
+ },
463
+ "last_message": {
464
+ "name": "last_message",
465
+ "type": "text",
466
+ "primaryKey": false,
467
+ "notNull": false,
468
+ "autoincrement": false
469
+ },
470
+ "message_count": {
471
+ "name": "message_count",
472
+ "type": "integer",
473
+ "primaryKey": false,
474
+ "notNull": true,
475
+ "autoincrement": false,
476
+ "default": 0
477
+ },
478
+ "created_at": {
479
+ "name": "created_at",
480
+ "type": "text",
481
+ "primaryKey": false,
482
+ "notNull": true,
483
+ "autoincrement": false
484
+ },
485
+ "updated_at": {
486
+ "name": "updated_at",
487
+ "type": "text",
488
+ "primaryKey": false,
489
+ "notNull": true,
490
+ "autoincrement": false
491
+ },
492
+ "metadata": {
493
+ "name": "metadata",
494
+ "type": "text",
495
+ "primaryKey": false,
496
+ "notNull": false,
497
+ "autoincrement": false
498
+ },
499
+ "title_locked": {
500
+ "name": "title_locked",
501
+ "type": "integer",
502
+ "primaryKey": false,
503
+ "notNull": true,
504
+ "autoincrement": false,
505
+ "default": 0
506
+ },
507
+ "pinned": {
508
+ "name": "pinned",
509
+ "type": "integer",
510
+ "primaryKey": false,
511
+ "notNull": true,
512
+ "autoincrement": false,
513
+ "default": 0
514
+ },
515
+ "starred": {
516
+ "name": "starred",
517
+ "type": "integer",
518
+ "primaryKey": false,
519
+ "notNull": true,
520
+ "autoincrement": false,
521
+ "default": 0
522
+ }
523
+ },
524
+ "indexes": {
525
+ "idx_threads_updated_at": {
526
+ "name": "idx_threads_updated_at",
527
+ "columns": [
528
+ "updated_at"
529
+ ],
530
+ "isUnique": false
531
+ },
532
+ "idx_threads_workspace_id": {
533
+ "name": "idx_threads_workspace_id",
534
+ "columns": [
535
+ "workspace_id"
536
+ ],
537
+ "isUnique": false
538
+ },
539
+ "idx_threads_ws_updated": {
540
+ "name": "idx_threads_ws_updated",
541
+ "columns": [
542
+ "workspace_id",
543
+ "updated_at"
544
+ ],
545
+ "isUnique": false
546
+ },
547
+ "idx_threads_title": {
548
+ "name": "idx_threads_title",
549
+ "columns": [
550
+ "title"
551
+ ],
552
+ "isUnique": false
553
+ }
554
+ },
555
+ "foreignKeys": {
556
+ "threads_workspace_id_workspaces_id_fk": {
557
+ "name": "threads_workspace_id_workspaces_id_fk",
558
+ "tableFrom": "threads",
559
+ "tableTo": "workspaces",
560
+ "columnsFrom": [
561
+ "workspace_id"
562
+ ],
563
+ "columnsTo": [
564
+ "id"
565
+ ],
566
+ "onDelete": "set null",
567
+ "onUpdate": "no action"
568
+ }
569
+ },
570
+ "compositePrimaryKeys": {},
571
+ "uniqueConstraints": {},
572
+ "checkConstraints": {}
573
+ },
574
+ "spans": {
575
+ "name": "spans",
576
+ "columns": {
577
+ "id": {
578
+ "name": "id",
579
+ "type": "text",
580
+ "primaryKey": true,
581
+ "notNull": true,
582
+ "autoincrement": false
583
+ },
584
+ "task_id": {
585
+ "name": "task_id",
586
+ "type": "text",
587
+ "primaryKey": false,
588
+ "notNull": false,
589
+ "autoincrement": false
590
+ },
591
+ "parent_span_id": {
592
+ "name": "parent_span_id",
593
+ "type": "text",
594
+ "primaryKey": false,
595
+ "notNull": false,
596
+ "autoincrement": false
597
+ },
598
+ "name": {
599
+ "name": "name",
600
+ "type": "text",
601
+ "primaryKey": false,
602
+ "notNull": true,
603
+ "autoincrement": false
604
+ },
605
+ "kind": {
606
+ "name": "kind",
607
+ "type": "text",
608
+ "primaryKey": false,
609
+ "notNull": true,
610
+ "autoincrement": false,
611
+ "default": "'internal'"
612
+ },
613
+ "status": {
614
+ "name": "status",
615
+ "type": "text",
616
+ "primaryKey": false,
617
+ "notNull": true,
618
+ "autoincrement": false,
619
+ "default": "'ok'"
620
+ },
621
+ "started_at": {
622
+ "name": "started_at",
623
+ "type": "text",
624
+ "primaryKey": false,
625
+ "notNull": true,
626
+ "autoincrement": false
627
+ },
628
+ "completed_at": {
629
+ "name": "completed_at",
630
+ "type": "text",
631
+ "primaryKey": false,
632
+ "notNull": false,
633
+ "autoincrement": false
634
+ },
635
+ "duration_ms": {
636
+ "name": "duration_ms",
637
+ "type": "integer",
638
+ "primaryKey": false,
639
+ "notNull": false,
640
+ "autoincrement": false
641
+ },
642
+ "input": {
643
+ "name": "input",
644
+ "type": "text",
645
+ "primaryKey": false,
646
+ "notNull": false,
647
+ "autoincrement": false
648
+ },
649
+ "output": {
650
+ "name": "output",
651
+ "type": "text",
652
+ "primaryKey": false,
653
+ "notNull": false,
654
+ "autoincrement": false
655
+ },
656
+ "error": {
657
+ "name": "error",
658
+ "type": "text",
659
+ "primaryKey": false,
660
+ "notNull": false,
661
+ "autoincrement": false
662
+ },
663
+ "attributes": {
664
+ "name": "attributes",
665
+ "type": "text",
666
+ "primaryKey": false,
667
+ "notNull": false,
668
+ "autoincrement": false
669
+ }
670
+ },
671
+ "indexes": {
672
+ "idx_spans_task_id": {
673
+ "name": "idx_spans_task_id",
674
+ "columns": [
675
+ "task_id"
676
+ ],
677
+ "isUnique": false
678
+ },
679
+ "idx_spans_parent_span_id": {
680
+ "name": "idx_spans_parent_span_id",
681
+ "columns": [
682
+ "parent_span_id"
683
+ ],
684
+ "isUnique": false
685
+ }
686
+ },
687
+ "foreignKeys": {
688
+ "spans_task_id_tasks_id_fk": {
689
+ "name": "spans_task_id_tasks_id_fk",
690
+ "tableFrom": "spans",
691
+ "tableTo": "tasks",
692
+ "columnsFrom": [
693
+ "task_id"
694
+ ],
695
+ "columnsTo": [
696
+ "id"
697
+ ],
698
+ "onDelete": "set null",
699
+ "onUpdate": "no action"
700
+ },
701
+ "spans_parent_span_id_spans_id_fk": {
702
+ "name": "spans_parent_span_id_spans_id_fk",
703
+ "tableFrom": "spans",
704
+ "tableTo": "spans",
705
+ "columnsFrom": [
706
+ "parent_span_id"
707
+ ],
708
+ "columnsTo": [
709
+ "id"
710
+ ],
711
+ "onDelete": "set null",
712
+ "onUpdate": "no action"
713
+ }
714
+ },
715
+ "compositePrimaryKeys": {},
716
+ "uniqueConstraints": {},
717
+ "checkConstraints": {}
718
+ },
719
+ "tool_calls": {
720
+ "name": "tool_calls",
721
+ "columns": {
722
+ "id": {
723
+ "name": "id",
724
+ "type": "text",
725
+ "primaryKey": true,
726
+ "notNull": true,
727
+ "autoincrement": false
728
+ },
729
+ "task_id": {
730
+ "name": "task_id",
731
+ "type": "text",
732
+ "primaryKey": false,
733
+ "notNull": false,
734
+ "autoincrement": false
735
+ },
736
+ "session_id": {
737
+ "name": "session_id",
738
+ "type": "text",
739
+ "primaryKey": false,
740
+ "notNull": false,
741
+ "autoincrement": false
742
+ },
743
+ "tool_name": {
744
+ "name": "tool_name",
745
+ "type": "text",
746
+ "primaryKey": false,
747
+ "notNull": true,
748
+ "autoincrement": false
749
+ },
750
+ "files": {
751
+ "name": "files",
752
+ "type": "text",
753
+ "primaryKey": false,
754
+ "notNull": false,
755
+ "autoincrement": false
756
+ },
757
+ "input": {
758
+ "name": "input",
759
+ "type": "text",
760
+ "primaryKey": false,
761
+ "notNull": false,
762
+ "autoincrement": false
763
+ },
764
+ "output": {
765
+ "name": "output",
766
+ "type": "text",
767
+ "primaryKey": false,
768
+ "notNull": false,
769
+ "autoincrement": false
770
+ },
771
+ "duration_ms": {
772
+ "name": "duration_ms",
773
+ "type": "integer",
774
+ "primaryKey": false,
775
+ "notNull": false,
776
+ "autoincrement": false
777
+ },
778
+ "timestamp": {
779
+ "name": "timestamp",
780
+ "type": "text",
781
+ "primaryKey": false,
782
+ "notNull": true,
783
+ "autoincrement": false
784
+ }
785
+ },
786
+ "indexes": {
787
+ "idx_tool_calls_task_id": {
788
+ "name": "idx_tool_calls_task_id",
789
+ "columns": [
790
+ "task_id"
791
+ ],
792
+ "isUnique": false
793
+ },
794
+ "idx_tool_calls_tool_name": {
795
+ "name": "idx_tool_calls_tool_name",
796
+ "columns": [
797
+ "tool_name"
798
+ ],
799
+ "isUnique": false
800
+ },
801
+ "idx_tool_calls_timestamp": {
802
+ "name": "idx_tool_calls_timestamp",
803
+ "columns": [
804
+ "timestamp"
805
+ ],
806
+ "isUnique": false
807
+ }
808
+ },
809
+ "foreignKeys": {
810
+ "tool_calls_task_id_tasks_id_fk": {
811
+ "name": "tool_calls_task_id_tasks_id_fk",
812
+ "tableFrom": "tool_calls",
813
+ "tableTo": "tasks",
814
+ "columnsFrom": [
815
+ "task_id"
816
+ ],
817
+ "columnsTo": [
818
+ "id"
819
+ ],
820
+ "onDelete": "cascade",
821
+ "onUpdate": "no action"
822
+ }
823
+ },
824
+ "compositePrimaryKeys": {},
825
+ "uniqueConstraints": {},
826
+ "checkConstraints": {}
827
+ },
828
+ "thread_boxes": {
829
+ "name": "thread_boxes",
830
+ "columns": {
831
+ "id": {
832
+ "name": "id",
833
+ "type": "text",
834
+ "primaryKey": true,
835
+ "notNull": true,
836
+ "autoincrement": false
837
+ },
838
+ "thread_id": {
839
+ "name": "thread_id",
840
+ "type": "text",
841
+ "primaryKey": false,
842
+ "notNull": true,
843
+ "autoincrement": false
844
+ },
845
+ "seq": {
846
+ "name": "seq",
847
+ "type": "integer",
848
+ "primaryKey": false,
849
+ "notNull": true,
850
+ "autoincrement": false
851
+ },
852
+ "first_task_id": {
853
+ "name": "first_task_id",
854
+ "type": "text",
855
+ "primaryKey": false,
856
+ "notNull": true,
857
+ "autoincrement": false
858
+ },
859
+ "mid_task_id": {
860
+ "name": "mid_task_id",
861
+ "type": "text",
862
+ "primaryKey": false,
863
+ "notNull": true,
864
+ "autoincrement": false
865
+ },
866
+ "last_task_id": {
867
+ "name": "last_task_id",
868
+ "type": "text",
869
+ "primaryKey": false,
870
+ "notNull": true,
871
+ "autoincrement": false
872
+ },
873
+ "task_count": {
874
+ "name": "task_count",
875
+ "type": "integer",
876
+ "primaryKey": false,
877
+ "notNull": true,
878
+ "autoincrement": false
879
+ },
880
+ "summary": {
881
+ "name": "summary",
882
+ "type": "text",
883
+ "primaryKey": false,
884
+ "notNull": false,
885
+ "autoincrement": false
886
+ },
887
+ "source_tokens": {
888
+ "name": "source_tokens",
889
+ "type": "integer",
890
+ "primaryKey": false,
891
+ "notNull": true,
892
+ "autoincrement": false
893
+ },
894
+ "summary_tokens": {
895
+ "name": "summary_tokens",
896
+ "type": "integer",
897
+ "primaryKey": false,
898
+ "notNull": false,
899
+ "autoincrement": false
900
+ },
901
+ "created_at": {
902
+ "name": "created_at",
903
+ "type": "text",
904
+ "primaryKey": false,
905
+ "notNull": true,
906
+ "autoincrement": false
907
+ }
908
+ },
909
+ "indexes": {
910
+ "idx_thread_boxes_thread_id": {
911
+ "name": "idx_thread_boxes_thread_id",
912
+ "columns": [
913
+ "thread_id"
914
+ ],
915
+ "isUnique": false
916
+ },
917
+ "idx_thread_boxes_seq": {
918
+ "name": "idx_thread_boxes_seq",
919
+ "columns": [
920
+ "thread_id",
921
+ "seq"
922
+ ],
923
+ "isUnique": false
924
+ },
925
+ "thread_boxes_thread_id_seq_unique": {
926
+ "name": "thread_boxes_thread_id_seq_unique",
927
+ "columns": [
928
+ "thread_id",
929
+ "seq"
930
+ ],
931
+ "isUnique": true
932
+ }
933
+ },
934
+ "foreignKeys": {
935
+ "thread_boxes_thread_id_threads_id_fk": {
936
+ "name": "thread_boxes_thread_id_threads_id_fk",
937
+ "tableFrom": "thread_boxes",
938
+ "tableTo": "threads",
939
+ "columnsFrom": [
940
+ "thread_id"
941
+ ],
942
+ "columnsTo": [
943
+ "id"
944
+ ],
945
+ "onDelete": "cascade",
946
+ "onUpdate": "no action"
947
+ }
948
+ },
949
+ "compositePrimaryKeys": {},
950
+ "uniqueConstraints": {},
951
+ "checkConstraints": {}
952
+ },
953
+ "request_logs": {
954
+ "name": "request_logs",
955
+ "columns": {
956
+ "id": {
957
+ "name": "id",
958
+ "type": "text",
959
+ "primaryKey": true,
960
+ "notNull": true,
961
+ "autoincrement": false
962
+ },
963
+ "path": {
964
+ "name": "path",
965
+ "type": "text",
966
+ "primaryKey": false,
967
+ "notNull": true,
968
+ "autoincrement": false
969
+ },
970
+ "method": {
971
+ "name": "method",
972
+ "type": "text",
973
+ "primaryKey": false,
974
+ "notNull": true,
975
+ "autoincrement": false
976
+ },
977
+ "status_code": {
978
+ "name": "status_code",
979
+ "type": "integer",
980
+ "primaryKey": false,
981
+ "notNull": true,
982
+ "autoincrement": false
983
+ },
984
+ "duration_ms": {
985
+ "name": "duration_ms",
986
+ "type": "integer",
987
+ "primaryKey": false,
988
+ "notNull": true,
989
+ "autoincrement": false
990
+ },
991
+ "ip": {
992
+ "name": "ip",
993
+ "type": "text",
994
+ "primaryKey": false,
995
+ "notNull": false,
996
+ "autoincrement": false
997
+ },
998
+ "request_headers": {
999
+ "name": "request_headers",
1000
+ "type": "text",
1001
+ "primaryKey": false,
1002
+ "notNull": false,
1003
+ "autoincrement": false
1004
+ },
1005
+ "response_headers": {
1006
+ "name": "response_headers",
1007
+ "type": "text",
1008
+ "primaryKey": false,
1009
+ "notNull": false,
1010
+ "autoincrement": false
1011
+ },
1012
+ "request_body": {
1013
+ "name": "request_body",
1014
+ "type": "text",
1015
+ "primaryKey": false,
1016
+ "notNull": false,
1017
+ "autoincrement": false
1018
+ },
1019
+ "response_body": {
1020
+ "name": "response_body",
1021
+ "type": "text",
1022
+ "primaryKey": false,
1023
+ "notNull": false,
1024
+ "autoincrement": false
1025
+ },
1026
+ "query": {
1027
+ "name": "query",
1028
+ "type": "text",
1029
+ "primaryKey": false,
1030
+ "notNull": false,
1031
+ "autoincrement": false
1032
+ },
1033
+ "user_id": {
1034
+ "name": "user_id",
1035
+ "type": "text",
1036
+ "primaryKey": false,
1037
+ "notNull": false,
1038
+ "autoincrement": false
1039
+ },
1040
+ "project_id": {
1041
+ "name": "project_id",
1042
+ "type": "text",
1043
+ "primaryKey": false,
1044
+ "notNull": false,
1045
+ "autoincrement": false
1046
+ },
1047
+ "partition_key": {
1048
+ "name": "partition_key",
1049
+ "type": "text",
1050
+ "primaryKey": false,
1051
+ "notNull": true,
1052
+ "autoincrement": false
1053
+ },
1054
+ "timestamp": {
1055
+ "name": "timestamp",
1056
+ "type": "text",
1057
+ "primaryKey": false,
1058
+ "notNull": true,
1059
+ "autoincrement": false,
1060
+ "default": "(datetime('now'))"
1061
+ },
1062
+ "metadata": {
1063
+ "name": "metadata",
1064
+ "type": "text",
1065
+ "primaryKey": false,
1066
+ "notNull": false,
1067
+ "autoincrement": false
1068
+ }
1069
+ },
1070
+ "indexes": {
1071
+ "idx_request_logs_timestamp": {
1072
+ "name": "idx_request_logs_timestamp",
1073
+ "columns": [
1074
+ "timestamp"
1075
+ ],
1076
+ "isUnique": false
1077
+ },
1078
+ "idx_request_logs_path": {
1079
+ "name": "idx_request_logs_path",
1080
+ "columns": [
1081
+ "path"
1082
+ ],
1083
+ "isUnique": false
1084
+ },
1085
+ "idx_request_logs_status_code": {
1086
+ "name": "idx_request_logs_status_code",
1087
+ "columns": [
1088
+ "status_code"
1089
+ ],
1090
+ "isUnique": false
1091
+ },
1092
+ "idx_request_logs_partition_key": {
1093
+ "name": "idx_request_logs_partition_key",
1094
+ "columns": [
1095
+ "partition_key"
1096
+ ],
1097
+ "isUnique": false
1098
+ }
1099
+ },
1100
+ "foreignKeys": {},
1101
+ "compositePrimaryKeys": {},
1102
+ "uniqueConstraints": {},
1103
+ "checkConstraints": {}
1104
+ },
1105
+ "usage_limit_snapshots": {
1106
+ "name": "usage_limit_snapshots",
1107
+ "columns": {
1108
+ "id": {
1109
+ "name": "id",
1110
+ "type": "text",
1111
+ "primaryKey": true,
1112
+ "notNull": true,
1113
+ "autoincrement": false
1114
+ },
1115
+ "provider": {
1116
+ "name": "provider",
1117
+ "type": "text",
1118
+ "primaryKey": false,
1119
+ "notNull": true,
1120
+ "autoincrement": false
1121
+ },
1122
+ "account_ref": {
1123
+ "name": "account_ref",
1124
+ "type": "text",
1125
+ "primaryKey": false,
1126
+ "notNull": true,
1127
+ "autoincrement": false,
1128
+ "default": "'default'"
1129
+ },
1130
+ "limit_window": {
1131
+ "name": "limit_window",
1132
+ "type": "text",
1133
+ "primaryKey": false,
1134
+ "notNull": true,
1135
+ "autoincrement": false
1136
+ },
1137
+ "bucket_start": {
1138
+ "name": "bucket_start",
1139
+ "type": "text",
1140
+ "primaryKey": false,
1141
+ "notNull": true,
1142
+ "autoincrement": false
1143
+ },
1144
+ "captured_at": {
1145
+ "name": "captured_at",
1146
+ "type": "text",
1147
+ "primaryKey": false,
1148
+ "notNull": true,
1149
+ "autoincrement": false
1150
+ },
1151
+ "used_percent": {
1152
+ "name": "used_percent",
1153
+ "type": "integer",
1154
+ "primaryKey": false,
1155
+ "notNull": true,
1156
+ "autoincrement": false
1157
+ },
1158
+ "remaining_percent": {
1159
+ "name": "remaining_percent",
1160
+ "type": "integer",
1161
+ "primaryKey": false,
1162
+ "notNull": true,
1163
+ "autoincrement": false
1164
+ },
1165
+ "resets_at": {
1166
+ "name": "resets_at",
1167
+ "type": "text",
1168
+ "primaryKey": false,
1169
+ "notNull": false,
1170
+ "autoincrement": false
1171
+ },
1172
+ "source": {
1173
+ "name": "source",
1174
+ "type": "text",
1175
+ "primaryKey": false,
1176
+ "notNull": true,
1177
+ "autoincrement": false
1178
+ },
1179
+ "metadata": {
1180
+ "name": "metadata",
1181
+ "type": "text",
1182
+ "primaryKey": false,
1183
+ "notNull": false,
1184
+ "autoincrement": false
1185
+ }
1186
+ },
1187
+ "indexes": {
1188
+ "uniq_usage_limit_snapshots_bucket": {
1189
+ "name": "uniq_usage_limit_snapshots_bucket",
1190
+ "columns": [
1191
+ "provider",
1192
+ "account_ref",
1193
+ "limit_window",
1194
+ "bucket_start"
1195
+ ],
1196
+ "isUnique": true
1197
+ },
1198
+ "idx_usage_limit_snapshots_window_bucket": {
1199
+ "name": "idx_usage_limit_snapshots_window_bucket",
1200
+ "columns": [
1201
+ "limit_window",
1202
+ "bucket_start"
1203
+ ],
1204
+ "isUnique": false
1205
+ },
1206
+ "idx_usage_limit_snapshots_provider_window_bucket": {
1207
+ "name": "idx_usage_limit_snapshots_provider_window_bucket",
1208
+ "columns": [
1209
+ "provider",
1210
+ "limit_window",
1211
+ "bucket_start"
1212
+ ],
1213
+ "isUnique": false
1214
+ }
1215
+ },
1216
+ "foreignKeys": {},
1217
+ "compositePrimaryKeys": {},
1218
+ "uniqueConstraints": {},
1219
+ "checkConstraints": {}
1220
+ },
1221
+ "usage_reports": {
1222
+ "name": "usage_reports",
1223
+ "columns": {
1224
+ "id": {
1225
+ "name": "id",
1226
+ "type": "text",
1227
+ "primaryKey": true,
1228
+ "notNull": true,
1229
+ "autoincrement": false
1230
+ },
1231
+ "workspace_id": {
1232
+ "name": "workspace_id",
1233
+ "type": "text",
1234
+ "primaryKey": false,
1235
+ "notNull": true,
1236
+ "autoincrement": false
1237
+ },
1238
+ "month": {
1239
+ "name": "month",
1240
+ "type": "text",
1241
+ "primaryKey": false,
1242
+ "notNull": true,
1243
+ "autoincrement": false
1244
+ },
1245
+ "generated_at": {
1246
+ "name": "generated_at",
1247
+ "type": "text",
1248
+ "primaryKey": false,
1249
+ "notNull": true,
1250
+ "autoincrement": false
1251
+ },
1252
+ "source_range": {
1253
+ "name": "source_range",
1254
+ "type": "text",
1255
+ "primaryKey": false,
1256
+ "notNull": true,
1257
+ "autoincrement": false
1258
+ },
1259
+ "tier": {
1260
+ "name": "tier",
1261
+ "type": "text",
1262
+ "primaryKey": false,
1263
+ "notNull": true,
1264
+ "autoincrement": false
1265
+ },
1266
+ "total_tokens": {
1267
+ "name": "total_tokens",
1268
+ "type": "integer",
1269
+ "primaryKey": false,
1270
+ "notNull": true,
1271
+ "autoincrement": false
1272
+ },
1273
+ "total_cost_usd": {
1274
+ "name": "total_cost_usd",
1275
+ "type": "real",
1276
+ "primaryKey": false,
1277
+ "notNull": true,
1278
+ "autoincrement": false
1279
+ },
1280
+ "payload": {
1281
+ "name": "payload",
1282
+ "type": "text",
1283
+ "primaryKey": false,
1284
+ "notNull": true,
1285
+ "autoincrement": false
1286
+ },
1287
+ "payload_hash": {
1288
+ "name": "payload_hash",
1289
+ "type": "text",
1290
+ "primaryKey": false,
1291
+ "notNull": false,
1292
+ "autoincrement": false
1293
+ },
1294
+ "signature": {
1295
+ "name": "signature",
1296
+ "type": "text",
1297
+ "primaryKey": false,
1298
+ "notNull": false,
1299
+ "autoincrement": false
1300
+ },
1301
+ "signed_at": {
1302
+ "name": "signed_at",
1303
+ "type": "text",
1304
+ "primaryKey": false,
1305
+ "notNull": false,
1306
+ "autoincrement": false
1307
+ },
1308
+ "issuer": {
1309
+ "name": "issuer",
1310
+ "type": "text",
1311
+ "primaryKey": false,
1312
+ "notNull": false,
1313
+ "autoincrement": false
1314
+ }
1315
+ },
1316
+ "indexes": {
1317
+ "uniq_usage_reports_ws_month": {
1318
+ "name": "uniq_usage_reports_ws_month",
1319
+ "columns": [
1320
+ "workspace_id",
1321
+ "month"
1322
+ ],
1323
+ "isUnique": true
1324
+ }
1325
+ },
1326
+ "foreignKeys": {},
1327
+ "compositePrimaryKeys": {},
1328
+ "uniqueConstraints": {},
1329
+ "checkConstraints": {}
1330
+ },
1331
+ "notification_reads": {
1332
+ "name": "notification_reads",
1333
+ "columns": {
1334
+ "notification_id": {
1335
+ "name": "notification_id",
1336
+ "type": "text",
1337
+ "primaryKey": false,
1338
+ "notNull": true,
1339
+ "autoincrement": false
1340
+ },
1341
+ "user_id": {
1342
+ "name": "user_id",
1343
+ "type": "text",
1344
+ "primaryKey": false,
1345
+ "notNull": true,
1346
+ "autoincrement": false
1347
+ },
1348
+ "read_at": {
1349
+ "name": "read_at",
1350
+ "type": "text",
1351
+ "primaryKey": false,
1352
+ "notNull": true,
1353
+ "autoincrement": false
1354
+ }
1355
+ },
1356
+ "indexes": {},
1357
+ "foreignKeys": {},
1358
+ "compositePrimaryKeys": {
1359
+ "notification_reads_notification_id_user_id_pk": {
1360
+ "columns": [
1361
+ "notification_id",
1362
+ "user_id"
1363
+ ],
1364
+ "name": "notification_reads_notification_id_user_id_pk"
1365
+ }
1366
+ },
1367
+ "uniqueConstraints": {},
1368
+ "checkConstraints": {}
1369
+ },
1370
+ "notifications": {
1371
+ "name": "notifications",
1372
+ "columns": {
1373
+ "id": {
1374
+ "name": "id",
1375
+ "type": "text",
1376
+ "primaryKey": true,
1377
+ "notNull": true,
1378
+ "autoincrement": false
1379
+ },
1380
+ "workspace_id": {
1381
+ "name": "workspace_id",
1382
+ "type": "text",
1383
+ "primaryKey": false,
1384
+ "notNull": true,
1385
+ "autoincrement": false
1386
+ },
1387
+ "agent_id": {
1388
+ "name": "agent_id",
1389
+ "type": "text",
1390
+ "primaryKey": false,
1391
+ "notNull": false,
1392
+ "autoincrement": false
1393
+ },
1394
+ "task_id": {
1395
+ "name": "task_id",
1396
+ "type": "text",
1397
+ "primaryKey": false,
1398
+ "notNull": false,
1399
+ "autoincrement": false
1400
+ },
1401
+ "thread_id": {
1402
+ "name": "thread_id",
1403
+ "type": "text",
1404
+ "primaryKey": false,
1405
+ "notNull": false,
1406
+ "autoincrement": false
1407
+ },
1408
+ "source": {
1409
+ "name": "source",
1410
+ "type": "text",
1411
+ "primaryKey": false,
1412
+ "notNull": true,
1413
+ "autoincrement": false,
1414
+ "default": "'agent'"
1415
+ },
1416
+ "level": {
1417
+ "name": "level",
1418
+ "type": "text",
1419
+ "primaryKey": false,
1420
+ "notNull": true,
1421
+ "autoincrement": false,
1422
+ "default": "'info'"
1423
+ },
1424
+ "title": {
1425
+ "name": "title",
1426
+ "type": "text",
1427
+ "primaryKey": false,
1428
+ "notNull": true,
1429
+ "autoincrement": false
1430
+ },
1431
+ "body": {
1432
+ "name": "body",
1433
+ "type": "text",
1434
+ "primaryKey": false,
1435
+ "notNull": false,
1436
+ "autoincrement": false
1437
+ },
1438
+ "target_user_id": {
1439
+ "name": "target_user_id",
1440
+ "type": "text",
1441
+ "primaryKey": false,
1442
+ "notNull": false,
1443
+ "autoincrement": false
1444
+ },
1445
+ "created_at": {
1446
+ "name": "created_at",
1447
+ "type": "text",
1448
+ "primaryKey": false,
1449
+ "notNull": true,
1450
+ "autoincrement": false
1451
+ },
1452
+ "metadata": {
1453
+ "name": "metadata",
1454
+ "type": "text",
1455
+ "primaryKey": false,
1456
+ "notNull": false,
1457
+ "autoincrement": false
1458
+ }
1459
+ },
1460
+ "indexes": {
1461
+ "idx_notifications_ws_created": {
1462
+ "name": "idx_notifications_ws_created",
1463
+ "columns": [
1464
+ "workspace_id",
1465
+ "\"created_at\" DESC"
1466
+ ],
1467
+ "isUnique": false
1468
+ }
1469
+ },
1470
+ "foreignKeys": {},
1471
+ "compositePrimaryKeys": {},
1472
+ "uniqueConstraints": {},
1473
+ "checkConstraints": {}
1474
+ },
1475
+ "agent_suggestions": {
1476
+ "name": "agent_suggestions",
1477
+ "columns": {
1478
+ "id": {
1479
+ "name": "id",
1480
+ "type": "text",
1481
+ "primaryKey": true,
1482
+ "notNull": true,
1483
+ "autoincrement": false
1484
+ },
1485
+ "workspace_id": {
1486
+ "name": "workspace_id",
1487
+ "type": "text",
1488
+ "primaryKey": false,
1489
+ "notNull": true,
1490
+ "autoincrement": false
1491
+ },
1492
+ "agent_id": {
1493
+ "name": "agent_id",
1494
+ "type": "text",
1495
+ "primaryKey": false,
1496
+ "notNull": true,
1497
+ "autoincrement": false
1498
+ },
1499
+ "task_id": {
1500
+ "name": "task_id",
1501
+ "type": "text",
1502
+ "primaryKey": false,
1503
+ "notNull": false,
1504
+ "autoincrement": false
1505
+ },
1506
+ "type": {
1507
+ "name": "type",
1508
+ "type": "text",
1509
+ "primaryKey": false,
1510
+ "notNull": true,
1511
+ "autoincrement": false
1512
+ },
1513
+ "status": {
1514
+ "name": "status",
1515
+ "type": "text",
1516
+ "primaryKey": false,
1517
+ "notNull": true,
1518
+ "autoincrement": false,
1519
+ "default": "'pending'"
1520
+ },
1521
+ "payload": {
1522
+ "name": "payload",
1523
+ "type": "text",
1524
+ "primaryKey": false,
1525
+ "notNull": true,
1526
+ "autoincrement": false
1527
+ },
1528
+ "applied_commit_sha": {
1529
+ "name": "applied_commit_sha",
1530
+ "type": "text",
1531
+ "primaryKey": false,
1532
+ "notNull": false,
1533
+ "autoincrement": false
1534
+ },
1535
+ "created_at": {
1536
+ "name": "created_at",
1537
+ "type": "text",
1538
+ "primaryKey": false,
1539
+ "notNull": true,
1540
+ "autoincrement": false
1541
+ },
1542
+ "updated_at": {
1543
+ "name": "updated_at",
1544
+ "type": "text",
1545
+ "primaryKey": false,
1546
+ "notNull": true,
1547
+ "autoincrement": false
1548
+ }
1549
+ },
1550
+ "indexes": {
1551
+ "idx_agent_suggestions_ws_agent": {
1552
+ "name": "idx_agent_suggestions_ws_agent",
1553
+ "columns": [
1554
+ "workspace_id",
1555
+ "agent_id"
1556
+ ],
1557
+ "isUnique": false
1558
+ },
1559
+ "idx_agent_suggestions_ws_created": {
1560
+ "name": "idx_agent_suggestions_ws_created",
1561
+ "columns": [
1562
+ "workspace_id",
1563
+ "created_at"
1564
+ ],
1565
+ "isUnique": false
1566
+ }
1567
+ },
1568
+ "foreignKeys": {},
1569
+ "compositePrimaryKeys": {},
1570
+ "uniqueConstraints": {},
1571
+ "checkConstraints": {}
1572
+ },
1573
+ "ui_instances": {
1574
+ "name": "ui_instances",
1575
+ "columns": {
1576
+ "id": {
1577
+ "name": "id",
1578
+ "type": "text",
1579
+ "primaryKey": true,
1580
+ "notNull": true,
1581
+ "autoincrement": false
1582
+ },
1583
+ "definition_id": {
1584
+ "name": "definition_id",
1585
+ "type": "text",
1586
+ "primaryKey": false,
1587
+ "notNull": true,
1588
+ "autoincrement": false
1589
+ },
1590
+ "definition_version": {
1591
+ "name": "definition_version",
1592
+ "type": "integer",
1593
+ "primaryKey": false,
1594
+ "notNull": true,
1595
+ "autoincrement": false
1596
+ },
1597
+ "definition_hash": {
1598
+ "name": "definition_hash",
1599
+ "type": "text",
1600
+ "primaryKey": false,
1601
+ "notNull": true,
1602
+ "autoincrement": false
1603
+ },
1604
+ "workspace_id": {
1605
+ "name": "workspace_id",
1606
+ "type": "text",
1607
+ "primaryKey": false,
1608
+ "notNull": true,
1609
+ "autoincrement": false
1610
+ },
1611
+ "thread_id": {
1612
+ "name": "thread_id",
1613
+ "type": "text",
1614
+ "primaryKey": false,
1615
+ "notNull": true,
1616
+ "autoincrement": false
1617
+ },
1618
+ "anchor_task_id": {
1619
+ "name": "anchor_task_id",
1620
+ "type": "text",
1621
+ "primaryKey": false,
1622
+ "notNull": false,
1623
+ "autoincrement": false
1624
+ },
1625
+ "domain_ref_json": {
1626
+ "name": "domain_ref_json",
1627
+ "type": "text",
1628
+ "primaryKey": false,
1629
+ "notNull": true,
1630
+ "autoincrement": false
1631
+ },
1632
+ "state_json": {
1633
+ "name": "state_json",
1634
+ "type": "text",
1635
+ "primaryKey": false,
1636
+ "notNull": true,
1637
+ "autoincrement": false
1638
+ },
1639
+ "revision": {
1640
+ "name": "revision",
1641
+ "type": "integer",
1642
+ "primaryKey": false,
1643
+ "notNull": true,
1644
+ "autoincrement": false,
1645
+ "default": 0
1646
+ },
1647
+ "status": {
1648
+ "name": "status",
1649
+ "type": "text",
1650
+ "primaryKey": false,
1651
+ "notNull": true,
1652
+ "autoincrement": false,
1653
+ "default": "'active'"
1654
+ },
1655
+ "granted_capabilities_json": {
1656
+ "name": "granted_capabilities_json",
1657
+ "type": "text",
1658
+ "primaryKey": false,
1659
+ "notNull": true,
1660
+ "autoincrement": false,
1661
+ "default": "'[]'"
1662
+ },
1663
+ "created_at": {
1664
+ "name": "created_at",
1665
+ "type": "integer",
1666
+ "primaryKey": false,
1667
+ "notNull": true,
1668
+ "autoincrement": false
1669
+ },
1670
+ "updated_at": {
1671
+ "name": "updated_at",
1672
+ "type": "integer",
1673
+ "primaryKey": false,
1674
+ "notNull": true,
1675
+ "autoincrement": false
1676
+ }
1677
+ },
1678
+ "indexes": {
1679
+ "ui_instances_workspace_thread_idx": {
1680
+ "name": "ui_instances_workspace_thread_idx",
1681
+ "columns": [
1682
+ "workspace_id",
1683
+ "thread_id"
1684
+ ],
1685
+ "isUnique": false
1686
+ }
1687
+ },
1688
+ "foreignKeys": {},
1689
+ "compositePrimaryKeys": {},
1690
+ "uniqueConstraints": {},
1691
+ "checkConstraints": {
1692
+ "ui_instances_id_ck": {
1693
+ "name": "ui_instances_id_ck",
1694
+ "value": "length(\"ui_instances\".\"id\") BETWEEN 5 AND 128 AND \"ui_instances\".\"id\" GLOB 'uic_*'"
1695
+ },
1696
+ "ui_instances_definition_id_ck": {
1697
+ "name": "ui_instances_definition_id_ck",
1698
+ "value": "length(\"ui_instances\".\"definition_id\") BETWEEN 1 AND 128"
1699
+ },
1700
+ "ui_instances_definition_version_ck": {
1701
+ "name": "ui_instances_definition_version_ck",
1702
+ "value": "\"ui_instances\".\"definition_version\" >= 1"
1703
+ },
1704
+ "ui_instances_definition_hash_ck": {
1705
+ "name": "ui_instances_definition_hash_ck",
1706
+ "value": "length(\"ui_instances\".\"definition_hash\") = 64 AND \"ui_instances\".\"definition_hash\" NOT GLOB '*[^0-9a-f]*'"
1707
+ },
1708
+ "ui_instances_workspace_id_ck": {
1709
+ "name": "ui_instances_workspace_id_ck",
1710
+ "value": "length(\"ui_instances\".\"workspace_id\") BETWEEN 1 AND 256"
1711
+ },
1712
+ "ui_instances_thread_id_ck": {
1713
+ "name": "ui_instances_thread_id_ck",
1714
+ "value": "length(\"ui_instances\".\"thread_id\") BETWEEN 1 AND 256"
1715
+ },
1716
+ "ui_instances_domain_ref_json_ck": {
1717
+ "name": "ui_instances_domain_ref_json_ck",
1718
+ "value": "json_valid(\"ui_instances\".\"domain_ref_json\") AND json_type(\"ui_instances\".\"domain_ref_json\") = 'object'"
1719
+ },
1720
+ "ui_instances_state_json_ck": {
1721
+ "name": "ui_instances_state_json_ck",
1722
+ "value": "json_valid(\"ui_instances\".\"state_json\") AND json_type(\"ui_instances\".\"state_json\") = 'object'"
1723
+ },
1724
+ "ui_instances_revision_ck": {
1725
+ "name": "ui_instances_revision_ck",
1726
+ "value": "\"ui_instances\".\"revision\" >= 0"
1727
+ },
1728
+ "ui_instances_status_ck": {
1729
+ "name": "ui_instances_status_ck",
1730
+ "value": "\"ui_instances\".\"status\" IN ('active', 'completed', 'expired', 'revoked', 'unsupported')"
1731
+ },
1732
+ "ui_instances_granted_capabilities_json_ck": {
1733
+ "name": "ui_instances_granted_capabilities_json_ck",
1734
+ "value": "json_valid(\"ui_instances\".\"granted_capabilities_json\") AND json_type(\"ui_instances\".\"granted_capabilities_json\") = 'array'"
1735
+ },
1736
+ "ui_instances_created_at_ck": {
1737
+ "name": "ui_instances_created_at_ck",
1738
+ "value": "\"ui_instances\".\"created_at\" >= 0"
1739
+ },
1740
+ "ui_instances_updated_at_ck": {
1741
+ "name": "ui_instances_updated_at_ck",
1742
+ "value": "\"ui_instances\".\"updated_at\" >= \"ui_instances\".\"created_at\""
1743
+ }
1744
+ }
1745
+ },
1746
+ "ui_action_receipts": {
1747
+ "name": "ui_action_receipts",
1748
+ "columns": {
1749
+ "id": {
1750
+ "name": "id",
1751
+ "type": "text",
1752
+ "primaryKey": true,
1753
+ "notNull": true,
1754
+ "autoincrement": false
1755
+ },
1756
+ "instance_id": {
1757
+ "name": "instance_id",
1758
+ "type": "text",
1759
+ "primaryKey": false,
1760
+ "notNull": true,
1761
+ "autoincrement": false
1762
+ },
1763
+ "request_id": {
1764
+ "name": "request_id",
1765
+ "type": "text",
1766
+ "primaryKey": false,
1767
+ "notNull": true,
1768
+ "autoincrement": false
1769
+ },
1770
+ "action_id": {
1771
+ "name": "action_id",
1772
+ "type": "text",
1773
+ "primaryKey": false,
1774
+ "notNull": true,
1775
+ "autoincrement": false
1776
+ },
1777
+ "actor_json": {
1778
+ "name": "actor_json",
1779
+ "type": "text",
1780
+ "primaryKey": false,
1781
+ "notNull": true,
1782
+ "autoincrement": false
1783
+ },
1784
+ "source": {
1785
+ "name": "source",
1786
+ "type": "text",
1787
+ "primaryKey": false,
1788
+ "notNull": true,
1789
+ "autoincrement": false
1790
+ },
1791
+ "expected_revision": {
1792
+ "name": "expected_revision",
1793
+ "type": "integer",
1794
+ "primaryKey": false,
1795
+ "notNull": true,
1796
+ "autoincrement": false
1797
+ },
1798
+ "before_revision": {
1799
+ "name": "before_revision",
1800
+ "type": "integer",
1801
+ "primaryKey": false,
1802
+ "notNull": true,
1803
+ "autoincrement": false
1804
+ },
1805
+ "after_revision": {
1806
+ "name": "after_revision",
1807
+ "type": "integer",
1808
+ "primaryKey": false,
1809
+ "notNull": false,
1810
+ "autoincrement": false
1811
+ },
1812
+ "status": {
1813
+ "name": "status",
1814
+ "type": "text",
1815
+ "primaryKey": false,
1816
+ "notNull": true,
1817
+ "autoincrement": false
1818
+ },
1819
+ "outcome": {
1820
+ "name": "outcome",
1821
+ "type": "text",
1822
+ "primaryKey": false,
1823
+ "notNull": false,
1824
+ "autoincrement": false
1825
+ },
1826
+ "input_json": {
1827
+ "name": "input_json",
1828
+ "type": "text",
1829
+ "primaryKey": false,
1830
+ "notNull": true,
1831
+ "autoincrement": false
1832
+ },
1833
+ "result_json": {
1834
+ "name": "result_json",
1835
+ "type": "text",
1836
+ "primaryKey": false,
1837
+ "notNull": false,
1838
+ "autoincrement": false
1839
+ },
1840
+ "error_code": {
1841
+ "name": "error_code",
1842
+ "type": "text",
1843
+ "primaryKey": false,
1844
+ "notNull": false,
1845
+ "autoincrement": false
1846
+ },
1847
+ "requested_at": {
1848
+ "name": "requested_at",
1849
+ "type": "integer",
1850
+ "primaryKey": false,
1851
+ "notNull": true,
1852
+ "autoincrement": false
1853
+ },
1854
+ "settled_at": {
1855
+ "name": "settled_at",
1856
+ "type": "integer",
1857
+ "primaryKey": false,
1858
+ "notNull": false,
1859
+ "autoincrement": false
1860
+ }
1861
+ },
1862
+ "indexes": {
1863
+ "ui_action_receipts_instance_request_uq": {
1864
+ "name": "ui_action_receipts_instance_request_uq",
1865
+ "columns": [
1866
+ "instance_id",
1867
+ "request_id"
1868
+ ],
1869
+ "isUnique": true
1870
+ },
1871
+ "ui_action_receipts_instance_id_idx": {
1872
+ "name": "ui_action_receipts_instance_id_idx",
1873
+ "columns": [
1874
+ "instance_id"
1875
+ ],
1876
+ "isUnique": false
1877
+ },
1878
+ "ui_action_receipts_requested_at_idx": {
1879
+ "name": "ui_action_receipts_requested_at_idx",
1880
+ "columns": [
1881
+ "requested_at"
1882
+ ],
1883
+ "isUnique": false
1884
+ }
1885
+ },
1886
+ "foreignKeys": {},
1887
+ "compositePrimaryKeys": {},
1888
+ "uniqueConstraints": {},
1889
+ "checkConstraints": {
1890
+ "ui_action_receipts_id_ck": {
1891
+ "name": "ui_action_receipts_id_ck",
1892
+ "value": "length(\"ui_action_receipts\".\"id\") BETWEEN 5 AND 128"
1893
+ },
1894
+ "ui_action_receipts_instance_id_ck": {
1895
+ "name": "ui_action_receipts_instance_id_ck",
1896
+ "value": "length(\"ui_action_receipts\".\"instance_id\") BETWEEN 1 AND 128"
1897
+ },
1898
+ "ui_action_receipts_request_id_ck": {
1899
+ "name": "ui_action_receipts_request_id_ck",
1900
+ "value": "length(\"ui_action_receipts\".\"request_id\") BETWEEN 1 AND 128"
1901
+ },
1902
+ "ui_action_receipts_action_id_ck": {
1903
+ "name": "ui_action_receipts_action_id_ck",
1904
+ "value": "length(\"ui_action_receipts\".\"action_id\") BETWEEN 1 AND 128"
1905
+ },
1906
+ "ui_action_receipts_actor_json_ck": {
1907
+ "name": "ui_action_receipts_actor_json_ck",
1908
+ "value": "json_valid(\"ui_action_receipts\".\"actor_json\") AND json_type(\"ui_action_receipts\".\"actor_json\") = 'object'"
1909
+ },
1910
+ "ui_action_receipts_source_ck": {
1911
+ "name": "ui_action_receipts_source_ck",
1912
+ "value": "\"ui_action_receipts\".\"source\" IN ('ui_host', 'cli', 'system')"
1913
+ },
1914
+ "ui_action_receipts_expected_revision_ck": {
1915
+ "name": "ui_action_receipts_expected_revision_ck",
1916
+ "value": "\"ui_action_receipts\".\"expected_revision\" >= 0"
1917
+ },
1918
+ "ui_action_receipts_before_revision_ck": {
1919
+ "name": "ui_action_receipts_before_revision_ck",
1920
+ "value": "\"ui_action_receipts\".\"before_revision\" >= 0"
1921
+ },
1922
+ "ui_action_receipts_after_revision_ck": {
1923
+ "name": "ui_action_receipts_after_revision_ck",
1924
+ "value": "\"ui_action_receipts\".\"after_revision\" IS NULL OR \"ui_action_receipts\".\"after_revision\" >= 0"
1925
+ },
1926
+ "ui_action_receipts_status_ck": {
1927
+ "name": "ui_action_receipts_status_ck",
1928
+ "value": "\"ui_action_receipts\".\"status\" IN ('requested', 'settled')"
1929
+ },
1930
+ "ui_action_receipts_outcome_ck": {
1931
+ "name": "ui_action_receipts_outcome_ck",
1932
+ "value": "\"ui_action_receipts\".\"outcome\" IS NULL OR \"ui_action_receipts\".\"outcome\" IN ('succeeded', 'rejected', 'failed', 'conflicted', 'expired')"
1933
+ },
1934
+ "ui_action_receipts_input_json_ck": {
1935
+ "name": "ui_action_receipts_input_json_ck",
1936
+ "value": "json_valid(\"ui_action_receipts\".\"input_json\") AND json_type(\"ui_action_receipts\".\"input_json\") = 'object'"
1937
+ },
1938
+ "ui_action_receipts_result_json_ck": {
1939
+ "name": "ui_action_receipts_result_json_ck",
1940
+ "value": "\"ui_action_receipts\".\"result_json\" IS NULL OR (json_valid(\"ui_action_receipts\".\"result_json\") AND json_type(\"ui_action_receipts\".\"result_json\") = 'object')"
1941
+ },
1942
+ "ui_action_receipts_requested_at_ck": {
1943
+ "name": "ui_action_receipts_requested_at_ck",
1944
+ "value": "\"ui_action_receipts\".\"requested_at\" >= 0"
1945
+ },
1946
+ "ui_action_receipts_settled_at_ck": {
1947
+ "name": "ui_action_receipts_settled_at_ck",
1948
+ "value": "\"ui_action_receipts\".\"settled_at\" IS NULL OR \"ui_action_receipts\".\"settled_at\" >= \"ui_action_receipts\".\"requested_at\""
1949
+ },
1950
+ "ui_action_receipts_status_transition_ck": {
1951
+ "name": "ui_action_receipts_status_transition_ck",
1952
+ "value": "(\n (\"ui_action_receipts\".\"status\" = 'requested' AND \"ui_action_receipts\".\"after_revision\" IS NULL AND \"ui_action_receipts\".\"outcome\" IS NULL AND \"ui_action_receipts\".\"settled_at\" IS NULL)\n OR\n (\"ui_action_receipts\".\"status\" = 'settled' AND \"ui_action_receipts\".\"after_revision\" IS NOT NULL AND \"ui_action_receipts\".\"outcome\" IS NOT NULL AND \"ui_action_receipts\".\"settled_at\" IS NOT NULL)\n )"
1953
+ }
1954
+ }
1955
+ },
1956
+ "project_criteria": {
1957
+ "name": "project_criteria",
1958
+ "columns": {
1959
+ "id": {
1960
+ "name": "id",
1961
+ "type": "text",
1962
+ "primaryKey": true,
1963
+ "notNull": true,
1964
+ "autoincrement": false
1965
+ },
1966
+ "project_id": {
1967
+ "name": "project_id",
1968
+ "type": "text",
1969
+ "primaryKey": false,
1970
+ "notNull": true,
1971
+ "autoincrement": false
1972
+ },
1973
+ "position": {
1974
+ "name": "position",
1975
+ "type": "integer",
1976
+ "primaryKey": false,
1977
+ "notNull": true,
1978
+ "autoincrement": false
1979
+ },
1980
+ "statement": {
1981
+ "name": "statement",
1982
+ "type": "text",
1983
+ "primaryKey": false,
1984
+ "notNull": true,
1985
+ "autoincrement": false
1986
+ },
1987
+ "verify_status": {
1988
+ "name": "verify_status",
1989
+ "type": "text",
1990
+ "primaryKey": false,
1991
+ "notNull": true,
1992
+ "autoincrement": false,
1993
+ "default": "'pending'"
1994
+ },
1995
+ "verified_at": {
1996
+ "name": "verified_at",
1997
+ "type": "text",
1998
+ "primaryKey": false,
1999
+ "notNull": false,
2000
+ "autoincrement": false
2001
+ },
2002
+ "evidence_json": {
2003
+ "name": "evidence_json",
2004
+ "type": "text",
2005
+ "primaryKey": false,
2006
+ "notNull": true,
2007
+ "autoincrement": false,
2008
+ "default": "'[]'"
2009
+ },
2010
+ "created_at": {
2011
+ "name": "created_at",
2012
+ "type": "text",
2013
+ "primaryKey": false,
2014
+ "notNull": true,
2015
+ "autoincrement": false
2016
+ },
2017
+ "updated_at": {
2018
+ "name": "updated_at",
2019
+ "type": "text",
2020
+ "primaryKey": false,
2021
+ "notNull": true,
2022
+ "autoincrement": false
2023
+ }
2024
+ },
2025
+ "indexes": {
2026
+ "project_criteria_project_position_uq": {
2027
+ "name": "project_criteria_project_position_uq",
2028
+ "columns": [
2029
+ "project_id",
2030
+ "position"
2031
+ ],
2032
+ "isUnique": true
2033
+ }
2034
+ },
2035
+ "foreignKeys": {
2036
+ "project_criteria_project_id_projects_id_fk": {
2037
+ "name": "project_criteria_project_id_projects_id_fk",
2038
+ "tableFrom": "project_criteria",
2039
+ "tableTo": "projects",
2040
+ "columnsFrom": [
2041
+ "project_id"
2042
+ ],
2043
+ "columnsTo": [
2044
+ "id"
2045
+ ],
2046
+ "onDelete": "cascade",
2047
+ "onUpdate": "no action"
2048
+ }
2049
+ },
2050
+ "compositePrimaryKeys": {},
2051
+ "uniqueConstraints": {},
2052
+ "checkConstraints": {
2053
+ "project_criteria_id_ck": {
2054
+ "name": "project_criteria_id_ck",
2055
+ "value": "\"project_criteria\".\"id\" GLOB 'pjc_*'"
2056
+ },
2057
+ "project_criteria_verify_status_ck": {
2058
+ "name": "project_criteria_verify_status_ck",
2059
+ "value": "\"project_criteria\".\"verify_status\" IN ('pending', 'verifying', 'passed', 'failed')"
2060
+ },
2061
+ "project_criteria_evidence_json_ck": {
2062
+ "name": "project_criteria_evidence_json_ck",
2063
+ "value": "json_valid(\"project_criteria\".\"evidence_json\") AND json_type(\"project_criteria\".\"evidence_json\") = 'array'"
2064
+ }
2065
+ }
2066
+ },
2067
+ "project_events": {
2068
+ "name": "project_events",
2069
+ "columns": {
2070
+ "id": {
2071
+ "name": "id",
2072
+ "type": "text",
2073
+ "primaryKey": true,
2074
+ "notNull": true,
2075
+ "autoincrement": false
2076
+ },
2077
+ "project_id": {
2078
+ "name": "project_id",
2079
+ "type": "text",
2080
+ "primaryKey": false,
2081
+ "notNull": true,
2082
+ "autoincrement": false
2083
+ },
2084
+ "seq": {
2085
+ "name": "seq",
2086
+ "type": "integer",
2087
+ "primaryKey": false,
2088
+ "notNull": true,
2089
+ "autoincrement": false
2090
+ },
2091
+ "actor_type": {
2092
+ "name": "actor_type",
2093
+ "type": "text",
2094
+ "primaryKey": false,
2095
+ "notNull": true,
2096
+ "autoincrement": false
2097
+ },
2098
+ "actor_id": {
2099
+ "name": "actor_id",
2100
+ "type": "text",
2101
+ "primaryKey": false,
2102
+ "notNull": false,
2103
+ "autoincrement": false
2104
+ },
2105
+ "type": {
2106
+ "name": "type",
2107
+ "type": "text",
2108
+ "primaryKey": false,
2109
+ "notNull": true,
2110
+ "autoincrement": false
2111
+ },
2112
+ "title": {
2113
+ "name": "title",
2114
+ "type": "text",
2115
+ "primaryKey": false,
2116
+ "notNull": true,
2117
+ "autoincrement": false
2118
+ },
2119
+ "summary": {
2120
+ "name": "summary",
2121
+ "type": "text",
2122
+ "primaryKey": false,
2123
+ "notNull": false,
2124
+ "autoincrement": false
2125
+ },
2126
+ "payload_json": {
2127
+ "name": "payload_json",
2128
+ "type": "text",
2129
+ "primaryKey": false,
2130
+ "notNull": true,
2131
+ "autoincrement": false,
2132
+ "default": "'{}'"
2133
+ },
2134
+ "created_at": {
2135
+ "name": "created_at",
2136
+ "type": "text",
2137
+ "primaryKey": false,
2138
+ "notNull": true,
2139
+ "autoincrement": false
2140
+ }
2141
+ },
2142
+ "indexes": {
2143
+ "project_events_project_seq_uq": {
2144
+ "name": "project_events_project_seq_uq",
2145
+ "columns": [
2146
+ "project_id",
2147
+ "seq"
2148
+ ],
2149
+ "isUnique": true
2150
+ }
2151
+ },
2152
+ "foreignKeys": {
2153
+ "project_events_project_id_projects_id_fk": {
2154
+ "name": "project_events_project_id_projects_id_fk",
2155
+ "tableFrom": "project_events",
2156
+ "tableTo": "projects",
2157
+ "columnsFrom": [
2158
+ "project_id"
2159
+ ],
2160
+ "columnsTo": [
2161
+ "id"
2162
+ ],
2163
+ "onDelete": "restrict",
2164
+ "onUpdate": "no action"
2165
+ }
2166
+ },
2167
+ "compositePrimaryKeys": {},
2168
+ "uniqueConstraints": {},
2169
+ "checkConstraints": {
2170
+ "project_events_id_ck": {
2171
+ "name": "project_events_id_ck",
2172
+ "value": "\"project_events\".\"id\" GLOB 'pje_*'"
2173
+ },
2174
+ "project_events_actor_type_ck": {
2175
+ "name": "project_events_actor_type_ck",
2176
+ "value": "\"project_events\".\"actor_type\" IN ('user', 'project_manager', 'system')"
2177
+ },
2178
+ "project_events_payload_json_ck": {
2179
+ "name": "project_events_payload_json_ck",
2180
+ "value": "json_valid(\"project_events\".\"payload_json\") AND json_type(\"project_events\".\"payload_json\") = 'object'"
2181
+ }
2182
+ }
2183
+ },
2184
+ "projects": {
2185
+ "name": "projects",
2186
+ "columns": {
2187
+ "id": {
2188
+ "name": "id",
2189
+ "type": "text",
2190
+ "primaryKey": true,
2191
+ "notNull": true,
2192
+ "autoincrement": false
2193
+ },
2194
+ "workspace_id": {
2195
+ "name": "workspace_id",
2196
+ "type": "text",
2197
+ "primaryKey": false,
2198
+ "notNull": true,
2199
+ "autoincrement": false
2200
+ },
2201
+ "name": {
2202
+ "name": "name",
2203
+ "type": "text",
2204
+ "primaryKey": false,
2205
+ "notNull": true,
2206
+ "autoincrement": false
2207
+ },
2208
+ "outcome": {
2209
+ "name": "outcome",
2210
+ "type": "text",
2211
+ "primaryKey": false,
2212
+ "notNull": true,
2213
+ "autoincrement": false
2214
+ },
2215
+ "due_date": {
2216
+ "name": "due_date",
2217
+ "type": "text",
2218
+ "primaryKey": false,
2219
+ "notNull": false,
2220
+ "autoincrement": false
2221
+ },
2222
+ "scene": {
2223
+ "name": "scene",
2224
+ "type": "text",
2225
+ "primaryKey": false,
2226
+ "notNull": true,
2227
+ "autoincrement": false,
2228
+ "default": "'planning'"
2229
+ },
2230
+ "stages_json": {
2231
+ "name": "stages_json",
2232
+ "type": "text",
2233
+ "primaryKey": false,
2234
+ "notNull": true,
2235
+ "autoincrement": false
2236
+ },
2237
+ "stage_index": {
2238
+ "name": "stage_index",
2239
+ "type": "integer",
2240
+ "primaryKey": false,
2241
+ "notNull": true,
2242
+ "autoincrement": false
2243
+ },
2244
+ "created_at": {
2245
+ "name": "created_at",
2246
+ "type": "text",
2247
+ "primaryKey": false,
2248
+ "notNull": true,
2249
+ "autoincrement": false
2250
+ },
2251
+ "updated_at": {
2252
+ "name": "updated_at",
2253
+ "type": "text",
2254
+ "primaryKey": false,
2255
+ "notNull": true,
2256
+ "autoincrement": false
2257
+ },
2258
+ "accepted_at": {
2259
+ "name": "accepted_at",
2260
+ "type": "text",
2261
+ "primaryKey": false,
2262
+ "notNull": false,
2263
+ "autoincrement": false
2264
+ },
2265
+ "archived_at": {
2266
+ "name": "archived_at",
2267
+ "type": "text",
2268
+ "primaryKey": false,
2269
+ "notNull": false,
2270
+ "autoincrement": false
2271
+ }
2272
+ },
2273
+ "indexes": {},
2274
+ "foreignKeys": {},
2275
+ "compositePrimaryKeys": {},
2276
+ "uniqueConstraints": {},
2277
+ "checkConstraints": {
2278
+ "projects_id_ck": {
2279
+ "name": "projects_id_ck",
2280
+ "value": "\"projects\".\"id\" GLOB 'prj_*'"
2281
+ },
2282
+ "projects_scene_ck": {
2283
+ "name": "projects_scene_ck",
2284
+ "value": "\"projects\".\"scene\" IN ('planning', 'plan_review', 'running', 'human_wait', 'limit_wait', 'failed_stop', 'analyzing_feedback', 'replanned', 'awaiting_review', 'accepted')"
2285
+ },
2286
+ "projects_stages_json_ck": {
2287
+ "name": "projects_stages_json_ck",
2288
+ "value": "json_valid(\"projects\".\"stages_json\") AND json_type(\"projects\".\"stages_json\") = 'array'"
2289
+ },
2290
+ "projects_stage_index_ck": {
2291
+ "name": "projects_stage_index_ck",
2292
+ "value": "\"projects\".\"stage_index\" >= 1"
2293
+ }
2294
+ }
2295
+ }
2296
+ },
2297
+ "views": {},
2298
+ "enums": {},
2299
+ "_meta": {
2300
+ "schemas": {},
2301
+ "tables": {},
2302
+ "columns": {}
2303
+ },
2304
+ "internal": {
2305
+ "indexes": {
2306
+ "idx_notifications_ws_created": {
2307
+ "columns": {
2308
+ "\"created_at\" DESC": {
2309
+ "isExpression": true
2310
+ }
2311
+ }
2312
+ }
2313
+ }
2314
+ }
2315
+ }