@open-workspace/email 0.4.1 → 0.4.2

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,1017 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "1509aa0d-ecfd-4b1f-aa3b-640058f78a37",
5
+ "prevId": "0bdc1a7c-6581-4ef1-bb3b-3f385b29480f",
6
+ "tables": {
7
+ "conversations": {
8
+ "name": "conversations",
9
+ "columns": {
10
+ "id": {
11
+ "name": "id",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "latest_email_id": {
18
+ "name": "latest_email_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "timeline_at": {
25
+ "name": "timeline_at",
26
+ "type": "integer",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ },
31
+ "mailbox_state": {
32
+ "name": "mailbox_state",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": true,
36
+ "autoincrement": false,
37
+ "default": "'active'"
38
+ },
39
+ "folder_id": {
40
+ "name": "folder_id",
41
+ "type": "text",
42
+ "primaryKey": false,
43
+ "notNull": false,
44
+ "autoincrement": false
45
+ },
46
+ "has_incoming": {
47
+ "name": "has_incoming",
48
+ "type": "integer",
49
+ "primaryKey": false,
50
+ "notNull": true,
51
+ "autoincrement": false,
52
+ "default": false
53
+ },
54
+ "has_outgoing": {
55
+ "name": "has_outgoing",
56
+ "type": "integer",
57
+ "primaryKey": false,
58
+ "notNull": true,
59
+ "autoincrement": false,
60
+ "default": false
61
+ }
62
+ },
63
+ "indexes": {
64
+ "conversations_timeline_idx": {
65
+ "name": "conversations_timeline_idx",
66
+ "columns": [
67
+ "timeline_at",
68
+ "latest_email_id"
69
+ ],
70
+ "isUnique": false
71
+ },
72
+ "conversations_inbox_timeline_idx": {
73
+ "name": "conversations_inbox_timeline_idx",
74
+ "columns": [
75
+ "mailbox_state",
76
+ "has_incoming",
77
+ "timeline_at",
78
+ "latest_email_id"
79
+ ],
80
+ "isUnique": false
81
+ },
82
+ "conversations_sent_timeline_idx": {
83
+ "name": "conversations_sent_timeline_idx",
84
+ "columns": [
85
+ "mailbox_state",
86
+ "has_outgoing",
87
+ "timeline_at",
88
+ "latest_email_id"
89
+ ],
90
+ "isUnique": false
91
+ },
92
+ "conversations_folder_timeline_idx": {
93
+ "name": "conversations_folder_timeline_idx",
94
+ "columns": [
95
+ "folder_id",
96
+ "timeline_at",
97
+ "latest_email_id"
98
+ ],
99
+ "isUnique": false
100
+ }
101
+ },
102
+ "foreignKeys": {
103
+ "conversations_latest_email_id_emails_id_fk": {
104
+ "name": "conversations_latest_email_id_emails_id_fk",
105
+ "tableFrom": "conversations",
106
+ "tableTo": "emails",
107
+ "columnsFrom": [
108
+ "latest_email_id"
109
+ ],
110
+ "columnsTo": [
111
+ "id"
112
+ ],
113
+ "onDelete": "no action",
114
+ "onUpdate": "no action"
115
+ },
116
+ "conversations_folder_id_folders_id_fk": {
117
+ "name": "conversations_folder_id_folders_id_fk",
118
+ "tableFrom": "conversations",
119
+ "tableTo": "folders",
120
+ "columnsFrom": [
121
+ "folder_id"
122
+ ],
123
+ "columnsTo": [
124
+ "id"
125
+ ],
126
+ "onDelete": "set null",
127
+ "onUpdate": "no action"
128
+ }
129
+ },
130
+ "compositePrimaryKeys": {},
131
+ "uniqueConstraints": {},
132
+ "checkConstraints": {}
133
+ },
134
+ "email_read_states": {
135
+ "name": "email_read_states",
136
+ "columns": {
137
+ "user_id": {
138
+ "name": "user_id",
139
+ "type": "text",
140
+ "primaryKey": false,
141
+ "notNull": true,
142
+ "autoincrement": false
143
+ },
144
+ "email_id": {
145
+ "name": "email_id",
146
+ "type": "text",
147
+ "primaryKey": false,
148
+ "notNull": true,
149
+ "autoincrement": false
150
+ },
151
+ "read_at": {
152
+ "name": "read_at",
153
+ "type": "integer",
154
+ "primaryKey": false,
155
+ "notNull": true,
156
+ "autoincrement": false
157
+ }
158
+ },
159
+ "indexes": {
160
+ "email_read_states_email_idx": {
161
+ "name": "email_read_states_email_idx",
162
+ "columns": [
163
+ "email_id"
164
+ ],
165
+ "isUnique": false
166
+ }
167
+ },
168
+ "foreignKeys": {
169
+ "email_read_states_email_id_emails_id_fk": {
170
+ "name": "email_read_states_email_id_emails_id_fk",
171
+ "tableFrom": "email_read_states",
172
+ "tableTo": "emails",
173
+ "columnsFrom": [
174
+ "email_id"
175
+ ],
176
+ "columnsTo": [
177
+ "id"
178
+ ],
179
+ "onDelete": "cascade",
180
+ "onUpdate": "no action"
181
+ }
182
+ },
183
+ "compositePrimaryKeys": {
184
+ "email_read_states_user_id_email_id_pk": {
185
+ "columns": [
186
+ "user_id",
187
+ "email_id"
188
+ ],
189
+ "name": "email_read_states_user_id_email_id_pk"
190
+ }
191
+ },
192
+ "uniqueConstraints": {},
193
+ "checkConstraints": {}
194
+ },
195
+ "emails": {
196
+ "name": "emails",
197
+ "columns": {
198
+ "id": {
199
+ "name": "id",
200
+ "type": "text",
201
+ "primaryKey": true,
202
+ "notNull": true,
203
+ "autoincrement": false
204
+ },
205
+ "request_fingerprint": {
206
+ "name": "request_fingerprint",
207
+ "type": "text",
208
+ "primaryKey": false,
209
+ "notNull": false,
210
+ "autoincrement": false
211
+ },
212
+ "conversation_id": {
213
+ "name": "conversation_id",
214
+ "type": "text",
215
+ "primaryKey": false,
216
+ "notNull": true,
217
+ "autoincrement": false
218
+ },
219
+ "direction": {
220
+ "name": "direction",
221
+ "type": "text",
222
+ "primaryKey": false,
223
+ "notNull": true,
224
+ "autoincrement": false
225
+ },
226
+ "message_id_header": {
227
+ "name": "message_id_header",
228
+ "type": "text",
229
+ "primaryKey": false,
230
+ "notNull": false,
231
+ "autoincrement": false
232
+ },
233
+ "in_reply_to_json": {
234
+ "name": "in_reply_to_json",
235
+ "type": "text",
236
+ "primaryKey": false,
237
+ "notNull": true,
238
+ "autoincrement": false,
239
+ "default": "'[]'"
240
+ },
241
+ "references_json": {
242
+ "name": "references_json",
243
+ "type": "text",
244
+ "primaryKey": false,
245
+ "notNull": true,
246
+ "autoincrement": false,
247
+ "default": "'[]'"
248
+ },
249
+ "from_json": {
250
+ "name": "from_json",
251
+ "type": "text",
252
+ "primaryKey": false,
253
+ "notNull": true,
254
+ "autoincrement": false
255
+ },
256
+ "reply_to_json": {
257
+ "name": "reply_to_json",
258
+ "type": "text",
259
+ "primaryKey": false,
260
+ "notNull": true,
261
+ "autoincrement": false,
262
+ "default": "'[]'"
263
+ },
264
+ "to_json": {
265
+ "name": "to_json",
266
+ "type": "text",
267
+ "primaryKey": false,
268
+ "notNull": true,
269
+ "autoincrement": false,
270
+ "default": "'[]'"
271
+ },
272
+ "cc_json": {
273
+ "name": "cc_json",
274
+ "type": "text",
275
+ "primaryKey": false,
276
+ "notNull": true,
277
+ "autoincrement": false,
278
+ "default": "'[]'"
279
+ },
280
+ "bcc_json": {
281
+ "name": "bcc_json",
282
+ "type": "text",
283
+ "primaryKey": false,
284
+ "notNull": true,
285
+ "autoincrement": false,
286
+ "default": "'[]'"
287
+ },
288
+ "subject": {
289
+ "name": "subject",
290
+ "type": "text",
291
+ "primaryKey": false,
292
+ "notNull": true,
293
+ "autoincrement": false,
294
+ "default": "'(no subject)'"
295
+ },
296
+ "preview": {
297
+ "name": "preview",
298
+ "type": "text",
299
+ "primaryKey": false,
300
+ "notNull": true,
301
+ "autoincrement": false,
302
+ "default": "''"
303
+ },
304
+ "body_text": {
305
+ "name": "body_text",
306
+ "type": "text",
307
+ "primaryKey": false,
308
+ "notNull": false,
309
+ "autoincrement": false
310
+ },
311
+ "quoted_text": {
312
+ "name": "quoted_text",
313
+ "type": "text",
314
+ "primaryKey": false,
315
+ "notNull": false,
316
+ "autoincrement": false
317
+ },
318
+ "body_html_r2_key": {
319
+ "name": "body_html_r2_key",
320
+ "type": "text",
321
+ "primaryKey": false,
322
+ "notNull": false,
323
+ "autoincrement": false
324
+ },
325
+ "raw_mime_r2_key": {
326
+ "name": "raw_mime_r2_key",
327
+ "type": "text",
328
+ "primaryKey": false,
329
+ "notNull": false,
330
+ "autoincrement": false
331
+ },
332
+ "authentication_results_json": {
333
+ "name": "authentication_results_json",
334
+ "type": "text",
335
+ "primaryKey": false,
336
+ "notNull": false,
337
+ "autoincrement": false
338
+ },
339
+ "envelope_from": {
340
+ "name": "envelope_from",
341
+ "type": "text",
342
+ "primaryKey": false,
343
+ "notNull": false,
344
+ "autoincrement": false
345
+ },
346
+ "envelope_to": {
347
+ "name": "envelope_to",
348
+ "type": "text",
349
+ "primaryKey": false,
350
+ "notNull": false,
351
+ "autoincrement": false
352
+ },
353
+ "list_unsubscribe_json": {
354
+ "name": "list_unsubscribe_json",
355
+ "type": "text",
356
+ "primaryKey": false,
357
+ "notNull": false,
358
+ "autoincrement": false
359
+ },
360
+ "sender_intel_json": {
361
+ "name": "sender_intel_json",
362
+ "type": "text",
363
+ "primaryKey": false,
364
+ "notNull": false,
365
+ "autoincrement": false
366
+ },
367
+ "ai_classification_json": {
368
+ "name": "ai_classification_json",
369
+ "type": "text",
370
+ "primaryKey": false,
371
+ "notNull": false,
372
+ "autoincrement": false
373
+ },
374
+ "delivery_json": {
375
+ "name": "delivery_json",
376
+ "type": "text",
377
+ "primaryKey": false,
378
+ "notNull": false,
379
+ "autoincrement": false
380
+ },
381
+ "screening_json": {
382
+ "name": "screening_json",
383
+ "type": "text",
384
+ "primaryKey": false,
385
+ "notNull": false,
386
+ "autoincrement": false
387
+ },
388
+ "report_label": {
389
+ "name": "report_label",
390
+ "type": "text",
391
+ "primaryKey": false,
392
+ "notNull": false,
393
+ "autoincrement": false
394
+ },
395
+ "split_from_conversation_id": {
396
+ "name": "split_from_conversation_id",
397
+ "type": "text",
398
+ "primaryKey": false,
399
+ "notNull": false,
400
+ "autoincrement": false
401
+ },
402
+ "attachments_json": {
403
+ "name": "attachments_json",
404
+ "type": "text",
405
+ "primaryKey": false,
406
+ "notNull": true,
407
+ "autoincrement": false,
408
+ "default": "'[]'"
409
+ },
410
+ "list_id": {
411
+ "name": "list_id",
412
+ "type": "text",
413
+ "primaryKey": false,
414
+ "notNull": false,
415
+ "autoincrement": false
416
+ },
417
+ "list_post_address": {
418
+ "name": "list_post_address",
419
+ "type": "text",
420
+ "primaryKey": false,
421
+ "notNull": false,
422
+ "autoincrement": false
423
+ },
424
+ "timeline_at": {
425
+ "name": "timeline_at",
426
+ "type": "integer",
427
+ "primaryKey": false,
428
+ "notNull": true,
429
+ "autoincrement": false
430
+ },
431
+ "transport_state": {
432
+ "name": "transport_state",
433
+ "type": "text",
434
+ "primaryKey": false,
435
+ "notNull": true,
436
+ "autoincrement": false
437
+ },
438
+ "transport_error": {
439
+ "name": "transport_error",
440
+ "type": "text",
441
+ "primaryKey": false,
442
+ "notNull": false,
443
+ "autoincrement": false
444
+ },
445
+ "delivery_status_json": {
446
+ "name": "delivery_status_json",
447
+ "type": "text",
448
+ "primaryKey": false,
449
+ "notNull": true,
450
+ "autoincrement": false,
451
+ "default": "'[]'"
452
+ }
453
+ },
454
+ "indexes": {
455
+ "emails_conversation_timeline_idx": {
456
+ "name": "emails_conversation_timeline_idx",
457
+ "columns": [
458
+ "conversation_id",
459
+ "timeline_at",
460
+ "id"
461
+ ],
462
+ "isUnique": false
463
+ },
464
+ "emails_message_id_header_idx": {
465
+ "name": "emails_message_id_header_idx",
466
+ "columns": [
467
+ "message_id_header"
468
+ ],
469
+ "isUnique": false
470
+ }
471
+ },
472
+ "foreignKeys": {},
473
+ "compositePrimaryKeys": {},
474
+ "uniqueConstraints": {},
475
+ "checkConstraints": {}
476
+ },
477
+ "folders": {
478
+ "name": "folders",
479
+ "columns": {
480
+ "id": {
481
+ "name": "id",
482
+ "type": "text",
483
+ "primaryKey": true,
484
+ "notNull": true,
485
+ "autoincrement": false
486
+ },
487
+ "name": {
488
+ "name": "name",
489
+ "type": "text",
490
+ "primaryKey": false,
491
+ "notNull": true,
492
+ "autoincrement": false
493
+ },
494
+ "sort_order": {
495
+ "name": "sort_order",
496
+ "type": "integer",
497
+ "primaryKey": false,
498
+ "notNull": true,
499
+ "autoincrement": false,
500
+ "default": 100
501
+ }
502
+ },
503
+ "indexes": {
504
+ "folders_name_unique": {
505
+ "name": "folders_name_unique",
506
+ "columns": [
507
+ "name"
508
+ ],
509
+ "isUnique": true
510
+ },
511
+ "folders_order_idx": {
512
+ "name": "folders_order_idx",
513
+ "columns": [
514
+ "sort_order",
515
+ "name"
516
+ ],
517
+ "isUnique": false
518
+ }
519
+ },
520
+ "foreignKeys": {},
521
+ "compositePrimaryKeys": {},
522
+ "uniqueConstraints": {},
523
+ "checkConstraints": {}
524
+ },
525
+ "mailbox_ai_configuration": {
526
+ "name": "mailbox_ai_configuration",
527
+ "columns": {
528
+ "id": {
529
+ "name": "id",
530
+ "type": "text",
531
+ "primaryKey": true,
532
+ "notNull": true,
533
+ "autoincrement": false
534
+ },
535
+ "instructions": {
536
+ "name": "instructions",
537
+ "type": "text",
538
+ "primaryKey": false,
539
+ "notNull": true,
540
+ "autoincrement": false,
541
+ "default": "''"
542
+ },
543
+ "confidence_threshold": {
544
+ "name": "confidence_threshold",
545
+ "type": "integer",
546
+ "primaryKey": false,
547
+ "notNull": true,
548
+ "autoincrement": false,
549
+ "default": 75
550
+ },
551
+ "updated_at": {
552
+ "name": "updated_at",
553
+ "type": "integer",
554
+ "primaryKey": false,
555
+ "notNull": true,
556
+ "autoincrement": false
557
+ }
558
+ },
559
+ "indexes": {},
560
+ "foreignKeys": {},
561
+ "compositePrimaryKeys": {},
562
+ "uniqueConstraints": {},
563
+ "checkConstraints": {}
564
+ },
565
+ "pending_inbound": {
566
+ "name": "pending_inbound",
567
+ "columns": {
568
+ "id": {
569
+ "name": "id",
570
+ "type": "text",
571
+ "primaryKey": true,
572
+ "notNull": true,
573
+ "autoincrement": false
574
+ },
575
+ "raw_object_key": {
576
+ "name": "raw_object_key",
577
+ "type": "text",
578
+ "primaryKey": false,
579
+ "notNull": true,
580
+ "autoincrement": false
581
+ },
582
+ "envelope_from": {
583
+ "name": "envelope_from",
584
+ "type": "text",
585
+ "primaryKey": false,
586
+ "notNull": true,
587
+ "autoincrement": false
588
+ },
589
+ "envelope_to": {
590
+ "name": "envelope_to",
591
+ "type": "text",
592
+ "primaryKey": false,
593
+ "notNull": true,
594
+ "autoincrement": false
595
+ },
596
+ "list_address": {
597
+ "name": "list_address",
598
+ "type": "text",
599
+ "primaryKey": false,
600
+ "notNull": false,
601
+ "autoincrement": false
602
+ },
603
+ "received_at": {
604
+ "name": "received_at",
605
+ "type": "integer",
606
+ "primaryKey": false,
607
+ "notNull": true,
608
+ "autoincrement": false
609
+ },
610
+ "attempts": {
611
+ "name": "attempts",
612
+ "type": "integer",
613
+ "primaryKey": false,
614
+ "notNull": true,
615
+ "autoincrement": false,
616
+ "default": 0
617
+ },
618
+ "ai_attempts": {
619
+ "name": "ai_attempts",
620
+ "type": "integer",
621
+ "primaryKey": false,
622
+ "notNull": true,
623
+ "autoincrement": false,
624
+ "default": 0
625
+ },
626
+ "unfinished_attempts": {
627
+ "name": "unfinished_attempts",
628
+ "type": "integer",
629
+ "primaryKey": false,
630
+ "notNull": true,
631
+ "autoincrement": false,
632
+ "default": 0
633
+ },
634
+ "next_attempt_at": {
635
+ "name": "next_attempt_at",
636
+ "type": "integer",
637
+ "primaryKey": false,
638
+ "notNull": true,
639
+ "autoincrement": false
640
+ }
641
+ },
642
+ "indexes": {
643
+ "pending_inbound_next_attempt_idx": {
644
+ "name": "pending_inbound_next_attempt_idx",
645
+ "columns": [
646
+ "next_attempt_at",
647
+ "received_at"
648
+ ],
649
+ "isUnique": false
650
+ }
651
+ },
652
+ "foreignKeys": {},
653
+ "compositePrimaryKeys": {},
654
+ "uniqueConstraints": {},
655
+ "checkConstraints": {}
656
+ },
657
+ "pending_object_deletions": {
658
+ "name": "pending_object_deletions",
659
+ "columns": {
660
+ "object_key": {
661
+ "name": "object_key",
662
+ "type": "text",
663
+ "primaryKey": true,
664
+ "notNull": true,
665
+ "autoincrement": false
666
+ },
667
+ "attempts": {
668
+ "name": "attempts",
669
+ "type": "integer",
670
+ "primaryKey": false,
671
+ "notNull": true,
672
+ "autoincrement": false,
673
+ "default": 0
674
+ },
675
+ "next_attempt_at": {
676
+ "name": "next_attempt_at",
677
+ "type": "integer",
678
+ "primaryKey": false,
679
+ "notNull": true,
680
+ "autoincrement": false
681
+ }
682
+ },
683
+ "indexes": {
684
+ "pending_object_deletions_next_attempt_idx": {
685
+ "name": "pending_object_deletions_next_attempt_idx",
686
+ "columns": [
687
+ "next_attempt_at"
688
+ ],
689
+ "isUnique": false
690
+ }
691
+ },
692
+ "foreignKeys": {},
693
+ "compositePrimaryKeys": {},
694
+ "uniqueConstraints": {},
695
+ "checkConstraints": {}
696
+ },
697
+ "pending_office_previews": {
698
+ "name": "pending_office_previews",
699
+ "columns": {
700
+ "source_key": {
701
+ "name": "source_key",
702
+ "type": "text",
703
+ "primaryKey": true,
704
+ "notNull": true,
705
+ "autoincrement": false
706
+ },
707
+ "email_id": {
708
+ "name": "email_id",
709
+ "type": "text",
710
+ "primaryKey": false,
711
+ "notNull": true,
712
+ "autoincrement": false
713
+ },
714
+ "attachment_id": {
715
+ "name": "attachment_id",
716
+ "type": "text",
717
+ "primaryKey": false,
718
+ "notNull": true,
719
+ "autoincrement": false
720
+ },
721
+ "attempts": {
722
+ "name": "attempts",
723
+ "type": "integer",
724
+ "primaryKey": false,
725
+ "notNull": true,
726
+ "autoincrement": false,
727
+ "default": 0
728
+ },
729
+ "next_attempt_at": {
730
+ "name": "next_attempt_at",
731
+ "type": "integer",
732
+ "primaryKey": false,
733
+ "notNull": true,
734
+ "autoincrement": false
735
+ }
736
+ },
737
+ "indexes": {
738
+ "pending_office_previews_next_attempt_idx": {
739
+ "name": "pending_office_previews_next_attempt_idx",
740
+ "columns": [
741
+ "next_attempt_at"
742
+ ],
743
+ "isUnique": false
744
+ }
745
+ },
746
+ "foreignKeys": {},
747
+ "compositePrimaryKeys": {},
748
+ "uniqueConstraints": {},
749
+ "checkConstraints": {}
750
+ },
751
+ "sender_feedback": {
752
+ "name": "sender_feedback",
753
+ "columns": {
754
+ "id": {
755
+ "name": "id",
756
+ "type": "text",
757
+ "primaryKey": true,
758
+ "notNull": true,
759
+ "autoincrement": false
760
+ },
761
+ "address": {
762
+ "name": "address",
763
+ "type": "text",
764
+ "primaryKey": false,
765
+ "notNull": true,
766
+ "autoincrement": false
767
+ },
768
+ "domain": {
769
+ "name": "domain",
770
+ "type": "text",
771
+ "primaryKey": false,
772
+ "notNull": true,
773
+ "autoincrement": false
774
+ },
775
+ "email_id": {
776
+ "name": "email_id",
777
+ "type": "text",
778
+ "primaryKey": false,
779
+ "notNull": false,
780
+ "autoincrement": false
781
+ },
782
+ "label": {
783
+ "name": "label",
784
+ "type": "text",
785
+ "primaryKey": false,
786
+ "notNull": true,
787
+ "autoincrement": false
788
+ },
789
+ "user_id": {
790
+ "name": "user_id",
791
+ "type": "text",
792
+ "primaryKey": false,
793
+ "notNull": false,
794
+ "autoincrement": false
795
+ },
796
+ "created_at": {
797
+ "name": "created_at",
798
+ "type": "integer",
799
+ "primaryKey": false,
800
+ "notNull": true,
801
+ "autoincrement": false
802
+ }
803
+ },
804
+ "indexes": {
805
+ "sender_feedback_address_idx": {
806
+ "name": "sender_feedback_address_idx",
807
+ "columns": [
808
+ "address",
809
+ "created_at"
810
+ ],
811
+ "isUnique": false
812
+ },
813
+ "sender_feedback_domain_idx": {
814
+ "name": "sender_feedback_domain_idx",
815
+ "columns": [
816
+ "domain"
817
+ ],
818
+ "isUnique": false
819
+ }
820
+ },
821
+ "foreignKeys": {},
822
+ "compositePrimaryKeys": {},
823
+ "uniqueConstraints": {},
824
+ "checkConstraints": {}
825
+ },
826
+ "senders": {
827
+ "name": "senders",
828
+ "columns": {
829
+ "address": {
830
+ "name": "address",
831
+ "type": "text",
832
+ "primaryKey": true,
833
+ "notNull": true,
834
+ "autoincrement": false
835
+ },
836
+ "domain": {
837
+ "name": "domain",
838
+ "type": "text",
839
+ "primaryKey": false,
840
+ "notNull": true,
841
+ "autoincrement": false
842
+ },
843
+ "first_seen_at": {
844
+ "name": "first_seen_at",
845
+ "type": "integer",
846
+ "primaryKey": false,
847
+ "notNull": false,
848
+ "autoincrement": false
849
+ },
850
+ "last_seen_at": {
851
+ "name": "last_seen_at",
852
+ "type": "integer",
853
+ "primaryKey": false,
854
+ "notNull": false,
855
+ "autoincrement": false
856
+ },
857
+ "message_count": {
858
+ "name": "message_count",
859
+ "type": "integer",
860
+ "primaryKey": false,
861
+ "notNull": true,
862
+ "autoincrement": false,
863
+ "default": 0
864
+ },
865
+ "outbound_count": {
866
+ "name": "outbound_count",
867
+ "type": "integer",
868
+ "primaryKey": false,
869
+ "notNull": true,
870
+ "autoincrement": false,
871
+ "default": 0
872
+ },
873
+ "last_outbound_at": {
874
+ "name": "last_outbound_at",
875
+ "type": "integer",
876
+ "primaryKey": false,
877
+ "notNull": false,
878
+ "autoincrement": false
879
+ },
880
+ "blocked_at": {
881
+ "name": "blocked_at",
882
+ "type": "integer",
883
+ "primaryKey": false,
884
+ "notNull": false,
885
+ "autoincrement": false
886
+ },
887
+ "trusted_at": {
888
+ "name": "trusted_at",
889
+ "type": "integer",
890
+ "primaryKey": false,
891
+ "notNull": false,
892
+ "autoincrement": false
893
+ },
894
+ "reported_at": {
895
+ "name": "reported_at",
896
+ "type": "integer",
897
+ "primaryKey": false,
898
+ "notNull": false,
899
+ "autoincrement": false
900
+ }
901
+ },
902
+ "indexes": {
903
+ "senders_domain_idx": {
904
+ "name": "senders_domain_idx",
905
+ "columns": [
906
+ "domain"
907
+ ],
908
+ "isUnique": false
909
+ }
910
+ },
911
+ "foreignKeys": {},
912
+ "compositePrimaryKeys": {},
913
+ "uniqueConstraints": {},
914
+ "checkConstraints": {}
915
+ },
916
+ "system_folder_order": {
917
+ "name": "system_folder_order",
918
+ "columns": {
919
+ "folder_id": {
920
+ "name": "folder_id",
921
+ "type": "text",
922
+ "primaryKey": true,
923
+ "notNull": true,
924
+ "autoincrement": false
925
+ },
926
+ "sort_order": {
927
+ "name": "sort_order",
928
+ "type": "integer",
929
+ "primaryKey": false,
930
+ "notNull": true,
931
+ "autoincrement": false
932
+ }
933
+ },
934
+ "indexes": {},
935
+ "foreignKeys": {},
936
+ "compositePrimaryKeys": {},
937
+ "uniqueConstraints": {},
938
+ "checkConstraints": {}
939
+ },
940
+ "unsubscriptions": {
941
+ "name": "unsubscriptions",
942
+ "columns": {
943
+ "list_key": {
944
+ "name": "list_key",
945
+ "type": "text",
946
+ "primaryKey": true,
947
+ "notNull": true,
948
+ "autoincrement": false
949
+ },
950
+ "email_id": {
951
+ "name": "email_id",
952
+ "type": "text",
953
+ "primaryKey": false,
954
+ "notNull": false,
955
+ "autoincrement": false
956
+ },
957
+ "method": {
958
+ "name": "method",
959
+ "type": "text",
960
+ "primaryKey": false,
961
+ "notNull": true,
962
+ "autoincrement": false
963
+ },
964
+ "status": {
965
+ "name": "status",
966
+ "type": "text",
967
+ "primaryKey": false,
968
+ "notNull": true,
969
+ "autoincrement": false
970
+ },
971
+ "target": {
972
+ "name": "target",
973
+ "type": "text",
974
+ "primaryKey": false,
975
+ "notNull": false,
976
+ "autoincrement": false
977
+ },
978
+ "detail": {
979
+ "name": "detail",
980
+ "type": "text",
981
+ "primaryKey": false,
982
+ "notNull": false,
983
+ "autoincrement": false
984
+ },
985
+ "user_id": {
986
+ "name": "user_id",
987
+ "type": "text",
988
+ "primaryKey": false,
989
+ "notNull": false,
990
+ "autoincrement": false
991
+ },
992
+ "created_at": {
993
+ "name": "created_at",
994
+ "type": "integer",
995
+ "primaryKey": false,
996
+ "notNull": true,
997
+ "autoincrement": false
998
+ }
999
+ },
1000
+ "indexes": {},
1001
+ "foreignKeys": {},
1002
+ "compositePrimaryKeys": {},
1003
+ "uniqueConstraints": {},
1004
+ "checkConstraints": {}
1005
+ }
1006
+ },
1007
+ "views": {},
1008
+ "enums": {},
1009
+ "_meta": {
1010
+ "schemas": {},
1011
+ "tables": {},
1012
+ "columns": {}
1013
+ },
1014
+ "internal": {
1015
+ "indexes": {}
1016
+ }
1017
+ }