@checkstack/auth-backend 0.0.3 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1017 @@
1
+ {
2
+ "id": "2008734c-d67f-4b78-b530-ce5435c2beb0",
3
+ "prevId": "115b1404-1de4-4384-93b1-aec9fa3c75a1",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.account": {
8
+ "name": "account",
9
+ "schema": "",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "text",
14
+ "primaryKey": true,
15
+ "notNull": true
16
+ },
17
+ "account_id": {
18
+ "name": "account_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "provider_id": {
24
+ "name": "provider_id",
25
+ "type": "text",
26
+ "primaryKey": false,
27
+ "notNull": true
28
+ },
29
+ "user_id": {
30
+ "name": "user_id",
31
+ "type": "text",
32
+ "primaryKey": false,
33
+ "notNull": true
34
+ },
35
+ "access_token": {
36
+ "name": "access_token",
37
+ "type": "text",
38
+ "primaryKey": false,
39
+ "notNull": false
40
+ },
41
+ "refresh_token": {
42
+ "name": "refresh_token",
43
+ "type": "text",
44
+ "primaryKey": false,
45
+ "notNull": false
46
+ },
47
+ "id_token": {
48
+ "name": "id_token",
49
+ "type": "text",
50
+ "primaryKey": false,
51
+ "notNull": false
52
+ },
53
+ "access_token_expires_at": {
54
+ "name": "access_token_expires_at",
55
+ "type": "timestamp",
56
+ "primaryKey": false,
57
+ "notNull": false
58
+ },
59
+ "refresh_token_expires_at": {
60
+ "name": "refresh_token_expires_at",
61
+ "type": "timestamp",
62
+ "primaryKey": false,
63
+ "notNull": false
64
+ },
65
+ "scope": {
66
+ "name": "scope",
67
+ "type": "text",
68
+ "primaryKey": false,
69
+ "notNull": false
70
+ },
71
+ "password": {
72
+ "name": "password",
73
+ "type": "text",
74
+ "primaryKey": false,
75
+ "notNull": false
76
+ },
77
+ "created_at": {
78
+ "name": "created_at",
79
+ "type": "timestamp",
80
+ "primaryKey": false,
81
+ "notNull": true
82
+ },
83
+ "updated_at": {
84
+ "name": "updated_at",
85
+ "type": "timestamp",
86
+ "primaryKey": false,
87
+ "notNull": true
88
+ }
89
+ },
90
+ "indexes": {},
91
+ "foreignKeys": {
92
+ "account_user_id_user_id_fk": {
93
+ "name": "account_user_id_user_id_fk",
94
+ "tableFrom": "account",
95
+ "tableTo": "user",
96
+ "columnsFrom": [
97
+ "user_id"
98
+ ],
99
+ "columnsTo": [
100
+ "id"
101
+ ],
102
+ "onDelete": "no action",
103
+ "onUpdate": "no action"
104
+ }
105
+ },
106
+ "compositePrimaryKeys": {},
107
+ "uniqueConstraints": {},
108
+ "policies": {},
109
+ "checkConstraints": {},
110
+ "isRLSEnabled": false
111
+ },
112
+ "public.application": {
113
+ "name": "application",
114
+ "schema": "",
115
+ "columns": {
116
+ "id": {
117
+ "name": "id",
118
+ "type": "text",
119
+ "primaryKey": true,
120
+ "notNull": true
121
+ },
122
+ "name": {
123
+ "name": "name",
124
+ "type": "text",
125
+ "primaryKey": false,
126
+ "notNull": true
127
+ },
128
+ "description": {
129
+ "name": "description",
130
+ "type": "text",
131
+ "primaryKey": false,
132
+ "notNull": false
133
+ },
134
+ "secret_hash": {
135
+ "name": "secret_hash",
136
+ "type": "text",
137
+ "primaryKey": false,
138
+ "notNull": true
139
+ },
140
+ "created_by_id": {
141
+ "name": "created_by_id",
142
+ "type": "text",
143
+ "primaryKey": false,
144
+ "notNull": true
145
+ },
146
+ "created_at": {
147
+ "name": "created_at",
148
+ "type": "timestamp",
149
+ "primaryKey": false,
150
+ "notNull": true,
151
+ "default": "now()"
152
+ },
153
+ "updated_at": {
154
+ "name": "updated_at",
155
+ "type": "timestamp",
156
+ "primaryKey": false,
157
+ "notNull": true,
158
+ "default": "now()"
159
+ },
160
+ "last_used_at": {
161
+ "name": "last_used_at",
162
+ "type": "timestamp",
163
+ "primaryKey": false,
164
+ "notNull": false
165
+ }
166
+ },
167
+ "indexes": {},
168
+ "foreignKeys": {
169
+ "application_created_by_id_user_id_fk": {
170
+ "name": "application_created_by_id_user_id_fk",
171
+ "tableFrom": "application",
172
+ "tableTo": "user",
173
+ "columnsFrom": [
174
+ "created_by_id"
175
+ ],
176
+ "columnsTo": [
177
+ "id"
178
+ ],
179
+ "onDelete": "no action",
180
+ "onUpdate": "no action"
181
+ }
182
+ },
183
+ "compositePrimaryKeys": {},
184
+ "uniqueConstraints": {},
185
+ "policies": {},
186
+ "checkConstraints": {},
187
+ "isRLSEnabled": false
188
+ },
189
+ "public.application_role": {
190
+ "name": "application_role",
191
+ "schema": "",
192
+ "columns": {
193
+ "application_id": {
194
+ "name": "application_id",
195
+ "type": "text",
196
+ "primaryKey": false,
197
+ "notNull": true
198
+ },
199
+ "role_id": {
200
+ "name": "role_id",
201
+ "type": "text",
202
+ "primaryKey": false,
203
+ "notNull": true
204
+ }
205
+ },
206
+ "indexes": {},
207
+ "foreignKeys": {
208
+ "application_role_application_id_application_id_fk": {
209
+ "name": "application_role_application_id_application_id_fk",
210
+ "tableFrom": "application_role",
211
+ "tableTo": "application",
212
+ "columnsFrom": [
213
+ "application_id"
214
+ ],
215
+ "columnsTo": [
216
+ "id"
217
+ ],
218
+ "onDelete": "cascade",
219
+ "onUpdate": "no action"
220
+ },
221
+ "application_role_role_id_role_id_fk": {
222
+ "name": "application_role_role_id_role_id_fk",
223
+ "tableFrom": "application_role",
224
+ "tableTo": "role",
225
+ "columnsFrom": [
226
+ "role_id"
227
+ ],
228
+ "columnsTo": [
229
+ "id"
230
+ ],
231
+ "onDelete": "no action",
232
+ "onUpdate": "no action"
233
+ }
234
+ },
235
+ "compositePrimaryKeys": {
236
+ "application_role_application_id_role_id_pk": {
237
+ "name": "application_role_application_id_role_id_pk",
238
+ "columns": [
239
+ "application_id",
240
+ "role_id"
241
+ ]
242
+ }
243
+ },
244
+ "uniqueConstraints": {},
245
+ "policies": {},
246
+ "checkConstraints": {},
247
+ "isRLSEnabled": false
248
+ },
249
+ "public.application_team": {
250
+ "name": "application_team",
251
+ "schema": "",
252
+ "columns": {
253
+ "application_id": {
254
+ "name": "application_id",
255
+ "type": "text",
256
+ "primaryKey": false,
257
+ "notNull": true
258
+ },
259
+ "team_id": {
260
+ "name": "team_id",
261
+ "type": "text",
262
+ "primaryKey": false,
263
+ "notNull": true
264
+ }
265
+ },
266
+ "indexes": {},
267
+ "foreignKeys": {
268
+ "application_team_application_id_application_id_fk": {
269
+ "name": "application_team_application_id_application_id_fk",
270
+ "tableFrom": "application_team",
271
+ "tableTo": "application",
272
+ "columnsFrom": [
273
+ "application_id"
274
+ ],
275
+ "columnsTo": [
276
+ "id"
277
+ ],
278
+ "onDelete": "cascade",
279
+ "onUpdate": "no action"
280
+ },
281
+ "application_team_team_id_team_id_fk": {
282
+ "name": "application_team_team_id_team_id_fk",
283
+ "tableFrom": "application_team",
284
+ "tableTo": "team",
285
+ "columnsFrom": [
286
+ "team_id"
287
+ ],
288
+ "columnsTo": [
289
+ "id"
290
+ ],
291
+ "onDelete": "cascade",
292
+ "onUpdate": "no action"
293
+ }
294
+ },
295
+ "compositePrimaryKeys": {
296
+ "application_team_application_id_team_id_pk": {
297
+ "name": "application_team_application_id_team_id_pk",
298
+ "columns": [
299
+ "application_id",
300
+ "team_id"
301
+ ]
302
+ }
303
+ },
304
+ "uniqueConstraints": {},
305
+ "policies": {},
306
+ "checkConstraints": {},
307
+ "isRLSEnabled": false
308
+ },
309
+ "public.disabled_default_permission": {
310
+ "name": "disabled_default_permission",
311
+ "schema": "",
312
+ "columns": {
313
+ "permission_id": {
314
+ "name": "permission_id",
315
+ "type": "text",
316
+ "primaryKey": true,
317
+ "notNull": true
318
+ },
319
+ "disabled_at": {
320
+ "name": "disabled_at",
321
+ "type": "timestamp",
322
+ "primaryKey": false,
323
+ "notNull": true
324
+ }
325
+ },
326
+ "indexes": {},
327
+ "foreignKeys": {
328
+ "disabled_default_permission_permission_id_permission_id_fk": {
329
+ "name": "disabled_default_permission_permission_id_permission_id_fk",
330
+ "tableFrom": "disabled_default_permission",
331
+ "tableTo": "permission",
332
+ "columnsFrom": [
333
+ "permission_id"
334
+ ],
335
+ "columnsTo": [
336
+ "id"
337
+ ],
338
+ "onDelete": "no action",
339
+ "onUpdate": "no action"
340
+ }
341
+ },
342
+ "compositePrimaryKeys": {},
343
+ "uniqueConstraints": {},
344
+ "policies": {},
345
+ "checkConstraints": {},
346
+ "isRLSEnabled": false
347
+ },
348
+ "public.disabled_public_default_permission": {
349
+ "name": "disabled_public_default_permission",
350
+ "schema": "",
351
+ "columns": {
352
+ "permission_id": {
353
+ "name": "permission_id",
354
+ "type": "text",
355
+ "primaryKey": true,
356
+ "notNull": true
357
+ },
358
+ "disabled_at": {
359
+ "name": "disabled_at",
360
+ "type": "timestamp",
361
+ "primaryKey": false,
362
+ "notNull": true
363
+ }
364
+ },
365
+ "indexes": {},
366
+ "foreignKeys": {
367
+ "disabled_public_default_permission_permission_id_permission_id_fk": {
368
+ "name": "disabled_public_default_permission_permission_id_permission_id_fk",
369
+ "tableFrom": "disabled_public_default_permission",
370
+ "tableTo": "permission",
371
+ "columnsFrom": [
372
+ "permission_id"
373
+ ],
374
+ "columnsTo": [
375
+ "id"
376
+ ],
377
+ "onDelete": "no action",
378
+ "onUpdate": "no action"
379
+ }
380
+ },
381
+ "compositePrimaryKeys": {},
382
+ "uniqueConstraints": {},
383
+ "policies": {},
384
+ "checkConstraints": {},
385
+ "isRLSEnabled": false
386
+ },
387
+ "public.permission": {
388
+ "name": "permission",
389
+ "schema": "",
390
+ "columns": {
391
+ "id": {
392
+ "name": "id",
393
+ "type": "text",
394
+ "primaryKey": true,
395
+ "notNull": true
396
+ },
397
+ "description": {
398
+ "name": "description",
399
+ "type": "text",
400
+ "primaryKey": false,
401
+ "notNull": false
402
+ }
403
+ },
404
+ "indexes": {},
405
+ "foreignKeys": {},
406
+ "compositePrimaryKeys": {},
407
+ "uniqueConstraints": {},
408
+ "policies": {},
409
+ "checkConstraints": {},
410
+ "isRLSEnabled": false
411
+ },
412
+ "public.resource_team_access": {
413
+ "name": "resource_team_access",
414
+ "schema": "",
415
+ "columns": {
416
+ "resource_type": {
417
+ "name": "resource_type",
418
+ "type": "text",
419
+ "primaryKey": false,
420
+ "notNull": true
421
+ },
422
+ "resource_id": {
423
+ "name": "resource_id",
424
+ "type": "text",
425
+ "primaryKey": false,
426
+ "notNull": true
427
+ },
428
+ "team_id": {
429
+ "name": "team_id",
430
+ "type": "text",
431
+ "primaryKey": false,
432
+ "notNull": true
433
+ },
434
+ "team_only": {
435
+ "name": "team_only",
436
+ "type": "boolean",
437
+ "primaryKey": false,
438
+ "notNull": true,
439
+ "default": false
440
+ },
441
+ "can_read": {
442
+ "name": "can_read",
443
+ "type": "boolean",
444
+ "primaryKey": false,
445
+ "notNull": true,
446
+ "default": true
447
+ },
448
+ "can_manage": {
449
+ "name": "can_manage",
450
+ "type": "boolean",
451
+ "primaryKey": false,
452
+ "notNull": true,
453
+ "default": false
454
+ }
455
+ },
456
+ "indexes": {},
457
+ "foreignKeys": {
458
+ "resource_team_access_team_id_team_id_fk": {
459
+ "name": "resource_team_access_team_id_team_id_fk",
460
+ "tableFrom": "resource_team_access",
461
+ "tableTo": "team",
462
+ "columnsFrom": [
463
+ "team_id"
464
+ ],
465
+ "columnsTo": [
466
+ "id"
467
+ ],
468
+ "onDelete": "cascade",
469
+ "onUpdate": "no action"
470
+ }
471
+ },
472
+ "compositePrimaryKeys": {
473
+ "resource_team_access_resource_type_resource_id_team_id_pk": {
474
+ "name": "resource_team_access_resource_type_resource_id_team_id_pk",
475
+ "columns": [
476
+ "resource_type",
477
+ "resource_id",
478
+ "team_id"
479
+ ]
480
+ }
481
+ },
482
+ "uniqueConstraints": {},
483
+ "policies": {},
484
+ "checkConstraints": {},
485
+ "isRLSEnabled": false
486
+ },
487
+ "public.role": {
488
+ "name": "role",
489
+ "schema": "",
490
+ "columns": {
491
+ "id": {
492
+ "name": "id",
493
+ "type": "text",
494
+ "primaryKey": true,
495
+ "notNull": true
496
+ },
497
+ "name": {
498
+ "name": "name",
499
+ "type": "text",
500
+ "primaryKey": false,
501
+ "notNull": true
502
+ },
503
+ "description": {
504
+ "name": "description",
505
+ "type": "text",
506
+ "primaryKey": false,
507
+ "notNull": false
508
+ },
509
+ "is_system": {
510
+ "name": "is_system",
511
+ "type": "boolean",
512
+ "primaryKey": false,
513
+ "notNull": false,
514
+ "default": false
515
+ }
516
+ },
517
+ "indexes": {},
518
+ "foreignKeys": {},
519
+ "compositePrimaryKeys": {},
520
+ "uniqueConstraints": {},
521
+ "policies": {},
522
+ "checkConstraints": {},
523
+ "isRLSEnabled": false
524
+ },
525
+ "public.role_permission": {
526
+ "name": "role_permission",
527
+ "schema": "",
528
+ "columns": {
529
+ "role_id": {
530
+ "name": "role_id",
531
+ "type": "text",
532
+ "primaryKey": false,
533
+ "notNull": true
534
+ },
535
+ "permission_id": {
536
+ "name": "permission_id",
537
+ "type": "text",
538
+ "primaryKey": false,
539
+ "notNull": true
540
+ }
541
+ },
542
+ "indexes": {},
543
+ "foreignKeys": {
544
+ "role_permission_role_id_role_id_fk": {
545
+ "name": "role_permission_role_id_role_id_fk",
546
+ "tableFrom": "role_permission",
547
+ "tableTo": "role",
548
+ "columnsFrom": [
549
+ "role_id"
550
+ ],
551
+ "columnsTo": [
552
+ "id"
553
+ ],
554
+ "onDelete": "no action",
555
+ "onUpdate": "no action"
556
+ },
557
+ "role_permission_permission_id_permission_id_fk": {
558
+ "name": "role_permission_permission_id_permission_id_fk",
559
+ "tableFrom": "role_permission",
560
+ "tableTo": "permission",
561
+ "columnsFrom": [
562
+ "permission_id"
563
+ ],
564
+ "columnsTo": [
565
+ "id"
566
+ ],
567
+ "onDelete": "no action",
568
+ "onUpdate": "no action"
569
+ }
570
+ },
571
+ "compositePrimaryKeys": {
572
+ "role_permission_role_id_permission_id_pk": {
573
+ "name": "role_permission_role_id_permission_id_pk",
574
+ "columns": [
575
+ "role_id",
576
+ "permission_id"
577
+ ]
578
+ }
579
+ },
580
+ "uniqueConstraints": {},
581
+ "policies": {},
582
+ "checkConstraints": {},
583
+ "isRLSEnabled": false
584
+ },
585
+ "public.session": {
586
+ "name": "session",
587
+ "schema": "",
588
+ "columns": {
589
+ "id": {
590
+ "name": "id",
591
+ "type": "text",
592
+ "primaryKey": true,
593
+ "notNull": true
594
+ },
595
+ "expires_at": {
596
+ "name": "expires_at",
597
+ "type": "timestamp",
598
+ "primaryKey": false,
599
+ "notNull": true
600
+ },
601
+ "token": {
602
+ "name": "token",
603
+ "type": "text",
604
+ "primaryKey": false,
605
+ "notNull": true
606
+ },
607
+ "created_at": {
608
+ "name": "created_at",
609
+ "type": "timestamp",
610
+ "primaryKey": false,
611
+ "notNull": true
612
+ },
613
+ "updated_at": {
614
+ "name": "updated_at",
615
+ "type": "timestamp",
616
+ "primaryKey": false,
617
+ "notNull": true
618
+ },
619
+ "ip_address": {
620
+ "name": "ip_address",
621
+ "type": "text",
622
+ "primaryKey": false,
623
+ "notNull": false
624
+ },
625
+ "user_agent": {
626
+ "name": "user_agent",
627
+ "type": "text",
628
+ "primaryKey": false,
629
+ "notNull": false
630
+ },
631
+ "user_id": {
632
+ "name": "user_id",
633
+ "type": "text",
634
+ "primaryKey": false,
635
+ "notNull": true
636
+ }
637
+ },
638
+ "indexes": {},
639
+ "foreignKeys": {
640
+ "session_user_id_user_id_fk": {
641
+ "name": "session_user_id_user_id_fk",
642
+ "tableFrom": "session",
643
+ "tableTo": "user",
644
+ "columnsFrom": [
645
+ "user_id"
646
+ ],
647
+ "columnsTo": [
648
+ "id"
649
+ ],
650
+ "onDelete": "no action",
651
+ "onUpdate": "no action"
652
+ }
653
+ },
654
+ "compositePrimaryKeys": {},
655
+ "uniqueConstraints": {
656
+ "session_token_unique": {
657
+ "name": "session_token_unique",
658
+ "nullsNotDistinct": false,
659
+ "columns": [
660
+ "token"
661
+ ]
662
+ }
663
+ },
664
+ "policies": {},
665
+ "checkConstraints": {},
666
+ "isRLSEnabled": false
667
+ },
668
+ "public.team": {
669
+ "name": "team",
670
+ "schema": "",
671
+ "columns": {
672
+ "id": {
673
+ "name": "id",
674
+ "type": "text",
675
+ "primaryKey": true,
676
+ "notNull": true
677
+ },
678
+ "name": {
679
+ "name": "name",
680
+ "type": "text",
681
+ "primaryKey": false,
682
+ "notNull": true
683
+ },
684
+ "description": {
685
+ "name": "description",
686
+ "type": "text",
687
+ "primaryKey": false,
688
+ "notNull": false
689
+ },
690
+ "created_at": {
691
+ "name": "created_at",
692
+ "type": "timestamp",
693
+ "primaryKey": false,
694
+ "notNull": true,
695
+ "default": "now()"
696
+ },
697
+ "updated_at": {
698
+ "name": "updated_at",
699
+ "type": "timestamp",
700
+ "primaryKey": false,
701
+ "notNull": true,
702
+ "default": "now()"
703
+ }
704
+ },
705
+ "indexes": {},
706
+ "foreignKeys": {},
707
+ "compositePrimaryKeys": {},
708
+ "uniqueConstraints": {},
709
+ "policies": {},
710
+ "checkConstraints": {},
711
+ "isRLSEnabled": false
712
+ },
713
+ "public.team_manager": {
714
+ "name": "team_manager",
715
+ "schema": "",
716
+ "columns": {
717
+ "team_id": {
718
+ "name": "team_id",
719
+ "type": "text",
720
+ "primaryKey": false,
721
+ "notNull": true
722
+ },
723
+ "user_id": {
724
+ "name": "user_id",
725
+ "type": "text",
726
+ "primaryKey": false,
727
+ "notNull": true
728
+ }
729
+ },
730
+ "indexes": {},
731
+ "foreignKeys": {
732
+ "team_manager_team_id_team_id_fk": {
733
+ "name": "team_manager_team_id_team_id_fk",
734
+ "tableFrom": "team_manager",
735
+ "tableTo": "team",
736
+ "columnsFrom": [
737
+ "team_id"
738
+ ],
739
+ "columnsTo": [
740
+ "id"
741
+ ],
742
+ "onDelete": "cascade",
743
+ "onUpdate": "no action"
744
+ },
745
+ "team_manager_user_id_user_id_fk": {
746
+ "name": "team_manager_user_id_user_id_fk",
747
+ "tableFrom": "team_manager",
748
+ "tableTo": "user",
749
+ "columnsFrom": [
750
+ "user_id"
751
+ ],
752
+ "columnsTo": [
753
+ "id"
754
+ ],
755
+ "onDelete": "cascade",
756
+ "onUpdate": "no action"
757
+ }
758
+ },
759
+ "compositePrimaryKeys": {
760
+ "team_manager_team_id_user_id_pk": {
761
+ "name": "team_manager_team_id_user_id_pk",
762
+ "columns": [
763
+ "team_id",
764
+ "user_id"
765
+ ]
766
+ }
767
+ },
768
+ "uniqueConstraints": {},
769
+ "policies": {},
770
+ "checkConstraints": {},
771
+ "isRLSEnabled": false
772
+ },
773
+ "public.user": {
774
+ "name": "user",
775
+ "schema": "",
776
+ "columns": {
777
+ "id": {
778
+ "name": "id",
779
+ "type": "text",
780
+ "primaryKey": true,
781
+ "notNull": true
782
+ },
783
+ "name": {
784
+ "name": "name",
785
+ "type": "text",
786
+ "primaryKey": false,
787
+ "notNull": true
788
+ },
789
+ "email": {
790
+ "name": "email",
791
+ "type": "text",
792
+ "primaryKey": false,
793
+ "notNull": true
794
+ },
795
+ "email_verified": {
796
+ "name": "email_verified",
797
+ "type": "boolean",
798
+ "primaryKey": false,
799
+ "notNull": true
800
+ },
801
+ "image": {
802
+ "name": "image",
803
+ "type": "text",
804
+ "primaryKey": false,
805
+ "notNull": false
806
+ },
807
+ "created_at": {
808
+ "name": "created_at",
809
+ "type": "timestamp",
810
+ "primaryKey": false,
811
+ "notNull": true
812
+ },
813
+ "updated_at": {
814
+ "name": "updated_at",
815
+ "type": "timestamp",
816
+ "primaryKey": false,
817
+ "notNull": true
818
+ }
819
+ },
820
+ "indexes": {},
821
+ "foreignKeys": {},
822
+ "compositePrimaryKeys": {},
823
+ "uniqueConstraints": {
824
+ "user_email_unique": {
825
+ "name": "user_email_unique",
826
+ "nullsNotDistinct": false,
827
+ "columns": [
828
+ "email"
829
+ ]
830
+ }
831
+ },
832
+ "policies": {},
833
+ "checkConstraints": {},
834
+ "isRLSEnabled": false
835
+ },
836
+ "public.user_role": {
837
+ "name": "user_role",
838
+ "schema": "",
839
+ "columns": {
840
+ "user_id": {
841
+ "name": "user_id",
842
+ "type": "text",
843
+ "primaryKey": false,
844
+ "notNull": true
845
+ },
846
+ "role_id": {
847
+ "name": "role_id",
848
+ "type": "text",
849
+ "primaryKey": false,
850
+ "notNull": true
851
+ }
852
+ },
853
+ "indexes": {},
854
+ "foreignKeys": {
855
+ "user_role_user_id_user_id_fk": {
856
+ "name": "user_role_user_id_user_id_fk",
857
+ "tableFrom": "user_role",
858
+ "tableTo": "user",
859
+ "columnsFrom": [
860
+ "user_id"
861
+ ],
862
+ "columnsTo": [
863
+ "id"
864
+ ],
865
+ "onDelete": "no action",
866
+ "onUpdate": "no action"
867
+ },
868
+ "user_role_role_id_role_id_fk": {
869
+ "name": "user_role_role_id_role_id_fk",
870
+ "tableFrom": "user_role",
871
+ "tableTo": "role",
872
+ "columnsFrom": [
873
+ "role_id"
874
+ ],
875
+ "columnsTo": [
876
+ "id"
877
+ ],
878
+ "onDelete": "no action",
879
+ "onUpdate": "no action"
880
+ }
881
+ },
882
+ "compositePrimaryKeys": {
883
+ "user_role_user_id_role_id_pk": {
884
+ "name": "user_role_user_id_role_id_pk",
885
+ "columns": [
886
+ "user_id",
887
+ "role_id"
888
+ ]
889
+ }
890
+ },
891
+ "uniqueConstraints": {},
892
+ "policies": {},
893
+ "checkConstraints": {},
894
+ "isRLSEnabled": false
895
+ },
896
+ "public.user_team": {
897
+ "name": "user_team",
898
+ "schema": "",
899
+ "columns": {
900
+ "user_id": {
901
+ "name": "user_id",
902
+ "type": "text",
903
+ "primaryKey": false,
904
+ "notNull": true
905
+ },
906
+ "team_id": {
907
+ "name": "team_id",
908
+ "type": "text",
909
+ "primaryKey": false,
910
+ "notNull": true
911
+ }
912
+ },
913
+ "indexes": {},
914
+ "foreignKeys": {
915
+ "user_team_user_id_user_id_fk": {
916
+ "name": "user_team_user_id_user_id_fk",
917
+ "tableFrom": "user_team",
918
+ "tableTo": "user",
919
+ "columnsFrom": [
920
+ "user_id"
921
+ ],
922
+ "columnsTo": [
923
+ "id"
924
+ ],
925
+ "onDelete": "cascade",
926
+ "onUpdate": "no action"
927
+ },
928
+ "user_team_team_id_team_id_fk": {
929
+ "name": "user_team_team_id_team_id_fk",
930
+ "tableFrom": "user_team",
931
+ "tableTo": "team",
932
+ "columnsFrom": [
933
+ "team_id"
934
+ ],
935
+ "columnsTo": [
936
+ "id"
937
+ ],
938
+ "onDelete": "cascade",
939
+ "onUpdate": "no action"
940
+ }
941
+ },
942
+ "compositePrimaryKeys": {
943
+ "user_team_user_id_team_id_pk": {
944
+ "name": "user_team_user_id_team_id_pk",
945
+ "columns": [
946
+ "user_id",
947
+ "team_id"
948
+ ]
949
+ }
950
+ },
951
+ "uniqueConstraints": {},
952
+ "policies": {},
953
+ "checkConstraints": {},
954
+ "isRLSEnabled": false
955
+ },
956
+ "public.verification": {
957
+ "name": "verification",
958
+ "schema": "",
959
+ "columns": {
960
+ "id": {
961
+ "name": "id",
962
+ "type": "text",
963
+ "primaryKey": true,
964
+ "notNull": true
965
+ },
966
+ "identifier": {
967
+ "name": "identifier",
968
+ "type": "text",
969
+ "primaryKey": false,
970
+ "notNull": true
971
+ },
972
+ "value": {
973
+ "name": "value",
974
+ "type": "text",
975
+ "primaryKey": false,
976
+ "notNull": true
977
+ },
978
+ "expires_at": {
979
+ "name": "expires_at",
980
+ "type": "timestamp",
981
+ "primaryKey": false,
982
+ "notNull": true
983
+ },
984
+ "created_at": {
985
+ "name": "created_at",
986
+ "type": "timestamp",
987
+ "primaryKey": false,
988
+ "notNull": false
989
+ },
990
+ "updated_at": {
991
+ "name": "updated_at",
992
+ "type": "timestamp",
993
+ "primaryKey": false,
994
+ "notNull": false
995
+ }
996
+ },
997
+ "indexes": {},
998
+ "foreignKeys": {},
999
+ "compositePrimaryKeys": {},
1000
+ "uniqueConstraints": {},
1001
+ "policies": {},
1002
+ "checkConstraints": {},
1003
+ "isRLSEnabled": false
1004
+ }
1005
+ },
1006
+ "enums": {},
1007
+ "schemas": {},
1008
+ "sequences": {},
1009
+ "roles": {},
1010
+ "policies": {},
1011
+ "views": {},
1012
+ "_meta": {
1013
+ "columns": {},
1014
+ "schemas": {},
1015
+ "tables": {}
1016
+ }
1017
+ }