@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,1050 @@
1
+ {
2
+ "id": "4955a3ed-7b8c-4b47-9417-a9fbdb3a3365",
3
+ "prevId": "2008734c-d67f-4b78-b530-ce5435c2beb0",
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_access_settings": {
413
+ "name": "resource_access_settings",
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_only": {
429
+ "name": "team_only",
430
+ "type": "boolean",
431
+ "primaryKey": false,
432
+ "notNull": true,
433
+ "default": false
434
+ }
435
+ },
436
+ "indexes": {},
437
+ "foreignKeys": {},
438
+ "compositePrimaryKeys": {
439
+ "resource_access_settings_resource_type_resource_id_pk": {
440
+ "name": "resource_access_settings_resource_type_resource_id_pk",
441
+ "columns": [
442
+ "resource_type",
443
+ "resource_id"
444
+ ]
445
+ }
446
+ },
447
+ "uniqueConstraints": {},
448
+ "policies": {},
449
+ "checkConstraints": {},
450
+ "isRLSEnabled": false
451
+ },
452
+ "public.resource_team_access": {
453
+ "name": "resource_team_access",
454
+ "schema": "",
455
+ "columns": {
456
+ "resource_type": {
457
+ "name": "resource_type",
458
+ "type": "text",
459
+ "primaryKey": false,
460
+ "notNull": true
461
+ },
462
+ "resource_id": {
463
+ "name": "resource_id",
464
+ "type": "text",
465
+ "primaryKey": false,
466
+ "notNull": true
467
+ },
468
+ "team_id": {
469
+ "name": "team_id",
470
+ "type": "text",
471
+ "primaryKey": false,
472
+ "notNull": true
473
+ },
474
+ "can_read": {
475
+ "name": "can_read",
476
+ "type": "boolean",
477
+ "primaryKey": false,
478
+ "notNull": true,
479
+ "default": true
480
+ },
481
+ "can_manage": {
482
+ "name": "can_manage",
483
+ "type": "boolean",
484
+ "primaryKey": false,
485
+ "notNull": true,
486
+ "default": false
487
+ }
488
+ },
489
+ "indexes": {},
490
+ "foreignKeys": {
491
+ "resource_team_access_team_id_team_id_fk": {
492
+ "name": "resource_team_access_team_id_team_id_fk",
493
+ "tableFrom": "resource_team_access",
494
+ "tableTo": "team",
495
+ "columnsFrom": [
496
+ "team_id"
497
+ ],
498
+ "columnsTo": [
499
+ "id"
500
+ ],
501
+ "onDelete": "cascade",
502
+ "onUpdate": "no action"
503
+ }
504
+ },
505
+ "compositePrimaryKeys": {
506
+ "resource_team_access_resource_type_resource_id_team_id_pk": {
507
+ "name": "resource_team_access_resource_type_resource_id_team_id_pk",
508
+ "columns": [
509
+ "resource_type",
510
+ "resource_id",
511
+ "team_id"
512
+ ]
513
+ }
514
+ },
515
+ "uniqueConstraints": {},
516
+ "policies": {},
517
+ "checkConstraints": {},
518
+ "isRLSEnabled": false
519
+ },
520
+ "public.role": {
521
+ "name": "role",
522
+ "schema": "",
523
+ "columns": {
524
+ "id": {
525
+ "name": "id",
526
+ "type": "text",
527
+ "primaryKey": true,
528
+ "notNull": true
529
+ },
530
+ "name": {
531
+ "name": "name",
532
+ "type": "text",
533
+ "primaryKey": false,
534
+ "notNull": true
535
+ },
536
+ "description": {
537
+ "name": "description",
538
+ "type": "text",
539
+ "primaryKey": false,
540
+ "notNull": false
541
+ },
542
+ "is_system": {
543
+ "name": "is_system",
544
+ "type": "boolean",
545
+ "primaryKey": false,
546
+ "notNull": false,
547
+ "default": false
548
+ }
549
+ },
550
+ "indexes": {},
551
+ "foreignKeys": {},
552
+ "compositePrimaryKeys": {},
553
+ "uniqueConstraints": {},
554
+ "policies": {},
555
+ "checkConstraints": {},
556
+ "isRLSEnabled": false
557
+ },
558
+ "public.role_permission": {
559
+ "name": "role_permission",
560
+ "schema": "",
561
+ "columns": {
562
+ "role_id": {
563
+ "name": "role_id",
564
+ "type": "text",
565
+ "primaryKey": false,
566
+ "notNull": true
567
+ },
568
+ "permission_id": {
569
+ "name": "permission_id",
570
+ "type": "text",
571
+ "primaryKey": false,
572
+ "notNull": true
573
+ }
574
+ },
575
+ "indexes": {},
576
+ "foreignKeys": {
577
+ "role_permission_role_id_role_id_fk": {
578
+ "name": "role_permission_role_id_role_id_fk",
579
+ "tableFrom": "role_permission",
580
+ "tableTo": "role",
581
+ "columnsFrom": [
582
+ "role_id"
583
+ ],
584
+ "columnsTo": [
585
+ "id"
586
+ ],
587
+ "onDelete": "no action",
588
+ "onUpdate": "no action"
589
+ },
590
+ "role_permission_permission_id_permission_id_fk": {
591
+ "name": "role_permission_permission_id_permission_id_fk",
592
+ "tableFrom": "role_permission",
593
+ "tableTo": "permission",
594
+ "columnsFrom": [
595
+ "permission_id"
596
+ ],
597
+ "columnsTo": [
598
+ "id"
599
+ ],
600
+ "onDelete": "no action",
601
+ "onUpdate": "no action"
602
+ }
603
+ },
604
+ "compositePrimaryKeys": {
605
+ "role_permission_role_id_permission_id_pk": {
606
+ "name": "role_permission_role_id_permission_id_pk",
607
+ "columns": [
608
+ "role_id",
609
+ "permission_id"
610
+ ]
611
+ }
612
+ },
613
+ "uniqueConstraints": {},
614
+ "policies": {},
615
+ "checkConstraints": {},
616
+ "isRLSEnabled": false
617
+ },
618
+ "public.session": {
619
+ "name": "session",
620
+ "schema": "",
621
+ "columns": {
622
+ "id": {
623
+ "name": "id",
624
+ "type": "text",
625
+ "primaryKey": true,
626
+ "notNull": true
627
+ },
628
+ "expires_at": {
629
+ "name": "expires_at",
630
+ "type": "timestamp",
631
+ "primaryKey": false,
632
+ "notNull": true
633
+ },
634
+ "token": {
635
+ "name": "token",
636
+ "type": "text",
637
+ "primaryKey": false,
638
+ "notNull": true
639
+ },
640
+ "created_at": {
641
+ "name": "created_at",
642
+ "type": "timestamp",
643
+ "primaryKey": false,
644
+ "notNull": true
645
+ },
646
+ "updated_at": {
647
+ "name": "updated_at",
648
+ "type": "timestamp",
649
+ "primaryKey": false,
650
+ "notNull": true
651
+ },
652
+ "ip_address": {
653
+ "name": "ip_address",
654
+ "type": "text",
655
+ "primaryKey": false,
656
+ "notNull": false
657
+ },
658
+ "user_agent": {
659
+ "name": "user_agent",
660
+ "type": "text",
661
+ "primaryKey": false,
662
+ "notNull": false
663
+ },
664
+ "user_id": {
665
+ "name": "user_id",
666
+ "type": "text",
667
+ "primaryKey": false,
668
+ "notNull": true
669
+ }
670
+ },
671
+ "indexes": {},
672
+ "foreignKeys": {
673
+ "session_user_id_user_id_fk": {
674
+ "name": "session_user_id_user_id_fk",
675
+ "tableFrom": "session",
676
+ "tableTo": "user",
677
+ "columnsFrom": [
678
+ "user_id"
679
+ ],
680
+ "columnsTo": [
681
+ "id"
682
+ ],
683
+ "onDelete": "no action",
684
+ "onUpdate": "no action"
685
+ }
686
+ },
687
+ "compositePrimaryKeys": {},
688
+ "uniqueConstraints": {
689
+ "session_token_unique": {
690
+ "name": "session_token_unique",
691
+ "nullsNotDistinct": false,
692
+ "columns": [
693
+ "token"
694
+ ]
695
+ }
696
+ },
697
+ "policies": {},
698
+ "checkConstraints": {},
699
+ "isRLSEnabled": false
700
+ },
701
+ "public.team": {
702
+ "name": "team",
703
+ "schema": "",
704
+ "columns": {
705
+ "id": {
706
+ "name": "id",
707
+ "type": "text",
708
+ "primaryKey": true,
709
+ "notNull": true
710
+ },
711
+ "name": {
712
+ "name": "name",
713
+ "type": "text",
714
+ "primaryKey": false,
715
+ "notNull": true
716
+ },
717
+ "description": {
718
+ "name": "description",
719
+ "type": "text",
720
+ "primaryKey": false,
721
+ "notNull": false
722
+ },
723
+ "created_at": {
724
+ "name": "created_at",
725
+ "type": "timestamp",
726
+ "primaryKey": false,
727
+ "notNull": true,
728
+ "default": "now()"
729
+ },
730
+ "updated_at": {
731
+ "name": "updated_at",
732
+ "type": "timestamp",
733
+ "primaryKey": false,
734
+ "notNull": true,
735
+ "default": "now()"
736
+ }
737
+ },
738
+ "indexes": {},
739
+ "foreignKeys": {},
740
+ "compositePrimaryKeys": {},
741
+ "uniqueConstraints": {},
742
+ "policies": {},
743
+ "checkConstraints": {},
744
+ "isRLSEnabled": false
745
+ },
746
+ "public.team_manager": {
747
+ "name": "team_manager",
748
+ "schema": "",
749
+ "columns": {
750
+ "team_id": {
751
+ "name": "team_id",
752
+ "type": "text",
753
+ "primaryKey": false,
754
+ "notNull": true
755
+ },
756
+ "user_id": {
757
+ "name": "user_id",
758
+ "type": "text",
759
+ "primaryKey": false,
760
+ "notNull": true
761
+ }
762
+ },
763
+ "indexes": {},
764
+ "foreignKeys": {
765
+ "team_manager_team_id_team_id_fk": {
766
+ "name": "team_manager_team_id_team_id_fk",
767
+ "tableFrom": "team_manager",
768
+ "tableTo": "team",
769
+ "columnsFrom": [
770
+ "team_id"
771
+ ],
772
+ "columnsTo": [
773
+ "id"
774
+ ],
775
+ "onDelete": "cascade",
776
+ "onUpdate": "no action"
777
+ },
778
+ "team_manager_user_id_user_id_fk": {
779
+ "name": "team_manager_user_id_user_id_fk",
780
+ "tableFrom": "team_manager",
781
+ "tableTo": "user",
782
+ "columnsFrom": [
783
+ "user_id"
784
+ ],
785
+ "columnsTo": [
786
+ "id"
787
+ ],
788
+ "onDelete": "cascade",
789
+ "onUpdate": "no action"
790
+ }
791
+ },
792
+ "compositePrimaryKeys": {
793
+ "team_manager_team_id_user_id_pk": {
794
+ "name": "team_manager_team_id_user_id_pk",
795
+ "columns": [
796
+ "team_id",
797
+ "user_id"
798
+ ]
799
+ }
800
+ },
801
+ "uniqueConstraints": {},
802
+ "policies": {},
803
+ "checkConstraints": {},
804
+ "isRLSEnabled": false
805
+ },
806
+ "public.user": {
807
+ "name": "user",
808
+ "schema": "",
809
+ "columns": {
810
+ "id": {
811
+ "name": "id",
812
+ "type": "text",
813
+ "primaryKey": true,
814
+ "notNull": true
815
+ },
816
+ "name": {
817
+ "name": "name",
818
+ "type": "text",
819
+ "primaryKey": false,
820
+ "notNull": true
821
+ },
822
+ "email": {
823
+ "name": "email",
824
+ "type": "text",
825
+ "primaryKey": false,
826
+ "notNull": true
827
+ },
828
+ "email_verified": {
829
+ "name": "email_verified",
830
+ "type": "boolean",
831
+ "primaryKey": false,
832
+ "notNull": true
833
+ },
834
+ "image": {
835
+ "name": "image",
836
+ "type": "text",
837
+ "primaryKey": false,
838
+ "notNull": false
839
+ },
840
+ "created_at": {
841
+ "name": "created_at",
842
+ "type": "timestamp",
843
+ "primaryKey": false,
844
+ "notNull": true
845
+ },
846
+ "updated_at": {
847
+ "name": "updated_at",
848
+ "type": "timestamp",
849
+ "primaryKey": false,
850
+ "notNull": true
851
+ }
852
+ },
853
+ "indexes": {},
854
+ "foreignKeys": {},
855
+ "compositePrimaryKeys": {},
856
+ "uniqueConstraints": {
857
+ "user_email_unique": {
858
+ "name": "user_email_unique",
859
+ "nullsNotDistinct": false,
860
+ "columns": [
861
+ "email"
862
+ ]
863
+ }
864
+ },
865
+ "policies": {},
866
+ "checkConstraints": {},
867
+ "isRLSEnabled": false
868
+ },
869
+ "public.user_role": {
870
+ "name": "user_role",
871
+ "schema": "",
872
+ "columns": {
873
+ "user_id": {
874
+ "name": "user_id",
875
+ "type": "text",
876
+ "primaryKey": false,
877
+ "notNull": true
878
+ },
879
+ "role_id": {
880
+ "name": "role_id",
881
+ "type": "text",
882
+ "primaryKey": false,
883
+ "notNull": true
884
+ }
885
+ },
886
+ "indexes": {},
887
+ "foreignKeys": {
888
+ "user_role_user_id_user_id_fk": {
889
+ "name": "user_role_user_id_user_id_fk",
890
+ "tableFrom": "user_role",
891
+ "tableTo": "user",
892
+ "columnsFrom": [
893
+ "user_id"
894
+ ],
895
+ "columnsTo": [
896
+ "id"
897
+ ],
898
+ "onDelete": "no action",
899
+ "onUpdate": "no action"
900
+ },
901
+ "user_role_role_id_role_id_fk": {
902
+ "name": "user_role_role_id_role_id_fk",
903
+ "tableFrom": "user_role",
904
+ "tableTo": "role",
905
+ "columnsFrom": [
906
+ "role_id"
907
+ ],
908
+ "columnsTo": [
909
+ "id"
910
+ ],
911
+ "onDelete": "no action",
912
+ "onUpdate": "no action"
913
+ }
914
+ },
915
+ "compositePrimaryKeys": {
916
+ "user_role_user_id_role_id_pk": {
917
+ "name": "user_role_user_id_role_id_pk",
918
+ "columns": [
919
+ "user_id",
920
+ "role_id"
921
+ ]
922
+ }
923
+ },
924
+ "uniqueConstraints": {},
925
+ "policies": {},
926
+ "checkConstraints": {},
927
+ "isRLSEnabled": false
928
+ },
929
+ "public.user_team": {
930
+ "name": "user_team",
931
+ "schema": "",
932
+ "columns": {
933
+ "user_id": {
934
+ "name": "user_id",
935
+ "type": "text",
936
+ "primaryKey": false,
937
+ "notNull": true
938
+ },
939
+ "team_id": {
940
+ "name": "team_id",
941
+ "type": "text",
942
+ "primaryKey": false,
943
+ "notNull": true
944
+ }
945
+ },
946
+ "indexes": {},
947
+ "foreignKeys": {
948
+ "user_team_user_id_user_id_fk": {
949
+ "name": "user_team_user_id_user_id_fk",
950
+ "tableFrom": "user_team",
951
+ "tableTo": "user",
952
+ "columnsFrom": [
953
+ "user_id"
954
+ ],
955
+ "columnsTo": [
956
+ "id"
957
+ ],
958
+ "onDelete": "cascade",
959
+ "onUpdate": "no action"
960
+ },
961
+ "user_team_team_id_team_id_fk": {
962
+ "name": "user_team_team_id_team_id_fk",
963
+ "tableFrom": "user_team",
964
+ "tableTo": "team",
965
+ "columnsFrom": [
966
+ "team_id"
967
+ ],
968
+ "columnsTo": [
969
+ "id"
970
+ ],
971
+ "onDelete": "cascade",
972
+ "onUpdate": "no action"
973
+ }
974
+ },
975
+ "compositePrimaryKeys": {
976
+ "user_team_user_id_team_id_pk": {
977
+ "name": "user_team_user_id_team_id_pk",
978
+ "columns": [
979
+ "user_id",
980
+ "team_id"
981
+ ]
982
+ }
983
+ },
984
+ "uniqueConstraints": {},
985
+ "policies": {},
986
+ "checkConstraints": {},
987
+ "isRLSEnabled": false
988
+ },
989
+ "public.verification": {
990
+ "name": "verification",
991
+ "schema": "",
992
+ "columns": {
993
+ "id": {
994
+ "name": "id",
995
+ "type": "text",
996
+ "primaryKey": true,
997
+ "notNull": true
998
+ },
999
+ "identifier": {
1000
+ "name": "identifier",
1001
+ "type": "text",
1002
+ "primaryKey": false,
1003
+ "notNull": true
1004
+ },
1005
+ "value": {
1006
+ "name": "value",
1007
+ "type": "text",
1008
+ "primaryKey": false,
1009
+ "notNull": true
1010
+ },
1011
+ "expires_at": {
1012
+ "name": "expires_at",
1013
+ "type": "timestamp",
1014
+ "primaryKey": false,
1015
+ "notNull": true
1016
+ },
1017
+ "created_at": {
1018
+ "name": "created_at",
1019
+ "type": "timestamp",
1020
+ "primaryKey": false,
1021
+ "notNull": false
1022
+ },
1023
+ "updated_at": {
1024
+ "name": "updated_at",
1025
+ "type": "timestamp",
1026
+ "primaryKey": false,
1027
+ "notNull": false
1028
+ }
1029
+ },
1030
+ "indexes": {},
1031
+ "foreignKeys": {},
1032
+ "compositePrimaryKeys": {},
1033
+ "uniqueConstraints": {},
1034
+ "policies": {},
1035
+ "checkConstraints": {},
1036
+ "isRLSEnabled": false
1037
+ }
1038
+ },
1039
+ "enums": {},
1040
+ "schemas": {},
1041
+ "sequences": {},
1042
+ "roles": {},
1043
+ "policies": {},
1044
+ "views": {},
1045
+ "_meta": {
1046
+ "columns": {},
1047
+ "schemas": {},
1048
+ "tables": {}
1049
+ }
1050
+ }