@checkstack/auth-backend 0.1.0 → 0.2.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.
@@ -0,0 +1,1050 @@
1
+ {
2
+ "id": "09dc2a16-a3bc-4d59-931b-5eedda7369ca",
3
+ "prevId": "4955a3ed-7b8c-4b47-9417-a9fbdb3a3365",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.access_rule": {
8
+ "name": "access_rule",
9
+ "schema": "",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "text",
14
+ "primaryKey": true,
15
+ "notNull": true
16
+ },
17
+ "description": {
18
+ "name": "description",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": false
22
+ }
23
+ },
24
+ "indexes": {},
25
+ "foreignKeys": {},
26
+ "compositePrimaryKeys": {},
27
+ "uniqueConstraints": {},
28
+ "policies": {},
29
+ "checkConstraints": {},
30
+ "isRLSEnabled": false
31
+ },
32
+ "public.account": {
33
+ "name": "account",
34
+ "schema": "",
35
+ "columns": {
36
+ "id": {
37
+ "name": "id",
38
+ "type": "text",
39
+ "primaryKey": true,
40
+ "notNull": true
41
+ },
42
+ "account_id": {
43
+ "name": "account_id",
44
+ "type": "text",
45
+ "primaryKey": false,
46
+ "notNull": true
47
+ },
48
+ "provider_id": {
49
+ "name": "provider_id",
50
+ "type": "text",
51
+ "primaryKey": false,
52
+ "notNull": true
53
+ },
54
+ "user_id": {
55
+ "name": "user_id",
56
+ "type": "text",
57
+ "primaryKey": false,
58
+ "notNull": true
59
+ },
60
+ "access_token": {
61
+ "name": "access_token",
62
+ "type": "text",
63
+ "primaryKey": false,
64
+ "notNull": false
65
+ },
66
+ "refresh_token": {
67
+ "name": "refresh_token",
68
+ "type": "text",
69
+ "primaryKey": false,
70
+ "notNull": false
71
+ },
72
+ "id_token": {
73
+ "name": "id_token",
74
+ "type": "text",
75
+ "primaryKey": false,
76
+ "notNull": false
77
+ },
78
+ "access_token_expires_at": {
79
+ "name": "access_token_expires_at",
80
+ "type": "timestamp",
81
+ "primaryKey": false,
82
+ "notNull": false
83
+ },
84
+ "refresh_token_expires_at": {
85
+ "name": "refresh_token_expires_at",
86
+ "type": "timestamp",
87
+ "primaryKey": false,
88
+ "notNull": false
89
+ },
90
+ "scope": {
91
+ "name": "scope",
92
+ "type": "text",
93
+ "primaryKey": false,
94
+ "notNull": false
95
+ },
96
+ "password": {
97
+ "name": "password",
98
+ "type": "text",
99
+ "primaryKey": false,
100
+ "notNull": false
101
+ },
102
+ "created_at": {
103
+ "name": "created_at",
104
+ "type": "timestamp",
105
+ "primaryKey": false,
106
+ "notNull": true
107
+ },
108
+ "updated_at": {
109
+ "name": "updated_at",
110
+ "type": "timestamp",
111
+ "primaryKey": false,
112
+ "notNull": true
113
+ }
114
+ },
115
+ "indexes": {},
116
+ "foreignKeys": {
117
+ "account_user_id_user_id_fk": {
118
+ "name": "account_user_id_user_id_fk",
119
+ "tableFrom": "account",
120
+ "tableTo": "user",
121
+ "columnsFrom": [
122
+ "user_id"
123
+ ],
124
+ "columnsTo": [
125
+ "id"
126
+ ],
127
+ "onDelete": "no action",
128
+ "onUpdate": "no action"
129
+ }
130
+ },
131
+ "compositePrimaryKeys": {},
132
+ "uniqueConstraints": {},
133
+ "policies": {},
134
+ "checkConstraints": {},
135
+ "isRLSEnabled": false
136
+ },
137
+ "public.application": {
138
+ "name": "application",
139
+ "schema": "",
140
+ "columns": {
141
+ "id": {
142
+ "name": "id",
143
+ "type": "text",
144
+ "primaryKey": true,
145
+ "notNull": true
146
+ },
147
+ "name": {
148
+ "name": "name",
149
+ "type": "text",
150
+ "primaryKey": false,
151
+ "notNull": true
152
+ },
153
+ "description": {
154
+ "name": "description",
155
+ "type": "text",
156
+ "primaryKey": false,
157
+ "notNull": false
158
+ },
159
+ "secret_hash": {
160
+ "name": "secret_hash",
161
+ "type": "text",
162
+ "primaryKey": false,
163
+ "notNull": true
164
+ },
165
+ "created_by_id": {
166
+ "name": "created_by_id",
167
+ "type": "text",
168
+ "primaryKey": false,
169
+ "notNull": true
170
+ },
171
+ "created_at": {
172
+ "name": "created_at",
173
+ "type": "timestamp",
174
+ "primaryKey": false,
175
+ "notNull": true,
176
+ "default": "now()"
177
+ },
178
+ "updated_at": {
179
+ "name": "updated_at",
180
+ "type": "timestamp",
181
+ "primaryKey": false,
182
+ "notNull": true,
183
+ "default": "now()"
184
+ },
185
+ "last_used_at": {
186
+ "name": "last_used_at",
187
+ "type": "timestamp",
188
+ "primaryKey": false,
189
+ "notNull": false
190
+ }
191
+ },
192
+ "indexes": {},
193
+ "foreignKeys": {
194
+ "application_created_by_id_user_id_fk": {
195
+ "name": "application_created_by_id_user_id_fk",
196
+ "tableFrom": "application",
197
+ "tableTo": "user",
198
+ "columnsFrom": [
199
+ "created_by_id"
200
+ ],
201
+ "columnsTo": [
202
+ "id"
203
+ ],
204
+ "onDelete": "no action",
205
+ "onUpdate": "no action"
206
+ }
207
+ },
208
+ "compositePrimaryKeys": {},
209
+ "uniqueConstraints": {},
210
+ "policies": {},
211
+ "checkConstraints": {},
212
+ "isRLSEnabled": false
213
+ },
214
+ "public.application_role": {
215
+ "name": "application_role",
216
+ "schema": "",
217
+ "columns": {
218
+ "application_id": {
219
+ "name": "application_id",
220
+ "type": "text",
221
+ "primaryKey": false,
222
+ "notNull": true
223
+ },
224
+ "role_id": {
225
+ "name": "role_id",
226
+ "type": "text",
227
+ "primaryKey": false,
228
+ "notNull": true
229
+ }
230
+ },
231
+ "indexes": {},
232
+ "foreignKeys": {
233
+ "application_role_application_id_application_id_fk": {
234
+ "name": "application_role_application_id_application_id_fk",
235
+ "tableFrom": "application_role",
236
+ "tableTo": "application",
237
+ "columnsFrom": [
238
+ "application_id"
239
+ ],
240
+ "columnsTo": [
241
+ "id"
242
+ ],
243
+ "onDelete": "cascade",
244
+ "onUpdate": "no action"
245
+ },
246
+ "application_role_role_id_role_id_fk": {
247
+ "name": "application_role_role_id_role_id_fk",
248
+ "tableFrom": "application_role",
249
+ "tableTo": "role",
250
+ "columnsFrom": [
251
+ "role_id"
252
+ ],
253
+ "columnsTo": [
254
+ "id"
255
+ ],
256
+ "onDelete": "no action",
257
+ "onUpdate": "no action"
258
+ }
259
+ },
260
+ "compositePrimaryKeys": {
261
+ "application_role_application_id_role_id_pk": {
262
+ "name": "application_role_application_id_role_id_pk",
263
+ "columns": [
264
+ "application_id",
265
+ "role_id"
266
+ ]
267
+ }
268
+ },
269
+ "uniqueConstraints": {},
270
+ "policies": {},
271
+ "checkConstraints": {},
272
+ "isRLSEnabled": false
273
+ },
274
+ "public.application_team": {
275
+ "name": "application_team",
276
+ "schema": "",
277
+ "columns": {
278
+ "application_id": {
279
+ "name": "application_id",
280
+ "type": "text",
281
+ "primaryKey": false,
282
+ "notNull": true
283
+ },
284
+ "team_id": {
285
+ "name": "team_id",
286
+ "type": "text",
287
+ "primaryKey": false,
288
+ "notNull": true
289
+ }
290
+ },
291
+ "indexes": {},
292
+ "foreignKeys": {
293
+ "application_team_application_id_application_id_fk": {
294
+ "name": "application_team_application_id_application_id_fk",
295
+ "tableFrom": "application_team",
296
+ "tableTo": "application",
297
+ "columnsFrom": [
298
+ "application_id"
299
+ ],
300
+ "columnsTo": [
301
+ "id"
302
+ ],
303
+ "onDelete": "cascade",
304
+ "onUpdate": "no action"
305
+ },
306
+ "application_team_team_id_team_id_fk": {
307
+ "name": "application_team_team_id_team_id_fk",
308
+ "tableFrom": "application_team",
309
+ "tableTo": "team",
310
+ "columnsFrom": [
311
+ "team_id"
312
+ ],
313
+ "columnsTo": [
314
+ "id"
315
+ ],
316
+ "onDelete": "cascade",
317
+ "onUpdate": "no action"
318
+ }
319
+ },
320
+ "compositePrimaryKeys": {
321
+ "application_team_application_id_team_id_pk": {
322
+ "name": "application_team_application_id_team_id_pk",
323
+ "columns": [
324
+ "application_id",
325
+ "team_id"
326
+ ]
327
+ }
328
+ },
329
+ "uniqueConstraints": {},
330
+ "policies": {},
331
+ "checkConstraints": {},
332
+ "isRLSEnabled": false
333
+ },
334
+ "public.disabled_default_access_rule": {
335
+ "name": "disabled_default_access_rule",
336
+ "schema": "",
337
+ "columns": {
338
+ "access_rule_id": {
339
+ "name": "access_rule_id",
340
+ "type": "text",
341
+ "primaryKey": true,
342
+ "notNull": true
343
+ },
344
+ "disabled_at": {
345
+ "name": "disabled_at",
346
+ "type": "timestamp",
347
+ "primaryKey": false,
348
+ "notNull": true
349
+ }
350
+ },
351
+ "indexes": {},
352
+ "foreignKeys": {
353
+ "disabled_default_access_rule_access_rule_id_access_rule_id_fk": {
354
+ "name": "disabled_default_access_rule_access_rule_id_access_rule_id_fk",
355
+ "tableFrom": "disabled_default_access_rule",
356
+ "tableTo": "access_rule",
357
+ "columnsFrom": [
358
+ "access_rule_id"
359
+ ],
360
+ "columnsTo": [
361
+ "id"
362
+ ],
363
+ "onDelete": "no action",
364
+ "onUpdate": "no action"
365
+ }
366
+ },
367
+ "compositePrimaryKeys": {},
368
+ "uniqueConstraints": {},
369
+ "policies": {},
370
+ "checkConstraints": {},
371
+ "isRLSEnabled": false
372
+ },
373
+ "public.disabled_public_default_access_rule": {
374
+ "name": "disabled_public_default_access_rule",
375
+ "schema": "",
376
+ "columns": {
377
+ "access_rule_id": {
378
+ "name": "access_rule_id",
379
+ "type": "text",
380
+ "primaryKey": true,
381
+ "notNull": true
382
+ },
383
+ "disabled_at": {
384
+ "name": "disabled_at",
385
+ "type": "timestamp",
386
+ "primaryKey": false,
387
+ "notNull": true
388
+ }
389
+ },
390
+ "indexes": {},
391
+ "foreignKeys": {
392
+ "disabled_public_default_access_rule_access_rule_id_access_rule_id_fk": {
393
+ "name": "disabled_public_default_access_rule_access_rule_id_access_rule_id_fk",
394
+ "tableFrom": "disabled_public_default_access_rule",
395
+ "tableTo": "access_rule",
396
+ "columnsFrom": [
397
+ "access_rule_id"
398
+ ],
399
+ "columnsTo": [
400
+ "id"
401
+ ],
402
+ "onDelete": "no action",
403
+ "onUpdate": "no action"
404
+ }
405
+ },
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_access_rule": {
559
+ "name": "role_access_rule",
560
+ "schema": "",
561
+ "columns": {
562
+ "role_id": {
563
+ "name": "role_id",
564
+ "type": "text",
565
+ "primaryKey": false,
566
+ "notNull": true
567
+ },
568
+ "access_rule_id": {
569
+ "name": "access_rule_id",
570
+ "type": "text",
571
+ "primaryKey": false,
572
+ "notNull": true
573
+ }
574
+ },
575
+ "indexes": {},
576
+ "foreignKeys": {
577
+ "role_access_rule_role_id_role_id_fk": {
578
+ "name": "role_access_rule_role_id_role_id_fk",
579
+ "tableFrom": "role_access_rule",
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_access_rule_access_rule_id_access_rule_id_fk": {
591
+ "name": "role_access_rule_access_rule_id_access_rule_id_fk",
592
+ "tableFrom": "role_access_rule",
593
+ "tableTo": "access_rule",
594
+ "columnsFrom": [
595
+ "access_rule_id"
596
+ ],
597
+ "columnsTo": [
598
+ "id"
599
+ ],
600
+ "onDelete": "no action",
601
+ "onUpdate": "no action"
602
+ }
603
+ },
604
+ "compositePrimaryKeys": {
605
+ "role_access_rule_role_id_access_rule_id_pk": {
606
+ "name": "role_access_rule_role_id_access_rule_id_pk",
607
+ "columns": [
608
+ "role_id",
609
+ "access_rule_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
+ }