@rfc0/patty 1.0.2 → 1.1.0

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