@spfn/auth 0.2.1 → 0.3.0-beta.1

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 +1032 -2397
  3. package/dist/{authenticate-eucncHxN.d.ts → authenticate-DlTGaBT8.d.ts} +545 -82
  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 +319 -3
  8. package/dist/config.js +155 -5
  9. package/dist/config.js.map +1 -1
  10. package/dist/errors.d.ts +180 -3
  11. package/dist/errors.js +116 -1
  12. package/dist/errors.js.map +1 -1
  13. package/dist/index.d.ts +122 -18
  14. package/dist/index.js +129 -8
  15. package/dist/index.js.map +1 -1
  16. package/dist/nextjs/api.js +404 -96
  17. package/dist/nextjs/api.js.map +1 -1
  18. package/dist/nextjs/server.d.ts +5 -4
  19. package/dist/nextjs/server.js +165 -26
  20. package/dist/nextjs/server.js.map +1 -1
  21. package/dist/server.d.ts +2130 -1016
  22. package/dist/server.js +4916 -739
  23. package/dist/server.js.map +1 -1
  24. package/dist/session-DTHahDQ9.d.ts +53 -0
  25. package/dist/types-DYyhze28.d.ts +98 -0
  26. package/dist/wire-version-CtzMKvBB.d.ts +134 -0
  27. package/migrations/20251125021229_premium_famine/snapshot.json +2641 -0
  28. package/migrations/20260225130050_smooth_the_fury/snapshot.json +2686 -0
  29. package/migrations/20260308141417_deep_iceman/snapshot.json +2686 -0
  30. package/migrations/20260308151309_perfect_deathbird/snapshot.json +2731 -0
  31. package/migrations/20260308201135_concerned_rawhide_kid/snapshot.json +2786 -0
  32. package/migrations/20260629103209_lethal_lifeguard/migration.sql +32 -0
  33. package/migrations/20260629103209_lethal_lifeguard/snapshot.json +2786 -0
  34. package/migrations/20260709073531_easy_hardball/migration.sql +24 -0
  35. package/migrations/20260709073531_easy_hardball/snapshot.json +3119 -0
  36. package/migrations/20260714081434_glossy_major_mapleleaf/migration.sql +1 -0
  37. package/migrations/20260714081434_glossy_major_mapleleaf/snapshot.json +3112 -0
  38. package/migrations/20260804105939_amazing_bushwacker/migration.sql +3 -0
  39. package/migrations/20260804105939_amazing_bushwacker/snapshot.json +3112 -0
  40. package/migrations/20260804110033_fat_piledriver/migration.sql +2 -0
  41. package/migrations/20260804110033_fat_piledriver/snapshot.json +3138 -0
  42. package/migrations/20260805143152_vengeful_ravenous/migration.sql +4 -0
  43. package/migrations/20260805143152_vengeful_ravenous/snapshot.json +3190 -0
  44. package/package.json +54 -40
  45. package/migrations/meta/0000_snapshot.json +0 -1632
  46. package/migrations/meta/0001_snapshot.json +0 -1660
  47. package/migrations/meta/0002_snapshot.json +0 -1660
  48. package/migrations/meta/0003_snapshot.json +0 -1689
  49. package/migrations/meta/0004_snapshot.json +0 -1721
  50. package/migrations/meta/_journal.json +0 -41
  51. /package/migrations/{0000_premium_famine.sql → 20251125021229_premium_famine/migration.sql} +0 -0
  52. /package/migrations/{0001_smooth_the_fury.sql → 20260225130050_smooth_the_fury/migration.sql} +0 -0
  53. /package/migrations/{0002_deep_iceman.sql → 20260308141417_deep_iceman/migration.sql} +0 -0
  54. /package/migrations/{0003_perfect_deathbird.sql → 20260308151309_perfect_deathbird/migration.sql} +0 -0
  55. /package/migrations/{0004_concerned_rawhide_kid.sql → 20260308201135_concerned_rawhide_kid/migration.sql} +0 -0
