@spfn/auth 0.3.0-beta.1 → 0.3.0-beta.3

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,3334 @@
1
+ {
2
+ "version": "8",
3
+ "dialect": "postgres",
4
+ "id": "24b5a39e-39a4-4f18-9e83-dce5d7906c18",
5
+ "prevIds": [
6
+ "24acbfec-e4ab-446c-bf2f-0ee21c471c77"
7
+ ],
8
+ "ddl": [
9
+ {
10
+ "name": "spfn_auth",
11
+ "entityType": "schemas"
12
+ },
13
+ {
14
+ "isRlsEnabled": false,
15
+ "name": "users",
16
+ "entityType": "tables",
17
+ "schema": "spfn_auth"
18
+ },
19
+ {
20
+ "isRlsEnabled": false,
21
+ "name": "user_profiles",
22
+ "entityType": "tables",
23
+ "schema": "spfn_auth"
24
+ },
25
+ {
26
+ "isRlsEnabled": false,
27
+ "name": "user_public_keys",
28
+ "entityType": "tables",
29
+ "schema": "spfn_auth"
30
+ },
31
+ {
32
+ "isRlsEnabled": false,
33
+ "name": "user_social_accounts",
34
+ "entityType": "tables",
35
+ "schema": "spfn_auth"
36
+ },
37
+ {
38
+ "isRlsEnabled": false,
39
+ "name": "verification_codes",
40
+ "entityType": "tables",
41
+ "schema": "spfn_auth"
42
+ },
43
+ {
44
+ "isRlsEnabled": false,
45
+ "name": "user_invitations",
46
+ "entityType": "tables",
47
+ "schema": "spfn_auth"
48
+ },
49
+ {
50
+ "isRlsEnabled": false,
51
+ "name": "account_deletion_requests",
52
+ "entityType": "tables",
53
+ "schema": "spfn_auth"
54
+ },
55
+ {
56
+ "isRlsEnabled": false,
57
+ "name": "roles",
58
+ "entityType": "tables",
59
+ "schema": "spfn_auth"
60
+ },
61
+ {
62
+ "isRlsEnabled": false,
63
+ "name": "permissions",
64
+ "entityType": "tables",
65
+ "schema": "spfn_auth"
66
+ },
67
+ {
68
+ "isRlsEnabled": false,
69
+ "name": "role_permissions",
70
+ "entityType": "tables",
71
+ "schema": "spfn_auth"
72
+ },
73
+ {
74
+ "isRlsEnabled": false,
75
+ "name": "user_permissions",
76
+ "entityType": "tables",
77
+ "schema": "spfn_auth"
78
+ },
79
+ {
80
+ "isRlsEnabled": false,
81
+ "name": "auth_metadata",
82
+ "entityType": "tables",
83
+ "schema": "spfn_auth"
84
+ },
85
+ {
86
+ "isRlsEnabled": false,
87
+ "name": "ops_tokens",
88
+ "entityType": "tables",
89
+ "schema": "spfn_auth"
90
+ },
91
+ {
92
+ "type": "bigserial",
93
+ "typeSchema": null,
94
+ "notNull": true,
95
+ "dimensions": 0,
96
+ "default": null,
97
+ "generated": null,
98
+ "identity": null,
99
+ "name": "id",
100
+ "entityType": "columns",
101
+ "schema": "spfn_auth",
102
+ "table": "users"
103
+ },
104
+ {
105
+ "type": "uuid",
106
+ "typeSchema": null,
107
+ "notNull": true,
108
+ "dimensions": 0,
109
+ "default": "gen_random_uuid()",
110
+ "generated": null,
111
+ "identity": null,
112
+ "name": "public_id",
113
+ "entityType": "columns",
114
+ "schema": "spfn_auth",
115
+ "table": "users"
116
+ },
117
+ {
118
+ "type": "text",
119
+ "typeSchema": null,
120
+ "notNull": false,
121
+ "dimensions": 0,
122
+ "default": null,
123
+ "generated": null,
124
+ "identity": null,
125
+ "name": "email",
126
+ "entityType": "columns",
127
+ "schema": "spfn_auth",
128
+ "table": "users"
129
+ },
130
+ {
131
+ "type": "text",
132
+ "typeSchema": null,
133
+ "notNull": false,
134
+ "dimensions": 0,
135
+ "default": null,
136
+ "generated": null,
137
+ "identity": null,
138
+ "name": "phone",
139
+ "entityType": "columns",
140
+ "schema": "spfn_auth",
141
+ "table": "users"
142
+ },
143
+ {
144
+ "type": "text",
145
+ "typeSchema": null,
146
+ "notNull": false,
147
+ "dimensions": 0,
148
+ "default": null,
149
+ "generated": null,
150
+ "identity": null,
151
+ "name": "username",
152
+ "entityType": "columns",
153
+ "schema": "spfn_auth",
154
+ "table": "users"
155
+ },
156
+ {
157
+ "type": "text",
158
+ "typeSchema": null,
159
+ "notNull": false,
160
+ "dimensions": 0,
161
+ "default": null,
162
+ "generated": null,
163
+ "identity": null,
164
+ "name": "password_hash",
165
+ "entityType": "columns",
166
+ "schema": "spfn_auth",
167
+ "table": "users"
168
+ },
169
+ {
170
+ "type": "boolean",
171
+ "typeSchema": null,
172
+ "notNull": true,
173
+ "dimensions": 0,
174
+ "default": "false",
175
+ "generated": null,
176
+ "identity": null,
177
+ "name": "password_change_required",
178
+ "entityType": "columns",
179
+ "schema": "spfn_auth",
180
+ "table": "users"
181
+ },
182
+ {
183
+ "type": "bigint",
184
+ "typeSchema": null,
185
+ "notNull": true,
186
+ "dimensions": 0,
187
+ "default": null,
188
+ "generated": null,
189
+ "identity": null,
190
+ "name": "role_id",
191
+ "entityType": "columns",
192
+ "schema": "spfn_auth",
193
+ "table": "users"
194
+ },
195
+ {
196
+ "type": "text",
197
+ "typeSchema": null,
198
+ "notNull": true,
199
+ "dimensions": 0,
200
+ "default": "'active'",
201
+ "generated": null,
202
+ "identity": null,
203
+ "name": "status",
204
+ "entityType": "columns",
205
+ "schema": "spfn_auth",
206
+ "table": "users"
207
+ },
208
+ {
209
+ "type": "timestamp with time zone",
210
+ "typeSchema": null,
211
+ "notNull": false,
212
+ "dimensions": 0,
213
+ "default": null,
214
+ "generated": null,
215
+ "identity": null,
216
+ "name": "email_verified_at",
217
+ "entityType": "columns",
218
+ "schema": "spfn_auth",
219
+ "table": "users"
220
+ },
221
+ {
222
+ "type": "timestamp with time zone",
223
+ "typeSchema": null,
224
+ "notNull": false,
225
+ "dimensions": 0,
226
+ "default": null,
227
+ "generated": null,
228
+ "identity": null,
229
+ "name": "phone_verified_at",
230
+ "entityType": "columns",
231
+ "schema": "spfn_auth",
232
+ "table": "users"
233
+ },
234
+ {
235
+ "type": "timestamp with time zone",
236
+ "typeSchema": null,
237
+ "notNull": false,
238
+ "dimensions": 0,
239
+ "default": null,
240
+ "generated": null,
241
+ "identity": null,
242
+ "name": "last_login_at",
243
+ "entityType": "columns",
244
+ "schema": "spfn_auth",
245
+ "table": "users"
246
+ },
247
+ {
248
+ "type": "timestamp with time zone",
249
+ "typeSchema": null,
250
+ "notNull": true,
251
+ "dimensions": 0,
252
+ "default": "now()",
253
+ "generated": null,
254
+ "identity": null,
255
+ "name": "created_at",
256
+ "entityType": "columns",
257
+ "schema": "spfn_auth",
258
+ "table": "users"
259
+ },
260
+ {
261
+ "type": "timestamp with time zone",
262
+ "typeSchema": null,
263
+ "notNull": true,
264
+ "dimensions": 0,
265
+ "default": "now()",
266
+ "generated": null,
267
+ "identity": null,
268
+ "name": "updated_at",
269
+ "entityType": "columns",
270
+ "schema": "spfn_auth",
271
+ "table": "users"
272
+ },
273
+ {
274
+ "type": "timestamp with time zone",
275
+ "typeSchema": null,
276
+ "notNull": false,
277
+ "dimensions": 0,
278
+ "default": null,
279
+ "generated": null,
280
+ "identity": null,
281
+ "name": "deleted_at",
282
+ "entityType": "columns",
283
+ "schema": "spfn_auth",
284
+ "table": "users"
285
+ },
286
+ {
287
+ "type": "text",
288
+ "typeSchema": null,
289
+ "notNull": false,
290
+ "dimensions": 0,
291
+ "default": null,
292
+ "generated": null,
293
+ "identity": null,
294
+ "name": "deleted_by",
295
+ "entityType": "columns",
296
+ "schema": "spfn_auth",
297
+ "table": "users"
298
+ },
299
+ {
300
+ "type": "bigserial",
301
+ "typeSchema": null,
302
+ "notNull": true,
303
+ "dimensions": 0,
304
+ "default": null,
305
+ "generated": null,
306
+ "identity": null,
307
+ "name": "id",
308
+ "entityType": "columns",
309
+ "schema": "spfn_auth",
310
+ "table": "user_profiles"
311
+ },
312
+ {
313
+ "type": "bigint",
314
+ "typeSchema": null,
315
+ "notNull": true,
316
+ "dimensions": 0,
317
+ "default": null,
318
+ "generated": null,
319
+ "identity": null,
320
+ "name": "user_id",
321
+ "entityType": "columns",
322
+ "schema": "spfn_auth",
323
+ "table": "user_profiles"
324
+ },
325
+ {
326
+ "type": "text",
327
+ "typeSchema": null,
328
+ "notNull": false,
329
+ "dimensions": 0,
330
+ "default": null,
331
+ "generated": null,
332
+ "identity": null,
333
+ "name": "display_name",
334
+ "entityType": "columns",
335
+ "schema": "spfn_auth",
336
+ "table": "user_profiles"
337
+ },
338
+ {
339
+ "type": "text",
340
+ "typeSchema": null,
341
+ "notNull": false,
342
+ "dimensions": 0,
343
+ "default": null,
344
+ "generated": null,
345
+ "identity": null,
346
+ "name": "first_name",
347
+ "entityType": "columns",
348
+ "schema": "spfn_auth",
349
+ "table": "user_profiles"
350
+ },
351
+ {
352
+ "type": "text",
353
+ "typeSchema": null,
354
+ "notNull": false,
355
+ "dimensions": 0,
356
+ "default": null,
357
+ "generated": null,
358
+ "identity": null,
359
+ "name": "last_name",
360
+ "entityType": "columns",
361
+ "schema": "spfn_auth",
362
+ "table": "user_profiles"
363
+ },
364
+ {
365
+ "type": "text",
366
+ "typeSchema": null,
367
+ "notNull": false,
368
+ "dimensions": 0,
369
+ "default": null,
370
+ "generated": null,
371
+ "identity": null,
372
+ "name": "avatar_url",
373
+ "entityType": "columns",
374
+ "schema": "spfn_auth",
375
+ "table": "user_profiles"
376
+ },
377
+ {
378
+ "type": "text",
379
+ "typeSchema": null,
380
+ "notNull": false,
381
+ "dimensions": 0,
382
+ "default": null,
383
+ "generated": null,
384
+ "identity": null,
385
+ "name": "bio",
386
+ "entityType": "columns",
387
+ "schema": "spfn_auth",
388
+ "table": "user_profiles"
389
+ },
390
+ {
391
+ "type": "text",
392
+ "typeSchema": null,
393
+ "notNull": false,
394
+ "dimensions": 0,
395
+ "default": "'en'",
396
+ "generated": null,
397
+ "identity": null,
398
+ "name": "locale",
399
+ "entityType": "columns",
400
+ "schema": "spfn_auth",
401
+ "table": "user_profiles"
402
+ },
403
+ {
404
+ "type": "text",
405
+ "typeSchema": null,
406
+ "notNull": false,
407
+ "dimensions": 0,
408
+ "default": "'UTC'",
409
+ "generated": null,
410
+ "identity": null,
411
+ "name": "timezone",
412
+ "entityType": "columns",
413
+ "schema": "spfn_auth",
414
+ "table": "user_profiles"
415
+ },
416
+ {
417
+ "type": "text",
418
+ "typeSchema": null,
419
+ "notNull": false,
420
+ "dimensions": 0,
421
+ "default": null,
422
+ "generated": null,
423
+ "identity": null,
424
+ "name": "date_of_birth",
425
+ "entityType": "columns",
426
+ "schema": "spfn_auth",
427
+ "table": "user_profiles"
428
+ },
429
+ {
430
+ "type": "text",
431
+ "typeSchema": null,
432
+ "notNull": false,
433
+ "dimensions": 0,
434
+ "default": null,
435
+ "generated": null,
436
+ "identity": null,
437
+ "name": "gender",
438
+ "entityType": "columns",
439
+ "schema": "spfn_auth",
440
+ "table": "user_profiles"
441
+ },
442
+ {
443
+ "type": "text",
444
+ "typeSchema": null,
445
+ "notNull": false,
446
+ "dimensions": 0,
447
+ "default": null,
448
+ "generated": null,
449
+ "identity": null,
450
+ "name": "website",
451
+ "entityType": "columns",
452
+ "schema": "spfn_auth",
453
+ "table": "user_profiles"
454
+ },
455
+ {
456
+ "type": "text",
457
+ "typeSchema": null,
458
+ "notNull": false,
459
+ "dimensions": 0,
460
+ "default": null,
461
+ "generated": null,
462
+ "identity": null,
463
+ "name": "location",
464
+ "entityType": "columns",
465
+ "schema": "spfn_auth",
466
+ "table": "user_profiles"
467
+ },
468
+ {
469
+ "type": "text",
470
+ "typeSchema": null,
471
+ "notNull": false,
472
+ "dimensions": 0,
473
+ "default": null,
474
+ "generated": null,
475
+ "identity": null,
476
+ "name": "company",
477
+ "entityType": "columns",
478
+ "schema": "spfn_auth",
479
+ "table": "user_profiles"
480
+ },
481
+ {
482
+ "type": "text",
483
+ "typeSchema": null,
484
+ "notNull": false,
485
+ "dimensions": 0,
486
+ "default": null,
487
+ "generated": null,
488
+ "identity": null,
489
+ "name": "job_title",
490
+ "entityType": "columns",
491
+ "schema": "spfn_auth",
492
+ "table": "user_profiles"
493
+ },
494
+ {
495
+ "type": "jsonb",
496
+ "typeSchema": null,
497
+ "notNull": false,
498
+ "dimensions": 0,
499
+ "default": null,
500
+ "generated": null,
501
+ "identity": null,
502
+ "name": "metadata",
503
+ "entityType": "columns",
504
+ "schema": "spfn_auth",
505
+ "table": "user_profiles"
506
+ },
507
+ {
508
+ "type": "timestamp with time zone",
509
+ "typeSchema": null,
510
+ "notNull": true,
511
+ "dimensions": 0,
512
+ "default": "now()",
513
+ "generated": null,
514
+ "identity": null,
515
+ "name": "created_at",
516
+ "entityType": "columns",
517
+ "schema": "spfn_auth",
518
+ "table": "user_profiles"
519
+ },
520
+ {
521
+ "type": "timestamp with time zone",
522
+ "typeSchema": null,
523
+ "notNull": true,
524
+ "dimensions": 0,
525
+ "default": "now()",
526
+ "generated": null,
527
+ "identity": null,
528
+ "name": "updated_at",
529
+ "entityType": "columns",
530
+ "schema": "spfn_auth",
531
+ "table": "user_profiles"
532
+ },
533
+ {
534
+ "type": "bigserial",
535
+ "typeSchema": null,
536
+ "notNull": true,
537
+ "dimensions": 0,
538
+ "default": null,
539
+ "generated": null,
540
+ "identity": null,
541
+ "name": "id",
542
+ "entityType": "columns",
543
+ "schema": "spfn_auth",
544
+ "table": "user_public_keys"
545
+ },
546
+ {
547
+ "type": "bigint",
548
+ "typeSchema": null,
549
+ "notNull": true,
550
+ "dimensions": 0,
551
+ "default": null,
552
+ "generated": null,
553
+ "identity": null,
554
+ "name": "user_id",
555
+ "entityType": "columns",
556
+ "schema": "spfn_auth",
557
+ "table": "user_public_keys"
558
+ },
559
+ {
560
+ "type": "text",
561
+ "typeSchema": null,
562
+ "notNull": true,
563
+ "dimensions": 0,
564
+ "default": null,
565
+ "generated": null,
566
+ "identity": null,
567
+ "name": "key_id",
568
+ "entityType": "columns",
569
+ "schema": "spfn_auth",
570
+ "table": "user_public_keys"
571
+ },
572
+ {
573
+ "type": "text",
574
+ "typeSchema": null,
575
+ "notNull": true,
576
+ "dimensions": 0,
577
+ "default": null,
578
+ "generated": null,
579
+ "identity": null,
580
+ "name": "public_key",
581
+ "entityType": "columns",
582
+ "schema": "spfn_auth",
583
+ "table": "user_public_keys"
584
+ },
585
+ {
586
+ "type": "text",
587
+ "typeSchema": null,
588
+ "notNull": true,
589
+ "dimensions": 0,
590
+ "default": "'ES256'",
591
+ "generated": null,
592
+ "identity": null,
593
+ "name": "algorithm",
594
+ "entityType": "columns",
595
+ "schema": "spfn_auth",
596
+ "table": "user_public_keys"
597
+ },
598
+ {
599
+ "type": "text",
600
+ "typeSchema": null,
601
+ "notNull": true,
602
+ "dimensions": 0,
603
+ "default": null,
604
+ "generated": null,
605
+ "identity": null,
606
+ "name": "fingerprint",
607
+ "entityType": "columns",
608
+ "schema": "spfn_auth",
609
+ "table": "user_public_keys"
610
+ },
611
+ {
612
+ "type": "text",
613
+ "typeSchema": null,
614
+ "notNull": false,
615
+ "dimensions": 0,
616
+ "default": null,
617
+ "generated": null,
618
+ "identity": null,
619
+ "name": "device_name",
620
+ "entityType": "columns",
621
+ "schema": "spfn_auth",
622
+ "table": "user_public_keys"
623
+ },
624
+ {
625
+ "type": "text",
626
+ "typeSchema": null,
627
+ "notNull": false,
628
+ "dimensions": 0,
629
+ "default": null,
630
+ "generated": null,
631
+ "identity": null,
632
+ "name": "platform",
633
+ "entityType": "columns",
634
+ "schema": "spfn_auth",
635
+ "table": "user_public_keys"
636
+ },
637
+ {
638
+ "type": "text",
639
+ "typeSchema": null,
640
+ "notNull": false,
641
+ "dimensions": 0,
642
+ "default": null,
643
+ "generated": null,
644
+ "identity": null,
645
+ "name": "client_kind",
646
+ "entityType": "columns",
647
+ "schema": "spfn_auth",
648
+ "table": "user_public_keys"
649
+ },
650
+ {
651
+ "type": "text",
652
+ "typeSchema": null,
653
+ "notNull": false,
654
+ "dimensions": 0,
655
+ "default": null,
656
+ "generated": null,
657
+ "identity": null,
658
+ "name": "client_version",
659
+ "entityType": "columns",
660
+ "schema": "spfn_auth",
661
+ "table": "user_public_keys"
662
+ },
663
+ {
664
+ "type": "text",
665
+ "typeSchema": null,
666
+ "notNull": false,
667
+ "dimensions": 0,
668
+ "default": null,
669
+ "generated": null,
670
+ "identity": null,
671
+ "name": "client_contract_version",
672
+ "entityType": "columns",
673
+ "schema": "spfn_auth",
674
+ "table": "user_public_keys"
675
+ },
676
+ {
677
+ "type": "timestamp with time zone",
678
+ "typeSchema": null,
679
+ "notNull": false,
680
+ "dimensions": 0,
681
+ "default": null,
682
+ "generated": null,
683
+ "identity": null,
684
+ "name": "client_seen_at",
685
+ "entityType": "columns",
686
+ "schema": "spfn_auth",
687
+ "table": "user_public_keys"
688
+ },
689
+ {
690
+ "type": "boolean",
691
+ "typeSchema": null,
692
+ "notNull": true,
693
+ "dimensions": 0,
694
+ "default": "true",
695
+ "generated": null,
696
+ "identity": null,
697
+ "name": "is_active",
698
+ "entityType": "columns",
699
+ "schema": "spfn_auth",
700
+ "table": "user_public_keys"
701
+ },
702
+ {
703
+ "type": "timestamp with time zone",
704
+ "typeSchema": null,
705
+ "notNull": true,
706
+ "dimensions": 0,
707
+ "default": "now()",
708
+ "generated": null,
709
+ "identity": null,
710
+ "name": "created_at",
711
+ "entityType": "columns",
712
+ "schema": "spfn_auth",
713
+ "table": "user_public_keys"
714
+ },
715
+ {
716
+ "type": "timestamp with time zone",
717
+ "typeSchema": null,
718
+ "notNull": false,
719
+ "dimensions": 0,
720
+ "default": null,
721
+ "generated": null,
722
+ "identity": null,
723
+ "name": "last_used_at",
724
+ "entityType": "columns",
725
+ "schema": "spfn_auth",
726
+ "table": "user_public_keys"
727
+ },
728
+ {
729
+ "type": "timestamp with time zone",
730
+ "typeSchema": null,
731
+ "notNull": false,
732
+ "dimensions": 0,
733
+ "default": null,
734
+ "generated": null,
735
+ "identity": null,
736
+ "name": "expires_at",
737
+ "entityType": "columns",
738
+ "schema": "spfn_auth",
739
+ "table": "user_public_keys"
740
+ },
741
+ {
742
+ "type": "timestamp with time zone",
743
+ "typeSchema": null,
744
+ "notNull": false,
745
+ "dimensions": 0,
746
+ "default": null,
747
+ "generated": null,
748
+ "identity": null,
749
+ "name": "revoked_at",
750
+ "entityType": "columns",
751
+ "schema": "spfn_auth",
752
+ "table": "user_public_keys"
753
+ },
754
+ {
755
+ "type": "text",
756
+ "typeSchema": null,
757
+ "notNull": false,
758
+ "dimensions": 0,
759
+ "default": null,
760
+ "generated": null,
761
+ "identity": null,
762
+ "name": "revoked_reason",
763
+ "entityType": "columns",
764
+ "schema": "spfn_auth",
765
+ "table": "user_public_keys"
766
+ },
767
+ {
768
+ "type": "bigserial",
769
+ "typeSchema": null,
770
+ "notNull": true,
771
+ "dimensions": 0,
772
+ "default": null,
773
+ "generated": null,
774
+ "identity": null,
775
+ "name": "id",
776
+ "entityType": "columns",
777
+ "schema": "spfn_auth",
778
+ "table": "user_social_accounts"
779
+ },
780
+ {
781
+ "type": "bigint",
782
+ "typeSchema": null,
783
+ "notNull": true,
784
+ "dimensions": 0,
785
+ "default": null,
786
+ "generated": null,
787
+ "identity": null,
788
+ "name": "user_id",
789
+ "entityType": "columns",
790
+ "schema": "spfn_auth",
791
+ "table": "user_social_accounts"
792
+ },
793
+ {
794
+ "type": "text",
795
+ "typeSchema": null,
796
+ "notNull": true,
797
+ "dimensions": 0,
798
+ "default": null,
799
+ "generated": null,
800
+ "identity": null,
801
+ "name": "provider",
802
+ "entityType": "columns",
803
+ "schema": "spfn_auth",
804
+ "table": "user_social_accounts"
805
+ },
806
+ {
807
+ "type": "text",
808
+ "typeSchema": null,
809
+ "notNull": true,
810
+ "dimensions": 0,
811
+ "default": null,
812
+ "generated": null,
813
+ "identity": null,
814
+ "name": "provider_user_id",
815
+ "entityType": "columns",
816
+ "schema": "spfn_auth",
817
+ "table": "user_social_accounts"
818
+ },
819
+ {
820
+ "type": "text",
821
+ "typeSchema": null,
822
+ "notNull": false,
823
+ "dimensions": 0,
824
+ "default": null,
825
+ "generated": null,
826
+ "identity": null,
827
+ "name": "provider_email",
828
+ "entityType": "columns",
829
+ "schema": "spfn_auth",
830
+ "table": "user_social_accounts"
831
+ },
832
+ {
833
+ "type": "text",
834
+ "typeSchema": null,
835
+ "notNull": false,
836
+ "dimensions": 0,
837
+ "default": null,
838
+ "generated": null,
839
+ "identity": null,
840
+ "name": "access_token",
841
+ "entityType": "columns",
842
+ "schema": "spfn_auth",
843
+ "table": "user_social_accounts"
844
+ },
845
+ {
846
+ "type": "text",
847
+ "typeSchema": null,
848
+ "notNull": false,
849
+ "dimensions": 0,
850
+ "default": null,
851
+ "generated": null,
852
+ "identity": null,
853
+ "name": "refresh_token",
854
+ "entityType": "columns",
855
+ "schema": "spfn_auth",
856
+ "table": "user_social_accounts"
857
+ },
858
+ {
859
+ "type": "timestamp with time zone",
860
+ "typeSchema": null,
861
+ "notNull": false,
862
+ "dimensions": 0,
863
+ "default": null,
864
+ "generated": null,
865
+ "identity": null,
866
+ "name": "token_expires_at",
867
+ "entityType": "columns",
868
+ "schema": "spfn_auth",
869
+ "table": "user_social_accounts"
870
+ },
871
+ {
872
+ "type": "timestamp with time zone",
873
+ "typeSchema": null,
874
+ "notNull": true,
875
+ "dimensions": 0,
876
+ "default": "now()",
877
+ "generated": null,
878
+ "identity": null,
879
+ "name": "created_at",
880
+ "entityType": "columns",
881
+ "schema": "spfn_auth",
882
+ "table": "user_social_accounts"
883
+ },
884
+ {
885
+ "type": "timestamp with time zone",
886
+ "typeSchema": null,
887
+ "notNull": true,
888
+ "dimensions": 0,
889
+ "default": "now()",
890
+ "generated": null,
891
+ "identity": null,
892
+ "name": "updated_at",
893
+ "entityType": "columns",
894
+ "schema": "spfn_auth",
895
+ "table": "user_social_accounts"
896
+ },
897
+ {
898
+ "type": "bigserial",
899
+ "typeSchema": null,
900
+ "notNull": true,
901
+ "dimensions": 0,
902
+ "default": null,
903
+ "generated": null,
904
+ "identity": null,
905
+ "name": "id",
906
+ "entityType": "columns",
907
+ "schema": "spfn_auth",
908
+ "table": "verification_codes"
909
+ },
910
+ {
911
+ "type": "text",
912
+ "typeSchema": null,
913
+ "notNull": true,
914
+ "dimensions": 0,
915
+ "default": null,
916
+ "generated": null,
917
+ "identity": null,
918
+ "name": "target",
919
+ "entityType": "columns",
920
+ "schema": "spfn_auth",
921
+ "table": "verification_codes"
922
+ },
923
+ {
924
+ "type": "text",
925
+ "typeSchema": null,
926
+ "notNull": true,
927
+ "dimensions": 0,
928
+ "default": null,
929
+ "generated": null,
930
+ "identity": null,
931
+ "name": "target_type",
932
+ "entityType": "columns",
933
+ "schema": "spfn_auth",
934
+ "table": "verification_codes"
935
+ },
936
+ {
937
+ "type": "text",
938
+ "typeSchema": null,
939
+ "notNull": true,
940
+ "dimensions": 0,
941
+ "default": null,
942
+ "generated": null,
943
+ "identity": null,
944
+ "name": "code",
945
+ "entityType": "columns",
946
+ "schema": "spfn_auth",
947
+ "table": "verification_codes"
948
+ },
949
+ {
950
+ "type": "text",
951
+ "typeSchema": null,
952
+ "notNull": true,
953
+ "dimensions": 0,
954
+ "default": null,
955
+ "generated": null,
956
+ "identity": null,
957
+ "name": "purpose",
958
+ "entityType": "columns",
959
+ "schema": "spfn_auth",
960
+ "table": "verification_codes"
961
+ },
962
+ {
963
+ "type": "timestamp with time zone",
964
+ "typeSchema": null,
965
+ "notNull": true,
966
+ "dimensions": 0,
967
+ "default": null,
968
+ "generated": null,
969
+ "identity": null,
970
+ "name": "expires_at",
971
+ "entityType": "columns",
972
+ "schema": "spfn_auth",
973
+ "table": "verification_codes"
974
+ },
975
+ {
976
+ "type": "timestamp with time zone",
977
+ "typeSchema": null,
978
+ "notNull": false,
979
+ "dimensions": 0,
980
+ "default": null,
981
+ "generated": null,
982
+ "identity": null,
983
+ "name": "used_at",
984
+ "entityType": "columns",
985
+ "schema": "spfn_auth",
986
+ "table": "verification_codes"
987
+ },
988
+ {
989
+ "type": "integer",
990
+ "typeSchema": null,
991
+ "notNull": true,
992
+ "dimensions": 0,
993
+ "default": "0",
994
+ "generated": null,
995
+ "identity": null,
996
+ "name": "attempts",
997
+ "entityType": "columns",
998
+ "schema": "spfn_auth",
999
+ "table": "verification_codes"
1000
+ },
1001
+ {
1002
+ "type": "timestamp with time zone",
1003
+ "typeSchema": null,
1004
+ "notNull": true,
1005
+ "dimensions": 0,
1006
+ "default": "now()",
1007
+ "generated": null,
1008
+ "identity": null,
1009
+ "name": "created_at",
1010
+ "entityType": "columns",
1011
+ "schema": "spfn_auth",
1012
+ "table": "verification_codes"
1013
+ },
1014
+ {
1015
+ "type": "timestamp with time zone",
1016
+ "typeSchema": null,
1017
+ "notNull": true,
1018
+ "dimensions": 0,
1019
+ "default": "now()",
1020
+ "generated": null,
1021
+ "identity": null,
1022
+ "name": "updated_at",
1023
+ "entityType": "columns",
1024
+ "schema": "spfn_auth",
1025
+ "table": "verification_codes"
1026
+ },
1027
+ {
1028
+ "type": "bigserial",
1029
+ "typeSchema": null,
1030
+ "notNull": true,
1031
+ "dimensions": 0,
1032
+ "default": null,
1033
+ "generated": null,
1034
+ "identity": null,
1035
+ "name": "id",
1036
+ "entityType": "columns",
1037
+ "schema": "spfn_auth",
1038
+ "table": "user_invitations"
1039
+ },
1040
+ {
1041
+ "type": "text",
1042
+ "typeSchema": null,
1043
+ "notNull": true,
1044
+ "dimensions": 0,
1045
+ "default": null,
1046
+ "generated": null,
1047
+ "identity": null,
1048
+ "name": "email",
1049
+ "entityType": "columns",
1050
+ "schema": "spfn_auth",
1051
+ "table": "user_invitations"
1052
+ },
1053
+ {
1054
+ "type": "text",
1055
+ "typeSchema": null,
1056
+ "notNull": true,
1057
+ "dimensions": 0,
1058
+ "default": null,
1059
+ "generated": null,
1060
+ "identity": null,
1061
+ "name": "token",
1062
+ "entityType": "columns",
1063
+ "schema": "spfn_auth",
1064
+ "table": "user_invitations"
1065
+ },
1066
+ {
1067
+ "type": "bigint",
1068
+ "typeSchema": null,
1069
+ "notNull": true,
1070
+ "dimensions": 0,
1071
+ "default": null,
1072
+ "generated": null,
1073
+ "identity": null,
1074
+ "name": "role_id",
1075
+ "entityType": "columns",
1076
+ "schema": "spfn_auth",
1077
+ "table": "user_invitations"
1078
+ },
1079
+ {
1080
+ "type": "bigint",
1081
+ "typeSchema": null,
1082
+ "notNull": true,
1083
+ "dimensions": 0,
1084
+ "default": null,
1085
+ "generated": null,
1086
+ "identity": null,
1087
+ "name": "invited_by_id",
1088
+ "entityType": "columns",
1089
+ "schema": "spfn_auth",
1090
+ "table": "user_invitations"
1091
+ },
1092
+ {
1093
+ "type": "text",
1094
+ "typeSchema": null,
1095
+ "notNull": true,
1096
+ "dimensions": 0,
1097
+ "default": "'pending'",
1098
+ "generated": null,
1099
+ "identity": null,
1100
+ "name": "status",
1101
+ "entityType": "columns",
1102
+ "schema": "spfn_auth",
1103
+ "table": "user_invitations"
1104
+ },
1105
+ {
1106
+ "type": "timestamp with time zone",
1107
+ "typeSchema": null,
1108
+ "notNull": true,
1109
+ "dimensions": 0,
1110
+ "default": null,
1111
+ "generated": null,
1112
+ "identity": null,
1113
+ "name": "expires_at",
1114
+ "entityType": "columns",
1115
+ "schema": "spfn_auth",
1116
+ "table": "user_invitations"
1117
+ },
1118
+ {
1119
+ "type": "timestamp with time zone",
1120
+ "typeSchema": null,
1121
+ "notNull": false,
1122
+ "dimensions": 0,
1123
+ "default": null,
1124
+ "generated": null,
1125
+ "identity": null,
1126
+ "name": "accepted_at",
1127
+ "entityType": "columns",
1128
+ "schema": "spfn_auth",
1129
+ "table": "user_invitations"
1130
+ },
1131
+ {
1132
+ "type": "timestamp with time zone",
1133
+ "typeSchema": null,
1134
+ "notNull": false,
1135
+ "dimensions": 0,
1136
+ "default": null,
1137
+ "generated": null,
1138
+ "identity": null,
1139
+ "name": "cancelled_at",
1140
+ "entityType": "columns",
1141
+ "schema": "spfn_auth",
1142
+ "table": "user_invitations"
1143
+ },
1144
+ {
1145
+ "type": "jsonb",
1146
+ "typeSchema": null,
1147
+ "notNull": false,
1148
+ "dimensions": 0,
1149
+ "default": null,
1150
+ "generated": null,
1151
+ "identity": null,
1152
+ "name": "metadata",
1153
+ "entityType": "columns",
1154
+ "schema": "spfn_auth",
1155
+ "table": "user_invitations"
1156
+ },
1157
+ {
1158
+ "type": "timestamp with time zone",
1159
+ "typeSchema": null,
1160
+ "notNull": true,
1161
+ "dimensions": 0,
1162
+ "default": "now()",
1163
+ "generated": null,
1164
+ "identity": null,
1165
+ "name": "created_at",
1166
+ "entityType": "columns",
1167
+ "schema": "spfn_auth",
1168
+ "table": "user_invitations"
1169
+ },
1170
+ {
1171
+ "type": "timestamp with time zone",
1172
+ "typeSchema": null,
1173
+ "notNull": true,
1174
+ "dimensions": 0,
1175
+ "default": "now()",
1176
+ "generated": null,
1177
+ "identity": null,
1178
+ "name": "updated_at",
1179
+ "entityType": "columns",
1180
+ "schema": "spfn_auth",
1181
+ "table": "user_invitations"
1182
+ },
1183
+ {
1184
+ "type": "bigserial",
1185
+ "typeSchema": null,
1186
+ "notNull": true,
1187
+ "dimensions": 0,
1188
+ "default": null,
1189
+ "generated": null,
1190
+ "identity": null,
1191
+ "name": "id",
1192
+ "entityType": "columns",
1193
+ "schema": "spfn_auth",
1194
+ "table": "account_deletion_requests"
1195
+ },
1196
+ {
1197
+ "type": "bigint",
1198
+ "typeSchema": null,
1199
+ "notNull": false,
1200
+ "dimensions": 0,
1201
+ "default": null,
1202
+ "generated": null,
1203
+ "identity": null,
1204
+ "name": "user_id",
1205
+ "entityType": "columns",
1206
+ "schema": "spfn_auth",
1207
+ "table": "account_deletion_requests"
1208
+ },
1209
+ {
1210
+ "type": "text",
1211
+ "typeSchema": null,
1212
+ "notNull": true,
1213
+ "dimensions": 0,
1214
+ "default": null,
1215
+ "generated": null,
1216
+ "identity": null,
1217
+ "name": "user_public_id",
1218
+ "entityType": "columns",
1219
+ "schema": "spfn_auth",
1220
+ "table": "account_deletion_requests"
1221
+ },
1222
+ {
1223
+ "type": "timestamp with time zone",
1224
+ "typeSchema": null,
1225
+ "notNull": true,
1226
+ "dimensions": 0,
1227
+ "default": "now()",
1228
+ "generated": null,
1229
+ "identity": null,
1230
+ "name": "requested_at",
1231
+ "entityType": "columns",
1232
+ "schema": "spfn_auth",
1233
+ "table": "account_deletion_requests"
1234
+ },
1235
+ {
1236
+ "type": "timestamp with time zone",
1237
+ "typeSchema": null,
1238
+ "notNull": true,
1239
+ "dimensions": 0,
1240
+ "default": null,
1241
+ "generated": null,
1242
+ "identity": null,
1243
+ "name": "purge_scheduled_at",
1244
+ "entityType": "columns",
1245
+ "schema": "spfn_auth",
1246
+ "table": "account_deletion_requests"
1247
+ },
1248
+ {
1249
+ "type": "text",
1250
+ "typeSchema": null,
1251
+ "notNull": true,
1252
+ "dimensions": 0,
1253
+ "default": "'pending'",
1254
+ "generated": null,
1255
+ "identity": null,
1256
+ "name": "status",
1257
+ "entityType": "columns",
1258
+ "schema": "spfn_auth",
1259
+ "table": "account_deletion_requests"
1260
+ },
1261
+ {
1262
+ "type": "text",
1263
+ "typeSchema": null,
1264
+ "notNull": true,
1265
+ "dimensions": 0,
1266
+ "default": "'self'",
1267
+ "generated": null,
1268
+ "identity": null,
1269
+ "name": "requested_by",
1270
+ "entityType": "columns",
1271
+ "schema": "spfn_auth",
1272
+ "table": "account_deletion_requests"
1273
+ },
1274
+ {
1275
+ "type": "text",
1276
+ "typeSchema": null,
1277
+ "notNull": false,
1278
+ "dimensions": 0,
1279
+ "default": null,
1280
+ "generated": null,
1281
+ "identity": null,
1282
+ "name": "reason",
1283
+ "entityType": "columns",
1284
+ "schema": "spfn_auth",
1285
+ "table": "account_deletion_requests"
1286
+ },
1287
+ {
1288
+ "type": "timestamp with time zone",
1289
+ "typeSchema": null,
1290
+ "notNull": false,
1291
+ "dimensions": 0,
1292
+ "default": null,
1293
+ "generated": null,
1294
+ "identity": null,
1295
+ "name": "cancelled_at",
1296
+ "entityType": "columns",
1297
+ "schema": "spfn_auth",
1298
+ "table": "account_deletion_requests"
1299
+ },
1300
+ {
1301
+ "type": "timestamp with time zone",
1302
+ "typeSchema": null,
1303
+ "notNull": false,
1304
+ "dimensions": 0,
1305
+ "default": null,
1306
+ "generated": null,
1307
+ "identity": null,
1308
+ "name": "completed_at",
1309
+ "entityType": "columns",
1310
+ "schema": "spfn_auth",
1311
+ "table": "account_deletion_requests"
1312
+ },
1313
+ {
1314
+ "type": "text",
1315
+ "typeSchema": null,
1316
+ "notNull": false,
1317
+ "dimensions": 0,
1318
+ "default": null,
1319
+ "generated": null,
1320
+ "identity": null,
1321
+ "name": "purge_strategy",
1322
+ "entityType": "columns",
1323
+ "schema": "spfn_auth",
1324
+ "table": "account_deletion_requests"
1325
+ },
1326
+ {
1327
+ "type": "timestamp with time zone",
1328
+ "typeSchema": null,
1329
+ "notNull": true,
1330
+ "dimensions": 0,
1331
+ "default": "now()",
1332
+ "generated": null,
1333
+ "identity": null,
1334
+ "name": "created_at",
1335
+ "entityType": "columns",
1336
+ "schema": "spfn_auth",
1337
+ "table": "account_deletion_requests"
1338
+ },
1339
+ {
1340
+ "type": "timestamp with time zone",
1341
+ "typeSchema": null,
1342
+ "notNull": true,
1343
+ "dimensions": 0,
1344
+ "default": "now()",
1345
+ "generated": null,
1346
+ "identity": null,
1347
+ "name": "updated_at",
1348
+ "entityType": "columns",
1349
+ "schema": "spfn_auth",
1350
+ "table": "account_deletion_requests"
1351
+ },
1352
+ {
1353
+ "type": "bigserial",
1354
+ "typeSchema": null,
1355
+ "notNull": true,
1356
+ "dimensions": 0,
1357
+ "default": null,
1358
+ "generated": null,
1359
+ "identity": null,
1360
+ "name": "id",
1361
+ "entityType": "columns",
1362
+ "schema": "spfn_auth",
1363
+ "table": "roles"
1364
+ },
1365
+ {
1366
+ "type": "text",
1367
+ "typeSchema": null,
1368
+ "notNull": true,
1369
+ "dimensions": 0,
1370
+ "default": null,
1371
+ "generated": null,
1372
+ "identity": null,
1373
+ "name": "name",
1374
+ "entityType": "columns",
1375
+ "schema": "spfn_auth",
1376
+ "table": "roles"
1377
+ },
1378
+ {
1379
+ "type": "text",
1380
+ "typeSchema": null,
1381
+ "notNull": true,
1382
+ "dimensions": 0,
1383
+ "default": null,
1384
+ "generated": null,
1385
+ "identity": null,
1386
+ "name": "display_name",
1387
+ "entityType": "columns",
1388
+ "schema": "spfn_auth",
1389
+ "table": "roles"
1390
+ },
1391
+ {
1392
+ "type": "text",
1393
+ "typeSchema": null,
1394
+ "notNull": false,
1395
+ "dimensions": 0,
1396
+ "default": null,
1397
+ "generated": null,
1398
+ "identity": null,
1399
+ "name": "description",
1400
+ "entityType": "columns",
1401
+ "schema": "spfn_auth",
1402
+ "table": "roles"
1403
+ },
1404
+ {
1405
+ "type": "boolean",
1406
+ "typeSchema": null,
1407
+ "notNull": true,
1408
+ "dimensions": 0,
1409
+ "default": "false",
1410
+ "generated": null,
1411
+ "identity": null,
1412
+ "name": "is_builtin",
1413
+ "entityType": "columns",
1414
+ "schema": "spfn_auth",
1415
+ "table": "roles"
1416
+ },
1417
+ {
1418
+ "type": "boolean",
1419
+ "typeSchema": null,
1420
+ "notNull": true,
1421
+ "dimensions": 0,
1422
+ "default": "false",
1423
+ "generated": null,
1424
+ "identity": null,
1425
+ "name": "is_system",
1426
+ "entityType": "columns",
1427
+ "schema": "spfn_auth",
1428
+ "table": "roles"
1429
+ },
1430
+ {
1431
+ "type": "boolean",
1432
+ "typeSchema": null,
1433
+ "notNull": true,
1434
+ "dimensions": 0,
1435
+ "default": "true",
1436
+ "generated": null,
1437
+ "identity": null,
1438
+ "name": "is_active",
1439
+ "entityType": "columns",
1440
+ "schema": "spfn_auth",
1441
+ "table": "roles"
1442
+ },
1443
+ {
1444
+ "type": "integer",
1445
+ "typeSchema": null,
1446
+ "notNull": true,
1447
+ "dimensions": 0,
1448
+ "default": "10",
1449
+ "generated": null,
1450
+ "identity": null,
1451
+ "name": "priority",
1452
+ "entityType": "columns",
1453
+ "schema": "spfn_auth",
1454
+ "table": "roles"
1455
+ },
1456
+ {
1457
+ "type": "timestamp with time zone",
1458
+ "typeSchema": null,
1459
+ "notNull": true,
1460
+ "dimensions": 0,
1461
+ "default": "now()",
1462
+ "generated": null,
1463
+ "identity": null,
1464
+ "name": "created_at",
1465
+ "entityType": "columns",
1466
+ "schema": "spfn_auth",
1467
+ "table": "roles"
1468
+ },
1469
+ {
1470
+ "type": "timestamp with time zone",
1471
+ "typeSchema": null,
1472
+ "notNull": true,
1473
+ "dimensions": 0,
1474
+ "default": "now()",
1475
+ "generated": null,
1476
+ "identity": null,
1477
+ "name": "updated_at",
1478
+ "entityType": "columns",
1479
+ "schema": "spfn_auth",
1480
+ "table": "roles"
1481
+ },
1482
+ {
1483
+ "type": "bigserial",
1484
+ "typeSchema": null,
1485
+ "notNull": true,
1486
+ "dimensions": 0,
1487
+ "default": null,
1488
+ "generated": null,
1489
+ "identity": null,
1490
+ "name": "id",
1491
+ "entityType": "columns",
1492
+ "schema": "spfn_auth",
1493
+ "table": "permissions"
1494
+ },
1495
+ {
1496
+ "type": "text",
1497
+ "typeSchema": null,
1498
+ "notNull": true,
1499
+ "dimensions": 0,
1500
+ "default": null,
1501
+ "generated": null,
1502
+ "identity": null,
1503
+ "name": "name",
1504
+ "entityType": "columns",
1505
+ "schema": "spfn_auth",
1506
+ "table": "permissions"
1507
+ },
1508
+ {
1509
+ "type": "text",
1510
+ "typeSchema": null,
1511
+ "notNull": true,
1512
+ "dimensions": 0,
1513
+ "default": null,
1514
+ "generated": null,
1515
+ "identity": null,
1516
+ "name": "display_name",
1517
+ "entityType": "columns",
1518
+ "schema": "spfn_auth",
1519
+ "table": "permissions"
1520
+ },
1521
+ {
1522
+ "type": "text",
1523
+ "typeSchema": null,
1524
+ "notNull": false,
1525
+ "dimensions": 0,
1526
+ "default": null,
1527
+ "generated": null,
1528
+ "identity": null,
1529
+ "name": "description",
1530
+ "entityType": "columns",
1531
+ "schema": "spfn_auth",
1532
+ "table": "permissions"
1533
+ },
1534
+ {
1535
+ "type": "text",
1536
+ "typeSchema": null,
1537
+ "notNull": false,
1538
+ "dimensions": 0,
1539
+ "default": null,
1540
+ "generated": null,
1541
+ "identity": null,
1542
+ "name": "category",
1543
+ "entityType": "columns",
1544
+ "schema": "spfn_auth",
1545
+ "table": "permissions"
1546
+ },
1547
+ {
1548
+ "type": "boolean",
1549
+ "typeSchema": null,
1550
+ "notNull": true,
1551
+ "dimensions": 0,
1552
+ "default": "false",
1553
+ "generated": null,
1554
+ "identity": null,
1555
+ "name": "is_builtin",
1556
+ "entityType": "columns",
1557
+ "schema": "spfn_auth",
1558
+ "table": "permissions"
1559
+ },
1560
+ {
1561
+ "type": "boolean",
1562
+ "typeSchema": null,
1563
+ "notNull": true,
1564
+ "dimensions": 0,
1565
+ "default": "false",
1566
+ "generated": null,
1567
+ "identity": null,
1568
+ "name": "is_system",
1569
+ "entityType": "columns",
1570
+ "schema": "spfn_auth",
1571
+ "table": "permissions"
1572
+ },
1573
+ {
1574
+ "type": "boolean",
1575
+ "typeSchema": null,
1576
+ "notNull": true,
1577
+ "dimensions": 0,
1578
+ "default": "true",
1579
+ "generated": null,
1580
+ "identity": null,
1581
+ "name": "is_active",
1582
+ "entityType": "columns",
1583
+ "schema": "spfn_auth",
1584
+ "table": "permissions"
1585
+ },
1586
+ {
1587
+ "type": "jsonb",
1588
+ "typeSchema": null,
1589
+ "notNull": false,
1590
+ "dimensions": 0,
1591
+ "default": null,
1592
+ "generated": null,
1593
+ "identity": null,
1594
+ "name": "metadata",
1595
+ "entityType": "columns",
1596
+ "schema": "spfn_auth",
1597
+ "table": "permissions"
1598
+ },
1599
+ {
1600
+ "type": "timestamp with time zone",
1601
+ "typeSchema": null,
1602
+ "notNull": true,
1603
+ "dimensions": 0,
1604
+ "default": "now()",
1605
+ "generated": null,
1606
+ "identity": null,
1607
+ "name": "created_at",
1608
+ "entityType": "columns",
1609
+ "schema": "spfn_auth",
1610
+ "table": "permissions"
1611
+ },
1612
+ {
1613
+ "type": "timestamp with time zone",
1614
+ "typeSchema": null,
1615
+ "notNull": true,
1616
+ "dimensions": 0,
1617
+ "default": "now()",
1618
+ "generated": null,
1619
+ "identity": null,
1620
+ "name": "updated_at",
1621
+ "entityType": "columns",
1622
+ "schema": "spfn_auth",
1623
+ "table": "permissions"
1624
+ },
1625
+ {
1626
+ "type": "bigserial",
1627
+ "typeSchema": null,
1628
+ "notNull": true,
1629
+ "dimensions": 0,
1630
+ "default": null,
1631
+ "generated": null,
1632
+ "identity": null,
1633
+ "name": "id",
1634
+ "entityType": "columns",
1635
+ "schema": "spfn_auth",
1636
+ "table": "role_permissions"
1637
+ },
1638
+ {
1639
+ "type": "bigint",
1640
+ "typeSchema": null,
1641
+ "notNull": true,
1642
+ "dimensions": 0,
1643
+ "default": null,
1644
+ "generated": null,
1645
+ "identity": null,
1646
+ "name": "role_id",
1647
+ "entityType": "columns",
1648
+ "schema": "spfn_auth",
1649
+ "table": "role_permissions"
1650
+ },
1651
+ {
1652
+ "type": "bigint",
1653
+ "typeSchema": null,
1654
+ "notNull": true,
1655
+ "dimensions": 0,
1656
+ "default": null,
1657
+ "generated": null,
1658
+ "identity": null,
1659
+ "name": "permission_id",
1660
+ "entityType": "columns",
1661
+ "schema": "spfn_auth",
1662
+ "table": "role_permissions"
1663
+ },
1664
+ {
1665
+ "type": "timestamp with time zone",
1666
+ "typeSchema": null,
1667
+ "notNull": true,
1668
+ "dimensions": 0,
1669
+ "default": "now()",
1670
+ "generated": null,
1671
+ "identity": null,
1672
+ "name": "created_at",
1673
+ "entityType": "columns",
1674
+ "schema": "spfn_auth",
1675
+ "table": "role_permissions"
1676
+ },
1677
+ {
1678
+ "type": "timestamp with time zone",
1679
+ "typeSchema": null,
1680
+ "notNull": true,
1681
+ "dimensions": 0,
1682
+ "default": "now()",
1683
+ "generated": null,
1684
+ "identity": null,
1685
+ "name": "updated_at",
1686
+ "entityType": "columns",
1687
+ "schema": "spfn_auth",
1688
+ "table": "role_permissions"
1689
+ },
1690
+ {
1691
+ "type": "bigserial",
1692
+ "typeSchema": null,
1693
+ "notNull": true,
1694
+ "dimensions": 0,
1695
+ "default": null,
1696
+ "generated": null,
1697
+ "identity": null,
1698
+ "name": "id",
1699
+ "entityType": "columns",
1700
+ "schema": "spfn_auth",
1701
+ "table": "user_permissions"
1702
+ },
1703
+ {
1704
+ "type": "bigint",
1705
+ "typeSchema": null,
1706
+ "notNull": true,
1707
+ "dimensions": 0,
1708
+ "default": null,
1709
+ "generated": null,
1710
+ "identity": null,
1711
+ "name": "user_id",
1712
+ "entityType": "columns",
1713
+ "schema": "spfn_auth",
1714
+ "table": "user_permissions"
1715
+ },
1716
+ {
1717
+ "type": "bigint",
1718
+ "typeSchema": null,
1719
+ "notNull": true,
1720
+ "dimensions": 0,
1721
+ "default": null,
1722
+ "generated": null,
1723
+ "identity": null,
1724
+ "name": "permission_id",
1725
+ "entityType": "columns",
1726
+ "schema": "spfn_auth",
1727
+ "table": "user_permissions"
1728
+ },
1729
+ {
1730
+ "type": "boolean",
1731
+ "typeSchema": null,
1732
+ "notNull": true,
1733
+ "dimensions": 0,
1734
+ "default": "true",
1735
+ "generated": null,
1736
+ "identity": null,
1737
+ "name": "granted",
1738
+ "entityType": "columns",
1739
+ "schema": "spfn_auth",
1740
+ "table": "user_permissions"
1741
+ },
1742
+ {
1743
+ "type": "text",
1744
+ "typeSchema": null,
1745
+ "notNull": false,
1746
+ "dimensions": 0,
1747
+ "default": null,
1748
+ "generated": null,
1749
+ "identity": null,
1750
+ "name": "reason",
1751
+ "entityType": "columns",
1752
+ "schema": "spfn_auth",
1753
+ "table": "user_permissions"
1754
+ },
1755
+ {
1756
+ "type": "timestamp with time zone",
1757
+ "typeSchema": null,
1758
+ "notNull": false,
1759
+ "dimensions": 0,
1760
+ "default": null,
1761
+ "generated": null,
1762
+ "identity": null,
1763
+ "name": "expires_at",
1764
+ "entityType": "columns",
1765
+ "schema": "spfn_auth",
1766
+ "table": "user_permissions"
1767
+ },
1768
+ {
1769
+ "type": "timestamp with time zone",
1770
+ "typeSchema": null,
1771
+ "notNull": true,
1772
+ "dimensions": 0,
1773
+ "default": "now()",
1774
+ "generated": null,
1775
+ "identity": null,
1776
+ "name": "created_at",
1777
+ "entityType": "columns",
1778
+ "schema": "spfn_auth",
1779
+ "table": "user_permissions"
1780
+ },
1781
+ {
1782
+ "type": "timestamp with time zone",
1783
+ "typeSchema": null,
1784
+ "notNull": true,
1785
+ "dimensions": 0,
1786
+ "default": "now()",
1787
+ "generated": null,
1788
+ "identity": null,
1789
+ "name": "updated_at",
1790
+ "entityType": "columns",
1791
+ "schema": "spfn_auth",
1792
+ "table": "user_permissions"
1793
+ },
1794
+ {
1795
+ "type": "text",
1796
+ "typeSchema": null,
1797
+ "notNull": true,
1798
+ "dimensions": 0,
1799
+ "default": null,
1800
+ "generated": null,
1801
+ "identity": null,
1802
+ "name": "key",
1803
+ "entityType": "columns",
1804
+ "schema": "spfn_auth",
1805
+ "table": "auth_metadata"
1806
+ },
1807
+ {
1808
+ "type": "text",
1809
+ "typeSchema": null,
1810
+ "notNull": true,
1811
+ "dimensions": 0,
1812
+ "default": null,
1813
+ "generated": null,
1814
+ "identity": null,
1815
+ "name": "value",
1816
+ "entityType": "columns",
1817
+ "schema": "spfn_auth",
1818
+ "table": "auth_metadata"
1819
+ },
1820
+ {
1821
+ "type": "timestamp with time zone",
1822
+ "typeSchema": null,
1823
+ "notNull": true,
1824
+ "dimensions": 0,
1825
+ "default": "now()",
1826
+ "generated": null,
1827
+ "identity": null,
1828
+ "name": "updated_at",
1829
+ "entityType": "columns",
1830
+ "schema": "spfn_auth",
1831
+ "table": "auth_metadata"
1832
+ },
1833
+ {
1834
+ "type": "bigserial",
1835
+ "typeSchema": null,
1836
+ "notNull": true,
1837
+ "dimensions": 0,
1838
+ "default": null,
1839
+ "generated": null,
1840
+ "identity": null,
1841
+ "name": "id",
1842
+ "entityType": "columns",
1843
+ "schema": "spfn_auth",
1844
+ "table": "ops_tokens"
1845
+ },
1846
+ {
1847
+ "type": "text",
1848
+ "typeSchema": null,
1849
+ "notNull": true,
1850
+ "dimensions": 0,
1851
+ "default": null,
1852
+ "generated": null,
1853
+ "identity": null,
1854
+ "name": "name",
1855
+ "entityType": "columns",
1856
+ "schema": "spfn_auth",
1857
+ "table": "ops_tokens"
1858
+ },
1859
+ {
1860
+ "type": "text",
1861
+ "typeSchema": null,
1862
+ "notNull": true,
1863
+ "dimensions": 0,
1864
+ "default": null,
1865
+ "generated": null,
1866
+ "identity": null,
1867
+ "name": "token_hash",
1868
+ "entityType": "columns",
1869
+ "schema": "spfn_auth",
1870
+ "table": "ops_tokens"
1871
+ },
1872
+ {
1873
+ "type": "text",
1874
+ "typeSchema": null,
1875
+ "notNull": true,
1876
+ "dimensions": 1,
1877
+ "default": null,
1878
+ "generated": null,
1879
+ "identity": null,
1880
+ "name": "scopes",
1881
+ "entityType": "columns",
1882
+ "schema": "spfn_auth",
1883
+ "table": "ops_tokens"
1884
+ },
1885
+ {
1886
+ "type": "timestamp with time zone",
1887
+ "typeSchema": null,
1888
+ "notNull": false,
1889
+ "dimensions": 0,
1890
+ "default": null,
1891
+ "generated": null,
1892
+ "identity": null,
1893
+ "name": "expires_at",
1894
+ "entityType": "columns",
1895
+ "schema": "spfn_auth",
1896
+ "table": "ops_tokens"
1897
+ },
1898
+ {
1899
+ "type": "timestamp with time zone",
1900
+ "typeSchema": null,
1901
+ "notNull": false,
1902
+ "dimensions": 0,
1903
+ "default": null,
1904
+ "generated": null,
1905
+ "identity": null,
1906
+ "name": "revoked_at",
1907
+ "entityType": "columns",
1908
+ "schema": "spfn_auth",
1909
+ "table": "ops_tokens"
1910
+ },
1911
+ {
1912
+ "type": "timestamp with time zone",
1913
+ "typeSchema": null,
1914
+ "notNull": false,
1915
+ "dimensions": 0,
1916
+ "default": null,
1917
+ "generated": null,
1918
+ "identity": null,
1919
+ "name": "last_used_at",
1920
+ "entityType": "columns",
1921
+ "schema": "spfn_auth",
1922
+ "table": "ops_tokens"
1923
+ },
1924
+ {
1925
+ "type": "timestamp with time zone",
1926
+ "typeSchema": null,
1927
+ "notNull": true,
1928
+ "dimensions": 0,
1929
+ "default": "now()",
1930
+ "generated": null,
1931
+ "identity": null,
1932
+ "name": "created_at",
1933
+ "entityType": "columns",
1934
+ "schema": "spfn_auth",
1935
+ "table": "ops_tokens"
1936
+ },
1937
+ {
1938
+ "type": "timestamp with time zone",
1939
+ "typeSchema": null,
1940
+ "notNull": true,
1941
+ "dimensions": 0,
1942
+ "default": "now()",
1943
+ "generated": null,
1944
+ "identity": null,
1945
+ "name": "updated_at",
1946
+ "entityType": "columns",
1947
+ "schema": "spfn_auth",
1948
+ "table": "ops_tokens"
1949
+ },
1950
+ {
1951
+ "nameExplicit": true,
1952
+ "columns": [
1953
+ {
1954
+ "value": "public_id",
1955
+ "isExpression": false,
1956
+ "asc": true,
1957
+ "nullsFirst": false,
1958
+ "opclass": null
1959
+ }
1960
+ ],
1961
+ "isUnique": false,
1962
+ "where": null,
1963
+ "with": "",
1964
+ "method": "btree",
1965
+ "concurrently": false,
1966
+ "name": "users_public_id_idx",
1967
+ "entityType": "indexes",
1968
+ "schema": "spfn_auth",
1969
+ "table": "users"
1970
+ },
1971
+ {
1972
+ "nameExplicit": true,
1973
+ "columns": [
1974
+ {
1975
+ "value": "email",
1976
+ "isExpression": false,
1977
+ "asc": true,
1978
+ "nullsFirst": false,
1979
+ "opclass": null
1980
+ }
1981
+ ],
1982
+ "isUnique": false,
1983
+ "where": null,
1984
+ "with": "",
1985
+ "method": "btree",
1986
+ "concurrently": false,
1987
+ "name": "users_email_idx",
1988
+ "entityType": "indexes",
1989
+ "schema": "spfn_auth",
1990
+ "table": "users"
1991
+ },
1992
+ {
1993
+ "nameExplicit": true,
1994
+ "columns": [
1995
+ {
1996
+ "value": "phone",
1997
+ "isExpression": false,
1998
+ "asc": true,
1999
+ "nullsFirst": false,
2000
+ "opclass": null
2001
+ }
2002
+ ],
2003
+ "isUnique": false,
2004
+ "where": null,
2005
+ "with": "",
2006
+ "method": "btree",
2007
+ "concurrently": false,
2008
+ "name": "users_phone_idx",
2009
+ "entityType": "indexes",
2010
+ "schema": "spfn_auth",
2011
+ "table": "users"
2012
+ },
2013
+ {
2014
+ "nameExplicit": true,
2015
+ "columns": [
2016
+ {
2017
+ "value": "username",
2018
+ "isExpression": false,
2019
+ "asc": true,
2020
+ "nullsFirst": false,
2021
+ "opclass": null
2022
+ }
2023
+ ],
2024
+ "isUnique": false,
2025
+ "where": null,
2026
+ "with": "",
2027
+ "method": "btree",
2028
+ "concurrently": false,
2029
+ "name": "users_username_idx",
2030
+ "entityType": "indexes",
2031
+ "schema": "spfn_auth",
2032
+ "table": "users"
2033
+ },
2034
+ {
2035
+ "nameExplicit": true,
2036
+ "columns": [
2037
+ {
2038
+ "value": "status",
2039
+ "isExpression": false,
2040
+ "asc": true,
2041
+ "nullsFirst": false,
2042
+ "opclass": null
2043
+ }
2044
+ ],
2045
+ "isUnique": false,
2046
+ "where": null,
2047
+ "with": "",
2048
+ "method": "btree",
2049
+ "concurrently": false,
2050
+ "name": "users_status_idx",
2051
+ "entityType": "indexes",
2052
+ "schema": "spfn_auth",
2053
+ "table": "users"
2054
+ },
2055
+ {
2056
+ "nameExplicit": true,
2057
+ "columns": [
2058
+ {
2059
+ "value": "role_id",
2060
+ "isExpression": false,
2061
+ "asc": true,
2062
+ "nullsFirst": false,
2063
+ "opclass": null
2064
+ }
2065
+ ],
2066
+ "isUnique": false,
2067
+ "where": null,
2068
+ "with": "",
2069
+ "method": "btree",
2070
+ "concurrently": false,
2071
+ "name": "users_role_id_idx",
2072
+ "entityType": "indexes",
2073
+ "schema": "spfn_auth",
2074
+ "table": "users"
2075
+ },
2076
+ {
2077
+ "nameExplicit": true,
2078
+ "columns": [
2079
+ {
2080
+ "value": "user_id",
2081
+ "isExpression": false,
2082
+ "asc": true,
2083
+ "nullsFirst": false,
2084
+ "opclass": null
2085
+ }
2086
+ ],
2087
+ "isUnique": false,
2088
+ "where": null,
2089
+ "with": "",
2090
+ "method": "btree",
2091
+ "concurrently": false,
2092
+ "name": "user_profiles_user_id_idx",
2093
+ "entityType": "indexes",
2094
+ "schema": "spfn_auth",
2095
+ "table": "user_profiles"
2096
+ },
2097
+ {
2098
+ "nameExplicit": true,
2099
+ "columns": [
2100
+ {
2101
+ "value": "display_name",
2102
+ "isExpression": false,
2103
+ "asc": true,
2104
+ "nullsFirst": false,
2105
+ "opclass": null
2106
+ }
2107
+ ],
2108
+ "isUnique": false,
2109
+ "where": null,
2110
+ "with": "",
2111
+ "method": "btree",
2112
+ "concurrently": false,
2113
+ "name": "user_profiles_display_name_idx",
2114
+ "entityType": "indexes",
2115
+ "schema": "spfn_auth",
2116
+ "table": "user_profiles"
2117
+ },
2118
+ {
2119
+ "nameExplicit": true,
2120
+ "columns": [
2121
+ {
2122
+ "value": "locale",
2123
+ "isExpression": false,
2124
+ "asc": true,
2125
+ "nullsFirst": false,
2126
+ "opclass": null
2127
+ }
2128
+ ],
2129
+ "isUnique": false,
2130
+ "where": null,
2131
+ "with": "",
2132
+ "method": "btree",
2133
+ "concurrently": false,
2134
+ "name": "user_profiles_locale_idx",
2135
+ "entityType": "indexes",
2136
+ "schema": "spfn_auth",
2137
+ "table": "user_profiles"
2138
+ },
2139
+ {
2140
+ "nameExplicit": true,
2141
+ "columns": [
2142
+ {
2143
+ "value": "user_id",
2144
+ "isExpression": false,
2145
+ "asc": true,
2146
+ "nullsFirst": false,
2147
+ "opclass": null
2148
+ }
2149
+ ],
2150
+ "isUnique": false,
2151
+ "where": null,
2152
+ "with": "",
2153
+ "method": "btree",
2154
+ "concurrently": false,
2155
+ "name": "user_public_keys_user_id_idx",
2156
+ "entityType": "indexes",
2157
+ "schema": "spfn_auth",
2158
+ "table": "user_public_keys"
2159
+ },
2160
+ {
2161
+ "nameExplicit": true,
2162
+ "columns": [
2163
+ {
2164
+ "value": "key_id",
2165
+ "isExpression": false,
2166
+ "asc": true,
2167
+ "nullsFirst": false,
2168
+ "opclass": null
2169
+ }
2170
+ ],
2171
+ "isUnique": false,
2172
+ "where": null,
2173
+ "with": "",
2174
+ "method": "btree",
2175
+ "concurrently": false,
2176
+ "name": "user_public_keys_key_id_idx",
2177
+ "entityType": "indexes",
2178
+ "schema": "spfn_auth",
2179
+ "table": "user_public_keys"
2180
+ },
2181
+ {
2182
+ "nameExplicit": true,
2183
+ "columns": [
2184
+ {
2185
+ "value": "is_active",
2186
+ "isExpression": false,
2187
+ "asc": true,
2188
+ "nullsFirst": false,
2189
+ "opclass": null
2190
+ }
2191
+ ],
2192
+ "isUnique": false,
2193
+ "where": null,
2194
+ "with": "",
2195
+ "method": "btree",
2196
+ "concurrently": false,
2197
+ "name": "user_public_keys_active_idx",
2198
+ "entityType": "indexes",
2199
+ "schema": "spfn_auth",
2200
+ "table": "user_public_keys"
2201
+ },
2202
+ {
2203
+ "nameExplicit": true,
2204
+ "columns": [
2205
+ {
2206
+ "value": "fingerprint",
2207
+ "isExpression": false,
2208
+ "asc": true,
2209
+ "nullsFirst": false,
2210
+ "opclass": null
2211
+ }
2212
+ ],
2213
+ "isUnique": false,
2214
+ "where": null,
2215
+ "with": "",
2216
+ "method": "btree",
2217
+ "concurrently": false,
2218
+ "name": "user_public_keys_fingerprint_idx",
2219
+ "entityType": "indexes",
2220
+ "schema": "spfn_auth",
2221
+ "table": "user_public_keys"
2222
+ },
2223
+ {
2224
+ "nameExplicit": true,
2225
+ "columns": [
2226
+ {
2227
+ "value": "user_id",
2228
+ "isExpression": false,
2229
+ "asc": true,
2230
+ "nullsFirst": false,
2231
+ "opclass": null
2232
+ }
2233
+ ],
2234
+ "isUnique": false,
2235
+ "where": null,
2236
+ "with": "",
2237
+ "method": "btree",
2238
+ "concurrently": false,
2239
+ "name": "user_social_accounts_user_id_idx",
2240
+ "entityType": "indexes",
2241
+ "schema": "spfn_auth",
2242
+ "table": "user_social_accounts"
2243
+ },
2244
+ {
2245
+ "nameExplicit": true,
2246
+ "columns": [
2247
+ {
2248
+ "value": "provider",
2249
+ "isExpression": false,
2250
+ "asc": true,
2251
+ "nullsFirst": false,
2252
+ "opclass": null
2253
+ }
2254
+ ],
2255
+ "isUnique": false,
2256
+ "where": null,
2257
+ "with": "",
2258
+ "method": "btree",
2259
+ "concurrently": false,
2260
+ "name": "user_social_accounts_provider_idx",
2261
+ "entityType": "indexes",
2262
+ "schema": "spfn_auth",
2263
+ "table": "user_social_accounts"
2264
+ },
2265
+ {
2266
+ "nameExplicit": true,
2267
+ "columns": [
2268
+ {
2269
+ "value": "provider",
2270
+ "isExpression": false,
2271
+ "asc": true,
2272
+ "nullsFirst": false,
2273
+ "opclass": null
2274
+ },
2275
+ {
2276
+ "value": "provider_user_id",
2277
+ "isExpression": false,
2278
+ "asc": true,
2279
+ "nullsFirst": false,
2280
+ "opclass": null
2281
+ }
2282
+ ],
2283
+ "isUnique": true,
2284
+ "where": null,
2285
+ "with": "",
2286
+ "method": "btree",
2287
+ "concurrently": false,
2288
+ "name": "provider_user_unique_idx",
2289
+ "entityType": "indexes",
2290
+ "schema": "spfn_auth",
2291
+ "table": "user_social_accounts"
2292
+ },
2293
+ {
2294
+ "nameExplicit": true,
2295
+ "columns": [
2296
+ {
2297
+ "value": "target",
2298
+ "isExpression": false,
2299
+ "asc": true,
2300
+ "nullsFirst": false,
2301
+ "opclass": null
2302
+ },
2303
+ {
2304
+ "value": "purpose",
2305
+ "isExpression": false,
2306
+ "asc": true,
2307
+ "nullsFirst": false,
2308
+ "opclass": null
2309
+ },
2310
+ {
2311
+ "value": "expires_at",
2312
+ "isExpression": false,
2313
+ "asc": true,
2314
+ "nullsFirst": false,
2315
+ "opclass": null
2316
+ }
2317
+ ],
2318
+ "isUnique": false,
2319
+ "where": null,
2320
+ "with": "",
2321
+ "method": "btree",
2322
+ "concurrently": false,
2323
+ "name": "target_purpose_idx",
2324
+ "entityType": "indexes",
2325
+ "schema": "spfn_auth",
2326
+ "table": "verification_codes"
2327
+ },
2328
+ {
2329
+ "nameExplicit": true,
2330
+ "columns": [
2331
+ {
2332
+ "value": "token",
2333
+ "isExpression": false,
2334
+ "asc": true,
2335
+ "nullsFirst": false,
2336
+ "opclass": null
2337
+ }
2338
+ ],
2339
+ "isUnique": false,
2340
+ "where": null,
2341
+ "with": "",
2342
+ "method": "btree",
2343
+ "concurrently": false,
2344
+ "name": "invitations_token_idx",
2345
+ "entityType": "indexes",
2346
+ "schema": "spfn_auth",
2347
+ "table": "user_invitations"
2348
+ },
2349
+ {
2350
+ "nameExplicit": true,
2351
+ "columns": [
2352
+ {
2353
+ "value": "email",
2354
+ "isExpression": false,
2355
+ "asc": true,
2356
+ "nullsFirst": false,
2357
+ "opclass": null
2358
+ }
2359
+ ],
2360
+ "isUnique": false,
2361
+ "where": null,
2362
+ "with": "",
2363
+ "method": "btree",
2364
+ "concurrently": false,
2365
+ "name": "invitations_email_idx",
2366
+ "entityType": "indexes",
2367
+ "schema": "spfn_auth",
2368
+ "table": "user_invitations"
2369
+ },
2370
+ {
2371
+ "nameExplicit": true,
2372
+ "columns": [
2373
+ {
2374
+ "value": "status",
2375
+ "isExpression": false,
2376
+ "asc": true,
2377
+ "nullsFirst": false,
2378
+ "opclass": null
2379
+ }
2380
+ ],
2381
+ "isUnique": false,
2382
+ "where": null,
2383
+ "with": "",
2384
+ "method": "btree",
2385
+ "concurrently": false,
2386
+ "name": "invitations_status_idx",
2387
+ "entityType": "indexes",
2388
+ "schema": "spfn_auth",
2389
+ "table": "user_invitations"
2390
+ },
2391
+ {
2392
+ "nameExplicit": true,
2393
+ "columns": [
2394
+ {
2395
+ "value": "invited_by_id",
2396
+ "isExpression": false,
2397
+ "asc": true,
2398
+ "nullsFirst": false,
2399
+ "opclass": null
2400
+ }
2401
+ ],
2402
+ "isUnique": false,
2403
+ "where": null,
2404
+ "with": "",
2405
+ "method": "btree",
2406
+ "concurrently": false,
2407
+ "name": "invitations_invited_by_idx",
2408
+ "entityType": "indexes",
2409
+ "schema": "spfn_auth",
2410
+ "table": "user_invitations"
2411
+ },
2412
+ {
2413
+ "nameExplicit": true,
2414
+ "columns": [
2415
+ {
2416
+ "value": "expires_at",
2417
+ "isExpression": false,
2418
+ "asc": true,
2419
+ "nullsFirst": false,
2420
+ "opclass": null
2421
+ }
2422
+ ],
2423
+ "isUnique": false,
2424
+ "where": null,
2425
+ "with": "",
2426
+ "method": "btree",
2427
+ "concurrently": false,
2428
+ "name": "invitations_expires_at_idx",
2429
+ "entityType": "indexes",
2430
+ "schema": "spfn_auth",
2431
+ "table": "user_invitations"
2432
+ },
2433
+ {
2434
+ "nameExplicit": true,
2435
+ "columns": [
2436
+ {
2437
+ "value": "role_id",
2438
+ "isExpression": false,
2439
+ "asc": true,
2440
+ "nullsFirst": false,
2441
+ "opclass": null
2442
+ }
2443
+ ],
2444
+ "isUnique": false,
2445
+ "where": null,
2446
+ "with": "",
2447
+ "method": "btree",
2448
+ "concurrently": false,
2449
+ "name": "invitations_role_id_idx",
2450
+ "entityType": "indexes",
2451
+ "schema": "spfn_auth",
2452
+ "table": "user_invitations"
2453
+ },
2454
+ {
2455
+ "nameExplicit": true,
2456
+ "columns": [
2457
+ {
2458
+ "value": "user_id",
2459
+ "isExpression": false,
2460
+ "asc": true,
2461
+ "nullsFirst": false,
2462
+ "opclass": null
2463
+ }
2464
+ ],
2465
+ "isUnique": false,
2466
+ "where": null,
2467
+ "with": "",
2468
+ "method": "btree",
2469
+ "concurrently": false,
2470
+ "name": "account_deletion_requests_user_id_idx",
2471
+ "entityType": "indexes",
2472
+ "schema": "spfn_auth",
2473
+ "table": "account_deletion_requests"
2474
+ },
2475
+ {
2476
+ "nameExplicit": true,
2477
+ "columns": [
2478
+ {
2479
+ "value": "status",
2480
+ "isExpression": false,
2481
+ "asc": true,
2482
+ "nullsFirst": false,
2483
+ "opclass": null
2484
+ }
2485
+ ],
2486
+ "isUnique": false,
2487
+ "where": null,
2488
+ "with": "",
2489
+ "method": "btree",
2490
+ "concurrently": false,
2491
+ "name": "account_deletion_requests_status_idx",
2492
+ "entityType": "indexes",
2493
+ "schema": "spfn_auth",
2494
+ "table": "account_deletion_requests"
2495
+ },
2496
+ {
2497
+ "nameExplicit": true,
2498
+ "columns": [
2499
+ {
2500
+ "value": "purge_scheduled_at",
2501
+ "isExpression": false,
2502
+ "asc": true,
2503
+ "nullsFirst": false,
2504
+ "opclass": null
2505
+ }
2506
+ ],
2507
+ "isUnique": false,
2508
+ "where": null,
2509
+ "with": "",
2510
+ "method": "btree",
2511
+ "concurrently": false,
2512
+ "name": "account_deletion_requests_purge_scheduled_at_idx",
2513
+ "entityType": "indexes",
2514
+ "schema": "spfn_auth",
2515
+ "table": "account_deletion_requests"
2516
+ },
2517
+ {
2518
+ "nameExplicit": true,
2519
+ "columns": [
2520
+ {
2521
+ "value": "user_public_id",
2522
+ "isExpression": false,
2523
+ "asc": true,
2524
+ "nullsFirst": false,
2525
+ "opclass": null
2526
+ }
2527
+ ],
2528
+ "isUnique": false,
2529
+ "where": null,
2530
+ "with": "",
2531
+ "method": "btree",
2532
+ "concurrently": false,
2533
+ "name": "account_deletion_requests_user_public_id_idx",
2534
+ "entityType": "indexes",
2535
+ "schema": "spfn_auth",
2536
+ "table": "account_deletion_requests"
2537
+ },
2538
+ {
2539
+ "nameExplicit": true,
2540
+ "columns": [
2541
+ {
2542
+ "value": "user_id",
2543
+ "isExpression": false,
2544
+ "asc": true,
2545
+ "nullsFirst": false,
2546
+ "opclass": null
2547
+ }
2548
+ ],
2549
+ "isUnique": true,
2550
+ "where": "\"status\" = 'pending'",
2551
+ "with": "",
2552
+ "method": "btree",
2553
+ "concurrently": false,
2554
+ "name": "account_deletion_requests_user_pending_unique_idx",
2555
+ "entityType": "indexes",
2556
+ "schema": "spfn_auth",
2557
+ "table": "account_deletion_requests"
2558
+ },
2559
+ {
2560
+ "nameExplicit": true,
2561
+ "columns": [
2562
+ {
2563
+ "value": "name",
2564
+ "isExpression": false,
2565
+ "asc": true,
2566
+ "nullsFirst": false,
2567
+ "opclass": null
2568
+ }
2569
+ ],
2570
+ "isUnique": false,
2571
+ "where": null,
2572
+ "with": "",
2573
+ "method": "btree",
2574
+ "concurrently": false,
2575
+ "name": "roles_name_idx",
2576
+ "entityType": "indexes",
2577
+ "schema": "spfn_auth",
2578
+ "table": "roles"
2579
+ },
2580
+ {
2581
+ "nameExplicit": true,
2582
+ "columns": [
2583
+ {
2584
+ "value": "is_system",
2585
+ "isExpression": false,
2586
+ "asc": true,
2587
+ "nullsFirst": false,
2588
+ "opclass": null
2589
+ }
2590
+ ],
2591
+ "isUnique": false,
2592
+ "where": null,
2593
+ "with": "",
2594
+ "method": "btree",
2595
+ "concurrently": false,
2596
+ "name": "roles_is_system_idx",
2597
+ "entityType": "indexes",
2598
+ "schema": "spfn_auth",
2599
+ "table": "roles"
2600
+ },
2601
+ {
2602
+ "nameExplicit": true,
2603
+ "columns": [
2604
+ {
2605
+ "value": "is_active",
2606
+ "isExpression": false,
2607
+ "asc": true,
2608
+ "nullsFirst": false,
2609
+ "opclass": null
2610
+ }
2611
+ ],
2612
+ "isUnique": false,
2613
+ "where": null,
2614
+ "with": "",
2615
+ "method": "btree",
2616
+ "concurrently": false,
2617
+ "name": "roles_is_active_idx",
2618
+ "entityType": "indexes",
2619
+ "schema": "spfn_auth",
2620
+ "table": "roles"
2621
+ },
2622
+ {
2623
+ "nameExplicit": true,
2624
+ "columns": [
2625
+ {
2626
+ "value": "is_builtin",
2627
+ "isExpression": false,
2628
+ "asc": true,
2629
+ "nullsFirst": false,
2630
+ "opclass": null
2631
+ }
2632
+ ],
2633
+ "isUnique": false,
2634
+ "where": null,
2635
+ "with": "",
2636
+ "method": "btree",
2637
+ "concurrently": false,
2638
+ "name": "roles_is_builtin_idx",
2639
+ "entityType": "indexes",
2640
+ "schema": "spfn_auth",
2641
+ "table": "roles"
2642
+ },
2643
+ {
2644
+ "nameExplicit": true,
2645
+ "columns": [
2646
+ {
2647
+ "value": "priority",
2648
+ "isExpression": false,
2649
+ "asc": true,
2650
+ "nullsFirst": false,
2651
+ "opclass": null
2652
+ }
2653
+ ],
2654
+ "isUnique": false,
2655
+ "where": null,
2656
+ "with": "",
2657
+ "method": "btree",
2658
+ "concurrently": false,
2659
+ "name": "roles_priority_idx",
2660
+ "entityType": "indexes",
2661
+ "schema": "spfn_auth",
2662
+ "table": "roles"
2663
+ },
2664
+ {
2665
+ "nameExplicit": true,
2666
+ "columns": [
2667
+ {
2668
+ "value": "name",
2669
+ "isExpression": false,
2670
+ "asc": true,
2671
+ "nullsFirst": false,
2672
+ "opclass": null
2673
+ }
2674
+ ],
2675
+ "isUnique": false,
2676
+ "where": null,
2677
+ "with": "",
2678
+ "method": "btree",
2679
+ "concurrently": false,
2680
+ "name": "permissions_name_idx",
2681
+ "entityType": "indexes",
2682
+ "schema": "spfn_auth",
2683
+ "table": "permissions"
2684
+ },
2685
+ {
2686
+ "nameExplicit": true,
2687
+ "columns": [
2688
+ {
2689
+ "value": "category",
2690
+ "isExpression": false,
2691
+ "asc": true,
2692
+ "nullsFirst": false,
2693
+ "opclass": null
2694
+ }
2695
+ ],
2696
+ "isUnique": false,
2697
+ "where": null,
2698
+ "with": "",
2699
+ "method": "btree",
2700
+ "concurrently": false,
2701
+ "name": "permissions_category_idx",
2702
+ "entityType": "indexes",
2703
+ "schema": "spfn_auth",
2704
+ "table": "permissions"
2705
+ },
2706
+ {
2707
+ "nameExplicit": true,
2708
+ "columns": [
2709
+ {
2710
+ "value": "is_system",
2711
+ "isExpression": false,
2712
+ "asc": true,
2713
+ "nullsFirst": false,
2714
+ "opclass": null
2715
+ }
2716
+ ],
2717
+ "isUnique": false,
2718
+ "where": null,
2719
+ "with": "",
2720
+ "method": "btree",
2721
+ "concurrently": false,
2722
+ "name": "permissions_is_system_idx",
2723
+ "entityType": "indexes",
2724
+ "schema": "spfn_auth",
2725
+ "table": "permissions"
2726
+ },
2727
+ {
2728
+ "nameExplicit": true,
2729
+ "columns": [
2730
+ {
2731
+ "value": "is_active",
2732
+ "isExpression": false,
2733
+ "asc": true,
2734
+ "nullsFirst": false,
2735
+ "opclass": null
2736
+ }
2737
+ ],
2738
+ "isUnique": false,
2739
+ "where": null,
2740
+ "with": "",
2741
+ "method": "btree",
2742
+ "concurrently": false,
2743
+ "name": "permissions_is_active_idx",
2744
+ "entityType": "indexes",
2745
+ "schema": "spfn_auth",
2746
+ "table": "permissions"
2747
+ },
2748
+ {
2749
+ "nameExplicit": true,
2750
+ "columns": [
2751
+ {
2752
+ "value": "is_builtin",
2753
+ "isExpression": false,
2754
+ "asc": true,
2755
+ "nullsFirst": false,
2756
+ "opclass": null
2757
+ }
2758
+ ],
2759
+ "isUnique": false,
2760
+ "where": null,
2761
+ "with": "",
2762
+ "method": "btree",
2763
+ "concurrently": false,
2764
+ "name": "permissions_is_builtin_idx",
2765
+ "entityType": "indexes",
2766
+ "schema": "spfn_auth",
2767
+ "table": "permissions"
2768
+ },
2769
+ {
2770
+ "nameExplicit": true,
2771
+ "columns": [
2772
+ {
2773
+ "value": "role_id",
2774
+ "isExpression": false,
2775
+ "asc": true,
2776
+ "nullsFirst": false,
2777
+ "opclass": null
2778
+ }
2779
+ ],
2780
+ "isUnique": false,
2781
+ "where": null,
2782
+ "with": "",
2783
+ "method": "btree",
2784
+ "concurrently": false,
2785
+ "name": "role_permissions_role_id_idx",
2786
+ "entityType": "indexes",
2787
+ "schema": "spfn_auth",
2788
+ "table": "role_permissions"
2789
+ },
2790
+ {
2791
+ "nameExplicit": true,
2792
+ "columns": [
2793
+ {
2794
+ "value": "permission_id",
2795
+ "isExpression": false,
2796
+ "asc": true,
2797
+ "nullsFirst": false,
2798
+ "opclass": null
2799
+ }
2800
+ ],
2801
+ "isUnique": false,
2802
+ "where": null,
2803
+ "with": "",
2804
+ "method": "btree",
2805
+ "concurrently": false,
2806
+ "name": "role_permissions_permission_id_idx",
2807
+ "entityType": "indexes",
2808
+ "schema": "spfn_auth",
2809
+ "table": "role_permissions"
2810
+ },
2811
+ {
2812
+ "nameExplicit": true,
2813
+ "columns": [
2814
+ {
2815
+ "value": "user_id",
2816
+ "isExpression": false,
2817
+ "asc": true,
2818
+ "nullsFirst": false,
2819
+ "opclass": null
2820
+ }
2821
+ ],
2822
+ "isUnique": false,
2823
+ "where": null,
2824
+ "with": "",
2825
+ "method": "btree",
2826
+ "concurrently": false,
2827
+ "name": "user_permissions_user_id_idx",
2828
+ "entityType": "indexes",
2829
+ "schema": "spfn_auth",
2830
+ "table": "user_permissions"
2831
+ },
2832
+ {
2833
+ "nameExplicit": true,
2834
+ "columns": [
2835
+ {
2836
+ "value": "permission_id",
2837
+ "isExpression": false,
2838
+ "asc": true,
2839
+ "nullsFirst": false,
2840
+ "opclass": null
2841
+ }
2842
+ ],
2843
+ "isUnique": false,
2844
+ "where": null,
2845
+ "with": "",
2846
+ "method": "btree",
2847
+ "concurrently": false,
2848
+ "name": "user_permissions_permission_id_idx",
2849
+ "entityType": "indexes",
2850
+ "schema": "spfn_auth",
2851
+ "table": "user_permissions"
2852
+ },
2853
+ {
2854
+ "nameExplicit": true,
2855
+ "columns": [
2856
+ {
2857
+ "value": "expires_at",
2858
+ "isExpression": false,
2859
+ "asc": true,
2860
+ "nullsFirst": false,
2861
+ "opclass": null
2862
+ }
2863
+ ],
2864
+ "isUnique": false,
2865
+ "where": null,
2866
+ "with": "",
2867
+ "method": "btree",
2868
+ "concurrently": false,
2869
+ "name": "user_permissions_expires_at_idx",
2870
+ "entityType": "indexes",
2871
+ "schema": "spfn_auth",
2872
+ "table": "user_permissions"
2873
+ },
2874
+ {
2875
+ "nameExplicit": false,
2876
+ "columns": [
2877
+ "role_id"
2878
+ ],
2879
+ "schemaTo": "spfn_auth",
2880
+ "tableTo": "roles",
2881
+ "columnsTo": [
2882
+ "id"
2883
+ ],
2884
+ "onUpdate": "NO ACTION",
2885
+ "onDelete": "CASCADE",
2886
+ "name": "users_role_id_roles_id_fk",
2887
+ "entityType": "fks",
2888
+ "schema": "spfn_auth",
2889
+ "table": "users"
2890
+ },
2891
+ {
2892
+ "nameExplicit": false,
2893
+ "columns": [
2894
+ "user_id"
2895
+ ],
2896
+ "schemaTo": "spfn_auth",
2897
+ "tableTo": "users",
2898
+ "columnsTo": [
2899
+ "id"
2900
+ ],
2901
+ "onUpdate": "NO ACTION",
2902
+ "onDelete": "CASCADE",
2903
+ "name": "user_profiles_user_id_users_id_fk",
2904
+ "entityType": "fks",
2905
+ "schema": "spfn_auth",
2906
+ "table": "user_profiles"
2907
+ },
2908
+ {
2909
+ "nameExplicit": false,
2910
+ "columns": [
2911
+ "user_id"
2912
+ ],
2913
+ "schemaTo": "spfn_auth",
2914
+ "tableTo": "users",
2915
+ "columnsTo": [
2916
+ "id"
2917
+ ],
2918
+ "onUpdate": "NO ACTION",
2919
+ "onDelete": "CASCADE",
2920
+ "name": "user_public_keys_user_id_users_id_fk",
2921
+ "entityType": "fks",
2922
+ "schema": "spfn_auth",
2923
+ "table": "user_public_keys"
2924
+ },
2925
+ {
2926
+ "nameExplicit": false,
2927
+ "columns": [
2928
+ "user_id"
2929
+ ],
2930
+ "schemaTo": "spfn_auth",
2931
+ "tableTo": "users",
2932
+ "columnsTo": [
2933
+ "id"
2934
+ ],
2935
+ "onUpdate": "NO ACTION",
2936
+ "onDelete": "CASCADE",
2937
+ "name": "user_social_accounts_user_id_users_id_fk",
2938
+ "entityType": "fks",
2939
+ "schema": "spfn_auth",
2940
+ "table": "user_social_accounts"
2941
+ },
2942
+ {
2943
+ "nameExplicit": false,
2944
+ "columns": [
2945
+ "role_id"
2946
+ ],
2947
+ "schemaTo": "spfn_auth",
2948
+ "tableTo": "roles",
2949
+ "columnsTo": [
2950
+ "id"
2951
+ ],
2952
+ "onUpdate": "NO ACTION",
2953
+ "onDelete": "CASCADE",
2954
+ "name": "user_invitations_role_id_roles_id_fk",
2955
+ "entityType": "fks",
2956
+ "schema": "spfn_auth",
2957
+ "table": "user_invitations"
2958
+ },
2959
+ {
2960
+ "nameExplicit": false,
2961
+ "columns": [
2962
+ "invited_by_id"
2963
+ ],
2964
+ "schemaTo": "spfn_auth",
2965
+ "tableTo": "users",
2966
+ "columnsTo": [
2967
+ "id"
2968
+ ],
2969
+ "onUpdate": "NO ACTION",
2970
+ "onDelete": "CASCADE",
2971
+ "name": "user_invitations_invited_by_id_users_id_fk",
2972
+ "entityType": "fks",
2973
+ "schema": "spfn_auth",
2974
+ "table": "user_invitations"
2975
+ },
2976
+ {
2977
+ "nameExplicit": false,
2978
+ "columns": [
2979
+ "user_id"
2980
+ ],
2981
+ "schemaTo": "spfn_auth",
2982
+ "tableTo": "users",
2983
+ "columnsTo": [
2984
+ "id"
2985
+ ],
2986
+ "onUpdate": "NO ACTION",
2987
+ "onDelete": "SET NULL",
2988
+ "name": "account_deletion_requests_user_id_users_id_fk",
2989
+ "entityType": "fks",
2990
+ "schema": "spfn_auth",
2991
+ "table": "account_deletion_requests"
2992
+ },
2993
+ {
2994
+ "nameExplicit": false,
2995
+ "columns": [
2996
+ "role_id"
2997
+ ],
2998
+ "schemaTo": "spfn_auth",
2999
+ "tableTo": "roles",
3000
+ "columnsTo": [
3001
+ "id"
3002
+ ],
3003
+ "onUpdate": "NO ACTION",
3004
+ "onDelete": "CASCADE",
3005
+ "name": "role_permissions_role_id_roles_id_fk",
3006
+ "entityType": "fks",
3007
+ "schema": "spfn_auth",
3008
+ "table": "role_permissions"
3009
+ },
3010
+ {
3011
+ "nameExplicit": false,
3012
+ "columns": [
3013
+ "permission_id"
3014
+ ],
3015
+ "schemaTo": "spfn_auth",
3016
+ "tableTo": "permissions",
3017
+ "columnsTo": [
3018
+ "id"
3019
+ ],
3020
+ "onUpdate": "NO ACTION",
3021
+ "onDelete": "CASCADE",
3022
+ "name": "role_permissions_permission_id_permissions_id_fk",
3023
+ "entityType": "fks",
3024
+ "schema": "spfn_auth",
3025
+ "table": "role_permissions"
3026
+ },
3027
+ {
3028
+ "nameExplicit": false,
3029
+ "columns": [
3030
+ "user_id"
3031
+ ],
3032
+ "schemaTo": "spfn_auth",
3033
+ "tableTo": "users",
3034
+ "columnsTo": [
3035
+ "id"
3036
+ ],
3037
+ "onUpdate": "NO ACTION",
3038
+ "onDelete": "CASCADE",
3039
+ "name": "user_permissions_user_id_users_id_fk",
3040
+ "entityType": "fks",
3041
+ "schema": "spfn_auth",
3042
+ "table": "user_permissions"
3043
+ },
3044
+ {
3045
+ "nameExplicit": false,
3046
+ "columns": [
3047
+ "permission_id"
3048
+ ],
3049
+ "schemaTo": "spfn_auth",
3050
+ "tableTo": "permissions",
3051
+ "columnsTo": [
3052
+ "id"
3053
+ ],
3054
+ "onUpdate": "NO ACTION",
3055
+ "onDelete": "CASCADE",
3056
+ "name": "user_permissions_permission_id_permissions_id_fk",
3057
+ "entityType": "fks",
3058
+ "schema": "spfn_auth",
3059
+ "table": "user_permissions"
3060
+ },
3061
+ {
3062
+ "columns": [
3063
+ "id"
3064
+ ],
3065
+ "nameExplicit": false,
3066
+ "name": "users_pkey",
3067
+ "schema": "spfn_auth",
3068
+ "table": "users",
3069
+ "entityType": "pks"
3070
+ },
3071
+ {
3072
+ "columns": [
3073
+ "id"
3074
+ ],
3075
+ "nameExplicit": false,
3076
+ "name": "user_profiles_pkey",
3077
+ "schema": "spfn_auth",
3078
+ "table": "user_profiles",
3079
+ "entityType": "pks"
3080
+ },
3081
+ {
3082
+ "columns": [
3083
+ "id"
3084
+ ],
3085
+ "nameExplicit": false,
3086
+ "name": "user_public_keys_pkey",
3087
+ "schema": "spfn_auth",
3088
+ "table": "user_public_keys",
3089
+ "entityType": "pks"
3090
+ },
3091
+ {
3092
+ "columns": [
3093
+ "id"
3094
+ ],
3095
+ "nameExplicit": false,
3096
+ "name": "user_social_accounts_pkey",
3097
+ "schema": "spfn_auth",
3098
+ "table": "user_social_accounts",
3099
+ "entityType": "pks"
3100
+ },
3101
+ {
3102
+ "columns": [
3103
+ "id"
3104
+ ],
3105
+ "nameExplicit": false,
3106
+ "name": "verification_codes_pkey",
3107
+ "schema": "spfn_auth",
3108
+ "table": "verification_codes",
3109
+ "entityType": "pks"
3110
+ },
3111
+ {
3112
+ "columns": [
3113
+ "id"
3114
+ ],
3115
+ "nameExplicit": false,
3116
+ "name": "user_invitations_pkey",
3117
+ "schema": "spfn_auth",
3118
+ "table": "user_invitations",
3119
+ "entityType": "pks"
3120
+ },
3121
+ {
3122
+ "columns": [
3123
+ "id"
3124
+ ],
3125
+ "nameExplicit": false,
3126
+ "name": "account_deletion_requests_pkey",
3127
+ "schema": "spfn_auth",
3128
+ "table": "account_deletion_requests",
3129
+ "entityType": "pks"
3130
+ },
3131
+ {
3132
+ "columns": [
3133
+ "id"
3134
+ ],
3135
+ "nameExplicit": false,
3136
+ "name": "roles_pkey",
3137
+ "schema": "spfn_auth",
3138
+ "table": "roles",
3139
+ "entityType": "pks"
3140
+ },
3141
+ {
3142
+ "columns": [
3143
+ "id"
3144
+ ],
3145
+ "nameExplicit": false,
3146
+ "name": "permissions_pkey",
3147
+ "schema": "spfn_auth",
3148
+ "table": "permissions",
3149
+ "entityType": "pks"
3150
+ },
3151
+ {
3152
+ "columns": [
3153
+ "id"
3154
+ ],
3155
+ "nameExplicit": false,
3156
+ "name": "role_permissions_pkey",
3157
+ "schema": "spfn_auth",
3158
+ "table": "role_permissions",
3159
+ "entityType": "pks"
3160
+ },
3161
+ {
3162
+ "columns": [
3163
+ "id"
3164
+ ],
3165
+ "nameExplicit": false,
3166
+ "name": "user_permissions_pkey",
3167
+ "schema": "spfn_auth",
3168
+ "table": "user_permissions",
3169
+ "entityType": "pks"
3170
+ },
3171
+ {
3172
+ "columns": [
3173
+ "key"
3174
+ ],
3175
+ "nameExplicit": false,
3176
+ "name": "auth_metadata_pkey",
3177
+ "schema": "spfn_auth",
3178
+ "table": "auth_metadata",
3179
+ "entityType": "pks"
3180
+ },
3181
+ {
3182
+ "columns": [
3183
+ "id"
3184
+ ],
3185
+ "nameExplicit": false,
3186
+ "name": "ops_tokens_pkey",
3187
+ "schema": "spfn_auth",
3188
+ "table": "ops_tokens",
3189
+ "entityType": "pks"
3190
+ },
3191
+ {
3192
+ "nameExplicit": true,
3193
+ "columns": [
3194
+ "role_id",
3195
+ "permission_id"
3196
+ ],
3197
+ "nullsNotDistinct": false,
3198
+ "name": "role_permissions_unique",
3199
+ "entityType": "uniques",
3200
+ "schema": "spfn_auth",
3201
+ "table": "role_permissions"
3202
+ },
3203
+ {
3204
+ "nameExplicit": true,
3205
+ "columns": [
3206
+ "user_id",
3207
+ "permission_id"
3208
+ ],
3209
+ "nullsNotDistinct": false,
3210
+ "name": "user_permissions_unique",
3211
+ "entityType": "uniques",
3212
+ "schema": "spfn_auth",
3213
+ "table": "user_permissions"
3214
+ },
3215
+ {
3216
+ "nameExplicit": false,
3217
+ "columns": [
3218
+ "public_id"
3219
+ ],
3220
+ "nullsNotDistinct": false,
3221
+ "name": "users_public_id_unique",
3222
+ "schema": "spfn_auth",
3223
+ "table": "users",
3224
+ "entityType": "uniques"
3225
+ },
3226
+ {
3227
+ "nameExplicit": false,
3228
+ "columns": [
3229
+ "email"
3230
+ ],
3231
+ "nullsNotDistinct": false,
3232
+ "name": "users_email_unique",
3233
+ "schema": "spfn_auth",
3234
+ "table": "users",
3235
+ "entityType": "uniques"
3236
+ },
3237
+ {
3238
+ "nameExplicit": false,
3239
+ "columns": [
3240
+ "phone"
3241
+ ],
3242
+ "nullsNotDistinct": false,
3243
+ "name": "users_phone_unique",
3244
+ "schema": "spfn_auth",
3245
+ "table": "users",
3246
+ "entityType": "uniques"
3247
+ },
3248
+ {
3249
+ "nameExplicit": false,
3250
+ "columns": [
3251
+ "username"
3252
+ ],
3253
+ "nullsNotDistinct": false,
3254
+ "name": "users_username_unique",
3255
+ "schema": "spfn_auth",
3256
+ "table": "users",
3257
+ "entityType": "uniques"
3258
+ },
3259
+ {
3260
+ "nameExplicit": false,
3261
+ "columns": [
3262
+ "user_id"
3263
+ ],
3264
+ "nullsNotDistinct": false,
3265
+ "name": "user_profiles_user_id_unique",
3266
+ "schema": "spfn_auth",
3267
+ "table": "user_profiles",
3268
+ "entityType": "uniques"
3269
+ },
3270
+ {
3271
+ "nameExplicit": false,
3272
+ "columns": [
3273
+ "key_id"
3274
+ ],
3275
+ "nullsNotDistinct": false,
3276
+ "name": "user_public_keys_key_id_unique",
3277
+ "schema": "spfn_auth",
3278
+ "table": "user_public_keys",
3279
+ "entityType": "uniques"
3280
+ },
3281
+ {
3282
+ "nameExplicit": false,
3283
+ "columns": [
3284
+ "token"
3285
+ ],
3286
+ "nullsNotDistinct": false,
3287
+ "name": "user_invitations_token_unique",
3288
+ "schema": "spfn_auth",
3289
+ "table": "user_invitations",
3290
+ "entityType": "uniques"
3291
+ },
3292
+ {
3293
+ "nameExplicit": false,
3294
+ "columns": [
3295
+ "name"
3296
+ ],
3297
+ "nullsNotDistinct": false,
3298
+ "name": "roles_name_unique",
3299
+ "schema": "spfn_auth",
3300
+ "table": "roles",
3301
+ "entityType": "uniques"
3302
+ },
3303
+ {
3304
+ "nameExplicit": false,
3305
+ "columns": [
3306
+ "name"
3307
+ ],
3308
+ "nullsNotDistinct": false,
3309
+ "name": "permissions_name_unique",
3310
+ "schema": "spfn_auth",
3311
+ "table": "permissions",
3312
+ "entityType": "uniques"
3313
+ },
3314
+ {
3315
+ "nameExplicit": false,
3316
+ "columns": [
3317
+ "token_hash"
3318
+ ],
3319
+ "nullsNotDistinct": false,
3320
+ "name": "ops_tokens_token_hash_key",
3321
+ "schema": "spfn_auth",
3322
+ "table": "ops_tokens",
3323
+ "entityType": "uniques"
3324
+ },
3325
+ {
3326
+ "value": "\"attempts\" >= 0 AND \"attempts\" <= 10",
3327
+ "name": "attempts_limit_check",
3328
+ "entityType": "checks",
3329
+ "schema": "spfn_auth",
3330
+ "table": "verification_codes"
3331
+ }
3332
+ ],
3333
+ "renames": []
3334
+ }