@c4t4/heyamigo 0.9.8 → 0.9.10

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,777 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "60d80ac8-f2b9-4d71-b860-14e2609c4d47",
5
+ "prevId": "dc030b66-cf9b-4fba-bdb6-39680e973b52",
6
+ "tables": {
7
+ "control": {
8
+ "name": "control",
9
+ "columns": {
10
+ "key": {
11
+ "name": "key",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "value": {
18
+ "name": "value",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": false,
22
+ "autoincrement": false
23
+ },
24
+ "requested_by": {
25
+ "name": "requested_by",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": false,
29
+ "autoincrement": false
30
+ },
31
+ "requested_at": {
32
+ "name": "requested_at",
33
+ "type": "integer",
34
+ "primaryKey": false,
35
+ "notNull": true,
36
+ "autoincrement": false
37
+ }
38
+ },
39
+ "indexes": {},
40
+ "foreignKeys": {},
41
+ "compositePrimaryKeys": {},
42
+ "uniqueConstraints": {},
43
+ "checkConstraints": {}
44
+ },
45
+ "crons": {
46
+ "name": "crons",
47
+ "columns": {
48
+ "id": {
49
+ "name": "id",
50
+ "type": "integer",
51
+ "primaryKey": true,
52
+ "notNull": true,
53
+ "autoincrement": true
54
+ },
55
+ "name": {
56
+ "name": "name",
57
+ "type": "text",
58
+ "primaryKey": false,
59
+ "notNull": true,
60
+ "autoincrement": false
61
+ },
62
+ "enqueue_into": {
63
+ "name": "enqueue_into",
64
+ "type": "text",
65
+ "primaryKey": false,
66
+ "notNull": true,
67
+ "autoincrement": false
68
+ },
69
+ "payload": {
70
+ "name": "payload",
71
+ "type": "text",
72
+ "primaryKey": false,
73
+ "notNull": true,
74
+ "autoincrement": false
75
+ },
76
+ "recurrence": {
77
+ "name": "recurrence",
78
+ "type": "text",
79
+ "primaryKey": false,
80
+ "notNull": false,
81
+ "autoincrement": false
82
+ },
83
+ "next_run_at": {
84
+ "name": "next_run_at",
85
+ "type": "integer",
86
+ "primaryKey": false,
87
+ "notNull": true,
88
+ "autoincrement": false
89
+ },
90
+ "last_run_at": {
91
+ "name": "last_run_at",
92
+ "type": "integer",
93
+ "primaryKey": false,
94
+ "notNull": false,
95
+ "autoincrement": false
96
+ },
97
+ "enabled": {
98
+ "name": "enabled",
99
+ "type": "integer",
100
+ "primaryKey": false,
101
+ "notNull": true,
102
+ "autoincrement": false,
103
+ "default": 1
104
+ },
105
+ "created_at": {
106
+ "name": "created_at",
107
+ "type": "integer",
108
+ "primaryKey": false,
109
+ "notNull": true,
110
+ "autoincrement": false
111
+ }
112
+ },
113
+ "indexes": {
114
+ "crons_by_due": {
115
+ "name": "crons_by_due",
116
+ "columns": [
117
+ "enabled",
118
+ "next_run_at"
119
+ ],
120
+ "isUnique": false
121
+ },
122
+ "crons_name_uq": {
123
+ "name": "crons_name_uq",
124
+ "columns": [
125
+ "name"
126
+ ],
127
+ "isUnique": true,
128
+ "where": "\"crons\".\"recurrence\" IS NOT NULL"
129
+ }
130
+ },
131
+ "foreignKeys": {},
132
+ "compositePrimaryKeys": {},
133
+ "uniqueConstraints": {},
134
+ "checkConstraints": {}
135
+ },
136
+ "identities": {
137
+ "name": "identities",
138
+ "columns": {
139
+ "person_id": {
140
+ "name": "person_id",
141
+ "type": "text",
142
+ "primaryKey": false,
143
+ "notNull": true,
144
+ "autoincrement": false
145
+ },
146
+ "address": {
147
+ "name": "address",
148
+ "type": "text",
149
+ "primaryKey": false,
150
+ "notNull": true,
151
+ "autoincrement": false
152
+ },
153
+ "added_at": {
154
+ "name": "added_at",
155
+ "type": "integer",
156
+ "primaryKey": false,
157
+ "notNull": true,
158
+ "autoincrement": false
159
+ }
160
+ },
161
+ "indexes": {
162
+ "identities_address_unique": {
163
+ "name": "identities_address_unique",
164
+ "columns": [
165
+ "address"
166
+ ],
167
+ "isUnique": true
168
+ }
169
+ },
170
+ "foreignKeys": {
171
+ "identities_person_id_persons_id_fk": {
172
+ "name": "identities_person_id_persons_id_fk",
173
+ "tableFrom": "identities",
174
+ "tableTo": "persons",
175
+ "columnsFrom": [
176
+ "person_id"
177
+ ],
178
+ "columnsTo": [
179
+ "id"
180
+ ],
181
+ "onDelete": "no action",
182
+ "onUpdate": "no action"
183
+ }
184
+ },
185
+ "compositePrimaryKeys": {
186
+ "identities_person_id_address_pk": {
187
+ "columns": [
188
+ "person_id",
189
+ "address"
190
+ ],
191
+ "name": "identities_person_id_address_pk"
192
+ }
193
+ },
194
+ "uniqueConstraints": {},
195
+ "checkConstraints": {}
196
+ },
197
+ "inbound": {
198
+ "name": "inbound",
199
+ "columns": {
200
+ "id": {
201
+ "name": "id",
202
+ "type": "integer",
203
+ "primaryKey": true,
204
+ "notNull": true,
205
+ "autoincrement": true
206
+ },
207
+ "address": {
208
+ "name": "address",
209
+ "type": "text",
210
+ "primaryKey": false,
211
+ "notNull": true,
212
+ "autoincrement": false
213
+ },
214
+ "actor_address": {
215
+ "name": "actor_address",
216
+ "type": "text",
217
+ "primaryKey": false,
218
+ "notNull": false,
219
+ "autoincrement": false
220
+ },
221
+ "person_id": {
222
+ "name": "person_id",
223
+ "type": "text",
224
+ "primaryKey": false,
225
+ "notNull": false,
226
+ "autoincrement": false
227
+ },
228
+ "actor_person_id": {
229
+ "name": "actor_person_id",
230
+ "type": "text",
231
+ "primaryKey": false,
232
+ "notNull": false,
233
+ "autoincrement": false
234
+ },
235
+ "external_msg_id": {
236
+ "name": "external_msg_id",
237
+ "type": "text",
238
+ "primaryKey": false,
239
+ "notNull": false,
240
+ "autoincrement": false
241
+ },
242
+ "text": {
243
+ "name": "text",
244
+ "type": "text",
245
+ "primaryKey": false,
246
+ "notNull": true,
247
+ "autoincrement": false
248
+ },
249
+ "media_path": {
250
+ "name": "media_path",
251
+ "type": "text",
252
+ "primaryKey": false,
253
+ "notNull": false,
254
+ "autoincrement": false
255
+ },
256
+ "media_mime": {
257
+ "name": "media_mime",
258
+ "type": "text",
259
+ "primaryKey": false,
260
+ "notNull": false,
261
+ "autoincrement": false
262
+ },
263
+ "media_bytes": {
264
+ "name": "media_bytes",
265
+ "type": "integer",
266
+ "primaryKey": false,
267
+ "notNull": false,
268
+ "autoincrement": false
269
+ },
270
+ "push_name": {
271
+ "name": "push_name",
272
+ "type": "text",
273
+ "primaryKey": false,
274
+ "notNull": false,
275
+ "autoincrement": false
276
+ },
277
+ "trigger_reason": {
278
+ "name": "trigger_reason",
279
+ "type": "text",
280
+ "primaryKey": false,
281
+ "notNull": false,
282
+ "autoincrement": false
283
+ },
284
+ "payload": {
285
+ "name": "payload",
286
+ "type": "text",
287
+ "primaryKey": false,
288
+ "notNull": false,
289
+ "autoincrement": false
290
+ },
291
+ "status": {
292
+ "name": "status",
293
+ "type": "text",
294
+ "primaryKey": false,
295
+ "notNull": true,
296
+ "autoincrement": false
297
+ },
298
+ "attempts": {
299
+ "name": "attempts",
300
+ "type": "integer",
301
+ "primaryKey": false,
302
+ "notNull": true,
303
+ "autoincrement": false,
304
+ "default": 0
305
+ },
306
+ "next_attempt_at": {
307
+ "name": "next_attempt_at",
308
+ "type": "integer",
309
+ "primaryKey": false,
310
+ "notNull": false,
311
+ "autoincrement": false
312
+ },
313
+ "last_error": {
314
+ "name": "last_error",
315
+ "type": "text",
316
+ "primaryKey": false,
317
+ "notNull": false,
318
+ "autoincrement": false
319
+ },
320
+ "claimed_by": {
321
+ "name": "claimed_by",
322
+ "type": "text",
323
+ "primaryKey": false,
324
+ "notNull": false,
325
+ "autoincrement": false
326
+ },
327
+ "claimed_at": {
328
+ "name": "claimed_at",
329
+ "type": "integer",
330
+ "primaryKey": false,
331
+ "notNull": false,
332
+ "autoincrement": false
333
+ },
334
+ "received_at": {
335
+ "name": "received_at",
336
+ "type": "integer",
337
+ "primaryKey": false,
338
+ "notNull": true,
339
+ "autoincrement": false
340
+ },
341
+ "created_at": {
342
+ "name": "created_at",
343
+ "type": "integer",
344
+ "primaryKey": false,
345
+ "notNull": true,
346
+ "autoincrement": false
347
+ },
348
+ "updated_at": {
349
+ "name": "updated_at",
350
+ "type": "integer",
351
+ "primaryKey": false,
352
+ "notNull": true,
353
+ "autoincrement": false
354
+ }
355
+ },
356
+ "indexes": {
357
+ "inbound_by_status_next": {
358
+ "name": "inbound_by_status_next",
359
+ "columns": [
360
+ "status",
361
+ "next_attempt_at"
362
+ ],
363
+ "isUnique": false
364
+ },
365
+ "inbound_by_address": {
366
+ "name": "inbound_by_address",
367
+ "columns": [
368
+ "address"
369
+ ],
370
+ "isUnique": false
371
+ },
372
+ "inbound_by_person": {
373
+ "name": "inbound_by_person",
374
+ "columns": [
375
+ "person_id",
376
+ "received_at"
377
+ ],
378
+ "isUnique": false
379
+ },
380
+ "inbound_external_msg_id_uq": {
381
+ "name": "inbound_external_msg_id_uq",
382
+ "columns": [
383
+ "external_msg_id"
384
+ ],
385
+ "isUnique": true,
386
+ "where": "\"inbound\".\"external_msg_id\" IS NOT NULL"
387
+ }
388
+ },
389
+ "foreignKeys": {},
390
+ "compositePrimaryKeys": {},
391
+ "uniqueConstraints": {},
392
+ "checkConstraints": {}
393
+ },
394
+ "memory_writes": {
395
+ "name": "memory_writes",
396
+ "columns": {
397
+ "id": {
398
+ "name": "id",
399
+ "type": "integer",
400
+ "primaryKey": true,
401
+ "notNull": true,
402
+ "autoincrement": true
403
+ },
404
+ "op": {
405
+ "name": "op",
406
+ "type": "text",
407
+ "primaryKey": false,
408
+ "notNull": true,
409
+ "autoincrement": false
410
+ },
411
+ "payload": {
412
+ "name": "payload",
413
+ "type": "text",
414
+ "primaryKey": false,
415
+ "notNull": true,
416
+ "autoincrement": false
417
+ },
418
+ "idempotency_key": {
419
+ "name": "idempotency_key",
420
+ "type": "text",
421
+ "primaryKey": false,
422
+ "notNull": false,
423
+ "autoincrement": false
424
+ },
425
+ "status": {
426
+ "name": "status",
427
+ "type": "text",
428
+ "primaryKey": false,
429
+ "notNull": true,
430
+ "autoincrement": false
431
+ },
432
+ "attempts": {
433
+ "name": "attempts",
434
+ "type": "integer",
435
+ "primaryKey": false,
436
+ "notNull": true,
437
+ "autoincrement": false,
438
+ "default": 0
439
+ },
440
+ "next_attempt_at": {
441
+ "name": "next_attempt_at",
442
+ "type": "integer",
443
+ "primaryKey": false,
444
+ "notNull": false,
445
+ "autoincrement": false
446
+ },
447
+ "last_error": {
448
+ "name": "last_error",
449
+ "type": "text",
450
+ "primaryKey": false,
451
+ "notNull": false,
452
+ "autoincrement": false
453
+ },
454
+ "claimed_by": {
455
+ "name": "claimed_by",
456
+ "type": "text",
457
+ "primaryKey": false,
458
+ "notNull": false,
459
+ "autoincrement": false
460
+ },
461
+ "claimed_at": {
462
+ "name": "claimed_at",
463
+ "type": "integer",
464
+ "primaryKey": false,
465
+ "notNull": false,
466
+ "autoincrement": false
467
+ },
468
+ "created_at": {
469
+ "name": "created_at",
470
+ "type": "integer",
471
+ "primaryKey": false,
472
+ "notNull": true,
473
+ "autoincrement": false
474
+ },
475
+ "updated_at": {
476
+ "name": "updated_at",
477
+ "type": "integer",
478
+ "primaryKey": false,
479
+ "notNull": true,
480
+ "autoincrement": false
481
+ }
482
+ },
483
+ "indexes": {
484
+ "memwr_by_status_next": {
485
+ "name": "memwr_by_status_next",
486
+ "columns": [
487
+ "status",
488
+ "next_attempt_at"
489
+ ],
490
+ "isUnique": false
491
+ },
492
+ "memwr_idemp_uq": {
493
+ "name": "memwr_idemp_uq",
494
+ "columns": [
495
+ "idempotency_key"
496
+ ],
497
+ "isUnique": true,
498
+ "where": "\"memory_writes\".\"idempotency_key\" IS NOT NULL"
499
+ }
500
+ },
501
+ "foreignKeys": {},
502
+ "compositePrimaryKeys": {},
503
+ "uniqueConstraints": {},
504
+ "checkConstraints": {}
505
+ },
506
+ "outbound": {
507
+ "name": "outbound",
508
+ "columns": {
509
+ "id": {
510
+ "name": "id",
511
+ "type": "integer",
512
+ "primaryKey": true,
513
+ "notNull": true,
514
+ "autoincrement": true
515
+ },
516
+ "address": {
517
+ "name": "address",
518
+ "type": "text",
519
+ "primaryKey": false,
520
+ "notNull": true,
521
+ "autoincrement": false
522
+ },
523
+ "kind": {
524
+ "name": "kind",
525
+ "type": "text",
526
+ "primaryKey": false,
527
+ "notNull": true,
528
+ "autoincrement": false
529
+ },
530
+ "text": {
531
+ "name": "text",
532
+ "type": "text",
533
+ "primaryKey": false,
534
+ "notNull": false,
535
+ "autoincrement": false
536
+ },
537
+ "media_path": {
538
+ "name": "media_path",
539
+ "type": "text",
540
+ "primaryKey": false,
541
+ "notNull": false,
542
+ "autoincrement": false
543
+ },
544
+ "media_mime": {
545
+ "name": "media_mime",
546
+ "type": "text",
547
+ "primaryKey": false,
548
+ "notNull": false,
549
+ "autoincrement": false
550
+ },
551
+ "media_bytes": {
552
+ "name": "media_bytes",
553
+ "type": "integer",
554
+ "primaryKey": false,
555
+ "notNull": false,
556
+ "autoincrement": false
557
+ },
558
+ "quote_msg_id": {
559
+ "name": "quote_msg_id",
560
+ "type": "text",
561
+ "primaryKey": false,
562
+ "notNull": false,
563
+ "autoincrement": false
564
+ },
565
+ "idempotency_key": {
566
+ "name": "idempotency_key",
567
+ "type": "text",
568
+ "primaryKey": false,
569
+ "notNull": false,
570
+ "autoincrement": false
571
+ },
572
+ "status": {
573
+ "name": "status",
574
+ "type": "text",
575
+ "primaryKey": false,
576
+ "notNull": true,
577
+ "autoincrement": false
578
+ },
579
+ "attempts": {
580
+ "name": "attempts",
581
+ "type": "integer",
582
+ "primaryKey": false,
583
+ "notNull": true,
584
+ "autoincrement": false,
585
+ "default": 0
586
+ },
587
+ "next_attempt_at": {
588
+ "name": "next_attempt_at",
589
+ "type": "integer",
590
+ "primaryKey": false,
591
+ "notNull": false,
592
+ "autoincrement": false
593
+ },
594
+ "last_error": {
595
+ "name": "last_error",
596
+ "type": "text",
597
+ "primaryKey": false,
598
+ "notNull": false,
599
+ "autoincrement": false
600
+ },
601
+ "claimed_by": {
602
+ "name": "claimed_by",
603
+ "type": "text",
604
+ "primaryKey": false,
605
+ "notNull": false,
606
+ "autoincrement": false
607
+ },
608
+ "claimed_at": {
609
+ "name": "claimed_at",
610
+ "type": "integer",
611
+ "primaryKey": false,
612
+ "notNull": false,
613
+ "autoincrement": false
614
+ },
615
+ "created_at": {
616
+ "name": "created_at",
617
+ "type": "integer",
618
+ "primaryKey": false,
619
+ "notNull": true,
620
+ "autoincrement": false
621
+ },
622
+ "updated_at": {
623
+ "name": "updated_at",
624
+ "type": "integer",
625
+ "primaryKey": false,
626
+ "notNull": true,
627
+ "autoincrement": false
628
+ }
629
+ },
630
+ "indexes": {
631
+ "outbound_by_status_next": {
632
+ "name": "outbound_by_status_next",
633
+ "columns": [
634
+ "status",
635
+ "next_attempt_at"
636
+ ],
637
+ "isUnique": false
638
+ },
639
+ "outbound_by_address": {
640
+ "name": "outbound_by_address",
641
+ "columns": [
642
+ "address"
643
+ ],
644
+ "isUnique": false
645
+ },
646
+ "outbound_idempotency_key_uq": {
647
+ "name": "outbound_idempotency_key_uq",
648
+ "columns": [
649
+ "idempotency_key"
650
+ ],
651
+ "isUnique": true,
652
+ "where": "\"outbound\".\"idempotency_key\" IS NOT NULL"
653
+ }
654
+ },
655
+ "foreignKeys": {},
656
+ "compositePrimaryKeys": {},
657
+ "uniqueConstraints": {},
658
+ "checkConstraints": {}
659
+ },
660
+ "persons": {
661
+ "name": "persons",
662
+ "columns": {
663
+ "id": {
664
+ "name": "id",
665
+ "type": "text",
666
+ "primaryKey": true,
667
+ "notNull": true,
668
+ "autoincrement": false
669
+ },
670
+ "display_name": {
671
+ "name": "display_name",
672
+ "type": "text",
673
+ "primaryKey": false,
674
+ "notNull": false,
675
+ "autoincrement": false
676
+ },
677
+ "timezone": {
678
+ "name": "timezone",
679
+ "type": "text",
680
+ "primaryKey": false,
681
+ "notNull": false,
682
+ "autoincrement": false
683
+ },
684
+ "created_at": {
685
+ "name": "created_at",
686
+ "type": "integer",
687
+ "primaryKey": false,
688
+ "notNull": true,
689
+ "autoincrement": false
690
+ }
691
+ },
692
+ "indexes": {},
693
+ "foreignKeys": {},
694
+ "compositePrimaryKeys": {},
695
+ "uniqueConstraints": {},
696
+ "checkConstraints": {}
697
+ },
698
+ "workers": {
699
+ "name": "workers",
700
+ "columns": {
701
+ "id": {
702
+ "name": "id",
703
+ "type": "text",
704
+ "primaryKey": true,
705
+ "notNull": true,
706
+ "autoincrement": false
707
+ },
708
+ "kind": {
709
+ "name": "kind",
710
+ "type": "text",
711
+ "primaryKey": false,
712
+ "notNull": true,
713
+ "autoincrement": false
714
+ },
715
+ "status": {
716
+ "name": "status",
717
+ "type": "text",
718
+ "primaryKey": false,
719
+ "notNull": true,
720
+ "autoincrement": false
721
+ },
722
+ "current_job": {
723
+ "name": "current_job",
724
+ "type": "text",
725
+ "primaryKey": false,
726
+ "notNull": false,
727
+ "autoincrement": false
728
+ },
729
+ "last_seen": {
730
+ "name": "last_seen",
731
+ "type": "integer",
732
+ "primaryKey": false,
733
+ "notNull": true,
734
+ "autoincrement": false
735
+ },
736
+ "started_at": {
737
+ "name": "started_at",
738
+ "type": "integer",
739
+ "primaryKey": false,
740
+ "notNull": true,
741
+ "autoincrement": false
742
+ }
743
+ },
744
+ "indexes": {
745
+ "workers_by_kind_status": {
746
+ "name": "workers_by_kind_status",
747
+ "columns": [
748
+ "kind",
749
+ "status"
750
+ ],
751
+ "isUnique": false
752
+ },
753
+ "workers_by_last_seen": {
754
+ "name": "workers_by_last_seen",
755
+ "columns": [
756
+ "last_seen"
757
+ ],
758
+ "isUnique": false
759
+ }
760
+ },
761
+ "foreignKeys": {},
762
+ "compositePrimaryKeys": {},
763
+ "uniqueConstraints": {},
764
+ "checkConstraints": {}
765
+ }
766
+ },
767
+ "views": {},
768
+ "enums": {},
769
+ "_meta": {
770
+ "schemas": {},
771
+ "tables": {},
772
+ "columns": {}
773
+ },
774
+ "internal": {
775
+ "indexes": {}
776
+ }
777
+ }