@spfn/auth 0.3.0-beta.7 → 0.3.0-beta.8

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