@@ -0,0 +1,3190 @@
1
+ {
2
+ "version": "8",
3
+ "dialect": "postgres",
4
+ "id": "24acbfec-e4ab-446c-bf2f-0ee21c471c77",
5
+ "prevIds": [
6
+ "79e8b992-2f81-43a5-afa4-8f548840a4cf"
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": "text",
607
+ "typeSchema": null,
608
+ "notNull": false,
609
+ "dimensions": 0,
610
+ "default": null,
611
+ "generated": null,
612
+ "identity": null,
613
+ "name": "device_name",
614
+ "entityType": "columns",
615
+ "schema": "spfn_auth",
616
+ "table": "user_public_keys"
617
+ },
618
+ {
619
+ "type": "text",
620
+ "typeSchema": null,
621
+ "notNull": false,
622
+ "dimensions": 0,
623
+ "default": null,
624
+ "generated": null,
625
+ "identity": null,
626
+ "name": "platform",
627
+ "entityType": "columns",
628
+ "schema": "spfn_auth",
629
+ "table": "user_public_keys"
630
+ },
631
+ {
632
+ "type": "text",
633
+ "typeSchema": null,
634
+ "notNull": false,
635
+ "dimensions": 0,
636
+ "default": null,
637
+ "generated": null,
638
+ "identity": null,
639
+ "name": "client_kind",
640
+ "entityType": "columns",
641
+ "schema": "spfn_auth",
642
+ "table": "user_public_keys"
643
+ },
644
+ {
645
+ "type": "text",
646
+ "typeSchema": null,
647
+ "notNull": false,
648
+ "dimensions": 0,
649
+ "default": null,
650
+ "generated": null,
651
+ "identity": null,
652
+ "name": "client_version",
653
+ "entityType": "columns",
654
+ "schema": "spfn_auth",
655
+ "table": "user_public_keys"
656
+ },
657
+ {
658
+ "type": "text",
659
+ "typeSchema": null,
660
+ "notNull": false,
661
+ "dimensions": 0,
662
+ "default": null,
663
+ "generated": null,
664
+ "identity": null,
665
+ "name": "client_contract_version",
666
+ "entityType": "columns",
667
+ "schema": "spfn_auth",
668
+ "table": "user_public_keys"
669
+ },
670
+ {
671
+ "type": "timestamp with time zone",
672
+ "typeSchema": null,
673
+ "notNull": false,
674
+ "dimensions": 0,
675
+ "default": null,
676
+ "generated": null,
677
+ "identity": null,
678
+ "name": "client_seen_at",
679
+ "entityType": "columns",
680
+ "schema": "spfn_auth",
681
+ "table": "user_public_keys"
682
+ },
683
+ {
684
+ "type": "boolean",
685
+ "typeSchema": null,
686
+ "notNull": true,
687
+ "dimensions": 0,
688
+ "default": "true",
689
+ "generated": null,
690
+ "identity": null,
691
+ "name": "is_active",
692
+ "entityType": "columns",
693
+ "schema": "spfn_auth",
694
+ "table": "user_public_keys"
695
+ },
696
+ {
697
+ "type": "timestamp with time zone",
698
+ "typeSchema": null,
699
+ "notNull": true,
700
+ "dimensions": 0,
701
+ "default": "now()",
702
+ "generated": null,
703
+ "identity": null,
704
+ "name": "created_at",
705
+ "entityType": "columns",
706
+ "schema": "spfn_auth",
707
+ "table": "user_public_keys"
708
+ },
709
+ {
710
+ "type": "timestamp with time zone",
711
+ "typeSchema": null,
712
+ "notNull": false,
713
+ "dimensions": 0,
714
+ "default": null,
715
+ "generated": null,
716
+ "identity": null,
717
+ "name": "last_used_at",
718
+ "entityType": "columns",
719
+ "schema": "spfn_auth",
720
+ "table": "user_public_keys"
721
+ },
722
+ {
723
+ "type": "timestamp with time zone",
724
+ "typeSchema": null,
725
+ "notNull": false,
726
+ "dimensions": 0,
727
+ "default": null,
728
+ "generated": null,
729
+ "identity": null,
730
+ "name": "expires_at",
731
+ "entityType": "columns",
732
+ "schema": "spfn_auth",
733
+ "table": "user_public_keys"
734
+ },
735
+ {
736
+ "type": "timestamp with time zone",
737
+ "typeSchema": null,
738
+ "notNull": false,
739
+ "dimensions": 0,
740
+ "default": null,
741
+ "generated": null,
742
+ "identity": null,
743
+ "name": "revoked_at",
744
+ "entityType": "columns",
745
+ "schema": "spfn_auth",
746
+ "table": "user_public_keys"
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": "revoked_reason",
757
+ "entityType": "columns",
758
+ "schema": "spfn_auth",
759
+ "table": "user_public_keys"
760
+ },
761
+ {
762
+ "type": "bigserial",
763
+ "typeSchema": null,
764
+ "notNull": true,
765
+ "dimensions": 0,
766
+ "default": null,
767
+ "generated": null,
768
+ "identity": null,
769
+ "name": "id",
770
+ "entityType": "columns",
771
+ "schema": "spfn_auth",
772
+ "table": "user_social_accounts"
773
+ },
774
+ {
775
+ "type": "bigint",
776
+ "typeSchema": null,
777
+ "notNull": true,
778
+ "dimensions": 0,
779
+ "default": null,
780
+ "generated": null,
781
+ "identity": null,
782
+ "name": "user_id",
783
+ "entityType": "columns",
784
+ "schema": "spfn_auth",
785
+ "table": "user_social_accounts"
786
+ },
787
+ {
788
+ "type": "text",
789
+ "typeSchema": null,
790
+ "notNull": true,
791
+ "dimensions": 0,
792
+ "default": null,
793
+ "generated": null,
794
+ "identity": null,
795
+ "name": "provider",
796
+ "entityType": "columns",
797
+ "schema": "spfn_auth",
798
+ "table": "user_social_accounts"
799
+ },
800
+ {
801
+ "type": "text",
802
+ "typeSchema": null,
803
+ "notNull": true,
804
+ "dimensions": 0,
805
+ "default": null,
806
+ "generated": null,
807
+ "identity": null,
808
+ "name": "provider_user_id",
809
+ "entityType": "columns",
810
+ "schema": "spfn_auth",
811
+ "table": "user_social_accounts"
812
+ },
813
+ {
814
+ "type": "text",
815
+ "typeSchema": null,
816
+ "notNull": false,
817
+ "dimensions": 0,
818
+ "default": null,
819
+ "generated": null,
820
+ "identity": null,
821
+ "name": "provider_email",
822
+ "entityType": "columns",
823
+ "schema": "spfn_auth",
824
+ "table": "user_social_accounts"
825
+ },
826
+ {
827
+ "type": "text",
828
+ "typeSchema": null,
829
+ "notNull": false,
830
+ "dimensions": 0,
831
+ "default": null,
832
+ "generated": null,
833
+ "identity": null,
834
+ "name": "access_token",
835
+ "entityType": "columns",
836
+ "schema": "spfn_auth",
837
+ "table": "user_social_accounts"
838
+ },
839
+ {
840
+ "type": "text",
841
+ "typeSchema": null,
842
+ "notNull": false,
843
+ "dimensions": 0,
844
+ "default": null,
845
+ "generated": null,
846
+ "identity": null,
847
+ "name": "refresh_token",
848
+ "entityType": "columns",
849
+ "schema": "spfn_auth",
850
+ "table": "user_social_accounts"
851
+ },
852
+ {
853
+ "type": "timestamp with time zone",
854
+ "typeSchema": null,
855
+ "notNull": false,
856
+ "dimensions": 0,
857
+ "default": null,
858
+ "generated": null,
859
+ "identity": null,
860
+ "name": "token_expires_at",
861
+ "entityType": "columns",
862
+ "schema": "spfn_auth",
863
+ "table": "user_social_accounts"
864
+ },
865
+ {
866
+ "type": "timestamp with time zone",
867
+ "typeSchema": null,
868
+ "notNull": true,
869
+ "dimensions": 0,
870
+ "default": "now()",
871
+ "generated": null,
872
+ "identity": null,
873
+ "name": "created_at",
874
+ "entityType": "columns",
875
+ "schema": "spfn_auth",
876
+ "table": "user_social_accounts"
877
+ },
878
+ {
879
+ "type": "timestamp with time zone",
880
+ "typeSchema": null,
881
+ "notNull": true,
882
+ "dimensions": 0,
883
+ "default": "now()",
884
+ "generated": null,
885
+ "identity": null,
886
+ "name": "updated_at",
887
+ "entityType": "columns",
888
+ "schema": "spfn_auth",
889
+ "table": "user_social_accounts"
890
+ },
891
+ {
892
+ "type": "bigserial",
893
+ "typeSchema": null,
894
+ "notNull": true,
895
+ "dimensions": 0,
896
+ "default": null,
897
+ "generated": null,
898
+ "identity": null,
899
+ "name": "id",
900
+ "entityType": "columns",
901
+ "schema": "spfn_auth",
902
+ "table": "verification_codes"
903
+ },
904
+ {
905
+ "type": "text",
906
+ "typeSchema": null,
907
+ "notNull": true,
908
+ "dimensions": 0,
909
+ "default": null,
910
+ "generated": null,
911
+ "identity": null,
912
+ "name": "target",
913
+ "entityType": "columns",
914
+ "schema": "spfn_auth",
915
+ "table": "verification_codes"
916
+ },
917
+ {
918
+ "type": "text",
919
+ "typeSchema": null,
920
+ "notNull": true,
921
+ "dimensions": 0,
922
+ "default": null,
923
+ "generated": null,
924
+ "identity": null,
925
+ "name": "target_type",
926
+ "entityType": "columns",
927
+ "schema": "spfn_auth",
928
+ "table": "verification_codes"
929
+ },
930
+ {
931
+ "type": "text",
932
+ "typeSchema": null,
933
+ "notNull": true,
934
+ "dimensions": 0,
935
+ "default": null,
936
+ "generated": null,
937
+ "identity": null,
938
+ "name": "code",
939
+ "entityType": "columns",
940
+ "schema": "spfn_auth",
941
+ "table": "verification_codes"
942
+ },
943
+ {
944
+ "type": "text",
945
+ "typeSchema": null,
946
+ "notNull": true,
947
+ "dimensions": 0,
948
+ "default": null,
949
+ "generated": null,
950
+ "identity": null,
951
+ "name": "purpose",
952
+ "entityType": "columns",
953
+ "schema": "spfn_auth",
954
+ "table": "verification_codes"
955
+ },
956
+ {
957
+ "type": "timestamp with time zone",
958
+ "typeSchema": null,
959
+ "notNull": true,
960
+ "dimensions": 0,
961
+ "default": null,
962
+ "generated": null,
963
+ "identity": null,
964
+ "name": "expires_at",
965
+ "entityType": "columns",
966
+ "schema": "spfn_auth",
967
+ "table": "verification_codes"
968
+ },
969
+ {
970
+ "type": "timestamp with time zone",
971
+ "typeSchema": null,
972
+ "notNull": false,
973
+ "dimensions": 0,
974
+ "default": null,
975
+ "generated": null,
976
+ "identity": null,
977
+ "name": "used_at",
978
+ "entityType": "columns",
979
+ "schema": "spfn_auth",
980
+ "table": "verification_codes"
981
+ },
982
+ {
983
+ "type": "integer",
984
+ "typeSchema": null,
985
+ "notNull": true,
986
+ "dimensions": 0,
987
+ "default": "0",
988
+ "generated": null,
989
+ "identity": null,
990
+ "name": "attempts",
991
+ "entityType": "columns",
992
+ "schema": "spfn_auth",
993
+ "table": "verification_codes"
994
+ },
995
+ {
996
+ "type": "timestamp with time zone",
997
+ "typeSchema": null,
998
+ "notNull": true,
999
+ "dimensions": 0,
1000
+ "default": "now()",
1001
+ "generated": null,
1002
+ "identity": null,
1003
+ "name": "created_at",
1004
+ "entityType": "columns",
1005
+ "schema": "spfn_auth",
1006
+ "table": "verification_codes"
1007
+ },
1008
+ {
1009
+ "type": "timestamp with time zone",
1010
+ "typeSchema": null,
1011
+ "notNull": true,
1012
+ "dimensions": 0,
1013
+ "default": "now()",
1014
+ "generated": null,
1015
+ "identity": null,
1016
+ "name": "updated_at",
1017
+ "entityType": "columns",
1018
+ "schema": "spfn_auth",
1019
+ "table": "verification_codes"
1020
+ },
1021
+ {
1022
+ "type": "bigserial",
1023
+ "typeSchema": null,
1024
+ "notNull": true,
1025
+ "dimensions": 0,
1026
+ "default": null,
1027
+ "generated": null,
1028
+ "identity": null,
1029
+ "name": "id",
1030
+ "entityType": "columns",
1031
+ "schema": "spfn_auth",
1032
+ "table": "user_invitations"
1033
+ },
1034
+ {
1035
+ "type": "text",
1036
+ "typeSchema": null,
1037
+ "notNull": true,
1038
+ "dimensions": 0,
1039
+ "default": null,
1040
+ "generated": null,
1041
+ "identity": null,
1042
+ "name": "email",
1043
+ "entityType": "columns",
1044
+ "schema": "spfn_auth",
1045
+ "table": "user_invitations"
1046
+ },
1047
+ {
1048
+ "type": "text",
1049
+ "typeSchema": null,
1050
+ "notNull": true,
1051
+ "dimensions": 0,
1052
+ "default": null,
1053
+ "generated": null,
1054
+ "identity": null,
1055
+ "name": "token",
1056
+ "entityType": "columns",
1057
+ "schema": "spfn_auth",
1058
+ "table": "user_invitations"
1059
+ },
1060
+ {
1061
+ "type": "bigint",
1062
+ "typeSchema": null,
1063
+ "notNull": true,
1064
+ "dimensions": 0,
1065
+ "default": null,
1066
+ "generated": null,
1067
+ "identity": null,
1068
+ "name": "role_id",
1069
+ "entityType": "columns",
1070
+ "schema": "spfn_auth",
1071
+ "table": "user_invitations"
1072
+ },
1073
+ {
1074
+ "type": "bigint",
1075
+ "typeSchema": null,
1076
+ "notNull": true,
1077
+ "dimensions": 0,
1078
+ "default": null,
1079
+ "generated": null,
1080
+ "identity": null,
1081
+ "name": "invited_by_id",
1082
+ "entityType": "columns",
1083
+ "schema": "spfn_auth",
1084
+ "table": "user_invitations"
1085
+ },
1086
+ {
1087
+ "type": "text",
1088
+ "typeSchema": null,
1089
+ "notNull": true,
1090
+ "dimensions": 0,
1091
+ "default": "'pending'",
1092
+ "generated": null,
1093
+ "identity": null,
1094
+ "name": "status",
1095
+ "entityType": "columns",
1096
+ "schema": "spfn_auth",
1097
+ "table": "user_invitations"
1098
+ },
1099
+ {
1100
+ "type": "timestamp with time zone",
1101
+ "typeSchema": null,
1102
+ "notNull": true,
1103
+ "dimensions": 0,
1104
+ "default": null,
1105
+ "generated": null,
1106
+ "identity": null,
1107
+ "name": "expires_at",
1108
+ "entityType": "columns",
1109
+ "schema": "spfn_auth",
1110
+ "table": "user_invitations"
1111
+ },
1112
+ {
1113
+ "type": "timestamp with time zone",
1114
+ "typeSchema": null,
1115
+ "notNull": false,
1116
+ "dimensions": 0,
1117
+ "default": null,
1118
+ "generated": null,
1119
+ "identity": null,
1120
+ "name": "accepted_at",
1121
+ "entityType": "columns",
1122
+ "schema": "spfn_auth",
1123
+ "table": "user_invitations"
1124
+ },
1125
+ {
1126
+ "type": "timestamp with time zone",
1127
+ "typeSchema": null,
1128
+ "notNull": false,
1129
+ "dimensions": 0,
1130
+ "default": null,
1131
+ "generated": null,
1132
+ "identity": null,
1133
+ "name": "cancelled_at",
1134
+ "entityType": "columns",
1135
+ "schema": "spfn_auth",
1136
+ "table": "user_invitations"
1137
+ },
1138
+ {
1139
+ "type": "jsonb",
1140
+ "typeSchema": null,
1141
+ "notNull": false,
1142
+ "dimensions": 0,
1143
+ "default": null,
1144
+ "generated": null,
1145
+ "identity": null,
1146
+ "name": "metadata",
1147
+ "entityType": "columns",
1148
+ "schema": "spfn_auth",
1149
+ "table": "user_invitations"
1150
+ },
1151
+ {
1152
+ "type": "timestamp with time zone",
1153
+ "typeSchema": null,
1154
+ "notNull": true,
1155
+ "dimensions": 0,
1156
+ "default": "now()",
1157
+ "generated": null,
1158
+ "identity": null,
1159
+ "name": "created_at",
1160
+ "entityType": "columns",
1161
+ "schema": "spfn_auth",
1162
+ "table": "user_invitations"
1163
+ },
1164
+ {
1165
+ "type": "timestamp with time zone",
1166
+ "typeSchema": null,
1167
+ "notNull": true,
1168
+ "dimensions": 0,
1169
+ "default": "now()",
1170
+ "generated": null,
1171
+ "identity": null,
1172
+ "name": "updated_at",
1173
+ "entityType": "columns",
1174
+ "schema": "spfn_auth",
1175
+ "table": "user_invitations"
1176
+ },
1177
+ {
1178
+ "type": "bigserial",
1179
+ "typeSchema": null,
1180
+ "notNull": true,
1181
+ "dimensions": 0,
1182
+ "default": null,
1183
+ "generated": null,
1184
+ "identity": null,
1185
+ "name": "id",
1186
+ "entityType": "columns",
1187
+ "schema": "spfn_auth",
1188
+ "table": "account_deletion_requests"
1189
+ },
1190
+ {
1191
+ "type": "bigint",
1192
+ "typeSchema": null,
1193
+ "notNull": false,
1194
+ "dimensions": 0,
1195
+ "default": null,
1196
+ "generated": null,
1197
+ "identity": null,
1198
+ "name": "user_id",
1199
+ "entityType": "columns",
1200
+ "schema": "spfn_auth",
1201
+ "table": "account_deletion_requests"
1202
+ },
1203
+ {
1204
+ "type": "text",
1205
+ "typeSchema": null,
1206
+ "notNull": true,
1207
+ "dimensions": 0,
1208
+ "default": null,
1209
+ "generated": null,
1210
+ "identity": null,
1211
+ "name": "user_public_id",
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": true,
1220
+ "dimensions": 0,
1221
+ "default": "now()",
1222
+ "generated": null,
1223
+ "identity": null,
1224
+ "name": "requested_at",
1225
+ "entityType": "columns",
1226
+ "schema": "spfn_auth",
1227
+ "table": "account_deletion_requests"
1228
+ },
1229
+ {
1230
+ "type": "timestamp with time zone",
1231
+ "typeSchema": null,
1232
+ "notNull": true,
1233
+ "dimensions": 0,
1234
+ "default": null,
1235
+ "generated": null,
1236
+ "identity": null,
1237
+ "name": "purge_scheduled_at",
1238
+ "entityType": "columns",
1239
+ "schema": "spfn_auth",
1240
+ "table": "account_deletion_requests"
1241
+ },
1242
+ {
1243
+ "type": "text",
1244
+ "typeSchema": null,
1245
+ "notNull": true,
1246
+ "dimensions": 0,
1247
+ "default": "'pending'",
1248
+ "generated": null,
1249
+ "identity": null,
1250
+ "name": "status",
1251
+ "entityType": "columns",
1252
+ "schema": "spfn_auth",
1253
+ "table": "account_deletion_requests"
1254
+ },
1255
+ {
1256
+ "type": "text",
1257
+ "typeSchema": null,
1258
+ "notNull": true,
1259
+ "dimensions": 0,
1260
+ "default": "'self'",
1261
+ "generated": null,
1262
+ "identity": null,
1263
+ "name": "requested_by",
1264
+ "entityType": "columns",
1265
+ "schema": "spfn_auth",
1266
+ "table": "account_deletion_requests"
1267
+ },
1268
+ {
1269
+ "type": "text",
1270
+ "typeSchema": null,
1271
+ "notNull": false,
1272
+ "dimensions": 0,
1273
+ "default": null,
1274
+ "generated": null,
1275
+ "identity": null,
1276
+ "name": "reason",
1277
+ "entityType": "columns",
1278
+ "schema": "spfn_auth",
1279
+ "table": "account_deletion_requests"
1280
+ },
1281
+ {
1282
+ "type": "timestamp with time zone",
1283
+ "typeSchema": null,
1284
+ "notNull": false,
1285
+ "dimensions": 0,
1286
+ "default": null,
1287
+ "generated": null,
1288
+ "identity": null,
1289
+ "name": "cancelled_at",
1290
+ "entityType": "columns",
1291
+ "schema": "spfn_auth",
1292
+ "table": "account_deletion_requests"
1293
+ },
1294
+ {
1295
+ "type": "timestamp with time zone",
1296
+ "typeSchema": null,
1297
+ "notNull": false,
1298
+ "dimensions": 0,
1299
+ "default": null,
1300
+ "generated": null,
1301
+ "identity": null,
1302
+ "name": "completed_at",
1303
+ "entityType": "columns",
1304
+ "schema": "spfn_auth",
1305
+ "table": "account_deletion_requests"
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": "purge_strategy",
1316
+ "entityType": "columns",
1317
+ "schema": "spfn_auth",
1318
+ "table": "account_deletion_requests"
1319
+ },
1320
+ {
1321
+ "type": "timestamp with time zone",
1322
+ "typeSchema": null,
1323
+ "notNull": true,
1324
+ "dimensions": 0,
1325
+ "default": "now()",
1326
+ "generated": null,
1327
+ "identity": null,
1328
+ "name": "created_at",
1329
+ "entityType": "columns",
1330
+ "schema": "spfn_auth",
1331
+ "table": "account_deletion_requests"
1332
+ },
1333
+ {
1334
+ "type": "timestamp with time zone",
1335
+ "typeSchema": null,
1336
+ "notNull": true,
1337
+ "dimensions": 0,
1338
+ "default": "now()",
1339
+ "generated": null,
1340
+ "identity": null,
1341
+ "name": "updated_at",
1342
+ "entityType": "columns",
1343
+ "schema": "spfn_auth",
1344
+ "table": "account_deletion_requests"
1345
+ },
1346
+ {
1347
+ "type": "bigserial",
1348
+ "typeSchema": null,
1349
+ "notNull": true,
1350
+ "dimensions": 0,
1351
+ "default": null,
1352
+ "generated": null,
1353
+ "identity": null,
1354
+ "name": "id",
1355
+ "entityType": "columns",
1356
+ "schema": "spfn_auth",
1357
+ "table": "roles"
1358
+ },
1359
+ {
1360
+ "type": "text",
1361
+ "typeSchema": null,
1362
+ "notNull": true,
1363
+ "dimensions": 0,
1364
+ "default": null,
1365
+ "generated": null,
1366
+ "identity": null,
1367
+ "name": "name",
1368
+ "entityType": "columns",
1369
+ "schema": "spfn_auth",
1370
+ "table": "roles"
1371
+ },
1372
+ {
1373
+ "type": "text",
1374
+ "typeSchema": null,
1375
+ "notNull": true,
1376
+ "dimensions": 0,
1377
+ "default": null,
1378
+ "generated": null,
1379
+ "identity": null,
1380
+ "name": "display_name",
1381
+ "entityType": "columns",
1382
+ "schema": "spfn_auth",
1383
+ "table": "roles"
1384
+ },
1385
+ {
1386
+ "type": "text",
1387
+ "typeSchema": null,
1388
+ "notNull": false,
1389
+ "dimensions": 0,
1390
+ "default": null,
1391
+ "generated": null,
1392
+ "identity": null,
1393
+ "name": "description",
1394
+ "entityType": "columns",
1395
+ "schema": "spfn_auth",
1396
+ "table": "roles"
1397
+ },
1398
+ {
1399
+ "type": "boolean",
1400
+ "typeSchema": null,
1401
+ "notNull": true,
1402
+ "dimensions": 0,
1403
+ "default": "false",
1404
+ "generated": null,
1405
+ "identity": null,
1406
+ "name": "is_builtin",
1407
+ "entityType": "columns",
1408
+ "schema": "spfn_auth",
1409
+ "table": "roles"
1410
+ },
1411
+ {
1412
+ "type": "boolean",
1413
+ "typeSchema": null,
1414
+ "notNull": true,
1415
+ "dimensions": 0,
1416
+ "default": "false",
1417
+ "generated": null,
1418
+ "identity": null,
1419
+ "name": "is_system",
1420
+ "entityType": "columns",
1421
+ "schema": "spfn_auth",
1422
+ "table": "roles"
1423
+ },
1424
+ {
1425
+ "type": "boolean",
1426
+ "typeSchema": null,
1427
+ "notNull": true,
1428
+ "dimensions": 0,
1429
+ "default": "true",
1430
+ "generated": null,
1431
+ "identity": null,
1432
+ "name": "is_active",
1433
+ "entityType": "columns",
1434
+ "schema": "spfn_auth",
1435
+ "table": "roles"
1436
+ },
1437
+ {
1438
+ "type": "integer",
1439
+ "typeSchema": null,
1440
+ "notNull": true,
1441
+ "dimensions": 0,
1442
+ "default": "10",
1443
+ "generated": null,
1444
+ "identity": null,
1445
+ "name": "priority",
1446
+ "entityType": "columns",
1447
+ "schema": "spfn_auth",
1448
+ "table": "roles"
1449
+ },
1450
+ {
1451
+ "type": "timestamp with time zone",
1452
+ "typeSchema": null,
1453
+ "notNull": true,
1454
+ "dimensions": 0,
1455
+ "default": "now()",
1456
+ "generated": null,
1457
+ "identity": null,
1458
+ "name": "created_at",
1459
+ "entityType": "columns",
1460
+ "schema": "spfn_auth",
1461
+ "table": "roles"
1462
+ },
1463
+ {
1464
+ "type": "timestamp with time zone",
1465
+ "typeSchema": null,
1466
+ "notNull": true,
1467
+ "dimensions": 0,
1468
+ "default": "now()",
1469
+ "generated": null,
1470
+ "identity": null,
1471
+ "name": "updated_at",
1472
+ "entityType": "columns",
1473
+ "schema": "spfn_auth",
1474
+ "table": "roles"
1475
+ },
1476
+ {
1477
+ "type": "bigserial",
1478
+ "typeSchema": null,
1479
+ "notNull": true,
1480
+ "dimensions": 0,
1481
+ "default": null,
1482
+ "generated": null,
1483
+ "identity": null,
1484
+ "name": "id",
1485
+ "entityType": "columns",
1486
+ "schema": "spfn_auth",
1487
+ "table": "permissions"
1488
+ },
1489
+ {
1490
+ "type": "text",
1491
+ "typeSchema": null,
1492
+ "notNull": true,
1493
+ "dimensions": 0,
1494
+ "default": null,
1495
+ "generated": null,
1496
+ "identity": null,
1497
+ "name": "name",
1498
+ "entityType": "columns",
1499
+ "schema": "spfn_auth",
1500
+ "table": "permissions"
1501
+ },
1502
+ {
1503
+ "type": "text",
1504
+ "typeSchema": null,
1505
+ "notNull": true,
1506
+ "dimensions": 0,
1507
+ "default": null,
1508
+ "generated": null,
1509
+ "identity": null,
1510
+ "name": "display_name",
1511
+ "entityType": "columns",
1512
+ "schema": "spfn_auth",
1513
+ "table": "permissions"
1514
+ },
1515
+ {
1516
+ "type": "text",
1517
+ "typeSchema": null,
1518
+ "notNull": false,
1519
+ "dimensions": 0,
1520
+ "default": null,
1521
+ "generated": null,
1522
+ "identity": null,
1523
+ "name": "description",
1524
+ "entityType": "columns",
1525
+ "schema": "spfn_auth",
1526
+ "table": "permissions"
1527
+ },
1528
+ {
1529
+ "type": "text",
1530
+ "typeSchema": null,
1531
+ "notNull": false,
1532
+ "dimensions": 0,
1533
+ "default": null,
1534
+ "generated": null,
1535
+ "identity": null,
1536
+ "name": "category",
1537
+ "entityType": "columns",
1538
+ "schema": "spfn_auth",
1539
+ "table": "permissions"
1540
+ },
1541
+ {
1542
+ "type": "boolean",
1543
+ "typeSchema": null,
1544
+ "notNull": true,
1545
+ "dimensions": 0,
1546
+ "default": "false",
1547
+ "generated": null,
1548
+ "identity": null,
1549
+ "name": "is_builtin",
1550
+ "entityType": "columns",
1551
+ "schema": "spfn_auth",
1552
+ "table": "permissions"
1553
+ },
1554
+ {
1555
+ "type": "boolean",
1556
+ "typeSchema": null,
1557
+ "notNull": true,
1558
+ "dimensions": 0,
1559
+ "default": "false",
1560
+ "generated": null,
1561
+ "identity": null,
1562
+ "name": "is_system",
1563
+ "entityType": "columns",
1564
+ "schema": "spfn_auth",
1565
+ "table": "permissions"
1566
+ },
1567
+ {
1568
+ "type": "boolean",
1569
+ "typeSchema": null,
1570
+ "notNull": true,
1571
+ "dimensions": 0,
1572
+ "default": "true",
1573
+ "generated": null,
1574
+ "identity": null,
1575
+ "name": "is_active",
1576
+ "entityType": "columns",
1577
+ "schema": "spfn_auth",
1578
+ "table": "permissions"
1579
+ },
1580
+ {
1581
+ "type": "jsonb",
1582
+ "typeSchema": null,
1583
+ "notNull": false,
1584
+ "dimensions": 0,
1585
+ "default": null,
1586
+ "generated": null,
1587
+ "identity": null,
1588
+ "name": "metadata",
1589
+ "entityType": "columns",
1590
+ "schema": "spfn_auth",
1591
+ "table": "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": "created_at",
1602
+ "entityType": "columns",
1603
+ "schema": "spfn_auth",
1604
+ "table": "permissions"
1605
+ },
1606
+ {
1607
+ "type": "timestamp with time zone",
1608
+ "typeSchema": null,
1609
+ "notNull": true,
1610
+ "dimensions": 0,
1611
+ "default": "now()",
1612
+ "generated": null,
1613
+ "identity": null,
1614
+ "name": "updated_at",
1615
+ "entityType": "columns",
1616
+ "schema": "spfn_auth",
1617
+ "table": "permissions"
1618
+ },
1619
+ {
1620
+ "type": "bigserial",
1621
+ "typeSchema": null,
1622
+ "notNull": true,
1623
+ "dimensions": 0,
1624
+ "default": null,
1625
+ "generated": null,
1626
+ "identity": null,
1627
+ "name": "id",
1628
+ "entityType": "columns",
1629
+ "schema": "spfn_auth",
1630
+ "table": "role_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": "role_id",
1641
+ "entityType": "columns",
1642
+ "schema": "spfn_auth",
1643
+ "table": "role_permissions"
1644
+ },
1645
+ {
1646
+ "type": "bigint",
1647
+ "typeSchema": null,
1648
+ "notNull": true,
1649
+ "dimensions": 0,
1650
+ "default": null,
1651
+ "generated": null,
1652
+ "identity": null,
1653
+ "name": "permission_id",
1654
+ "entityType": "columns",
1655
+ "schema": "spfn_auth",
1656
+ "table": "role_permissions"
1657
+ },
1658
+ {
1659
+ "type": "timestamp with time zone",
1660
+ "typeSchema": null,
1661
+ "notNull": true,
1662
+ "dimensions": 0,
1663
+ "default": "now()",
1664
+ "generated": null,
1665
+ "identity": null,
1666
+ "name": "created_at",
1667
+ "entityType": "columns",
1668
+ "schema": "spfn_auth",
1669
+ "table": "role_permissions"
1670
+ },
1671
+ {
1672
+ "type": "timestamp with time zone",
1673
+ "typeSchema": null,
1674
+ "notNull": true,
1675
+ "dimensions": 0,
1676
+ "default": "now()",
1677
+ "generated": null,
1678
+ "identity": null,
1679
+ "name": "updated_at",
1680
+ "entityType": "columns",
1681
+ "schema": "spfn_auth",
1682
+ "table": "role_permissions"
1683
+ },
1684
+ {
1685
+ "type": "bigserial",
1686
+ "typeSchema": null,
1687
+ "notNull": true,
1688
+ "dimensions": 0,
1689
+ "default": null,
1690
+ "generated": null,
1691
+ "identity": null,
1692
+ "name": "id",
1693
+ "entityType": "columns",
1694
+ "schema": "spfn_auth",
1695
+ "table": "user_permissions"
1696
+ },
1697
+ {
1698
+ "type": "bigint",
1699
+ "typeSchema": null,
1700
+ "notNull": true,
1701
+ "dimensions": 0,
1702
+ "default": null,
1703
+ "generated": null,
1704
+ "identity": null,
1705
+ "name": "user_id",
1706
+ "entityType": "columns",
1707
+ "schema": "spfn_auth",
1708
+ "table": "user_permissions"
1709
+ },
1710
+ {
1711
+ "type": "bigint",
1712
+ "typeSchema": null,
1713
+ "notNull": true,
1714
+ "dimensions": 0,
1715
+ "default": null,
1716
+ "generated": null,
1717
+ "identity": null,
1718
+ "name": "permission_id",
1719
+ "entityType": "columns",
1720
+ "schema": "spfn_auth",
1721
+ "table": "user_permissions"
1722
+ },
1723
+ {
1724
+ "type": "boolean",
1725
+ "typeSchema": null,
1726
+ "notNull": true,
1727
+ "dimensions": 0,
1728
+ "default": "true",
1729
+ "generated": null,
1730
+ "identity": null,
1731
+ "name": "granted",
1732
+ "entityType": "columns",
1733
+ "schema": "spfn_auth",
1734
+ "table": "user_permissions"
1735
+ },
1736
+ {
1737
+ "type": "text",
1738
+ "typeSchema": null,
1739
+ "notNull": false,
1740
+ "dimensions": 0,
1741
+ "default": null,
1742
+ "generated": null,
1743
+ "identity": null,
1744
+ "name": "reason",
1745
+ "entityType": "columns",
1746
+ "schema": "spfn_auth",
1747
+ "table": "user_permissions"
1748
+ },
1749
+ {
1750
+ "type": "timestamp with time zone",
1751
+ "typeSchema": null,
1752
+ "notNull": false,
1753
+ "dimensions": 0,
1754
+ "default": null,
1755
+ "generated": null,
1756
+ "identity": null,
1757
+ "name": "expires_at",
1758
+ "entityType": "columns",
1759
+ "schema": "spfn_auth",
1760
+ "table": "user_permissions"
1761
+ },
1762
+ {
1763
+ "type": "timestamp with time zone",
1764
+ "typeSchema": null,
1765
+ "notNull": true,
1766
+ "dimensions": 0,
1767
+ "default": "now()",
1768
+ "generated": null,
1769
+ "identity": null,
1770
+ "name": "created_at",
1771
+ "entityType": "columns",
1772
+ "schema": "spfn_auth",
1773
+ "table": "user_permissions"
1774
+ },
1775
+ {
1776
+ "type": "timestamp with time zone",
1777
+ "typeSchema": null,
1778
+ "notNull": true,
1779
+ "dimensions": 0,
1780
+ "default": "now()",
1781
+ "generated": null,
1782
+ "identity": null,
1783
+ "name": "updated_at",
1784
+ "entityType": "columns",
1785
+ "schema": "spfn_auth",
1786
+ "table": "user_permissions"
1787
+ },
1788
+ {
1789
+ "type": "text",
1790
+ "typeSchema": null,
1791
+ "notNull": true,
1792
+ "dimensions": 0,
1793
+ "default": null,
1794
+ "generated": null,
1795
+ "identity": null,
1796
+ "name": "key",
1797
+ "entityType": "columns",
1798
+ "schema": "spfn_auth",
1799
+ "table": "auth_metadata"
1800
+ },
1801
+ {
1802
+ "type": "text",
1803
+ "typeSchema": null,
1804
+ "notNull": true,
1805
+ "dimensions": 0,
1806
+ "default": null,
1807
+ "generated": null,
1808
+ "identity": null,
1809
+ "name": "value",
1810
+ "entityType": "columns",
1811
+ "schema": "spfn_auth",
1812
+ "table": "auth_metadata"
1813
+ },
1814
+ {
1815
+ "type": "timestamp with time zone",
1816
+ "typeSchema": null,
1817
+ "notNull": true,
1818
+ "dimensions": 0,
1819
+ "default": "now()",
1820
+ "generated": null,
1821
+ "identity": null,
1822
+ "name": "updated_at",
1823
+ "entityType": "columns",
1824
+ "schema": "spfn_auth",
1825
+ "table": "auth_metadata"
1826
+ },
1827
+ {
1828
+ "nameExplicit": true,
1829
+ "columns": [
1830
+ {
1831
+ "value": "public_id",
1832
+ "isExpression": false,
1833
+ "asc": true,
1834
+ "nullsFirst": false,
1835
+ "opclass": null
1836
+ }
1837
+ ],
1838
+ "isUnique": false,
1839
+ "where": null,
1840
+ "with": "",
1841
+ "method": "btree",
1842
+ "concurrently": false,
1843
+ "name": "users_public_id_idx",
1844
+ "entityType": "indexes",
1845
+ "schema": "spfn_auth",
1846
+ "table": "users"
1847
+ },
1848
+ {
1849
+ "nameExplicit": true,
1850
+ "columns": [
1851
+ {
1852
+ "value": "email",
1853
+ "isExpression": false,
1854
+ "asc": true,
1855
+ "nullsFirst": false,
1856
+ "opclass": null
1857
+ }
1858
+ ],
1859
+ "isUnique": false,
1860
+ "where": null,
1861
+ "with": "",
1862
+ "method": "btree",
1863
+ "concurrently": false,
1864
+ "name": "users_email_idx",
1865
+ "entityType": "indexes",
1866
+ "schema": "spfn_auth",
1867
+ "table": "users"
1868
+ },
1869
+ {
1870
+ "nameExplicit": true,
1871
+ "columns": [
1872
+ {
1873
+ "value": "phone",
1874
+ "isExpression": false,
1875
+ "asc": true,
1876
+ "nullsFirst": false,
1877
+ "opclass": null
1878
+ }
1879
+ ],
1880
+ "isUnique": false,
1881
+ "where": null,
1882
+ "with": "",
1883
+ "method": "btree",
1884
+ "concurrently": false,
1885
+ "name": "users_phone_idx",
1886
+ "entityType": "indexes",
1887
+ "schema": "spfn_auth",
1888
+ "table": "users"
1889
+ },
1890
+ {
1891
+ "nameExplicit": true,
1892
+ "columns": [
1893
+ {
1894
+ "value": "username",
1895
+ "isExpression": false,
1896
+ "asc": true,
1897
+ "nullsFirst": false,
1898
+ "opclass": null
1899
+ }
1900
+ ],
1901
+ "isUnique": false,
1902
+ "where": null,
1903
+ "with": "",
1904
+ "method": "btree",
1905
+ "concurrently": false,
1906
+ "name": "users_username_idx",
1907
+ "entityType": "indexes",
1908
+ "schema": "spfn_auth",
1909
+ "table": "users"
1910
+ },
1911
+ {
1912
+ "nameExplicit": true,
1913
+ "columns": [
1914
+ {
1915
+ "value": "status",
1916
+ "isExpression": false,
1917
+ "asc": true,
1918
+ "nullsFirst": false,
1919
+ "opclass": null
1920
+ }
1921
+ ],
1922
+ "isUnique": false,
1923
+ "where": null,
1924
+ "with": "",
1925
+ "method": "btree",
1926
+ "concurrently": false,
1927
+ "name": "users_status_idx",
1928
+ "entityType": "indexes",
1929
+ "schema": "spfn_auth",
1930
+ "table": "users"
1931
+ },
1932
+ {
1933
+ "nameExplicit": true,
1934
+ "columns": [
1935
+ {
1936
+ "value": "role_id",
1937
+ "isExpression": false,
1938
+ "asc": true,
1939
+ "nullsFirst": false,
1940
+ "opclass": null
1941
+ }
1942
+ ],
1943
+ "isUnique": false,
1944
+ "where": null,
1945
+ "with": "",
1946
+ "method": "btree",
1947
+ "concurrently": false,
1948
+ "name": "users_role_id_idx",
1949
+ "entityType": "indexes",
1950
+ "schema": "spfn_auth",
1951
+ "table": "users"
1952
+ },
1953
+ {
1954
+ "nameExplicit": true,
1955
+ "columns": [
1956
+ {
1957
+ "value": "user_id",
1958
+ "isExpression": false,
1959
+ "asc": true,
1960
+ "nullsFirst": false,
1961
+ "opclass": null
1962
+ }
1963
+ ],
1964
+ "isUnique": false,
1965
+ "where": null,
1966
+ "with": "",
1967
+ "method": "btree",
1968
+ "concurrently": false,
1969
+ "name": "user_profiles_user_id_idx",
1970
+ "entityType": "indexes",
1971
+ "schema": "spfn_auth",
1972
+ "table": "user_profiles"
1973
+ },
1974
+ {
1975
+ "nameExplicit": true,
1976
+ "columns": [
1977
+ {
1978
+ "value": "display_name",
1979
+ "isExpression": false,
1980
+ "asc": true,
1981
+ "nullsFirst": false,
1982
+ "opclass": null
1983
+ }
1984
+ ],
1985
+ "isUnique": false,
1986
+ "where": null,
1987
+ "with": "",
1988
+ "method": "btree",
1989
+ "concurrently": false,
1990
+ "name": "user_profiles_display_name_idx",
1991
+ "entityType": "indexes",
1992
+ "schema": "spfn_auth",
1993
+ "table": "user_profiles"
1994
+ },
1995
+ {
1996
+ "nameExplicit": true,
1997
+ "columns": [
1998
+ {
1999
+ "value": "locale",
2000
+ "isExpression": false,
2001
+ "asc": true,
2002
+ "nullsFirst": false,
2003
+ "opclass": null
2004
+ }
2005
+ ],
2006
+ "isUnique": false,
2007
+ "where": null,
2008
+ "with": "",
2009
+ "method": "btree",
2010
+ "concurrently": false,
2011
+ "name": "user_profiles_locale_idx",
2012
+ "entityType": "indexes",
2013
+ "schema": "spfn_auth",
2014
+ "table": "user_profiles"
2015
+ },
2016
+ {
2017
+ "nameExplicit": true,
2018
+ "columns": [
2019
+ {
2020
+ "value": "user_id",
2021
+ "isExpression": false,
2022
+ "asc": true,
2023
+ "nullsFirst": false,
2024
+ "opclass": null
2025
+ }
2026
+ ],
2027
+ "isUnique": false,
2028
+ "where": null,
2029
+ "with": "",
2030
+ "method": "btree",
2031
+ "concurrently": false,
2032
+ "name": "user_public_keys_user_id_idx",
2033
+ "entityType": "indexes",
2034
+ "schema": "spfn_auth",
2035
+ "table": "user_public_keys"
2036
+ },
2037
+ {
2038
+ "nameExplicit": true,
2039
+ "columns": [
2040
+ {
2041
+ "value": "key_id",
2042
+ "isExpression": false,
2043
+ "asc": true,
2044
+ "nullsFirst": false,
2045
+ "opclass": null
2046
+ }
2047
+ ],
2048
+ "isUnique": false,
2049
+ "where": null,
2050
+ "with": "",
2051
+ "method": "btree",
2052
+ "concurrently": false,
2053
+ "name": "user_public_keys_key_id_idx",
2054
+ "entityType": "indexes",
2055
+ "schema": "spfn_auth",
2056
+ "table": "user_public_keys"
2057
+ },
2058
+ {
2059
+ "nameExplicit": true,
2060
+ "columns": [
2061
+ {
2062
+ "value": "is_active",
2063
+ "isExpression": false,
2064
+ "asc": true,
2065
+ "nullsFirst": false,
2066
+ "opclass": null
2067
+ }
2068
+ ],
2069
+ "isUnique": false,
2070
+ "where": null,
2071
+ "with": "",
2072
+ "method": "btree",
2073
+ "concurrently": false,
2074
+ "name": "user_public_keys_active_idx",
2075
+ "entityType": "indexes",
2076
+ "schema": "spfn_auth",
2077
+ "table": "user_public_keys"
2078
+ },
2079
+ {
2080
+ "nameExplicit": true,
2081
+ "columns": [
2082
+ {
2083
+ "value": "fingerprint",
2084
+ "isExpression": false,
2085
+ "asc": true,
2086
+ "nullsFirst": false,
2087
+ "opclass": null
2088
+ }
2089
+ ],
2090
+ "isUnique": false,
2091
+ "where": null,
2092
+ "with": "",
2093
+ "method": "btree",
2094
+ "concurrently": false,
2095
+ "name": "user_public_keys_fingerprint_idx",
2096
+ "entityType": "indexes",
2097
+ "schema": "spfn_auth",
2098
+ "table": "user_public_keys"
2099
+ },
2100
+ {
2101
+ "nameExplicit": true,
2102
+ "columns": [
2103
+ {
2104
+ "value": "user_id",
2105
+ "isExpression": false,
2106
+ "asc": true,
2107
+ "nullsFirst": false,
2108
+ "opclass": null
2109
+ }
2110
+ ],
2111
+ "isUnique": false,
2112
+ "where": null,
2113
+ "with": "",
2114
+ "method": "btree",
2115
+ "concurrently": false,
2116
+ "name": "user_social_accounts_user_id_idx",
2117
+ "entityType": "indexes",
2118
+ "schema": "spfn_auth",
2119
+ "table": "user_social_accounts"
2120
+ },
2121
+ {
2122
+ "nameExplicit": true,
2123
+ "columns": [
2124
+ {
2125
+ "value": "provider",
2126
+ "isExpression": false,
2127
+ "asc": true,
2128
+ "nullsFirst": false,
2129
+ "opclass": null
2130
+ }
2131
+ ],
2132
+ "isUnique": false,
2133
+ "where": null,
2134
+ "with": "",
2135
+ "method": "btree",
2136
+ "concurrently": false,
2137
+ "name": "user_social_accounts_provider_idx",
2138
+ "entityType": "indexes",
2139
+ "schema": "spfn_auth",
2140
+ "table": "user_social_accounts"
2141
+ },
2142
+ {
2143
+ "nameExplicit": true,
2144
+ "columns": [
2145
+ {
2146
+ "value": "provider",
2147
+ "isExpression": false,
2148
+ "asc": true,
2149
+ "nullsFirst": false,
2150
+ "opclass": null
2151
+ },
2152
+ {
2153
+ "value": "provider_user_id",
2154
+ "isExpression": false,
2155
+ "asc": true,
2156
+ "nullsFirst": false,
2157
+ "opclass": null
2158
+ }
2159
+ ],
2160
+ "isUnique": true,
2161
+ "where": null,
2162
+ "with": "",
2163
+ "method": "btree",
2164
+ "concurrently": false,
2165
+ "name": "provider_user_unique_idx",
2166
+ "entityType": "indexes",
2167
+ "schema": "spfn_auth",
2168
+ "table": "user_social_accounts"
2169
+ },
2170
+ {
2171
+ "nameExplicit": true,
2172
+ "columns": [
2173
+ {
2174
+ "value": "target",
2175
+ "isExpression": false,
2176
+ "asc": true,
2177
+ "nullsFirst": false,
2178
+ "opclass": null
2179
+ },
2180
+ {
2181
+ "value": "purpose",
2182
+ "isExpression": false,
2183
+ "asc": true,
2184
+ "nullsFirst": false,
2185
+ "opclass": null
2186
+ },
2187
+ {
2188
+ "value": "expires_at",
2189
+ "isExpression": false,
2190
+ "asc": true,
2191
+ "nullsFirst": false,
2192
+ "opclass": null
2193
+ }
2194
+ ],
2195
+ "isUnique": false,
2196
+ "where": null,
2197
+ "with": "",
2198
+ "method": "btree",
2199
+ "concurrently": false,
2200
+ "name": "target_purpose_idx",
2201
+ "entityType": "indexes",
2202
+ "schema": "spfn_auth",
2203
+ "table": "verification_codes"
2204
+ },
2205
+ {
2206
+ "nameExplicit": true,
2207
+ "columns": [
2208
+ {
2209
+ "value": "token",
2210
+ "isExpression": false,
2211
+ "asc": true,
2212
+ "nullsFirst": false,
2213
+ "opclass": null
2214
+ }
2215
+ ],
2216
+ "isUnique": false,
2217
+ "where": null,
2218
+ "with": "",
2219
+ "method": "btree",
2220
+ "concurrently": false,
2221
+ "name": "invitations_token_idx",
2222
+ "entityType": "indexes",
2223
+ "schema": "spfn_auth",
2224
+ "table": "user_invitations"
2225
+ },
2226
+ {
2227
+ "nameExplicit": true,
2228
+ "columns": [
2229
+ {
2230
+ "value": "email",
2231
+ "isExpression": false,
2232
+ "asc": true,
2233
+ "nullsFirst": false,
2234
+ "opclass": null
2235
+ }
2236
+ ],
2237
+ "isUnique": false,
2238
+ "where": null,
2239
+ "with": "",
2240
+ "method": "btree",
2241
+ "concurrently": false,
2242
+ "name": "invitations_email_idx",
2243
+ "entityType": "indexes",
2244
+ "schema": "spfn_auth",
2245
+ "table": "user_invitations"
2246
+ },
2247
+ {
2248
+ "nameExplicit": true,
2249
+ "columns": [
2250
+ {
2251
+ "value": "status",
2252
+ "isExpression": false,
2253
+ "asc": true,
2254
+ "nullsFirst": false,
2255
+ "opclass": null
2256
+ }
2257
+ ],
2258
+ "isUnique": false,
2259
+ "where": null,
2260
+ "with": "",
2261
+ "method": "btree",
2262
+ "concurrently": false,
2263
+ "name": "invitations_status_idx",
2264
+ "entityType": "indexes",
2265
+ "schema": "spfn_auth",
2266
+ "table": "user_invitations"
2267
+ },
2268
+ {
2269
+ "nameExplicit": true,
2270
+ "columns": [
2271
+ {
2272
+ "value": "invited_by_id",
2273
+ "isExpression": false,
2274
+ "asc": true,
2275
+ "nullsFirst": false,
2276
+ "opclass": null
2277
+ }
2278
+ ],
2279
+ "isUnique": false,
2280
+ "where": null,
2281
+ "with": "",
2282
+ "method": "btree",
2283
+ "concurrently": false,
2284
+ "name": "invitations_invited_by_idx",
2285
+ "entityType": "indexes",
2286
+ "schema": "spfn_auth",
2287
+ "table": "user_invitations"
2288
+ },
2289
+ {
2290
+ "nameExplicit": true,
2291
+ "columns": [
2292
+ {
2293
+ "value": "expires_at",
2294
+ "isExpression": false,
2295
+ "asc": true,
2296
+ "nullsFirst": false,
2297
+ "opclass": null
2298
+ }
2299
+ ],
2300
+ "isUnique": false,
2301
+ "where": null,
2302
+ "with": "",
2303
+ "method": "btree",
2304
+ "concurrently": false,
2305
+ "name": "invitations_expires_at_idx",
2306
+ "entityType": "indexes",
2307
+ "schema": "spfn_auth",
2308
+ "table": "user_invitations"
2309
+ },
2310
+ {
2311
+ "nameExplicit": true,
2312
+ "columns": [
2313
+ {
2314
+ "value": "role_id",
2315
+ "isExpression": false,
2316
+ "asc": true,
2317
+ "nullsFirst": false,
2318
+ "opclass": null
2319
+ }
2320
+ ],
2321
+ "isUnique": false,
2322
+ "where": null,
2323
+ "with": "",
2324
+ "method": "btree",
2325
+ "concurrently": false,
2326
+ "name": "invitations_role_id_idx",
2327
+ "entityType": "indexes",
2328
+ "schema": "spfn_auth",
2329
+ "table": "user_invitations"
2330
+ },
2331
+ {
2332
+ "nameExplicit": true,
2333
+ "columns": [
2334
+ {
2335
+ "value": "user_id",
2336
+ "isExpression": false,
2337
+ "asc": true,
2338
+ "nullsFirst": false,
2339
+ "opclass": null
2340
+ }
2341
+ ],
2342
+ "isUnique": false,
2343
+ "where": null,
2344
+ "with": "",
2345
+ "method": "btree",
2346
+ "concurrently": false,
2347
+ "name": "account_deletion_requests_user_id_idx",
2348
+ "entityType": "indexes",
2349
+ "schema": "spfn_auth",
2350
+ "table": "account_deletion_requests"
2351
+ },
2352
+ {
2353
+ "nameExplicit": true,
2354
+ "columns": [
2355
+ {
2356
+ "value": "status",
2357
+ "isExpression": false,
2358
+ "asc": true,
2359
+ "nullsFirst": false,
2360
+ "opclass": null
2361
+ }
2362
+ ],
2363
+ "isUnique": false,
2364
+ "where": null,
2365
+ "with": "",
2366
+ "method": "btree",
2367
+ "concurrently": false,
2368
+ "name": "account_deletion_requests_status_idx",
2369
+ "entityType": "indexes",
2370
+ "schema": "spfn_auth",
2371
+ "table": "account_deletion_requests"
2372
+ },
2373
+ {
2374
+ "nameExplicit": true,
2375
+ "columns": [
2376
+ {
2377
+ "value": "purge_scheduled_at",
2378
+ "isExpression": false,
2379
+ "asc": true,
2380
+ "nullsFirst": false,
2381
+ "opclass": null
2382
+ }
2383
+ ],
2384
+ "isUnique": false,
2385
+ "where": null,
2386
+ "with": "",
2387
+ "method": "btree",
2388
+ "concurrently": false,
2389
+ "name": "account_deletion_requests_purge_scheduled_at_idx",
2390
+ "entityType": "indexes",
2391
+ "schema": "spfn_auth",
2392
+ "table": "account_deletion_requests"
2393
+ },
2394
+ {
2395
+ "nameExplicit": true,
2396
+ "columns": [
2397
+ {
2398
+ "value": "user_public_id",
2399
+ "isExpression": false,
2400
+ "asc": true,
2401
+ "nullsFirst": false,
2402
+ "opclass": null
2403
+ }
2404
+ ],
2405
+ "isUnique": false,
2406
+ "where": null,
2407
+ "with": "",
2408
+ "method": "btree",
2409
+ "concurrently": false,
2410
+ "name": "account_deletion_requests_user_public_id_idx",
2411
+ "entityType": "indexes",
2412
+ "schema": "spfn_auth",
2413
+ "table": "account_deletion_requests"
2414
+ },
2415
+ {
2416
+ "nameExplicit": true,
2417
+ "columns": [
2418
+ {
2419
+ "value": "user_id",
2420
+ "isExpression": false,
2421
+ "asc": true,
2422
+ "nullsFirst": false,
2423
+ "opclass": null
2424
+ }
2425
+ ],
2426
+ "isUnique": true,
2427
+ "where": "\"status\" = 'pending'",
2428
+ "with": "",
2429
+ "method": "btree",
2430
+ "concurrently": false,
2431
+ "name": "account_deletion_requests_user_pending_unique_idx",
2432
+ "entityType": "indexes",
2433
+ "schema": "spfn_auth",
2434
+ "table": "account_deletion_requests"
2435
+ },
2436
+ {
2437
+ "nameExplicit": true,
2438
+ "columns": [
2439
+ {
2440
+ "value": "name",
2441
+ "isExpression": false,
2442
+ "asc": true,
2443
+ "nullsFirst": false,
2444
+ "opclass": null
2445
+ }
2446
+ ],
2447
+ "isUnique": false,
2448
+ "where": null,
2449
+ "with": "",
2450
+ "method": "btree",
2451
+ "concurrently": false,
2452
+ "name": "roles_name_idx",
2453
+ "entityType": "indexes",
2454
+ "schema": "spfn_auth",
2455
+ "table": "roles"
2456
+ },
2457
+ {
2458
+ "nameExplicit": true,
2459
+ "columns": [
2460
+ {
2461
+ "value": "is_system",
2462
+ "isExpression": false,
2463
+ "asc": true,
2464
+ "nullsFirst": false,
2465
+ "opclass": null
2466
+ }
2467
+ ],
2468
+ "isUnique": false,
2469
+ "where": null,
2470
+ "with": "",
2471
+ "method": "btree",
2472
+ "concurrently": false,
2473
+ "name": "roles_is_system_idx",
2474
+ "entityType": "indexes",
2475
+ "schema": "spfn_auth",
2476
+ "table": "roles"
2477
+ },
2478
+ {
2479
+ "nameExplicit": true,
2480
+ "columns": [
2481
+ {
2482
+ "value": "is_active",
2483
+ "isExpression": false,
2484
+ "asc": true,
2485
+ "nullsFirst": false,
2486
+ "opclass": null
2487
+ }
2488
+ ],
2489
+ "isUnique": false,
2490
+ "where": null,
2491
+ "with": "",
2492
+ "method": "btree",
2493
+ "concurrently": false,
2494
+ "name": "roles_is_active_idx",
2495
+ "entityType": "indexes",
2496
+ "schema": "spfn_auth",
2497
+ "table": "roles"
2498
+ },
2499
+ {
2500
+ "nameExplicit": true,
2501
+ "columns": [
2502
+ {
2503
+ "value": "is_builtin",
2504
+ "isExpression": false,
2505
+ "asc": true,
2506
+ "nullsFirst": false,
2507
+ "opclass": null
2508
+ }
2509
+ ],
2510
+ "isUnique": false,
2511
+ "where": null,
2512
+ "with": "",
2513
+ "method": "btree",
2514
+ "concurrently": false,
2515
+ "name": "roles_is_builtin_idx",
2516
+ "entityType": "indexes",
2517
+ "schema": "spfn_auth",
2518
+ "table": "roles"
2519
+ },
2520
+ {
2521
+ "nameExplicit": true,
2522
+ "columns": [
2523
+ {
2524
+ "value": "priority",
2525
+ "isExpression": false,
2526
+ "asc": true,
2527
+ "nullsFirst": false,
2528
+ "opclass": null
2529
+ }
2530
+ ],
2531
+ "isUnique": false,
2532
+ "where": null,
2533
+ "with": "",
2534
+ "method": "btree",
2535
+ "concurrently": false,
2536
+ "name": "roles_priority_idx",
2537
+ "entityType": "indexes",
2538
+ "schema": "spfn_auth",
2539
+ "table": "roles"
2540
+ },
2541
+ {
2542
+ "nameExplicit": true,
2543
+ "columns": [
2544
+ {
2545
+ "value": "name",
2546
+ "isExpression": false,
2547
+ "asc": true,
2548
+ "nullsFirst": false,
2549
+ "opclass": null
2550
+ }
2551
+ ],
2552
+ "isUnique": false,
2553
+ "where": null,
2554
+ "with": "",
2555
+ "method": "btree",
2556
+ "concurrently": false,
2557
+ "name": "permissions_name_idx",
2558
+ "entityType": "indexes",
2559
+ "schema": "spfn_auth",
2560
+ "table": "permissions"
2561
+ },
2562
+ {
2563
+ "nameExplicit": true,
2564
+ "columns": [
2565
+ {
2566
+ "value": "category",
2567
+ "isExpression": false,
2568
+ "asc": true,
2569
+ "nullsFirst": false,
2570
+ "opclass": null
2571
+ }
2572
+ ],
2573
+ "isUnique": false,
2574
+ "where": null,
2575
+ "with": "",
2576
+ "method": "btree",
2577
+ "concurrently": false,
2578
+ "name": "permissions_category_idx",
2579
+ "entityType": "indexes",
2580
+ "schema": "spfn_auth",
2581
+ "table": "permissions"
2582
+ },
2583
+ {
2584
+ "nameExplicit": true,
2585
+ "columns": [
2586
+ {
2587
+ "value": "is_system",
2588
+ "isExpression": false,
2589
+ "asc": true,
2590
+ "nullsFirst": false,
2591
+ "opclass": null
2592
+ }
2593
+ ],
2594
+ "isUnique": false,
2595
+ "where": null,
2596
+ "with": "",
2597
+ "method": "btree",
2598
+ "concurrently": false,
2599
+ "name": "permissions_is_system_idx",
2600
+ "entityType": "indexes",
2601
+ "schema": "spfn_auth",
2602
+ "table": "permissions"
2603
+ },
2604
+ {
2605
+ "nameExplicit": true,
2606
+ "columns": [
2607
+ {
2608
+ "value": "is_active",
2609
+ "isExpression": false,
2610
+ "asc": true,
2611
+ "nullsFirst": false,
2612
+ "opclass": null
2613
+ }
2614
+ ],
2615
+ "isUnique": false,
2616
+ "where": null,
2617
+ "with": "",
2618
+ "method": "btree",
2619
+ "concurrently": false,
2620
+ "name": "permissions_is_active_idx",
2621
+ "entityType": "indexes",
2622
+ "schema": "spfn_auth",
2623
+ "table": "permissions"
2624
+ },
2625
+ {
2626
+ "nameExplicit": true,
2627
+ "columns": [
2628
+ {
2629
+ "value": "is_builtin",
2630
+ "isExpression": false,
2631
+ "asc": true,
2632
+ "nullsFirst": false,
2633
+ "opclass": null
2634
+ }
2635
+ ],
2636
+ "isUnique": false,
2637
+ "where": null,
2638
+ "with": "",
2639
+ "method": "btree",
2640
+ "concurrently": false,
2641
+ "name": "permissions_is_builtin_idx",
2642
+ "entityType": "indexes",
2643
+ "schema": "spfn_auth",
2644
+ "table": "permissions"
2645
+ },
2646
+ {
2647
+ "nameExplicit": true,
2648
+ "columns": [
2649
+ {
2650
+ "value": "role_id",
2651
+ "isExpression": false,
2652
+ "asc": true,
2653
+ "nullsFirst": false,
2654
+ "opclass": null
2655
+ }
2656
+ ],
2657
+ "isUnique": false,
2658
+ "where": null,
2659
+ "with": "",
2660
+ "method": "btree",
2661
+ "concurrently": false,
2662
+ "name": "role_permissions_role_id_idx",
2663
+ "entityType": "indexes",
2664
+ "schema": "spfn_auth",
2665
+ "table": "role_permissions"
2666
+ },
2667
+ {
2668
+ "nameExplicit": true,
2669
+ "columns": [
2670
+ {
2671
+ "value": "permission_id",
2672
+ "isExpression": false,
2673
+ "asc": true,
2674
+ "nullsFirst": false,
2675
+ "opclass": null
2676
+ }
2677
+ ],
2678
+ "isUnique": false,
2679
+ "where": null,
2680
+ "with": "",
2681
+ "method": "btree",
2682
+ "concurrently": false,
2683
+ "name": "role_permissions_permission_id_idx",
2684
+ "entityType": "indexes",
2685
+ "schema": "spfn_auth",
2686
+ "table": "role_permissions"
2687
+ },
2688
+ {
2689
+ "nameExplicit": true,
2690
+ "columns": [
2691
+ {
2692
+ "value": "user_id",
2693
+ "isExpression": false,
2694
+ "asc": true,
2695
+ "nullsFirst": false,
2696
+ "opclass": null
2697
+ }
2698
+ ],
2699
+ "isUnique": false,
2700
+ "where": null,
2701
+ "with": "",
2702
+ "method": "btree",
2703
+ "concurrently": false,
2704
+ "name": "user_permissions_user_id_idx",
2705
+ "entityType": "indexes",
2706
+ "schema": "spfn_auth",
2707
+ "table": "user_permissions"
2708
+ },
2709
+ {
2710
+ "nameExplicit": true,
2711
+ "columns": [
2712
+ {
2713
+ "value": "permission_id",
2714
+ "isExpression": false,
2715
+ "asc": true,
2716
+ "nullsFirst": false,
2717
+ "opclass": null
2718
+ }
2719
+ ],
2720
+ "isUnique": false,
2721
+ "where": null,
2722
+ "with": "",
2723
+ "method": "btree",
2724
+ "concurrently": false,
2725
+ "name": "user_permissions_permission_id_idx",
2726
+ "entityType": "indexes",
2727
+ "schema": "spfn_auth",
2728
+ "table": "user_permissions"
2729
+ },
2730
+ {
2731
+ "nameExplicit": true,
2732
+ "columns": [
2733
+ {
2734
+ "value": "expires_at",
2735
+ "isExpression": false,
2736
+ "asc": true,
2737
+ "nullsFirst": false,
2738
+ "opclass": null
2739
+ }
2740
+ ],
2741
+ "isUnique": false,
2742
+ "where": null,
2743
+ "with": "",
2744
+ "method": "btree",
2745
+ "concurrently": false,
2746
+ "name": "user_permissions_expires_at_idx",
2747
+ "entityType": "indexes",
2748
+ "schema": "spfn_auth",
2749
+ "table": "user_permissions"
2750
+ },
2751
+ {
2752
+ "nameExplicit": false,
2753
+ "columns": [
2754
+ "role_id"
2755
+ ],
2756
+ "schemaTo": "spfn_auth",
2757
+ "tableTo": "roles",
2758
+ "columnsTo": [
2759
+ "id"
2760
+ ],
2761
+ "onUpdate": "NO ACTION",
2762
+ "onDelete": "CASCADE",
2763
+ "name": "users_role_id_roles_id_fk",
2764
+ "entityType": "fks",
2765
+ "schema": "spfn_auth",
2766
+ "table": "users"
2767
+ },
2768
+ {
2769
+ "nameExplicit": false,
2770
+ "columns": [
2771
+ "user_id"
2772
+ ],
2773
+ "schemaTo": "spfn_auth",
2774
+ "tableTo": "users",
2775
+ "columnsTo": [
2776
+ "id"
2777
+ ],
2778
+ "onUpdate": "NO ACTION",
2779
+ "onDelete": "CASCADE",
2780
+ "name": "user_profiles_user_id_users_id_fk",
2781
+ "entityType": "fks",
2782
+ "schema": "spfn_auth",
2783
+ "table": "user_profiles"
2784
+ },
2785
+ {
2786
+ "nameExplicit": false,
2787
+ "columns": [
2788
+ "user_id"
2789
+ ],
2790
+ "schemaTo": "spfn_auth",
2791
+ "tableTo": "users",
2792
+ "columnsTo": [
2793
+ "id"
2794
+ ],
2795
+ "onUpdate": "NO ACTION",
2796
+ "onDelete": "CASCADE",
2797
+ "name": "user_public_keys_user_id_users_id_fk",
2798
+ "entityType": "fks",
2799
+ "schema": "spfn_auth",
2800
+ "table": "user_public_keys"
2801
+ },
2802
+ {
2803
+ "nameExplicit": false,
2804
+ "columns": [
2805
+ "user_id"
2806
+ ],
2807
+ "schemaTo": "spfn_auth",
2808
+ "tableTo": "users",
2809
+ "columnsTo": [
2810
+ "id"
2811
+ ],
2812
+ "onUpdate": "NO ACTION",
2813
+ "onDelete": "CASCADE",
2814
+ "name": "user_social_accounts_user_id_users_id_fk",
2815
+ "entityType": "fks",
2816
+ "schema": "spfn_auth",
2817
+ "table": "user_social_accounts"
2818
+ },
2819
+ {
2820
+ "nameExplicit": false,
2821
+ "columns": [
2822
+ "role_id"
2823
+ ],
2824
+ "schemaTo": "spfn_auth",
2825
+ "tableTo": "roles",
2826
+ "columnsTo": [
2827
+ "id"
2828
+ ],
2829
+ "onUpdate": "NO ACTION",
2830
+ "onDelete": "CASCADE",
2831
+ "name": "user_invitations_role_id_roles_id_fk",
2832
+ "entityType": "fks",
2833
+ "schema": "spfn_auth",
2834
+ "table": "user_invitations"
2835
+ },
2836
+ {
2837
+ "nameExplicit": false,
2838
+ "columns": [
2839
+ "invited_by_id"
2840
+ ],
2841
+ "schemaTo": "spfn_auth",
2842
+ "tableTo": "users",
2843
+ "columnsTo": [
2844
+ "id"
2845
+ ],
2846
+ "onUpdate": "NO ACTION",
2847
+ "onDelete": "CASCADE",
2848
+ "name": "user_invitations_invited_by_id_users_id_fk",
2849
+ "entityType": "fks",
2850
+ "schema": "spfn_auth",
2851
+ "table": "user_invitations"
2852
+ },
2853
+ {
2854
+ "nameExplicit": false,
2855
+ "columns": [
2856
+ "user_id"
2857
+ ],
2858
+ "schemaTo": "spfn_auth",
2859
+ "tableTo": "users",
2860
+ "columnsTo": [
2861
+ "id"
2862
+ ],
2863
+ "onUpdate": "NO ACTION",
2864
+ "onDelete": "SET NULL",
2865
+ "name": "account_deletion_requests_user_id_users_id_fk",
2866
+ "entityType": "fks",
2867
+ "schema": "spfn_auth",
2868
+ "table": "account_deletion_requests"
2869
+ },
2870
+ {
2871
+ "nameExplicit": false,
2872
+ "columns": [
2873
+ "role_id"
2874
+ ],
2875
+ "schemaTo": "spfn_auth",
2876
+ "tableTo": "roles",
2877
+ "columnsTo": [
2878
+ "id"
2879
+ ],
2880
+ "onUpdate": "NO ACTION",
2881
+ "onDelete": "CASCADE",
2882
+ "name": "role_permissions_role_id_roles_id_fk",
2883
+ "entityType": "fks",
2884
+ "schema": "spfn_auth",
2885
+ "table": "role_permissions"
2886
+ },
2887
+ {
2888
+ "nameExplicit": false,
2889
+ "columns": [
2890
+ "permission_id"
2891
+ ],
2892
+ "schemaTo": "spfn_auth",
2893
+ "tableTo": "permissions",
2894
+ "columnsTo": [
2895
+ "id"
2896
+ ],
2897
+ "onUpdate": "NO ACTION",
2898
+ "onDelete": "CASCADE",
2899
+ "name": "role_permissions_permission_id_permissions_id_fk",
2900
+ "entityType": "fks",
2901
+ "schema": "spfn_auth",
2902
+ "table": "role_permissions"
2903
+ },
2904
+ {
2905
+ "nameExplicit": false,
2906
+ "columns": [
2907
+ "user_id"
2908
+ ],
2909
+ "schemaTo": "spfn_auth",
2910
+ "tableTo": "users",
2911
+ "columnsTo": [
2912
+ "id"
2913
+ ],
2914
+ "onUpdate": "NO ACTION",
2915
+ "onDelete": "CASCADE",
2916
+ "name": "user_permissions_user_id_users_id_fk",
2917
+ "entityType": "fks",
2918
+ "schema": "spfn_auth",
2919
+ "table": "user_permissions"
2920
+ },
2921
+ {
2922
+ "nameExplicit": false,
2923
+ "columns": [
2924
+ "permission_id"
2925
+ ],
2926
+ "schemaTo": "spfn_auth",
2927
+ "tableTo": "permissions",
2928
+ "columnsTo": [
2929
+ "id"
2930
+ ],
2931
+ "onUpdate": "NO ACTION",
2932
+ "onDelete": "CASCADE",
2933
+ "name": "user_permissions_permission_id_permissions_id_fk",
2934
+ "entityType": "fks",
2935
+ "schema": "spfn_auth",
2936
+ "table": "user_permissions"
2937
+ },
2938
+ {
2939
+ "columns": [
2940
+ "id"
2941
+ ],
2942
+ "nameExplicit": false,
2943
+ "name": "users_pkey",
2944
+ "schema": "spfn_auth",
2945
+ "table": "users",
2946
+ "entityType": "pks"
2947
+ },
2948
+ {
2949
+ "columns": [
2950
+ "id"
2951
+ ],
2952
+ "nameExplicit": false,
2953
+ "name": "user_profiles_pkey",
2954
+ "schema": "spfn_auth",
2955
+ "table": "user_profiles",
2956
+ "entityType": "pks"
2957
+ },
2958
+ {
2959
+ "columns": [
2960
+ "id"
2961
+ ],
2962
+ "nameExplicit": false,
2963
+ "name": "user_public_keys_pkey",
2964
+ "schema": "spfn_auth",
2965
+ "table": "user_public_keys",
2966
+ "entityType": "pks"
2967
+ },
2968
+ {
2969
+ "columns": [
2970
+ "id"
2971
+ ],
2972
+ "nameExplicit": false,
2973
+ "name": "user_social_accounts_pkey",
2974
+ "schema": "spfn_auth",
2975
+ "table": "user_social_accounts",
2976
+ "entityType": "pks"
2977
+ },
2978
+ {
2979
+ "columns": [
2980
+ "id"
2981
+ ],
2982
+ "nameExplicit": false,
2983
+ "name": "verification_codes_pkey",
2984
+ "schema": "spfn_auth",
2985
+ "table": "verification_codes",
2986
+ "entityType": "pks"
2987
+ },
2988
+ {
2989
+ "columns": [
2990
+ "id"
2991
+ ],
2992
+ "nameExplicit": false,
2993
+ "name": "user_invitations_pkey",
2994
+ "schema": "spfn_auth",
2995
+ "table": "user_invitations",
2996
+ "entityType": "pks"
2997
+ },
2998
+ {
2999
+ "columns": [
3000
+ "id"
3001
+ ],
3002
+ "nameExplicit": false,
3003
+ "name": "account_deletion_requests_pkey",
3004
+ "schema": "spfn_auth",
3005
+ "table": "account_deletion_requests",
3006
+ "entityType": "pks"
3007
+ },
3008
+ {
3009
+ "columns": [
3010
+ "id"
3011
+ ],
3012
+ "nameExplicit": false,
3013
+ "name": "roles_pkey",
3014
+ "schema": "spfn_auth",
3015
+ "table": "roles",
3016
+ "entityType": "pks"
3017
+ },
3018
+ {
3019
+ "columns": [
3020
+ "id"
3021
+ ],
3022
+ "nameExplicit": false,
3023
+ "name": "permissions_pkey",
3024
+ "schema": "spfn_auth",
3025
+ "table": "permissions",
3026
+ "entityType": "pks"
3027
+ },
3028
+ {
3029
+ "columns": [
3030
+ "id"
3031
+ ],
3032
+ "nameExplicit": false,
3033
+ "name": "role_permissions_pkey",
3034
+ "schema": "spfn_auth",
3035
+ "table": "role_permissions",
3036
+ "entityType": "pks"
3037
+ },
3038
+ {
3039
+ "columns": [
3040
+ "id"
3041
+ ],
3042
+ "nameExplicit": false,
3043
+ "name": "user_permissions_pkey",
3044
+ "schema": "spfn_auth",
3045
+ "table": "user_permissions",
3046
+ "entityType": "pks"
3047
+ },
3048
+ {
3049
+ "columns": [
3050
+ "key"
3051
+ ],
3052
+ "nameExplicit": false,
3053
+ "name": "auth_metadata_pkey",
3054
+ "schema": "spfn_auth",
3055
+ "table": "auth_metadata",
3056
+ "entityType": "pks"
3057
+ },
3058
+ {
3059
+ "nameExplicit": true,
3060
+ "columns": [
3061
+ "role_id",
3062
+ "permission_id"
3063
+ ],
3064
+ "nullsNotDistinct": false,
3065
+ "name": "role_permissions_unique",
3066
+ "entityType": "uniques",
3067
+ "schema": "spfn_auth",
3068
+ "table": "role_permissions"
3069
+ },
3070
+ {
3071
+ "nameExplicit": true,
3072
+ "columns": [
3073
+ "user_id",
3074
+ "permission_id"
3075
+ ],
3076
+ "nullsNotDistinct": false,
3077
+ "name": "user_permissions_unique",
3078
+ "entityType": "uniques",
3079
+ "schema": "spfn_auth",
3080
+ "table": "user_permissions"
3081
+ },
3082
+ {
3083
+ "nameExplicit": false,
3084
+ "columns": [
3085
+ "public_id"
3086
+ ],
3087
+ "nullsNotDistinct": false,
3088
+ "name": "users_public_id_unique",
3089
+ "schema": "spfn_auth",
3090
+ "table": "users",
3091
+ "entityType": "uniques"
3092
+ },
3093
+ {
3094
+ "nameExplicit": false,
3095
+ "columns": [
3096
+ "email"
3097
+ ],
3098
+ "nullsNotDistinct": false,
3099
+ "name": "users_email_unique",
3100
+ "schema": "spfn_auth",
3101
+ "table": "users",
3102
+ "entityType": "uniques"
3103
+ },
3104
+ {
3105
+ "nameExplicit": false,
3106
+ "columns": [
3107
+ "phone"
3108
+ ],
3109
+ "nullsNotDistinct": false,
3110
+ "name": "users_phone_unique",
3111
+ "schema": "spfn_auth",
3112
+ "table": "users",
3113
+ "entityType": "uniques"
3114
+ },
3115
+ {
3116
+ "nameExplicit": false,
3117
+ "columns": [
3118
+ "username"
3119
+ ],
3120
+ "nullsNotDistinct": false,
3121
+ "name": "users_username_unique",
3122
+ "schema": "spfn_auth",
3123
+ "table": "users",
3124
+ "entityType": "uniques"
3125
+ },
3126
+ {
3127
+ "nameExplicit": false,
3128
+ "columns": [
3129
+ "user_id"
3130
+ ],
3131
+ "nullsNotDistinct": false,
3132
+ "name": "user_profiles_user_id_unique",
3133
+ "schema": "spfn_auth",
3134
+ "table": "user_profiles",
3135
+ "entityType": "uniques"
3136
+ },
3137
+ {
3138
+ "nameExplicit": false,
3139
+ "columns": [
3140
+ "key_id"
3141
+ ],
3142
+ "nullsNotDistinct": false,
3143
+ "name": "user_public_keys_key_id_unique",
3144
+ "schema": "spfn_auth",
3145
+ "table": "user_public_keys",
3146
+ "entityType": "uniques"
3147
+ },
3148
+ {
3149
+ "nameExplicit": false,
3150
+ "columns": [
3151
+ "token"
3152
+ ],
3153
+ "nullsNotDistinct": false,
3154
+ "name": "user_invitations_token_unique",
3155
+ "schema": "spfn_auth",
3156
+ "table": "user_invitations",
3157
+ "entityType": "uniques"
3158
+ },
3159
+ {
3160
+ "nameExplicit": false,
3161
+ "columns": [
3162
+ "name"
3163
+ ],
3164
+ "nullsNotDistinct": false,
3165
+ "name": "roles_name_unique",
3166
+ "schema": "spfn_auth",
3167
+ "table": "roles",
3168
+ "entityType": "uniques"
3169
+ },
3170
+ {
3171
+ "nameExplicit": false,
3172
+ "columns": [
3173
+ "name"
3174
+ ],
3175
+ "nullsNotDistinct": false,
3176
+ "name": "permissions_name_unique",
3177
+ "schema": "spfn_auth",
3178
+ "table": "permissions",
3179
+ "entityType": "uniques"
3180
+ },
3181
+ {
3182
+ "value": "\"attempts\" >= 0 AND \"attempts\" <= 10",
3183
+ "name": "attempts_limit_check",
3184
+ "entityType": "checks",
3185
+ "schema": "spfn_auth",
3186
+ "table": "verification_codes"
3187
+ }
3188
+ ],
3189
+ "renames": []
3190
+ }