@checkstack/auth-backend 0.0.2

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,580 @@
1
+ {
2
+ "id": "36cfd7db-c663-4378-a04e-496ccafb177a",
3
+ "prevId": "00000000-0000-0000-0000-000000000000",
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.disabled_default_permission": {
113
+ "name": "disabled_default_permission",
114
+ "schema": "",
115
+ "columns": {
116
+ "permission_id": {
117
+ "name": "permission_id",
118
+ "type": "text",
119
+ "primaryKey": true,
120
+ "notNull": true
121
+ },
122
+ "disabled_at": {
123
+ "name": "disabled_at",
124
+ "type": "timestamp",
125
+ "primaryKey": false,
126
+ "notNull": true
127
+ }
128
+ },
129
+ "indexes": {},
130
+ "foreignKeys": {
131
+ "disabled_default_permission_permission_id_permission_id_fk": {
132
+ "name": "disabled_default_permission_permission_id_permission_id_fk",
133
+ "tableFrom": "disabled_default_permission",
134
+ "tableTo": "permission",
135
+ "columnsFrom": [
136
+ "permission_id"
137
+ ],
138
+ "columnsTo": [
139
+ "id"
140
+ ],
141
+ "onDelete": "no action",
142
+ "onUpdate": "no action"
143
+ }
144
+ },
145
+ "compositePrimaryKeys": {},
146
+ "uniqueConstraints": {},
147
+ "policies": {},
148
+ "checkConstraints": {},
149
+ "isRLSEnabled": false
150
+ },
151
+ "public.disabled_public_default_permission": {
152
+ "name": "disabled_public_default_permission",
153
+ "schema": "",
154
+ "columns": {
155
+ "permission_id": {
156
+ "name": "permission_id",
157
+ "type": "text",
158
+ "primaryKey": true,
159
+ "notNull": true
160
+ },
161
+ "disabled_at": {
162
+ "name": "disabled_at",
163
+ "type": "timestamp",
164
+ "primaryKey": false,
165
+ "notNull": true
166
+ }
167
+ },
168
+ "indexes": {},
169
+ "foreignKeys": {
170
+ "disabled_public_default_permission_permission_id_permission_id_fk": {
171
+ "name": "disabled_public_default_permission_permission_id_permission_id_fk",
172
+ "tableFrom": "disabled_public_default_permission",
173
+ "tableTo": "permission",
174
+ "columnsFrom": [
175
+ "permission_id"
176
+ ],
177
+ "columnsTo": [
178
+ "id"
179
+ ],
180
+ "onDelete": "no action",
181
+ "onUpdate": "no action"
182
+ }
183
+ },
184
+ "compositePrimaryKeys": {},
185
+ "uniqueConstraints": {},
186
+ "policies": {},
187
+ "checkConstraints": {},
188
+ "isRLSEnabled": false
189
+ },
190
+ "public.permission": {
191
+ "name": "permission",
192
+ "schema": "",
193
+ "columns": {
194
+ "id": {
195
+ "name": "id",
196
+ "type": "text",
197
+ "primaryKey": true,
198
+ "notNull": true
199
+ },
200
+ "description": {
201
+ "name": "description",
202
+ "type": "text",
203
+ "primaryKey": false,
204
+ "notNull": false
205
+ }
206
+ },
207
+ "indexes": {},
208
+ "foreignKeys": {},
209
+ "compositePrimaryKeys": {},
210
+ "uniqueConstraints": {},
211
+ "policies": {},
212
+ "checkConstraints": {},
213
+ "isRLSEnabled": false
214
+ },
215
+ "public.role": {
216
+ "name": "role",
217
+ "schema": "",
218
+ "columns": {
219
+ "id": {
220
+ "name": "id",
221
+ "type": "text",
222
+ "primaryKey": true,
223
+ "notNull": true
224
+ },
225
+ "name": {
226
+ "name": "name",
227
+ "type": "text",
228
+ "primaryKey": false,
229
+ "notNull": true
230
+ },
231
+ "description": {
232
+ "name": "description",
233
+ "type": "text",
234
+ "primaryKey": false,
235
+ "notNull": false
236
+ },
237
+ "is_system": {
238
+ "name": "is_system",
239
+ "type": "boolean",
240
+ "primaryKey": false,
241
+ "notNull": false,
242
+ "default": false
243
+ }
244
+ },
245
+ "indexes": {},
246
+ "foreignKeys": {},
247
+ "compositePrimaryKeys": {},
248
+ "uniqueConstraints": {},
249
+ "policies": {},
250
+ "checkConstraints": {},
251
+ "isRLSEnabled": false
252
+ },
253
+ "public.role_permission": {
254
+ "name": "role_permission",
255
+ "schema": "",
256
+ "columns": {
257
+ "role_id": {
258
+ "name": "role_id",
259
+ "type": "text",
260
+ "primaryKey": false,
261
+ "notNull": true
262
+ },
263
+ "permission_id": {
264
+ "name": "permission_id",
265
+ "type": "text",
266
+ "primaryKey": false,
267
+ "notNull": true
268
+ }
269
+ },
270
+ "indexes": {},
271
+ "foreignKeys": {
272
+ "role_permission_role_id_role_id_fk": {
273
+ "name": "role_permission_role_id_role_id_fk",
274
+ "tableFrom": "role_permission",
275
+ "tableTo": "role",
276
+ "columnsFrom": [
277
+ "role_id"
278
+ ],
279
+ "columnsTo": [
280
+ "id"
281
+ ],
282
+ "onDelete": "no action",
283
+ "onUpdate": "no action"
284
+ },
285
+ "role_permission_permission_id_permission_id_fk": {
286
+ "name": "role_permission_permission_id_permission_id_fk",
287
+ "tableFrom": "role_permission",
288
+ "tableTo": "permission",
289
+ "columnsFrom": [
290
+ "permission_id"
291
+ ],
292
+ "columnsTo": [
293
+ "id"
294
+ ],
295
+ "onDelete": "no action",
296
+ "onUpdate": "no action"
297
+ }
298
+ },
299
+ "compositePrimaryKeys": {
300
+ "role_permission_role_id_permission_id_pk": {
301
+ "name": "role_permission_role_id_permission_id_pk",
302
+ "columns": [
303
+ "role_id",
304
+ "permission_id"
305
+ ]
306
+ }
307
+ },
308
+ "uniqueConstraints": {},
309
+ "policies": {},
310
+ "checkConstraints": {},
311
+ "isRLSEnabled": false
312
+ },
313
+ "public.session": {
314
+ "name": "session",
315
+ "schema": "",
316
+ "columns": {
317
+ "id": {
318
+ "name": "id",
319
+ "type": "text",
320
+ "primaryKey": true,
321
+ "notNull": true
322
+ },
323
+ "expires_at": {
324
+ "name": "expires_at",
325
+ "type": "timestamp",
326
+ "primaryKey": false,
327
+ "notNull": true
328
+ },
329
+ "token": {
330
+ "name": "token",
331
+ "type": "text",
332
+ "primaryKey": false,
333
+ "notNull": true
334
+ },
335
+ "created_at": {
336
+ "name": "created_at",
337
+ "type": "timestamp",
338
+ "primaryKey": false,
339
+ "notNull": true
340
+ },
341
+ "updated_at": {
342
+ "name": "updated_at",
343
+ "type": "timestamp",
344
+ "primaryKey": false,
345
+ "notNull": true
346
+ },
347
+ "ip_address": {
348
+ "name": "ip_address",
349
+ "type": "text",
350
+ "primaryKey": false,
351
+ "notNull": false
352
+ },
353
+ "user_agent": {
354
+ "name": "user_agent",
355
+ "type": "text",
356
+ "primaryKey": false,
357
+ "notNull": false
358
+ },
359
+ "user_id": {
360
+ "name": "user_id",
361
+ "type": "text",
362
+ "primaryKey": false,
363
+ "notNull": true
364
+ }
365
+ },
366
+ "indexes": {},
367
+ "foreignKeys": {
368
+ "session_user_id_user_id_fk": {
369
+ "name": "session_user_id_user_id_fk",
370
+ "tableFrom": "session",
371
+ "tableTo": "user",
372
+ "columnsFrom": [
373
+ "user_id"
374
+ ],
375
+ "columnsTo": [
376
+ "id"
377
+ ],
378
+ "onDelete": "no action",
379
+ "onUpdate": "no action"
380
+ }
381
+ },
382
+ "compositePrimaryKeys": {},
383
+ "uniqueConstraints": {
384
+ "session_token_unique": {
385
+ "name": "session_token_unique",
386
+ "nullsNotDistinct": false,
387
+ "columns": [
388
+ "token"
389
+ ]
390
+ }
391
+ },
392
+ "policies": {},
393
+ "checkConstraints": {},
394
+ "isRLSEnabled": false
395
+ },
396
+ "public.user": {
397
+ "name": "user",
398
+ "schema": "",
399
+ "columns": {
400
+ "id": {
401
+ "name": "id",
402
+ "type": "text",
403
+ "primaryKey": true,
404
+ "notNull": true
405
+ },
406
+ "name": {
407
+ "name": "name",
408
+ "type": "text",
409
+ "primaryKey": false,
410
+ "notNull": true
411
+ },
412
+ "email": {
413
+ "name": "email",
414
+ "type": "text",
415
+ "primaryKey": false,
416
+ "notNull": true
417
+ },
418
+ "email_verified": {
419
+ "name": "email_verified",
420
+ "type": "boolean",
421
+ "primaryKey": false,
422
+ "notNull": true
423
+ },
424
+ "image": {
425
+ "name": "image",
426
+ "type": "text",
427
+ "primaryKey": false,
428
+ "notNull": false
429
+ },
430
+ "created_at": {
431
+ "name": "created_at",
432
+ "type": "timestamp",
433
+ "primaryKey": false,
434
+ "notNull": true
435
+ },
436
+ "updated_at": {
437
+ "name": "updated_at",
438
+ "type": "timestamp",
439
+ "primaryKey": false,
440
+ "notNull": true
441
+ }
442
+ },
443
+ "indexes": {},
444
+ "foreignKeys": {},
445
+ "compositePrimaryKeys": {},
446
+ "uniqueConstraints": {
447
+ "user_email_unique": {
448
+ "name": "user_email_unique",
449
+ "nullsNotDistinct": false,
450
+ "columns": [
451
+ "email"
452
+ ]
453
+ }
454
+ },
455
+ "policies": {},
456
+ "checkConstraints": {},
457
+ "isRLSEnabled": false
458
+ },
459
+ "public.user_role": {
460
+ "name": "user_role",
461
+ "schema": "",
462
+ "columns": {
463
+ "user_id": {
464
+ "name": "user_id",
465
+ "type": "text",
466
+ "primaryKey": false,
467
+ "notNull": true
468
+ },
469
+ "role_id": {
470
+ "name": "role_id",
471
+ "type": "text",
472
+ "primaryKey": false,
473
+ "notNull": true
474
+ }
475
+ },
476
+ "indexes": {},
477
+ "foreignKeys": {
478
+ "user_role_user_id_user_id_fk": {
479
+ "name": "user_role_user_id_user_id_fk",
480
+ "tableFrom": "user_role",
481
+ "tableTo": "user",
482
+ "columnsFrom": [
483
+ "user_id"
484
+ ],
485
+ "columnsTo": [
486
+ "id"
487
+ ],
488
+ "onDelete": "no action",
489
+ "onUpdate": "no action"
490
+ },
491
+ "user_role_role_id_role_id_fk": {
492
+ "name": "user_role_role_id_role_id_fk",
493
+ "tableFrom": "user_role",
494
+ "tableTo": "role",
495
+ "columnsFrom": [
496
+ "role_id"
497
+ ],
498
+ "columnsTo": [
499
+ "id"
500
+ ],
501
+ "onDelete": "no action",
502
+ "onUpdate": "no action"
503
+ }
504
+ },
505
+ "compositePrimaryKeys": {
506
+ "user_role_user_id_role_id_pk": {
507
+ "name": "user_role_user_id_role_id_pk",
508
+ "columns": [
509
+ "user_id",
510
+ "role_id"
511
+ ]
512
+ }
513
+ },
514
+ "uniqueConstraints": {},
515
+ "policies": {},
516
+ "checkConstraints": {},
517
+ "isRLSEnabled": false
518
+ },
519
+ "public.verification": {
520
+ "name": "verification",
521
+ "schema": "",
522
+ "columns": {
523
+ "id": {
524
+ "name": "id",
525
+ "type": "text",
526
+ "primaryKey": true,
527
+ "notNull": true
528
+ },
529
+ "identifier": {
530
+ "name": "identifier",
531
+ "type": "text",
532
+ "primaryKey": false,
533
+ "notNull": true
534
+ },
535
+ "value": {
536
+ "name": "value",
537
+ "type": "text",
538
+ "primaryKey": false,
539
+ "notNull": true
540
+ },
541
+ "expires_at": {
542
+ "name": "expires_at",
543
+ "type": "timestamp",
544
+ "primaryKey": false,
545
+ "notNull": true
546
+ },
547
+ "created_at": {
548
+ "name": "created_at",
549
+ "type": "timestamp",
550
+ "primaryKey": false,
551
+ "notNull": false
552
+ },
553
+ "updated_at": {
554
+ "name": "updated_at",
555
+ "type": "timestamp",
556
+ "primaryKey": false,
557
+ "notNull": false
558
+ }
559
+ },
560
+ "indexes": {},
561
+ "foreignKeys": {},
562
+ "compositePrimaryKeys": {},
563
+ "uniqueConstraints": {},
564
+ "policies": {},
565
+ "checkConstraints": {},
566
+ "isRLSEnabled": false
567
+ }
568
+ },
569
+ "enums": {},
570
+ "schemas": {},
571
+ "sequences": {},
572
+ "roles": {},
573
+ "policies": {},
574
+ "views": {},
575
+ "_meta": {
576
+ "columns": {},
577
+ "schemas": {},
578
+ "tables": {}
579
+ }
580
+ }