@spfn/auth 0.2.0-beta.9 → 0.2.0-beta.91

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