@kitledger/core 0.0.5 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,901 @@
1
+ {
2
+ "id": "d33c2c61-264b-49bf-9c73-920ace87c0ff",
3
+ "prevId": "00000000-0000-0000-0000-000000000000",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.accounts": {
8
+ "name": "accounts",
9
+ "schema": "",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "uuid",
14
+ "primaryKey": true,
15
+ "notNull": true
16
+ },
17
+ "ref_id": {
18
+ "name": "ref_id",
19
+ "type": "varchar(64)",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "alt_id": {
24
+ "name": "alt_id",
25
+ "type": "varchar(64)",
26
+ "primaryKey": false,
27
+ "notNull": false
28
+ },
29
+ "balance_type": {
30
+ "name": "balance_type",
31
+ "type": "varchar(10)",
32
+ "primaryKey": false,
33
+ "notNull": true
34
+ },
35
+ "ledger_id": {
36
+ "name": "ledger_id",
37
+ "type": "uuid",
38
+ "primaryKey": false,
39
+ "notNull": true
40
+ },
41
+ "parent_id": {
42
+ "name": "parent_id",
43
+ "type": "uuid",
44
+ "primaryKey": false,
45
+ "notNull": false
46
+ },
47
+ "name": {
48
+ "name": "name",
49
+ "type": "varchar(64)",
50
+ "primaryKey": false,
51
+ "notNull": true
52
+ },
53
+ "meta": {
54
+ "name": "meta",
55
+ "type": "jsonb",
56
+ "primaryKey": false,
57
+ "notNull": false
58
+ },
59
+ "active": {
60
+ "name": "active",
61
+ "type": "boolean",
62
+ "primaryKey": false,
63
+ "notNull": true,
64
+ "default": true
65
+ },
66
+ "created_at": {
67
+ "name": "created_at",
68
+ "type": "timestamp",
69
+ "primaryKey": false,
70
+ "notNull": true,
71
+ "default": "now()"
72
+ },
73
+ "updated_at": {
74
+ "name": "updated_at",
75
+ "type": "timestamp",
76
+ "primaryKey": false,
77
+ "notNull": false
78
+ }
79
+ },
80
+ "indexes": {},
81
+ "foreignKeys": {},
82
+ "compositePrimaryKeys": {},
83
+ "uniqueConstraints": {
84
+ "accounts_ref_id_unique": {
85
+ "name": "accounts_ref_id_unique",
86
+ "nullsNotDistinct": false,
87
+ "columns": ["ref_id"]
88
+ },
89
+ "accounts_alt_id_unique": {
90
+ "name": "accounts_alt_id_unique",
91
+ "nullsNotDistinct": false,
92
+ "columns": ["alt_id"]
93
+ }
94
+ },
95
+ "policies": {},
96
+ "checkConstraints": {},
97
+ "isRLSEnabled": false
98
+ },
99
+ "public.api_tokens": {
100
+ "name": "api_tokens",
101
+ "schema": "",
102
+ "columns": {
103
+ "id": {
104
+ "name": "id",
105
+ "type": "uuid",
106
+ "primaryKey": true,
107
+ "notNull": true
108
+ },
109
+ "user_id": {
110
+ "name": "user_id",
111
+ "type": "uuid",
112
+ "primaryKey": false,
113
+ "notNull": true
114
+ },
115
+ "name": {
116
+ "name": "name",
117
+ "type": "varchar(64)",
118
+ "primaryKey": false,
119
+ "notNull": true
120
+ },
121
+ "revoked_at": {
122
+ "name": "revoked_at",
123
+ "type": "timestamp",
124
+ "primaryKey": false,
125
+ "notNull": false
126
+ }
127
+ },
128
+ "indexes": {
129
+ "api_token_user_idx": {
130
+ "name": "api_token_user_idx",
131
+ "columns": [
132
+ {
133
+ "expression": "user_id",
134
+ "isExpression": false,
135
+ "asc": true,
136
+ "nulls": "last"
137
+ }
138
+ ],
139
+ "isUnique": false,
140
+ "concurrently": false,
141
+ "method": "btree",
142
+ "with": {}
143
+ }
144
+ },
145
+ "foreignKeys": {
146
+ "api_tokens_user_id_users_id_fk": {
147
+ "name": "api_tokens_user_id_users_id_fk",
148
+ "tableFrom": "api_tokens",
149
+ "tableTo": "users",
150
+ "columnsFrom": ["user_id"],
151
+ "columnsTo": ["id"],
152
+ "onDelete": "no action",
153
+ "onUpdate": "no action"
154
+ }
155
+ },
156
+ "compositePrimaryKeys": {},
157
+ "uniqueConstraints": {},
158
+ "policies": {},
159
+ "checkConstraints": {},
160
+ "isRLSEnabled": false
161
+ },
162
+ "public.entity_models": {
163
+ "name": "entity_models",
164
+ "schema": "",
165
+ "columns": {
166
+ "id": {
167
+ "name": "id",
168
+ "type": "uuid",
169
+ "primaryKey": true,
170
+ "notNull": true
171
+ },
172
+ "ref_id": {
173
+ "name": "ref_id",
174
+ "type": "varchar(64)",
175
+ "primaryKey": false,
176
+ "notNull": true
177
+ },
178
+ "alt_id": {
179
+ "name": "alt_id",
180
+ "type": "varchar(64)",
181
+ "primaryKey": false,
182
+ "notNull": false
183
+ },
184
+ "name": {
185
+ "name": "name",
186
+ "type": "varchar(64)",
187
+ "primaryKey": false,
188
+ "notNull": true
189
+ },
190
+ "active": {
191
+ "name": "active",
192
+ "type": "boolean",
193
+ "primaryKey": false,
194
+ "notNull": true,
195
+ "default": true
196
+ },
197
+ "created_at": {
198
+ "name": "created_at",
199
+ "type": "timestamp",
200
+ "primaryKey": false,
201
+ "notNull": true,
202
+ "default": "now()"
203
+ },
204
+ "updated_at": {
205
+ "name": "updated_at",
206
+ "type": "timestamp",
207
+ "primaryKey": false,
208
+ "notNull": false
209
+ }
210
+ },
211
+ "indexes": {},
212
+ "foreignKeys": {},
213
+ "compositePrimaryKeys": {},
214
+ "uniqueConstraints": {
215
+ "entity_models_ref_id_unique": {
216
+ "name": "entity_models_ref_id_unique",
217
+ "nullsNotDistinct": false,
218
+ "columns": ["ref_id"]
219
+ },
220
+ "entity_models_alt_id_unique": {
221
+ "name": "entity_models_alt_id_unique",
222
+ "nullsNotDistinct": false,
223
+ "columns": ["alt_id"]
224
+ }
225
+ },
226
+ "policies": {},
227
+ "checkConstraints": {},
228
+ "isRLSEnabled": false
229
+ },
230
+ "public.ledgers": {
231
+ "name": "ledgers",
232
+ "schema": "",
233
+ "columns": {
234
+ "id": {
235
+ "name": "id",
236
+ "type": "uuid",
237
+ "primaryKey": true,
238
+ "notNull": true
239
+ },
240
+ "ref_id": {
241
+ "name": "ref_id",
242
+ "type": "varchar(64)",
243
+ "primaryKey": false,
244
+ "notNull": true
245
+ },
246
+ "alt_id": {
247
+ "name": "alt_id",
248
+ "type": "varchar(64)",
249
+ "primaryKey": false,
250
+ "notNull": false
251
+ },
252
+ "name": {
253
+ "name": "name",
254
+ "type": "varchar(64)",
255
+ "primaryKey": false,
256
+ "notNull": true
257
+ },
258
+ "description": {
259
+ "name": "description",
260
+ "type": "varchar(255)",
261
+ "primaryKey": false,
262
+ "notNull": false
263
+ },
264
+ "unit_model_id": {
265
+ "name": "unit_model_id",
266
+ "type": "uuid",
267
+ "primaryKey": false,
268
+ "notNull": true
269
+ },
270
+ "active": {
271
+ "name": "active",
272
+ "type": "boolean",
273
+ "primaryKey": false,
274
+ "notNull": true,
275
+ "default": true
276
+ },
277
+ "created_at": {
278
+ "name": "created_at",
279
+ "type": "timestamp",
280
+ "primaryKey": false,
281
+ "notNull": true,
282
+ "default": "now()"
283
+ },
284
+ "updated_at": {
285
+ "name": "updated_at",
286
+ "type": "timestamp",
287
+ "primaryKey": false,
288
+ "notNull": false
289
+ }
290
+ },
291
+ "indexes": {},
292
+ "foreignKeys": {},
293
+ "compositePrimaryKeys": {},
294
+ "uniqueConstraints": {
295
+ "ledgers_ref_id_unique": {
296
+ "name": "ledgers_ref_id_unique",
297
+ "nullsNotDistinct": false,
298
+ "columns": ["ref_id"]
299
+ },
300
+ "ledgers_alt_id_unique": {
301
+ "name": "ledgers_alt_id_unique",
302
+ "nullsNotDistinct": false,
303
+ "columns": ["alt_id"]
304
+ }
305
+ },
306
+ "policies": {},
307
+ "checkConstraints": {},
308
+ "isRLSEnabled": false
309
+ },
310
+ "public.permission_assignments": {
311
+ "name": "permission_assignments",
312
+ "schema": "",
313
+ "columns": {
314
+ "id": {
315
+ "name": "id",
316
+ "type": "uuid",
317
+ "primaryKey": true,
318
+ "notNull": true
319
+ },
320
+ "permission_id": {
321
+ "name": "permission_id",
322
+ "type": "uuid",
323
+ "primaryKey": false,
324
+ "notNull": true
325
+ },
326
+ "user_id": {
327
+ "name": "user_id",
328
+ "type": "uuid",
329
+ "primaryKey": false,
330
+ "notNull": false
331
+ },
332
+ "role_id": {
333
+ "name": "role_id",
334
+ "type": "uuid",
335
+ "primaryKey": false,
336
+ "notNull": false
337
+ },
338
+ "created_at": {
339
+ "name": "created_at",
340
+ "type": "timestamp",
341
+ "primaryKey": false,
342
+ "notNull": true,
343
+ "default": "now()"
344
+ },
345
+ "updated_at": {
346
+ "name": "updated_at",
347
+ "type": "timestamp",
348
+ "primaryKey": false,
349
+ "notNull": false
350
+ }
351
+ },
352
+ "indexes": {
353
+ "permission_assignment_user_idx": {
354
+ "name": "permission_assignment_user_idx",
355
+ "columns": [
356
+ {
357
+ "expression": "user_id",
358
+ "isExpression": false,
359
+ "asc": true,
360
+ "nulls": "last"
361
+ }
362
+ ],
363
+ "isUnique": false,
364
+ "concurrently": false,
365
+ "method": "btree",
366
+ "with": {}
367
+ },
368
+ "permission_assignment_role_idx": {
369
+ "name": "permission_assignment_role_idx",
370
+ "columns": [
371
+ {
372
+ "expression": "role_id",
373
+ "isExpression": false,
374
+ "asc": true,
375
+ "nulls": "last"
376
+ }
377
+ ],
378
+ "isUnique": false,
379
+ "concurrently": false,
380
+ "method": "btree",
381
+ "with": {}
382
+ },
383
+ "permission_assignment_permission_idx": {
384
+ "name": "permission_assignment_permission_idx",
385
+ "columns": [
386
+ {
387
+ "expression": "permission_id",
388
+ "isExpression": false,
389
+ "asc": true,
390
+ "nulls": "last"
391
+ }
392
+ ],
393
+ "isUnique": false,
394
+ "concurrently": false,
395
+ "method": "btree",
396
+ "with": {}
397
+ }
398
+ },
399
+ "foreignKeys": {
400
+ "permission_assignments_permission_id_permissions_id_fk": {
401
+ "name": "permission_assignments_permission_id_permissions_id_fk",
402
+ "tableFrom": "permission_assignments",
403
+ "tableTo": "permissions",
404
+ "columnsFrom": ["permission_id"],
405
+ "columnsTo": ["id"],
406
+ "onDelete": "no action",
407
+ "onUpdate": "no action"
408
+ }
409
+ },
410
+ "compositePrimaryKeys": {},
411
+ "uniqueConstraints": {},
412
+ "policies": {},
413
+ "checkConstraints": {},
414
+ "isRLSEnabled": false
415
+ },
416
+ "public.permissions": {
417
+ "name": "permissions",
418
+ "schema": "",
419
+ "columns": {
420
+ "id": {
421
+ "name": "id",
422
+ "type": "uuid",
423
+ "primaryKey": true,
424
+ "notNull": true
425
+ },
426
+ "name": {
427
+ "name": "name",
428
+ "type": "varchar(64)",
429
+ "primaryKey": false,
430
+ "notNull": true
431
+ },
432
+ "description": {
433
+ "name": "description",
434
+ "type": "varchar(255)",
435
+ "primaryKey": false,
436
+ "notNull": false
437
+ },
438
+ "created_at": {
439
+ "name": "created_at",
440
+ "type": "timestamp",
441
+ "primaryKey": false,
442
+ "notNull": true,
443
+ "default": "now()"
444
+ },
445
+ "updated_at": {
446
+ "name": "updated_at",
447
+ "type": "timestamp",
448
+ "primaryKey": false,
449
+ "notNull": false
450
+ }
451
+ },
452
+ "indexes": {},
453
+ "foreignKeys": {},
454
+ "compositePrimaryKeys": {},
455
+ "uniqueConstraints": {
456
+ "permissions_name_unique": {
457
+ "name": "permissions_name_unique",
458
+ "nullsNotDistinct": false,
459
+ "columns": ["name"]
460
+ }
461
+ },
462
+ "policies": {},
463
+ "checkConstraints": {},
464
+ "isRLSEnabled": false
465
+ },
466
+ "public.roles": {
467
+ "name": "roles",
468
+ "schema": "",
469
+ "columns": {
470
+ "id": {
471
+ "name": "id",
472
+ "type": "uuid",
473
+ "primaryKey": true,
474
+ "notNull": true
475
+ },
476
+ "name": {
477
+ "name": "name",
478
+ "type": "varchar(64)",
479
+ "primaryKey": false,
480
+ "notNull": true
481
+ },
482
+ "description": {
483
+ "name": "description",
484
+ "type": "varchar(255)",
485
+ "primaryKey": false,
486
+ "notNull": false
487
+ },
488
+ "created_at": {
489
+ "name": "created_at",
490
+ "type": "timestamp",
491
+ "primaryKey": false,
492
+ "notNull": true,
493
+ "default": "now()"
494
+ },
495
+ "updated_at": {
496
+ "name": "updated_at",
497
+ "type": "timestamp",
498
+ "primaryKey": false,
499
+ "notNull": false
500
+ }
501
+ },
502
+ "indexes": {},
503
+ "foreignKeys": {},
504
+ "compositePrimaryKeys": {},
505
+ "uniqueConstraints": {
506
+ "roles_name_unique": {
507
+ "name": "roles_name_unique",
508
+ "nullsNotDistinct": false,
509
+ "columns": ["name"]
510
+ }
511
+ },
512
+ "policies": {},
513
+ "checkConstraints": {},
514
+ "isRLSEnabled": false
515
+ },
516
+ "public.system_permissions": {
517
+ "name": "system_permissions",
518
+ "schema": "",
519
+ "columns": {
520
+ "id": {
521
+ "name": "id",
522
+ "type": "uuid",
523
+ "primaryKey": true,
524
+ "notNull": true
525
+ },
526
+ "permission": {
527
+ "name": "permission",
528
+ "type": "varchar(64)",
529
+ "primaryKey": false,
530
+ "notNull": true
531
+ },
532
+ "user_id": {
533
+ "name": "user_id",
534
+ "type": "uuid",
535
+ "primaryKey": false,
536
+ "notNull": true
537
+ },
538
+ "created_at": {
539
+ "name": "created_at",
540
+ "type": "timestamp",
541
+ "primaryKey": false,
542
+ "notNull": true,
543
+ "default": "now()"
544
+ },
545
+ "updated_at": {
546
+ "name": "updated_at",
547
+ "type": "timestamp",
548
+ "primaryKey": false,
549
+ "notNull": false
550
+ }
551
+ },
552
+ "indexes": {
553
+ "system_permission_user_idx": {
554
+ "name": "system_permission_user_idx",
555
+ "columns": [
556
+ {
557
+ "expression": "user_id",
558
+ "isExpression": false,
559
+ "asc": true,
560
+ "nulls": "last"
561
+ }
562
+ ],
563
+ "isUnique": false,
564
+ "concurrently": false,
565
+ "method": "btree",
566
+ "with": {}
567
+ },
568
+ "system_permission_permission_idx": {
569
+ "name": "system_permission_permission_idx",
570
+ "columns": [
571
+ {
572
+ "expression": "permission",
573
+ "isExpression": false,
574
+ "asc": true,
575
+ "nulls": "last"
576
+ }
577
+ ],
578
+ "isUnique": false,
579
+ "concurrently": false,
580
+ "method": "btree",
581
+ "with": {}
582
+ }
583
+ },
584
+ "foreignKeys": {
585
+ "system_permissions_user_id_users_id_fk": {
586
+ "name": "system_permissions_user_id_users_id_fk",
587
+ "tableFrom": "system_permissions",
588
+ "tableTo": "users",
589
+ "columnsFrom": ["user_id"],
590
+ "columnsTo": ["id"],
591
+ "onDelete": "no action",
592
+ "onUpdate": "no action"
593
+ }
594
+ },
595
+ "compositePrimaryKeys": {},
596
+ "uniqueConstraints": {},
597
+ "policies": {},
598
+ "checkConstraints": {},
599
+ "isRLSEnabled": false
600
+ },
601
+ "public.transaction_models": {
602
+ "name": "transaction_models",
603
+ "schema": "",
604
+ "columns": {
605
+ "id": {
606
+ "name": "id",
607
+ "type": "uuid",
608
+ "primaryKey": true,
609
+ "notNull": true
610
+ },
611
+ "ref_id": {
612
+ "name": "ref_id",
613
+ "type": "varchar(64)",
614
+ "primaryKey": false,
615
+ "notNull": true
616
+ },
617
+ "alt_id": {
618
+ "name": "alt_id",
619
+ "type": "varchar(64)",
620
+ "primaryKey": false,
621
+ "notNull": false
622
+ },
623
+ "name": {
624
+ "name": "name",
625
+ "type": "varchar(64)",
626
+ "primaryKey": false,
627
+ "notNull": true
628
+ },
629
+ "active": {
630
+ "name": "active",
631
+ "type": "boolean",
632
+ "primaryKey": false,
633
+ "notNull": true,
634
+ "default": true
635
+ },
636
+ "created_at": {
637
+ "name": "created_at",
638
+ "type": "timestamp",
639
+ "primaryKey": false,
640
+ "notNull": true,
641
+ "default": "now()"
642
+ },
643
+ "updated_at": {
644
+ "name": "updated_at",
645
+ "type": "timestamp",
646
+ "primaryKey": false,
647
+ "notNull": false
648
+ }
649
+ },
650
+ "indexes": {},
651
+ "foreignKeys": {},
652
+ "compositePrimaryKeys": {},
653
+ "uniqueConstraints": {
654
+ "transaction_models_ref_id_unique": {
655
+ "name": "transaction_models_ref_id_unique",
656
+ "nullsNotDistinct": false,
657
+ "columns": ["ref_id"]
658
+ },
659
+ "transaction_models_alt_id_unique": {
660
+ "name": "transaction_models_alt_id_unique",
661
+ "nullsNotDistinct": false,
662
+ "columns": ["alt_id"]
663
+ }
664
+ },
665
+ "policies": {},
666
+ "checkConstraints": {},
667
+ "isRLSEnabled": false
668
+ },
669
+ "public.unit_models": {
670
+ "name": "unit_models",
671
+ "schema": "",
672
+ "columns": {
673
+ "id": {
674
+ "name": "id",
675
+ "type": "uuid",
676
+ "primaryKey": true,
677
+ "notNull": true
678
+ },
679
+ "ref_id": {
680
+ "name": "ref_id",
681
+ "type": "varchar(64)",
682
+ "primaryKey": false,
683
+ "notNull": true
684
+ },
685
+ "alt_id": {
686
+ "name": "alt_id",
687
+ "type": "varchar(64)",
688
+ "primaryKey": false,
689
+ "notNull": false
690
+ },
691
+ "name": {
692
+ "name": "name",
693
+ "type": "varchar(64)",
694
+ "primaryKey": false,
695
+ "notNull": true
696
+ },
697
+ "active": {
698
+ "name": "active",
699
+ "type": "boolean",
700
+ "primaryKey": false,
701
+ "notNull": true,
702
+ "default": true
703
+ },
704
+ "base_unit_id": {
705
+ "name": "base_unit_id",
706
+ "type": "uuid",
707
+ "primaryKey": false,
708
+ "notNull": false
709
+ },
710
+ "created_at": {
711
+ "name": "created_at",
712
+ "type": "timestamp",
713
+ "primaryKey": false,
714
+ "notNull": true,
715
+ "default": "now()"
716
+ },
717
+ "updated_at": {
718
+ "name": "updated_at",
719
+ "type": "timestamp",
720
+ "primaryKey": false,
721
+ "notNull": false
722
+ }
723
+ },
724
+ "indexes": {},
725
+ "foreignKeys": {},
726
+ "compositePrimaryKeys": {},
727
+ "uniqueConstraints": {
728
+ "unit_models_ref_id_unique": {
729
+ "name": "unit_models_ref_id_unique",
730
+ "nullsNotDistinct": false,
731
+ "columns": ["ref_id"]
732
+ },
733
+ "unit_models_alt_id_unique": {
734
+ "name": "unit_models_alt_id_unique",
735
+ "nullsNotDistinct": false,
736
+ "columns": ["alt_id"]
737
+ },
738
+ "unit_models_base_unit_id_unique": {
739
+ "name": "unit_models_base_unit_id_unique",
740
+ "nullsNotDistinct": false,
741
+ "columns": ["base_unit_id"]
742
+ }
743
+ },
744
+ "policies": {},
745
+ "checkConstraints": {},
746
+ "isRLSEnabled": false
747
+ },
748
+ "public.user_roles": {
749
+ "name": "user_roles",
750
+ "schema": "",
751
+ "columns": {
752
+ "id": {
753
+ "name": "id",
754
+ "type": "uuid",
755
+ "primaryKey": true,
756
+ "notNull": true
757
+ },
758
+ "user_id": {
759
+ "name": "user_id",
760
+ "type": "uuid",
761
+ "primaryKey": false,
762
+ "notNull": true
763
+ },
764
+ "role_id": {
765
+ "name": "role_id",
766
+ "type": "uuid",
767
+ "primaryKey": false,
768
+ "notNull": true
769
+ },
770
+ "created_at": {
771
+ "name": "created_at",
772
+ "type": "timestamp",
773
+ "primaryKey": false,
774
+ "notNull": true,
775
+ "default": "now()"
776
+ },
777
+ "updated_at": {
778
+ "name": "updated_at",
779
+ "type": "timestamp",
780
+ "primaryKey": false,
781
+ "notNull": false
782
+ }
783
+ },
784
+ "indexes": {},
785
+ "foreignKeys": {
786
+ "user_roles_user_id_users_id_fk": {
787
+ "name": "user_roles_user_id_users_id_fk",
788
+ "tableFrom": "user_roles",
789
+ "tableTo": "users",
790
+ "columnsFrom": ["user_id"],
791
+ "columnsTo": ["id"],
792
+ "onDelete": "no action",
793
+ "onUpdate": "no action"
794
+ },
795
+ "user_roles_role_id_roles_id_fk": {
796
+ "name": "user_roles_role_id_roles_id_fk",
797
+ "tableFrom": "user_roles",
798
+ "tableTo": "roles",
799
+ "columnsFrom": ["role_id"],
800
+ "columnsTo": ["id"],
801
+ "onDelete": "no action",
802
+ "onUpdate": "no action"
803
+ }
804
+ },
805
+ "compositePrimaryKeys": {},
806
+ "uniqueConstraints": {},
807
+ "policies": {},
808
+ "checkConstraints": {},
809
+ "isRLSEnabled": false
810
+ },
811
+ "public.users": {
812
+ "name": "users",
813
+ "schema": "",
814
+ "columns": {
815
+ "id": {
816
+ "name": "id",
817
+ "type": "uuid",
818
+ "primaryKey": true,
819
+ "notNull": true
820
+ },
821
+ "first_name": {
822
+ "name": "first_name",
823
+ "type": "varchar(64)",
824
+ "primaryKey": false,
825
+ "notNull": true
826
+ },
827
+ "last_name": {
828
+ "name": "last_name",
829
+ "type": "varchar(64)",
830
+ "primaryKey": false,
831
+ "notNull": true
832
+ },
833
+ "email": {
834
+ "name": "email",
835
+ "type": "varchar(64)",
836
+ "primaryKey": false,
837
+ "notNull": true
838
+ },
839
+ "password_hash": {
840
+ "name": "password_hash",
841
+ "type": "text",
842
+ "primaryKey": false,
843
+ "notNull": true
844
+ },
845
+ "created_at": {
846
+ "name": "created_at",
847
+ "type": "timestamp",
848
+ "primaryKey": false,
849
+ "notNull": true,
850
+ "default": "now()"
851
+ },
852
+ "updated_at": {
853
+ "name": "updated_at",
854
+ "type": "timestamp",
855
+ "primaryKey": false,
856
+ "notNull": false
857
+ }
858
+ },
859
+ "indexes": {
860
+ "user_email_idx": {
861
+ "name": "user_email_idx",
862
+ "columns": [
863
+ {
864
+ "expression": "email",
865
+ "isExpression": false,
866
+ "asc": true,
867
+ "nulls": "last"
868
+ }
869
+ ],
870
+ "isUnique": false,
871
+ "concurrently": false,
872
+ "method": "btree",
873
+ "with": {}
874
+ }
875
+ },
876
+ "foreignKeys": {},
877
+ "compositePrimaryKeys": {},
878
+ "uniqueConstraints": {
879
+ "users_email_unique": {
880
+ "name": "users_email_unique",
881
+ "nullsNotDistinct": false,
882
+ "columns": ["email"]
883
+ }
884
+ },
885
+ "policies": {},
886
+ "checkConstraints": {},
887
+ "isRLSEnabled": false
888
+ }
889
+ },
890
+ "enums": {},
891
+ "schemas": {},
892
+ "sequences": {},
893
+ "roles": {},
894
+ "policies": {},
895
+ "views": {},
896
+ "_meta": {
897
+ "columns": {},
898
+ "schemas": {},
899
+ "tables": {}
900
+ }
901
+ }