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