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