team-anya-cli 0.1.6 → 0.1.7

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.
@@ -1,1513 +0,0 @@
1
- {
2
- "version": "6",
3
- "dialect": "sqlite",
4
- "id": "229eb105-9f33-4835-886a-fafd7b34b0f4",
5
- "prevId": "a122da2c-a60f-427f-823d-4387bc04be88",
6
- "tables": {
7
- "audit_events": {
8
- "name": "audit_events",
9
- "columns": {
10
- "id": {
11
- "name": "id",
12
- "type": "integer",
13
- "primaryKey": true,
14
- "notNull": true,
15
- "autoincrement": true
16
- },
17
- "event_type": {
18
- "name": "event_type",
19
- "type": "text",
20
- "primaryKey": false,
21
- "notNull": true,
22
- "autoincrement": false
23
- },
24
- "actor": {
25
- "name": "actor",
26
- "type": "text",
27
- "primaryKey": false,
28
- "notNull": true,
29
- "autoincrement": false
30
- },
31
- "task_id": {
32
- "name": "task_id",
33
- "type": "text",
34
- "primaryKey": false,
35
- "notNull": false,
36
- "autoincrement": false
37
- },
38
- "summary": {
39
- "name": "summary",
40
- "type": "text",
41
- "primaryKey": false,
42
- "notNull": true,
43
- "autoincrement": false
44
- },
45
- "detail": {
46
- "name": "detail",
47
- "type": "text",
48
- "primaryKey": false,
49
- "notNull": false,
50
- "autoincrement": false
51
- },
52
- "file_ref": {
53
- "name": "file_ref",
54
- "type": "text",
55
- "primaryKey": false,
56
- "notNull": false,
57
- "autoincrement": false
58
- },
59
- "created_at": {
60
- "name": "created_at",
61
- "type": "text",
62
- "primaryKey": false,
63
- "notNull": true,
64
- "autoincrement": false,
65
- "default": "(strftime('%Y-%m-%dT%H:%M:%SZ', 'now'))"
66
- }
67
- },
68
- "indexes": {},
69
- "foreignKeys": {},
70
- "compositePrimaryKeys": {},
71
- "uniqueConstraints": {},
72
- "checkConstraints": {}
73
- },
74
- "cc_sessions": {
75
- "name": "cc_sessions",
76
- "columns": {
77
- "id": {
78
- "name": "id",
79
- "type": "integer",
80
- "primaryKey": true,
81
- "notNull": true,
82
- "autoincrement": true
83
- },
84
- "session_id": {
85
- "name": "session_id",
86
- "type": "text",
87
- "primaryKey": false,
88
- "notNull": true,
89
- "autoincrement": false
90
- },
91
- "role": {
92
- "name": "role",
93
- "type": "text",
94
- "primaryKey": false,
95
- "notNull": true,
96
- "autoincrement": false
97
- },
98
- "instance_id": {
99
- "name": "instance_id",
100
- "type": "text",
101
- "primaryKey": false,
102
- "notNull": false,
103
- "autoincrement": false
104
- },
105
- "task_id": {
106
- "name": "task_id",
107
- "type": "text",
108
- "primaryKey": false,
109
- "notNull": false,
110
- "autoincrement": false
111
- },
112
- "chat_id": {
113
- "name": "chat_id",
114
- "type": "text",
115
- "primaryKey": false,
116
- "notNull": false,
117
- "autoincrement": false
118
- },
119
- "project_path": {
120
- "name": "project_path",
121
- "type": "text",
122
- "primaryKey": false,
123
- "notNull": false,
124
- "autoincrement": false
125
- },
126
- "started_at": {
127
- "name": "started_at",
128
- "type": "text",
129
- "primaryKey": false,
130
- "notNull": true,
131
- "autoincrement": false,
132
- "default": "(strftime('%Y-%m-%dT%H:%M:%SZ', 'now'))"
133
- },
134
- "ended_at": {
135
- "name": "ended_at",
136
- "type": "text",
137
- "primaryKey": false,
138
- "notNull": false,
139
- "autoincrement": false
140
- }
141
- },
142
- "indexes": {
143
- "cc_sessions_session_id_unique": {
144
- "name": "cc_sessions_session_id_unique",
145
- "columns": [
146
- "session_id"
147
- ],
148
- "isUnique": true
149
- }
150
- },
151
- "foreignKeys": {},
152
- "compositePrimaryKeys": {},
153
- "uniqueConstraints": {},
154
- "checkConstraints": {}
155
- },
156
- "chat_members": {
157
- "name": "chat_members",
158
- "columns": {
159
- "id": {
160
- "name": "id",
161
- "type": "integer",
162
- "primaryKey": true,
163
- "notNull": true,
164
- "autoincrement": true
165
- },
166
- "chat_id": {
167
- "name": "chat_id",
168
- "type": "text",
169
- "primaryKey": false,
170
- "notNull": true,
171
- "autoincrement": false
172
- },
173
- "member_id": {
174
- "name": "member_id",
175
- "type": "text",
176
- "primaryKey": false,
177
- "notNull": true,
178
- "autoincrement": false
179
- },
180
- "role": {
181
- "name": "role",
182
- "type": "text",
183
- "primaryKey": false,
184
- "notNull": false,
185
- "autoincrement": false,
186
- "default": "'member'"
187
- },
188
- "synced_at": {
189
- "name": "synced_at",
190
- "type": "text",
191
- "primaryKey": false,
192
- "notNull": true,
193
- "autoincrement": false,
194
- "default": "(strftime('%Y-%m-%dT%H:%M:%SZ', 'now'))"
195
- }
196
- },
197
- "indexes": {},
198
- "foreignKeys": {
199
- "chat_members_chat_id_chats_chat_id_fk": {
200
- "name": "chat_members_chat_id_chats_chat_id_fk",
201
- "tableFrom": "chat_members",
202
- "tableTo": "chats",
203
- "columnsFrom": [
204
- "chat_id"
205
- ],
206
- "columnsTo": [
207
- "chat_id"
208
- ],
209
- "onDelete": "no action",
210
- "onUpdate": "no action"
211
- },
212
- "chat_members_member_id_org_members_member_id_fk": {
213
- "name": "chat_members_member_id_org_members_member_id_fk",
214
- "tableFrom": "chat_members",
215
- "tableTo": "org_members",
216
- "columnsFrom": [
217
- "member_id"
218
- ],
219
- "columnsTo": [
220
- "member_id"
221
- ],
222
- "onDelete": "no action",
223
- "onUpdate": "no action"
224
- }
225
- },
226
- "compositePrimaryKeys": {},
227
- "uniqueConstraints": {},
228
- "checkConstraints": {}
229
- },
230
- "chats": {
231
- "name": "chats",
232
- "columns": {
233
- "chat_id": {
234
- "name": "chat_id",
235
- "type": "text",
236
- "primaryKey": true,
237
- "notNull": true,
238
- "autoincrement": false
239
- },
240
- "platform": {
241
- "name": "platform",
242
- "type": "text",
243
- "primaryKey": false,
244
- "notNull": true,
245
- "autoincrement": false,
246
- "default": "'feishu'"
247
- },
248
- "name": {
249
- "name": "name",
250
- "type": "text",
251
- "primaryKey": false,
252
- "notNull": false,
253
- "autoincrement": false
254
- },
255
- "description": {
256
- "name": "description",
257
- "type": "text",
258
- "primaryKey": false,
259
- "notNull": false,
260
- "autoincrement": false
261
- },
262
- "avatar": {
263
- "name": "avatar",
264
- "type": "text",
265
- "primaryKey": false,
266
- "notNull": false,
267
- "autoincrement": false
268
- },
269
- "owner_id": {
270
- "name": "owner_id",
271
- "type": "text",
272
- "primaryKey": false,
273
- "notNull": false,
274
- "autoincrement": false
275
- },
276
- "chat_mode": {
277
- "name": "chat_mode",
278
- "type": "text",
279
- "primaryKey": false,
280
- "notNull": false,
281
- "autoincrement": false
282
- },
283
- "chat_type": {
284
- "name": "chat_type",
285
- "type": "text",
286
- "primaryKey": false,
287
- "notNull": false,
288
- "autoincrement": false
289
- },
290
- "chat_tag": {
291
- "name": "chat_tag",
292
- "type": "text",
293
- "primaryKey": false,
294
- "notNull": false,
295
- "autoincrement": false
296
- },
297
- "chat_status": {
298
- "name": "chat_status",
299
- "type": "text",
300
- "primaryKey": false,
301
- "notNull": false,
302
- "autoincrement": false,
303
- "default": "'normal'"
304
- },
305
- "external": {
306
- "name": "external",
307
- "type": "integer",
308
- "primaryKey": false,
309
- "notNull": false,
310
- "autoincrement": false,
311
- "default": 0
312
- },
313
- "tenant_key": {
314
- "name": "tenant_key",
315
- "type": "text",
316
- "primaryKey": false,
317
- "notNull": false,
318
- "autoincrement": false
319
- },
320
- "user_count": {
321
- "name": "user_count",
322
- "type": "integer",
323
- "primaryKey": false,
324
- "notNull": false,
325
- "autoincrement": false
326
- },
327
- "bot_count": {
328
- "name": "bot_count",
329
- "type": "integer",
330
- "primaryKey": false,
331
- "notNull": false,
332
- "autoincrement": false
333
- },
334
- "metadata": {
335
- "name": "metadata",
336
- "type": "text",
337
- "primaryKey": false,
338
- "notNull": false,
339
- "autoincrement": false
340
- },
341
- "first_seen_at": {
342
- "name": "first_seen_at",
343
- "type": "text",
344
- "primaryKey": false,
345
- "notNull": true,
346
- "autoincrement": false,
347
- "default": "(strftime('%Y-%m-%dT%H:%M:%SZ', 'now'))"
348
- },
349
- "last_synced_at": {
350
- "name": "last_synced_at",
351
- "type": "text",
352
- "primaryKey": false,
353
- "notNull": false,
354
- "autoincrement": false
355
- },
356
- "updated_at": {
357
- "name": "updated_at",
358
- "type": "text",
359
- "primaryKey": false,
360
- "notNull": true,
361
- "autoincrement": false,
362
- "default": "(strftime('%Y-%m-%dT%H:%M:%SZ', 'now'))"
363
- }
364
- },
365
- "indexes": {},
366
- "foreignKeys": {},
367
- "compositePrimaryKeys": {},
368
- "uniqueConstraints": {},
369
- "checkConstraints": {}
370
- },
371
- "commitments": {
372
- "name": "commitments",
373
- "columns": {
374
- "id": {
375
- "name": "id",
376
- "type": "integer",
377
- "primaryKey": true,
378
- "notNull": true,
379
- "autoincrement": true
380
- },
381
- "task_id": {
382
- "name": "task_id",
383
- "type": "text",
384
- "primaryKey": false,
385
- "notNull": true,
386
- "autoincrement": false
387
- },
388
- "promised_to": {
389
- "name": "promised_to",
390
- "type": "text",
391
- "primaryKey": false,
392
- "notNull": true,
393
- "autoincrement": false
394
- },
395
- "promise": {
396
- "name": "promise",
397
- "type": "text",
398
- "primaryKey": false,
399
- "notNull": true,
400
- "autoincrement": false
401
- },
402
- "deadline": {
403
- "name": "deadline",
404
- "type": "text",
405
- "primaryKey": false,
406
- "notNull": false,
407
- "autoincrement": false
408
- },
409
- "status": {
410
- "name": "status",
411
- "type": "text",
412
- "primaryKey": false,
413
- "notNull": true,
414
- "autoincrement": false,
415
- "default": "'active'"
416
- },
417
- "break_reason": {
418
- "name": "break_reason",
419
- "type": "text",
420
- "primaryKey": false,
421
- "notNull": false,
422
- "autoincrement": false
423
- },
424
- "promised_at": {
425
- "name": "promised_at",
426
- "type": "text",
427
- "primaryKey": false,
428
- "notNull": true,
429
- "autoincrement": false,
430
- "default": "(strftime('%Y-%m-%dT%H:%M:%SZ', 'now'))"
431
- }
432
- },
433
- "indexes": {},
434
- "foreignKeys": {
435
- "commitments_task_id_tasks_task_id_fk": {
436
- "name": "commitments_task_id_tasks_task_id_fk",
437
- "tableFrom": "commitments",
438
- "tableTo": "tasks",
439
- "columnsFrom": [
440
- "task_id"
441
- ],
442
- "columnsTo": [
443
- "task_id"
444
- ],
445
- "onDelete": "no action",
446
- "onUpdate": "no action"
447
- }
448
- },
449
- "compositePrimaryKeys": {},
450
- "uniqueConstraints": {},
451
- "checkConstraints": {}
452
- },
453
- "communication_events": {
454
- "name": "communication_events",
455
- "columns": {
456
- "id": {
457
- "name": "id",
458
- "type": "integer",
459
- "primaryKey": true,
460
- "notNull": true,
461
- "autoincrement": true
462
- },
463
- "source_type": {
464
- "name": "source_type",
465
- "type": "text",
466
- "primaryKey": false,
467
- "notNull": true,
468
- "autoincrement": false
469
- },
470
- "source_ref": {
471
- "name": "source_ref",
472
- "type": "text",
473
- "primaryKey": false,
474
- "notNull": false,
475
- "autoincrement": false
476
- },
477
- "intent_level": {
478
- "name": "intent_level",
479
- "type": "integer",
480
- "primaryKey": false,
481
- "notNull": true,
482
- "autoincrement": false
483
- },
484
- "sender": {
485
- "name": "sender",
486
- "type": "text",
487
- "primaryKey": false,
488
- "notNull": false,
489
- "autoincrement": false
490
- },
491
- "summary": {
492
- "name": "summary",
493
- "type": "text",
494
- "primaryKey": false,
495
- "notNull": true,
496
- "autoincrement": false
497
- },
498
- "raw_content_path": {
499
- "name": "raw_content_path",
500
- "type": "text",
501
- "primaryKey": false,
502
- "notNull": false,
503
- "autoincrement": false
504
- },
505
- "opportunity_id": {
506
- "name": "opportunity_id",
507
- "type": "text",
508
- "primaryKey": false,
509
- "notNull": false,
510
- "autoincrement": false
511
- },
512
- "created_at": {
513
- "name": "created_at",
514
- "type": "text",
515
- "primaryKey": false,
516
- "notNull": true,
517
- "autoincrement": false,
518
- "default": "(strftime('%Y-%m-%dT%H:%M:%SZ', 'now'))"
519
- }
520
- },
521
- "indexes": {},
522
- "foreignKeys": {},
523
- "compositePrimaryKeys": {},
524
- "uniqueConstraints": {},
525
- "checkConstraints": {}
526
- },
527
- "task_clarifications": {
528
- "name": "task_clarifications",
529
- "columns": {
530
- "id": {
531
- "name": "id",
532
- "type": "integer",
533
- "primaryKey": true,
534
- "notNull": true,
535
- "autoincrement": true
536
- },
537
- "task_id": {
538
- "name": "task_id",
539
- "type": "text",
540
- "primaryKey": false,
541
- "notNull": true,
542
- "autoincrement": false
543
- },
544
- "question": {
545
- "name": "question",
546
- "type": "text",
547
- "primaryKey": false,
548
- "notNull": true,
549
- "autoincrement": false
550
- },
551
- "answer": {
552
- "name": "answer",
553
- "type": "text",
554
- "primaryKey": false,
555
- "notNull": false,
556
- "autoincrement": false
557
- },
558
- "asked_by": {
559
- "name": "asked_by",
560
- "type": "text",
561
- "primaryKey": false,
562
- "notNull": true,
563
- "autoincrement": false,
564
- "default": "'loid'"
565
- },
566
- "answered_by": {
567
- "name": "answered_by",
568
- "type": "text",
569
- "primaryKey": false,
570
- "notNull": false,
571
- "autoincrement": false
572
- },
573
- "asked_at": {
574
- "name": "asked_at",
575
- "type": "text",
576
- "primaryKey": false,
577
- "notNull": true,
578
- "autoincrement": false,
579
- "default": "(strftime('%Y-%m-%dT%H:%M:%SZ', 'now'))"
580
- },
581
- "answered_at": {
582
- "name": "answered_at",
583
- "type": "text",
584
- "primaryKey": false,
585
- "notNull": false,
586
- "autoincrement": false
587
- }
588
- },
589
- "indexes": {},
590
- "foreignKeys": {
591
- "task_clarifications_task_id_tasks_task_id_fk": {
592
- "name": "task_clarifications_task_id_tasks_task_id_fk",
593
- "tableFrom": "task_clarifications",
594
- "tableTo": "tasks",
595
- "columnsFrom": [
596
- "task_id"
597
- ],
598
- "columnsTo": [
599
- "task_id"
600
- ],
601
- "onDelete": "no action",
602
- "onUpdate": "no action"
603
- }
604
- },
605
- "compositePrimaryKeys": {},
606
- "uniqueConstraints": {},
607
- "checkConstraints": {}
608
- },
609
- "tasks": {
610
- "name": "tasks",
611
- "columns": {
612
- "task_id": {
613
- "name": "task_id",
614
- "type": "text",
615
- "primaryKey": true,
616
- "notNull": true,
617
- "autoincrement": false
618
- },
619
- "title": {
620
- "name": "title",
621
- "type": "text",
622
- "primaryKey": false,
623
- "notNull": true,
624
- "autoincrement": false
625
- },
626
- "status": {
627
- "name": "status",
628
- "type": "text",
629
- "primaryKey": false,
630
- "notNull": true,
631
- "autoincrement": false,
632
- "default": "'NEW'"
633
- },
634
- "source_type": {
635
- "name": "source_type",
636
- "type": "text",
637
- "primaryKey": false,
638
- "notNull": true,
639
- "autoincrement": false
640
- },
641
- "source_ref": {
642
- "name": "source_ref",
643
- "type": "text",
644
- "primaryKey": false,
645
- "notNull": false,
646
- "autoincrement": false
647
- },
648
- "created_by": {
649
- "name": "created_by",
650
- "type": "text",
651
- "primaryKey": false,
652
- "notNull": false,
653
- "autoincrement": false
654
- },
655
- "source_chat_id": {
656
- "name": "source_chat_id",
657
- "type": "text",
658
- "primaryKey": false,
659
- "notNull": false,
660
- "autoincrement": false
661
- },
662
- "objective": {
663
- "name": "objective",
664
- "type": "text",
665
- "primaryKey": false,
666
- "notNull": false,
667
- "autoincrement": false
668
- },
669
- "acceptance_criteria": {
670
- "name": "acceptance_criteria",
671
- "type": "text",
672
- "primaryKey": false,
673
- "notNull": false,
674
- "autoincrement": false
675
- },
676
- "context": {
677
- "name": "context",
678
- "type": "text",
679
- "primaryKey": false,
680
- "notNull": false,
681
- "autoincrement": false
682
- },
683
- "project_id": {
684
- "name": "project_id",
685
- "type": "text",
686
- "primaryKey": false,
687
- "notNull": false,
688
- "autoincrement": false
689
- },
690
- "assignee": {
691
- "name": "assignee",
692
- "type": "text",
693
- "primaryKey": false,
694
- "notNull": false,
695
- "autoincrement": false
696
- },
697
- "branch": {
698
- "name": "branch",
699
- "type": "text",
700
- "primaryKey": false,
701
- "notNull": false,
702
- "autoincrement": false
703
- },
704
- "pr_url": {
705
- "name": "pr_url",
706
- "type": "text",
707
- "primaryKey": false,
708
- "notNull": false,
709
- "autoincrement": false
710
- },
711
- "retry_count": {
712
- "name": "retry_count",
713
- "type": "integer",
714
- "primaryKey": false,
715
- "notNull": true,
716
- "autoincrement": false,
717
- "default": 0
718
- },
719
- "max_retries": {
720
- "name": "max_retries",
721
- "type": "integer",
722
- "primaryKey": false,
723
- "notNull": true,
724
- "autoincrement": false,
725
- "default": 3
726
- },
727
- "blocked_reason": {
728
- "name": "blocked_reason",
729
- "type": "text",
730
- "primaryKey": false,
731
- "notNull": false,
732
- "autoincrement": false
733
- },
734
- "blocked_since": {
735
- "name": "blocked_since",
736
- "type": "text",
737
- "primaryKey": false,
738
- "notNull": false,
739
- "autoincrement": false
740
- },
741
- "execution_guidance": {
742
- "name": "execution_guidance",
743
- "type": "text",
744
- "primaryKey": false,
745
- "notNull": false,
746
- "autoincrement": false
747
- },
748
- "cc_session_id": {
749
- "name": "cc_session_id",
750
- "type": "text",
751
- "primaryKey": false,
752
- "notNull": false,
753
- "autoincrement": false
754
- },
755
- "workspace_path": {
756
- "name": "workspace_path",
757
- "type": "text",
758
- "primaryKey": false,
759
- "notNull": false,
760
- "autoincrement": false
761
- },
762
- "created_at": {
763
- "name": "created_at",
764
- "type": "text",
765
- "primaryKey": false,
766
- "notNull": true,
767
- "autoincrement": false,
768
- "default": "(strftime('%Y-%m-%dT%H:%M:%SZ', 'now'))"
769
- },
770
- "updated_at": {
771
- "name": "updated_at",
772
- "type": "text",
773
- "primaryKey": false,
774
- "notNull": true,
775
- "autoincrement": false,
776
- "default": "(strftime('%Y-%m-%dT%H:%M:%SZ', 'now'))"
777
- }
778
- },
779
- "indexes": {},
780
- "foreignKeys": {},
781
- "compositePrimaryKeys": {},
782
- "uniqueConstraints": {},
783
- "checkConstraints": {}
784
- },
785
- "opportunities": {
786
- "name": "opportunities",
787
- "columns": {
788
- "id": {
789
- "name": "id",
790
- "type": "text",
791
- "primaryKey": true,
792
- "notNull": true,
793
- "autoincrement": false
794
- },
795
- "status": {
796
- "name": "status",
797
- "type": "text",
798
- "primaryKey": false,
799
- "notNull": true,
800
- "autoincrement": false,
801
- "default": "'detected'"
802
- },
803
- "source_ref": {
804
- "name": "source_ref",
805
- "type": "text",
806
- "primaryKey": false,
807
- "notNull": false,
808
- "autoincrement": false
809
- },
810
- "summary": {
811
- "name": "summary",
812
- "type": "text",
813
- "primaryKey": false,
814
- "notNull": true,
815
- "autoincrement": false
816
- },
817
- "score_impact": {
818
- "name": "score_impact",
819
- "type": "real",
820
- "primaryKey": false,
821
- "notNull": false,
822
- "autoincrement": false
823
- },
824
- "score_urgency": {
825
- "name": "score_urgency",
826
- "type": "real",
827
- "primaryKey": false,
828
- "notNull": false,
829
- "autoincrement": false
830
- },
831
- "score_feasibility": {
832
- "name": "score_feasibility",
833
- "type": "real",
834
- "primaryKey": false,
835
- "notNull": false,
836
- "autoincrement": false
837
- },
838
- "score_permission": {
839
- "name": "score_permission",
840
- "type": "real",
841
- "primaryKey": false,
842
- "notNull": false,
843
- "autoincrement": false
844
- },
845
- "total_score": {
846
- "name": "total_score",
847
- "type": "real",
848
- "primaryKey": false,
849
- "notNull": false,
850
- "autoincrement": false
851
- },
852
- "converted_task_id": {
853
- "name": "converted_task_id",
854
- "type": "text",
855
- "primaryKey": false,
856
- "notNull": false,
857
- "autoincrement": false
858
- },
859
- "detected_at": {
860
- "name": "detected_at",
861
- "type": "text",
862
- "primaryKey": false,
863
- "notNull": true,
864
- "autoincrement": false,
865
- "default": "(strftime('%Y-%m-%dT%H:%M:%SZ', 'now'))"
866
- },
867
- "claimed_at": {
868
- "name": "claimed_at",
869
- "type": "text",
870
- "primaryKey": false,
871
- "notNull": false,
872
- "autoincrement": false
873
- }
874
- },
875
- "indexes": {},
876
- "foreignKeys": {
877
- "opportunities_converted_task_id_tasks_task_id_fk": {
878
- "name": "opportunities_converted_task_id_tasks_task_id_fk",
879
- "tableFrom": "opportunities",
880
- "tableTo": "tasks",
881
- "columnsFrom": [
882
- "converted_task_id"
883
- ],
884
- "columnsTo": [
885
- "task_id"
886
- ],
887
- "onDelete": "no action",
888
- "onUpdate": "no action"
889
- }
890
- },
891
- "compositePrimaryKeys": {},
892
- "uniqueConstraints": {},
893
- "checkConstraints": {}
894
- },
895
- "message_log": {
896
- "name": "message_log",
897
- "columns": {
898
- "id": {
899
- "name": "id",
900
- "type": "integer",
901
- "primaryKey": true,
902
- "notNull": true,
903
- "autoincrement": true
904
- },
905
- "direction": {
906
- "name": "direction",
907
- "type": "text",
908
- "primaryKey": false,
909
- "notNull": true,
910
- "autoincrement": false
911
- },
912
- "source_type": {
913
- "name": "source_type",
914
- "type": "text",
915
- "primaryKey": false,
916
- "notNull": true,
917
- "autoincrement": false
918
- },
919
- "source_ref": {
920
- "name": "source_ref",
921
- "type": "text",
922
- "primaryKey": false,
923
- "notNull": false,
924
- "autoincrement": false
925
- },
926
- "sender": {
927
- "name": "sender",
928
- "type": "text",
929
- "primaryKey": false,
930
- "notNull": false,
931
- "autoincrement": false
932
- },
933
- "receiver": {
934
- "name": "receiver",
935
- "type": "text",
936
- "primaryKey": false,
937
- "notNull": false,
938
- "autoincrement": false
939
- },
940
- "chat_id": {
941
- "name": "chat_id",
942
- "type": "text",
943
- "primaryKey": false,
944
- "notNull": false,
945
- "autoincrement": false
946
- },
947
- "chat_type": {
948
- "name": "chat_type",
949
- "type": "text",
950
- "primaryKey": false,
951
- "notNull": false,
952
- "autoincrement": false
953
- },
954
- "content": {
955
- "name": "content",
956
- "type": "text",
957
- "primaryKey": false,
958
- "notNull": true,
959
- "autoincrement": false
960
- },
961
- "message_type": {
962
- "name": "message_type",
963
- "type": "text",
964
- "primaryKey": false,
965
- "notNull": false,
966
- "autoincrement": false
967
- },
968
- "intent_level": {
969
- "name": "intent_level",
970
- "type": "integer",
971
- "primaryKey": false,
972
- "notNull": false,
973
- "autoincrement": false
974
- },
975
- "related_task_id": {
976
- "name": "related_task_id",
977
- "type": "text",
978
- "primaryKey": false,
979
- "notNull": false,
980
- "autoincrement": false
981
- },
982
- "metadata": {
983
- "name": "metadata",
984
- "type": "text",
985
- "primaryKey": false,
986
- "notNull": false,
987
- "autoincrement": false
988
- },
989
- "trace_id": {
990
- "name": "trace_id",
991
- "type": "text",
992
- "primaryKey": false,
993
- "notNull": false,
994
- "autoincrement": false
995
- },
996
- "created_at": {
997
- "name": "created_at",
998
- "type": "text",
999
- "primaryKey": false,
1000
- "notNull": true,
1001
- "autoincrement": false,
1002
- "default": "(strftime('%Y-%m-%dT%H:%M:%SZ', 'now'))"
1003
- }
1004
- },
1005
- "indexes": {},
1006
- "foreignKeys": {},
1007
- "compositePrimaryKeys": {},
1008
- "uniqueConstraints": {},
1009
- "checkConstraints": {}
1010
- },
1011
- "org_escalation_rules": {
1012
- "name": "org_escalation_rules",
1013
- "columns": {
1014
- "id": {
1015
- "name": "id",
1016
- "type": "integer",
1017
- "primaryKey": true,
1018
- "notNull": true,
1019
- "autoincrement": true
1020
- },
1021
- "scope": {
1022
- "name": "scope",
1023
- "type": "text",
1024
- "primaryKey": false,
1025
- "notNull": true,
1026
- "autoincrement": false,
1027
- "default": "'global'"
1028
- },
1029
- "after_minutes": {
1030
- "name": "after_minutes",
1031
- "type": "integer",
1032
- "primaryKey": false,
1033
- "notNull": true,
1034
- "autoincrement": false
1035
- },
1036
- "action": {
1037
- "name": "action",
1038
- "type": "text",
1039
- "primaryKey": false,
1040
- "notNull": true,
1041
- "autoincrement": false
1042
- },
1043
- "targets": {
1044
- "name": "targets",
1045
- "type": "text",
1046
- "primaryKey": false,
1047
- "notNull": true,
1048
- "autoincrement": false
1049
- }
1050
- },
1051
- "indexes": {},
1052
- "foreignKeys": {},
1053
- "compositePrimaryKeys": {},
1054
- "uniqueConstraints": {},
1055
- "checkConstraints": {}
1056
- },
1057
- "org_members": {
1058
- "name": "org_members",
1059
- "columns": {
1060
- "member_id": {
1061
- "name": "member_id",
1062
- "type": "text",
1063
- "primaryKey": true,
1064
- "notNull": true,
1065
- "autoincrement": false
1066
- },
1067
- "name": {
1068
- "name": "name",
1069
- "type": "text",
1070
- "primaryKey": false,
1071
- "notNull": true,
1072
- "autoincrement": false
1073
- },
1074
- "role": {
1075
- "name": "role",
1076
- "type": "text",
1077
- "primaryKey": false,
1078
- "notNull": false,
1079
- "autoincrement": false
1080
- },
1081
- "team": {
1082
- "name": "team",
1083
- "type": "text",
1084
- "primaryKey": false,
1085
- "notNull": false,
1086
- "autoincrement": false
1087
- },
1088
- "timezone": {
1089
- "name": "timezone",
1090
- "type": "text",
1091
- "primaryKey": false,
1092
- "notNull": false,
1093
- "autoincrement": false
1094
- },
1095
- "profile_path": {
1096
- "name": "profile_path",
1097
- "type": "text",
1098
- "primaryKey": false,
1099
- "notNull": false,
1100
- "autoincrement": false
1101
- },
1102
- "response_pattern": {
1103
- "name": "response_pattern",
1104
- "type": "text",
1105
- "primaryKey": false,
1106
- "notNull": false,
1107
- "autoincrement": false
1108
- },
1109
- "platform": {
1110
- "name": "platform",
1111
- "type": "text",
1112
- "primaryKey": false,
1113
- "notNull": false,
1114
- "autoincrement": false,
1115
- "default": "'feishu'"
1116
- },
1117
- "union_id": {
1118
- "name": "union_id",
1119
- "type": "text",
1120
- "primaryKey": false,
1121
- "notNull": false,
1122
- "autoincrement": false
1123
- },
1124
- "user_id": {
1125
- "name": "user_id",
1126
- "type": "text",
1127
- "primaryKey": false,
1128
- "notNull": false,
1129
- "autoincrement": false
1130
- },
1131
- "en_name": {
1132
- "name": "en_name",
1133
- "type": "text",
1134
- "primaryKey": false,
1135
- "notNull": false,
1136
- "autoincrement": false
1137
- },
1138
- "email": {
1139
- "name": "email",
1140
- "type": "text",
1141
- "primaryKey": false,
1142
- "notNull": false,
1143
- "autoincrement": false
1144
- },
1145
- "employee_no": {
1146
- "name": "employee_no",
1147
- "type": "text",
1148
- "primaryKey": false,
1149
- "notNull": false,
1150
- "autoincrement": false
1151
- },
1152
- "avatar_url": {
1153
- "name": "avatar_url",
1154
- "type": "text",
1155
- "primaryKey": false,
1156
- "notNull": false,
1157
- "autoincrement": false
1158
- },
1159
- "metadata": {
1160
- "name": "metadata",
1161
- "type": "text",
1162
- "primaryKey": false,
1163
- "notNull": false,
1164
- "autoincrement": false
1165
- },
1166
- "last_synced_at": {
1167
- "name": "last_synced_at",
1168
- "type": "text",
1169
- "primaryKey": false,
1170
- "notNull": false,
1171
- "autoincrement": false
1172
- },
1173
- "updated_at": {
1174
- "name": "updated_at",
1175
- "type": "text",
1176
- "primaryKey": false,
1177
- "notNull": true,
1178
- "autoincrement": false,
1179
- "default": "(strftime('%Y-%m-%dT%H:%M:%SZ', 'now'))"
1180
- }
1181
- },
1182
- "indexes": {},
1183
- "foreignKeys": {},
1184
- "compositePrimaryKeys": {},
1185
- "uniqueConstraints": {},
1186
- "checkConstraints": {}
1187
- },
1188
- "org_ownership": {
1189
- "name": "org_ownership",
1190
- "columns": {
1191
- "id": {
1192
- "name": "id",
1193
- "type": "integer",
1194
- "primaryKey": true,
1195
- "notNull": true,
1196
- "autoincrement": true
1197
- },
1198
- "scope": {
1199
- "name": "scope",
1200
- "type": "text",
1201
- "primaryKey": false,
1202
- "notNull": true,
1203
- "autoincrement": false
1204
- },
1205
- "target": {
1206
- "name": "target",
1207
- "type": "text",
1208
- "primaryKey": false,
1209
- "notNull": true,
1210
- "autoincrement": false
1211
- },
1212
- "member_id": {
1213
- "name": "member_id",
1214
- "type": "text",
1215
- "primaryKey": false,
1216
- "notNull": true,
1217
- "autoincrement": false
1218
- },
1219
- "role": {
1220
- "name": "role",
1221
- "type": "text",
1222
- "primaryKey": false,
1223
- "notNull": true,
1224
- "autoincrement": false,
1225
- "default": "'owner'"
1226
- }
1227
- },
1228
- "indexes": {},
1229
- "foreignKeys": {
1230
- "org_ownership_member_id_org_members_member_id_fk": {
1231
- "name": "org_ownership_member_id_org_members_member_id_fk",
1232
- "tableFrom": "org_ownership",
1233
- "tableTo": "org_members",
1234
- "columnsFrom": [
1235
- "member_id"
1236
- ],
1237
- "columnsTo": [
1238
- "member_id"
1239
- ],
1240
- "onDelete": "no action",
1241
- "onUpdate": "no action"
1242
- }
1243
- },
1244
- "compositePrimaryKeys": {},
1245
- "uniqueConstraints": {},
1246
- "checkConstraints": {}
1247
- },
1248
- "trace_spans": {
1249
- "name": "trace_spans",
1250
- "columns": {
1251
- "id": {
1252
- "name": "id",
1253
- "type": "integer",
1254
- "primaryKey": true,
1255
- "notNull": true,
1256
- "autoincrement": true
1257
- },
1258
- "trace_id": {
1259
- "name": "trace_id",
1260
- "type": "text",
1261
- "primaryKey": false,
1262
- "notNull": true,
1263
- "autoincrement": false
1264
- },
1265
- "span_id": {
1266
- "name": "span_id",
1267
- "type": "text",
1268
- "primaryKey": false,
1269
- "notNull": true,
1270
- "autoincrement": false
1271
- },
1272
- "parent_span_id": {
1273
- "name": "parent_span_id",
1274
- "type": "text",
1275
- "primaryKey": false,
1276
- "notNull": false,
1277
- "autoincrement": false
1278
- },
1279
- "operation": {
1280
- "name": "operation",
1281
- "type": "text",
1282
- "primaryKey": false,
1283
- "notNull": true,
1284
- "autoincrement": false
1285
- },
1286
- "status": {
1287
- "name": "status",
1288
- "type": "text",
1289
- "primaryKey": false,
1290
- "notNull": true,
1291
- "autoincrement": false,
1292
- "default": "'in_progress'"
1293
- },
1294
- "started_at": {
1295
- "name": "started_at",
1296
- "type": "text",
1297
- "primaryKey": false,
1298
- "notNull": true,
1299
- "autoincrement": false
1300
- },
1301
- "ended_at": {
1302
- "name": "ended_at",
1303
- "type": "text",
1304
- "primaryKey": false,
1305
- "notNull": false,
1306
- "autoincrement": false
1307
- },
1308
- "duration_ms": {
1309
- "name": "duration_ms",
1310
- "type": "real",
1311
- "primaryKey": false,
1312
- "notNull": false,
1313
- "autoincrement": false
1314
- },
1315
- "input": {
1316
- "name": "input",
1317
- "type": "text",
1318
- "primaryKey": false,
1319
- "notNull": false,
1320
- "autoincrement": false
1321
- },
1322
- "output": {
1323
- "name": "output",
1324
- "type": "text",
1325
- "primaryKey": false,
1326
- "notNull": false,
1327
- "autoincrement": false
1328
- },
1329
- "error": {
1330
- "name": "error",
1331
- "type": "text",
1332
- "primaryKey": false,
1333
- "notNull": false,
1334
- "autoincrement": false
1335
- },
1336
- "metadata": {
1337
- "name": "metadata",
1338
- "type": "text",
1339
- "primaryKey": false,
1340
- "notNull": false,
1341
- "autoincrement": false
1342
- },
1343
- "created_at": {
1344
- "name": "created_at",
1345
- "type": "text",
1346
- "primaryKey": false,
1347
- "notNull": true,
1348
- "autoincrement": false,
1349
- "default": "(strftime('%Y-%m-%dT%H:%M:%SZ', 'now'))"
1350
- }
1351
- },
1352
- "indexes": {},
1353
- "foreignKeys": {},
1354
- "compositePrimaryKeys": {},
1355
- "uniqueConstraints": {},
1356
- "checkConstraints": {}
1357
- },
1358
- "project_repos": {
1359
- "name": "project_repos",
1360
- "columns": {
1361
- "id": {
1362
- "name": "id",
1363
- "type": "integer",
1364
- "primaryKey": true,
1365
- "notNull": true,
1366
- "autoincrement": true
1367
- },
1368
- "project_id": {
1369
- "name": "project_id",
1370
- "type": "text",
1371
- "primaryKey": false,
1372
- "notNull": true,
1373
- "autoincrement": false
1374
- },
1375
- "name": {
1376
- "name": "name",
1377
- "type": "text",
1378
- "primaryKey": false,
1379
- "notNull": true,
1380
- "autoincrement": false
1381
- },
1382
- "git_url": {
1383
- "name": "git_url",
1384
- "type": "text",
1385
- "primaryKey": false,
1386
- "notNull": false,
1387
- "autoincrement": false
1388
- },
1389
- "repo_path": {
1390
- "name": "repo_path",
1391
- "type": "text",
1392
- "primaryKey": false,
1393
- "notNull": false,
1394
- "autoincrement": false
1395
- },
1396
- "default_branch": {
1397
- "name": "default_branch",
1398
- "type": "text",
1399
- "primaryKey": false,
1400
- "notNull": false,
1401
- "autoincrement": false,
1402
- "default": "'main'"
1403
- },
1404
- "created_at": {
1405
- "name": "created_at",
1406
- "type": "text",
1407
- "primaryKey": false,
1408
- "notNull": true,
1409
- "autoincrement": false,
1410
- "default": "(strftime('%Y-%m-%dT%H:%M:%SZ', 'now'))"
1411
- }
1412
- },
1413
- "indexes": {},
1414
- "foreignKeys": {
1415
- "project_repos_project_id_projects_project_id_fk": {
1416
- "name": "project_repos_project_id_projects_project_id_fk",
1417
- "tableFrom": "project_repos",
1418
- "tableTo": "projects",
1419
- "columnsFrom": [
1420
- "project_id"
1421
- ],
1422
- "columnsTo": [
1423
- "project_id"
1424
- ],
1425
- "onDelete": "no action",
1426
- "onUpdate": "no action"
1427
- }
1428
- },
1429
- "compositePrimaryKeys": {},
1430
- "uniqueConstraints": {},
1431
- "checkConstraints": {}
1432
- },
1433
- "projects": {
1434
- "name": "projects",
1435
- "columns": {
1436
- "project_id": {
1437
- "name": "project_id",
1438
- "type": "text",
1439
- "primaryKey": true,
1440
- "notNull": true,
1441
- "autoincrement": false
1442
- },
1443
- "name": {
1444
- "name": "name",
1445
- "type": "text",
1446
- "primaryKey": false,
1447
- "notNull": true,
1448
- "autoincrement": false
1449
- },
1450
- "description": {
1451
- "name": "description",
1452
- "type": "text",
1453
- "primaryKey": false,
1454
- "notNull": false,
1455
- "autoincrement": false
1456
- },
1457
- "platform": {
1458
- "name": "platform",
1459
- "type": "text",
1460
- "primaryKey": false,
1461
- "notNull": false,
1462
- "autoincrement": false,
1463
- "default": "'github'"
1464
- },
1465
- "claude_md": {
1466
- "name": "claude_md",
1467
- "type": "text",
1468
- "primaryKey": false,
1469
- "notNull": false,
1470
- "autoincrement": false
1471
- },
1472
- "created_at": {
1473
- "name": "created_at",
1474
- "type": "text",
1475
- "primaryKey": false,
1476
- "notNull": true,
1477
- "autoincrement": false,
1478
- "default": "(strftime('%Y-%m-%dT%H:%M:%SZ', 'now'))"
1479
- },
1480
- "updated_at": {
1481
- "name": "updated_at",
1482
- "type": "text",
1483
- "primaryKey": false,
1484
- "notNull": true,
1485
- "autoincrement": false,
1486
- "default": "(strftime('%Y-%m-%dT%H:%M:%SZ', 'now'))"
1487
- },
1488
- "deleted_at": {
1489
- "name": "deleted_at",
1490
- "type": "text",
1491
- "primaryKey": false,
1492
- "notNull": false,
1493
- "autoincrement": false
1494
- }
1495
- },
1496
- "indexes": {},
1497
- "foreignKeys": {},
1498
- "compositePrimaryKeys": {},
1499
- "uniqueConstraints": {},
1500
- "checkConstraints": {}
1501
- }
1502
- },
1503
- "views": {},
1504
- "enums": {},
1505
- "_meta": {
1506
- "schemas": {},
1507
- "tables": {},
1508
- "columns": {}
1509
- },
1510
- "internal": {
1511
- "indexes": {}
1512
- }
1513
- }