@kontexted/darwin-arm64 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.

Potentially problematic release.


This version of @kontexted/darwin-arm64 might be problematic. Click here for more details.

@@ -0,0 +1,1587 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "7fbe2df5-0efc-4756-911a-af4a7ffe7808",
5
+ "prevId": "00000000-0000-0000-0000-000000000000",
6
+ "tables": {
7
+ "account": {
8
+ "name": "account",
9
+ "columns": {
10
+ "id": {
11
+ "name": "id",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "userId": {
18
+ "name": "userId",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "accountId": {
25
+ "name": "accountId",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ },
31
+ "providerId": {
32
+ "name": "providerId",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": true,
36
+ "autoincrement": false
37
+ },
38
+ "accessToken": {
39
+ "name": "accessToken",
40
+ "type": "text",
41
+ "primaryKey": false,
42
+ "notNull": false,
43
+ "autoincrement": false
44
+ },
45
+ "refreshToken": {
46
+ "name": "refreshToken",
47
+ "type": "text",
48
+ "primaryKey": false,
49
+ "notNull": false,
50
+ "autoincrement": false
51
+ },
52
+ "idToken": {
53
+ "name": "idToken",
54
+ "type": "text",
55
+ "primaryKey": false,
56
+ "notNull": false,
57
+ "autoincrement": false
58
+ },
59
+ "accessTokenExpiresAt": {
60
+ "name": "accessTokenExpiresAt",
61
+ "type": "integer",
62
+ "primaryKey": false,
63
+ "notNull": false,
64
+ "autoincrement": false
65
+ },
66
+ "refreshTokenExpiresAt": {
67
+ "name": "refreshTokenExpiresAt",
68
+ "type": "integer",
69
+ "primaryKey": false,
70
+ "notNull": false,
71
+ "autoincrement": false
72
+ },
73
+ "scope": {
74
+ "name": "scope",
75
+ "type": "text",
76
+ "primaryKey": false,
77
+ "notNull": false,
78
+ "autoincrement": false
79
+ },
80
+ "password": {
81
+ "name": "password",
82
+ "type": "text",
83
+ "primaryKey": false,
84
+ "notNull": false,
85
+ "autoincrement": false
86
+ },
87
+ "createdAt": {
88
+ "name": "createdAt",
89
+ "type": "integer",
90
+ "primaryKey": false,
91
+ "notNull": true,
92
+ "autoincrement": false,
93
+ "default": "(unixepoch() * 1000)"
94
+ },
95
+ "updatedAt": {
96
+ "name": "updatedAt",
97
+ "type": "integer",
98
+ "primaryKey": false,
99
+ "notNull": true,
100
+ "autoincrement": false,
101
+ "default": "(unixepoch() * 1000)"
102
+ }
103
+ },
104
+ "indexes": {},
105
+ "foreignKeys": {
106
+ "account_userId_user_id_fk": {
107
+ "name": "account_userId_user_id_fk",
108
+ "tableFrom": "account",
109
+ "tableTo": "user",
110
+ "columnsFrom": [
111
+ "userId"
112
+ ],
113
+ "columnsTo": [
114
+ "id"
115
+ ],
116
+ "onDelete": "cascade",
117
+ "onUpdate": "no action"
118
+ }
119
+ },
120
+ "compositePrimaryKeys": {},
121
+ "uniqueConstraints": {},
122
+ "checkConstraints": {}
123
+ },
124
+ "jwks": {
125
+ "name": "jwks",
126
+ "columns": {
127
+ "id": {
128
+ "name": "id",
129
+ "type": "text",
130
+ "primaryKey": true,
131
+ "notNull": true,
132
+ "autoincrement": false
133
+ },
134
+ "publicKey": {
135
+ "name": "publicKey",
136
+ "type": "text",
137
+ "primaryKey": false,
138
+ "notNull": true,
139
+ "autoincrement": false
140
+ },
141
+ "privateKey": {
142
+ "name": "privateKey",
143
+ "type": "text",
144
+ "primaryKey": false,
145
+ "notNull": true,
146
+ "autoincrement": false
147
+ },
148
+ "createdAt": {
149
+ "name": "createdAt",
150
+ "type": "integer",
151
+ "primaryKey": false,
152
+ "notNull": true,
153
+ "autoincrement": false,
154
+ "default": "(unixepoch() * 1000)"
155
+ },
156
+ "expiresAt": {
157
+ "name": "expiresAt",
158
+ "type": "integer",
159
+ "primaryKey": false,
160
+ "notNull": false,
161
+ "autoincrement": false
162
+ }
163
+ },
164
+ "indexes": {},
165
+ "foreignKeys": {},
166
+ "compositePrimaryKeys": {},
167
+ "uniqueConstraints": {},
168
+ "checkConstraints": {}
169
+ },
170
+ "oauthAccessToken": {
171
+ "name": "oauthAccessToken",
172
+ "columns": {
173
+ "id": {
174
+ "name": "id",
175
+ "type": "text",
176
+ "primaryKey": true,
177
+ "notNull": true,
178
+ "autoincrement": false
179
+ },
180
+ "token": {
181
+ "name": "token",
182
+ "type": "text",
183
+ "primaryKey": false,
184
+ "notNull": true,
185
+ "autoincrement": false
186
+ },
187
+ "clientId": {
188
+ "name": "clientId",
189
+ "type": "text",
190
+ "primaryKey": false,
191
+ "notNull": true,
192
+ "autoincrement": false
193
+ },
194
+ "sessionId": {
195
+ "name": "sessionId",
196
+ "type": "text",
197
+ "primaryKey": false,
198
+ "notNull": false,
199
+ "autoincrement": false
200
+ },
201
+ "userId": {
202
+ "name": "userId",
203
+ "type": "text",
204
+ "primaryKey": false,
205
+ "notNull": false,
206
+ "autoincrement": false
207
+ },
208
+ "referenceId": {
209
+ "name": "referenceId",
210
+ "type": "text",
211
+ "primaryKey": false,
212
+ "notNull": false,
213
+ "autoincrement": false
214
+ },
215
+ "refreshId": {
216
+ "name": "refreshId",
217
+ "type": "text",
218
+ "primaryKey": false,
219
+ "notNull": false,
220
+ "autoincrement": false
221
+ },
222
+ "expiresAt": {
223
+ "name": "expiresAt",
224
+ "type": "integer",
225
+ "primaryKey": false,
226
+ "notNull": false,
227
+ "autoincrement": false
228
+ },
229
+ "createdAt": {
230
+ "name": "createdAt",
231
+ "type": "integer",
232
+ "primaryKey": false,
233
+ "notNull": true,
234
+ "autoincrement": false,
235
+ "default": "(unixepoch() * 1000)"
236
+ },
237
+ "scopes": {
238
+ "name": "scopes",
239
+ "type": "text",
240
+ "primaryKey": false,
241
+ "notNull": true,
242
+ "autoincrement": false
243
+ }
244
+ },
245
+ "indexes": {
246
+ "oauth_access_token_token_unique": {
247
+ "name": "oauth_access_token_token_unique",
248
+ "columns": [
249
+ "token"
250
+ ],
251
+ "isUnique": true
252
+ },
253
+ "oauth_access_token_client_id_idx": {
254
+ "name": "oauth_access_token_client_id_idx",
255
+ "columns": [
256
+ "clientId"
257
+ ],
258
+ "isUnique": false
259
+ },
260
+ "oauth_access_token_user_id_idx": {
261
+ "name": "oauth_access_token_user_id_idx",
262
+ "columns": [
263
+ "userId"
264
+ ],
265
+ "isUnique": false
266
+ },
267
+ "oauth_access_token_session_id_idx": {
268
+ "name": "oauth_access_token_session_id_idx",
269
+ "columns": [
270
+ "sessionId"
271
+ ],
272
+ "isUnique": false
273
+ }
274
+ },
275
+ "foreignKeys": {
276
+ "oauthAccessToken_clientId_oauthApplication_clientId_fk": {
277
+ "name": "oauthAccessToken_clientId_oauthApplication_clientId_fk",
278
+ "tableFrom": "oauthAccessToken",
279
+ "tableTo": "oauthApplication",
280
+ "columnsFrom": [
281
+ "clientId"
282
+ ],
283
+ "columnsTo": [
284
+ "clientId"
285
+ ],
286
+ "onDelete": "cascade",
287
+ "onUpdate": "no action"
288
+ },
289
+ "oauthAccessToken_sessionId_session_id_fk": {
290
+ "name": "oauthAccessToken_sessionId_session_id_fk",
291
+ "tableFrom": "oauthAccessToken",
292
+ "tableTo": "session",
293
+ "columnsFrom": [
294
+ "sessionId"
295
+ ],
296
+ "columnsTo": [
297
+ "id"
298
+ ],
299
+ "onDelete": "set null",
300
+ "onUpdate": "no action"
301
+ },
302
+ "oauthAccessToken_userId_user_id_fk": {
303
+ "name": "oauthAccessToken_userId_user_id_fk",
304
+ "tableFrom": "oauthAccessToken",
305
+ "tableTo": "user",
306
+ "columnsFrom": [
307
+ "userId"
308
+ ],
309
+ "columnsTo": [
310
+ "id"
311
+ ],
312
+ "onDelete": "cascade",
313
+ "onUpdate": "no action"
314
+ },
315
+ "oauthAccessToken_refreshId_oauthRefreshToken_id_fk": {
316
+ "name": "oauthAccessToken_refreshId_oauthRefreshToken_id_fk",
317
+ "tableFrom": "oauthAccessToken",
318
+ "tableTo": "oauthRefreshToken",
319
+ "columnsFrom": [
320
+ "refreshId"
321
+ ],
322
+ "columnsTo": [
323
+ "id"
324
+ ],
325
+ "onDelete": "set null",
326
+ "onUpdate": "no action"
327
+ }
328
+ },
329
+ "compositePrimaryKeys": {},
330
+ "uniqueConstraints": {},
331
+ "checkConstraints": {}
332
+ },
333
+ "oauthApplication": {
334
+ "name": "oauthApplication",
335
+ "columns": {
336
+ "id": {
337
+ "name": "id",
338
+ "type": "text",
339
+ "primaryKey": true,
340
+ "notNull": true,
341
+ "autoincrement": false
342
+ },
343
+ "clientId": {
344
+ "name": "clientId",
345
+ "type": "text",
346
+ "primaryKey": false,
347
+ "notNull": true,
348
+ "autoincrement": false
349
+ },
350
+ "clientSecret": {
351
+ "name": "clientSecret",
352
+ "type": "text",
353
+ "primaryKey": false,
354
+ "notNull": false,
355
+ "autoincrement": false
356
+ },
357
+ "disabled": {
358
+ "name": "disabled",
359
+ "type": "integer",
360
+ "primaryKey": false,
361
+ "notNull": true,
362
+ "autoincrement": false,
363
+ "default": false
364
+ },
365
+ "skipConsent": {
366
+ "name": "skipConsent",
367
+ "type": "integer",
368
+ "primaryKey": false,
369
+ "notNull": false,
370
+ "autoincrement": false
371
+ },
372
+ "enableEndSession": {
373
+ "name": "enableEndSession",
374
+ "type": "integer",
375
+ "primaryKey": false,
376
+ "notNull": false,
377
+ "autoincrement": false
378
+ },
379
+ "scopes": {
380
+ "name": "scopes",
381
+ "type": "text",
382
+ "primaryKey": false,
383
+ "notNull": false,
384
+ "autoincrement": false
385
+ },
386
+ "userId": {
387
+ "name": "userId",
388
+ "type": "text",
389
+ "primaryKey": false,
390
+ "notNull": false,
391
+ "autoincrement": false
392
+ },
393
+ "createdAt": {
394
+ "name": "createdAt",
395
+ "type": "integer",
396
+ "primaryKey": false,
397
+ "notNull": true,
398
+ "autoincrement": false,
399
+ "default": "(unixepoch() * 1000)"
400
+ },
401
+ "updatedAt": {
402
+ "name": "updatedAt",
403
+ "type": "integer",
404
+ "primaryKey": false,
405
+ "notNull": true,
406
+ "autoincrement": false,
407
+ "default": "(unixepoch() * 1000)"
408
+ },
409
+ "name": {
410
+ "name": "name",
411
+ "type": "text",
412
+ "primaryKey": false,
413
+ "notNull": true,
414
+ "autoincrement": false
415
+ },
416
+ "uri": {
417
+ "name": "uri",
418
+ "type": "text",
419
+ "primaryKey": false,
420
+ "notNull": false,
421
+ "autoincrement": false
422
+ },
423
+ "icon": {
424
+ "name": "icon",
425
+ "type": "text",
426
+ "primaryKey": false,
427
+ "notNull": false,
428
+ "autoincrement": false
429
+ },
430
+ "contacts": {
431
+ "name": "contacts",
432
+ "type": "text",
433
+ "primaryKey": false,
434
+ "notNull": false,
435
+ "autoincrement": false
436
+ },
437
+ "tos": {
438
+ "name": "tos",
439
+ "type": "text",
440
+ "primaryKey": false,
441
+ "notNull": false,
442
+ "autoincrement": false
443
+ },
444
+ "policy": {
445
+ "name": "policy",
446
+ "type": "text",
447
+ "primaryKey": false,
448
+ "notNull": false,
449
+ "autoincrement": false
450
+ },
451
+ "softwareId": {
452
+ "name": "softwareId",
453
+ "type": "text",
454
+ "primaryKey": false,
455
+ "notNull": false,
456
+ "autoincrement": false
457
+ },
458
+ "softwareVersion": {
459
+ "name": "softwareVersion",
460
+ "type": "text",
461
+ "primaryKey": false,
462
+ "notNull": false,
463
+ "autoincrement": false
464
+ },
465
+ "softwareStatement": {
466
+ "name": "softwareStatement",
467
+ "type": "text",
468
+ "primaryKey": false,
469
+ "notNull": false,
470
+ "autoincrement": false
471
+ },
472
+ "redirectUris": {
473
+ "name": "redirectUris",
474
+ "type": "text",
475
+ "primaryKey": false,
476
+ "notNull": true,
477
+ "autoincrement": false
478
+ },
479
+ "postLogoutRedirectUris": {
480
+ "name": "postLogoutRedirectUris",
481
+ "type": "text",
482
+ "primaryKey": false,
483
+ "notNull": false,
484
+ "autoincrement": false
485
+ },
486
+ "tokenEndpointAuthMethod": {
487
+ "name": "tokenEndpointAuthMethod",
488
+ "type": "text",
489
+ "primaryKey": false,
490
+ "notNull": false,
491
+ "autoincrement": false
492
+ },
493
+ "grantTypes": {
494
+ "name": "grantTypes",
495
+ "type": "text",
496
+ "primaryKey": false,
497
+ "notNull": false,
498
+ "autoincrement": false
499
+ },
500
+ "responseTypes": {
501
+ "name": "responseTypes",
502
+ "type": "text",
503
+ "primaryKey": false,
504
+ "notNull": false,
505
+ "autoincrement": false
506
+ },
507
+ "public": {
508
+ "name": "public",
509
+ "type": "integer",
510
+ "primaryKey": false,
511
+ "notNull": false,
512
+ "autoincrement": false
513
+ },
514
+ "type": {
515
+ "name": "type",
516
+ "type": "text",
517
+ "primaryKey": false,
518
+ "notNull": false,
519
+ "autoincrement": false
520
+ },
521
+ "referenceId": {
522
+ "name": "referenceId",
523
+ "type": "text",
524
+ "primaryKey": false,
525
+ "notNull": false,
526
+ "autoincrement": false
527
+ },
528
+ "metadata": {
529
+ "name": "metadata",
530
+ "type": "text",
531
+ "primaryKey": false,
532
+ "notNull": false,
533
+ "autoincrement": false
534
+ }
535
+ },
536
+ "indexes": {
537
+ "oauthApplication_clientId_unique": {
538
+ "name": "oauthApplication_clientId_unique",
539
+ "columns": [
540
+ "clientId"
541
+ ],
542
+ "isUnique": true
543
+ },
544
+ "oauth_application_user_id_idx": {
545
+ "name": "oauth_application_user_id_idx",
546
+ "columns": [
547
+ "userId"
548
+ ],
549
+ "isUnique": false
550
+ }
551
+ },
552
+ "foreignKeys": {
553
+ "oauthApplication_userId_user_id_fk": {
554
+ "name": "oauthApplication_userId_user_id_fk",
555
+ "tableFrom": "oauthApplication",
556
+ "tableTo": "user",
557
+ "columnsFrom": [
558
+ "userId"
559
+ ],
560
+ "columnsTo": [
561
+ "id"
562
+ ],
563
+ "onDelete": "cascade",
564
+ "onUpdate": "no action"
565
+ }
566
+ },
567
+ "compositePrimaryKeys": {},
568
+ "uniqueConstraints": {},
569
+ "checkConstraints": {}
570
+ },
571
+ "oauthConsent": {
572
+ "name": "oauthConsent",
573
+ "columns": {
574
+ "id": {
575
+ "name": "id",
576
+ "type": "text",
577
+ "primaryKey": true,
578
+ "notNull": true,
579
+ "autoincrement": false
580
+ },
581
+ "clientId": {
582
+ "name": "clientId",
583
+ "type": "text",
584
+ "primaryKey": false,
585
+ "notNull": true,
586
+ "autoincrement": false
587
+ },
588
+ "userId": {
589
+ "name": "userId",
590
+ "type": "text",
591
+ "primaryKey": false,
592
+ "notNull": false,
593
+ "autoincrement": false
594
+ },
595
+ "referenceId": {
596
+ "name": "referenceId",
597
+ "type": "text",
598
+ "primaryKey": false,
599
+ "notNull": false,
600
+ "autoincrement": false
601
+ },
602
+ "scopes": {
603
+ "name": "scopes",
604
+ "type": "text",
605
+ "primaryKey": false,
606
+ "notNull": true,
607
+ "autoincrement": false
608
+ },
609
+ "createdAt": {
610
+ "name": "createdAt",
611
+ "type": "integer",
612
+ "primaryKey": false,
613
+ "notNull": true,
614
+ "autoincrement": false,
615
+ "default": "(unixepoch() * 1000)"
616
+ },
617
+ "updatedAt": {
618
+ "name": "updatedAt",
619
+ "type": "integer",
620
+ "primaryKey": false,
621
+ "notNull": true,
622
+ "autoincrement": false,
623
+ "default": "(unixepoch() * 1000)"
624
+ }
625
+ },
626
+ "indexes": {
627
+ "oauth_consent_client_id_idx": {
628
+ "name": "oauth_consent_client_id_idx",
629
+ "columns": [
630
+ "clientId"
631
+ ],
632
+ "isUnique": false
633
+ },
634
+ "oauth_consent_user_id_idx": {
635
+ "name": "oauth_consent_user_id_idx",
636
+ "columns": [
637
+ "userId"
638
+ ],
639
+ "isUnique": false
640
+ }
641
+ },
642
+ "foreignKeys": {
643
+ "oauthConsent_clientId_oauthApplication_clientId_fk": {
644
+ "name": "oauthConsent_clientId_oauthApplication_clientId_fk",
645
+ "tableFrom": "oauthConsent",
646
+ "tableTo": "oauthApplication",
647
+ "columnsFrom": [
648
+ "clientId"
649
+ ],
650
+ "columnsTo": [
651
+ "clientId"
652
+ ],
653
+ "onDelete": "cascade",
654
+ "onUpdate": "no action"
655
+ },
656
+ "oauthConsent_userId_user_id_fk": {
657
+ "name": "oauthConsent_userId_user_id_fk",
658
+ "tableFrom": "oauthConsent",
659
+ "tableTo": "user",
660
+ "columnsFrom": [
661
+ "userId"
662
+ ],
663
+ "columnsTo": [
664
+ "id"
665
+ ],
666
+ "onDelete": "cascade",
667
+ "onUpdate": "no action"
668
+ }
669
+ },
670
+ "compositePrimaryKeys": {},
671
+ "uniqueConstraints": {},
672
+ "checkConstraints": {}
673
+ },
674
+ "oauthRefreshToken": {
675
+ "name": "oauthRefreshToken",
676
+ "columns": {
677
+ "id": {
678
+ "name": "id",
679
+ "type": "text",
680
+ "primaryKey": true,
681
+ "notNull": true,
682
+ "autoincrement": false
683
+ },
684
+ "token": {
685
+ "name": "token",
686
+ "type": "text",
687
+ "primaryKey": false,
688
+ "notNull": true,
689
+ "autoincrement": false
690
+ },
691
+ "clientId": {
692
+ "name": "clientId",
693
+ "type": "text",
694
+ "primaryKey": false,
695
+ "notNull": true,
696
+ "autoincrement": false
697
+ },
698
+ "sessionId": {
699
+ "name": "sessionId",
700
+ "type": "text",
701
+ "primaryKey": false,
702
+ "notNull": false,
703
+ "autoincrement": false
704
+ },
705
+ "userId": {
706
+ "name": "userId",
707
+ "type": "text",
708
+ "primaryKey": false,
709
+ "notNull": true,
710
+ "autoincrement": false
711
+ },
712
+ "referenceId": {
713
+ "name": "referenceId",
714
+ "type": "text",
715
+ "primaryKey": false,
716
+ "notNull": false,
717
+ "autoincrement": false
718
+ },
719
+ "expiresAt": {
720
+ "name": "expiresAt",
721
+ "type": "integer",
722
+ "primaryKey": false,
723
+ "notNull": false,
724
+ "autoincrement": false
725
+ },
726
+ "createdAt": {
727
+ "name": "createdAt",
728
+ "type": "integer",
729
+ "primaryKey": false,
730
+ "notNull": true,
731
+ "autoincrement": false,
732
+ "default": "(unixepoch() * 1000)"
733
+ },
734
+ "revoked": {
735
+ "name": "revoked",
736
+ "type": "integer",
737
+ "primaryKey": false,
738
+ "notNull": false,
739
+ "autoincrement": false
740
+ },
741
+ "scopes": {
742
+ "name": "scopes",
743
+ "type": "text",
744
+ "primaryKey": false,
745
+ "notNull": true,
746
+ "autoincrement": false
747
+ }
748
+ },
749
+ "indexes": {
750
+ "oauthRefreshToken_token_unique": {
751
+ "name": "oauthRefreshToken_token_unique",
752
+ "columns": [
753
+ "token"
754
+ ],
755
+ "isUnique": true
756
+ },
757
+ "oauth_refresh_token_client_id_idx": {
758
+ "name": "oauth_refresh_token_client_id_idx",
759
+ "columns": [
760
+ "clientId"
761
+ ],
762
+ "isUnique": false
763
+ },
764
+ "oauth_refresh_token_user_id_idx": {
765
+ "name": "oauth_refresh_token_user_id_idx",
766
+ "columns": [
767
+ "userId"
768
+ ],
769
+ "isUnique": false
770
+ },
771
+ "oauth_refresh_token_session_id_idx": {
772
+ "name": "oauth_refresh_token_session_id_idx",
773
+ "columns": [
774
+ "sessionId"
775
+ ],
776
+ "isUnique": false
777
+ }
778
+ },
779
+ "foreignKeys": {
780
+ "oauthRefreshToken_clientId_oauthApplication_clientId_fk": {
781
+ "name": "oauthRefreshToken_clientId_oauthApplication_clientId_fk",
782
+ "tableFrom": "oauthRefreshToken",
783
+ "tableTo": "oauthApplication",
784
+ "columnsFrom": [
785
+ "clientId"
786
+ ],
787
+ "columnsTo": [
788
+ "clientId"
789
+ ],
790
+ "onDelete": "cascade",
791
+ "onUpdate": "no action"
792
+ },
793
+ "oauthRefreshToken_sessionId_session_id_fk": {
794
+ "name": "oauthRefreshToken_sessionId_session_id_fk",
795
+ "tableFrom": "oauthRefreshToken",
796
+ "tableTo": "session",
797
+ "columnsFrom": [
798
+ "sessionId"
799
+ ],
800
+ "columnsTo": [
801
+ "id"
802
+ ],
803
+ "onDelete": "set null",
804
+ "onUpdate": "no action"
805
+ },
806
+ "oauthRefreshToken_userId_user_id_fk": {
807
+ "name": "oauthRefreshToken_userId_user_id_fk",
808
+ "tableFrom": "oauthRefreshToken",
809
+ "tableTo": "user",
810
+ "columnsFrom": [
811
+ "userId"
812
+ ],
813
+ "columnsTo": [
814
+ "id"
815
+ ],
816
+ "onDelete": "cascade",
817
+ "onUpdate": "no action"
818
+ }
819
+ },
820
+ "compositePrimaryKeys": {},
821
+ "uniqueConstraints": {},
822
+ "checkConstraints": {}
823
+ },
824
+ "session": {
825
+ "name": "session",
826
+ "columns": {
827
+ "id": {
828
+ "name": "id",
829
+ "type": "text",
830
+ "primaryKey": true,
831
+ "notNull": true,
832
+ "autoincrement": false
833
+ },
834
+ "userId": {
835
+ "name": "userId",
836
+ "type": "text",
837
+ "primaryKey": false,
838
+ "notNull": true,
839
+ "autoincrement": false
840
+ },
841
+ "token": {
842
+ "name": "token",
843
+ "type": "text",
844
+ "primaryKey": false,
845
+ "notNull": true,
846
+ "autoincrement": false
847
+ },
848
+ "expiresAt": {
849
+ "name": "expiresAt",
850
+ "type": "integer",
851
+ "primaryKey": false,
852
+ "notNull": true,
853
+ "autoincrement": false
854
+ },
855
+ "ipAddress": {
856
+ "name": "ipAddress",
857
+ "type": "text",
858
+ "primaryKey": false,
859
+ "notNull": false,
860
+ "autoincrement": false
861
+ },
862
+ "userAgent": {
863
+ "name": "userAgent",
864
+ "type": "text",
865
+ "primaryKey": false,
866
+ "notNull": false,
867
+ "autoincrement": false
868
+ },
869
+ "createdAt": {
870
+ "name": "createdAt",
871
+ "type": "integer",
872
+ "primaryKey": false,
873
+ "notNull": true,
874
+ "autoincrement": false,
875
+ "default": "(unixepoch() * 1000)"
876
+ },
877
+ "updatedAt": {
878
+ "name": "updatedAt",
879
+ "type": "integer",
880
+ "primaryKey": false,
881
+ "notNull": true,
882
+ "autoincrement": false,
883
+ "default": "(unixepoch() * 1000)"
884
+ }
885
+ },
886
+ "indexes": {
887
+ "session_token_unique": {
888
+ "name": "session_token_unique",
889
+ "columns": [
890
+ "token"
891
+ ],
892
+ "isUnique": true
893
+ }
894
+ },
895
+ "foreignKeys": {
896
+ "session_userId_user_id_fk": {
897
+ "name": "session_userId_user_id_fk",
898
+ "tableFrom": "session",
899
+ "tableTo": "user",
900
+ "columnsFrom": [
901
+ "userId"
902
+ ],
903
+ "columnsTo": [
904
+ "id"
905
+ ],
906
+ "onDelete": "cascade",
907
+ "onUpdate": "no action"
908
+ }
909
+ },
910
+ "compositePrimaryKeys": {},
911
+ "uniqueConstraints": {},
912
+ "checkConstraints": {}
913
+ },
914
+ "user": {
915
+ "name": "user",
916
+ "columns": {
917
+ "id": {
918
+ "name": "id",
919
+ "type": "text",
920
+ "primaryKey": true,
921
+ "notNull": true,
922
+ "autoincrement": false
923
+ },
924
+ "name": {
925
+ "name": "name",
926
+ "type": "text",
927
+ "primaryKey": false,
928
+ "notNull": false,
929
+ "autoincrement": false
930
+ },
931
+ "email": {
932
+ "name": "email",
933
+ "type": "text",
934
+ "primaryKey": false,
935
+ "notNull": true,
936
+ "autoincrement": false
937
+ },
938
+ "emailVerified": {
939
+ "name": "emailVerified",
940
+ "type": "integer",
941
+ "primaryKey": false,
942
+ "notNull": true,
943
+ "autoincrement": false,
944
+ "default": false
945
+ },
946
+ "image": {
947
+ "name": "image",
948
+ "type": "text",
949
+ "primaryKey": false,
950
+ "notNull": false,
951
+ "autoincrement": false
952
+ },
953
+ "createdAt": {
954
+ "name": "createdAt",
955
+ "type": "integer",
956
+ "primaryKey": false,
957
+ "notNull": true,
958
+ "autoincrement": false,
959
+ "default": "(unixepoch() * 1000)"
960
+ },
961
+ "updatedAt": {
962
+ "name": "updatedAt",
963
+ "type": "integer",
964
+ "primaryKey": false,
965
+ "notNull": true,
966
+ "autoincrement": false,
967
+ "default": "(unixepoch() * 1000)"
968
+ }
969
+ },
970
+ "indexes": {
971
+ "user_email_unique": {
972
+ "name": "user_email_unique",
973
+ "columns": [
974
+ "email"
975
+ ],
976
+ "isUnique": true
977
+ }
978
+ },
979
+ "foreignKeys": {},
980
+ "compositePrimaryKeys": {},
981
+ "uniqueConstraints": {},
982
+ "checkConstraints": {}
983
+ },
984
+ "verification": {
985
+ "name": "verification",
986
+ "columns": {
987
+ "id": {
988
+ "name": "id",
989
+ "type": "text",
990
+ "primaryKey": true,
991
+ "notNull": true,
992
+ "autoincrement": false
993
+ },
994
+ "identifier": {
995
+ "name": "identifier",
996
+ "type": "text",
997
+ "primaryKey": false,
998
+ "notNull": true,
999
+ "autoincrement": false
1000
+ },
1001
+ "value": {
1002
+ "name": "value",
1003
+ "type": "text",
1004
+ "primaryKey": false,
1005
+ "notNull": true,
1006
+ "autoincrement": false
1007
+ },
1008
+ "expiresAt": {
1009
+ "name": "expiresAt",
1010
+ "type": "integer",
1011
+ "primaryKey": false,
1012
+ "notNull": true,
1013
+ "autoincrement": false
1014
+ },
1015
+ "createdAt": {
1016
+ "name": "createdAt",
1017
+ "type": "integer",
1018
+ "primaryKey": false,
1019
+ "notNull": true,
1020
+ "autoincrement": false,
1021
+ "default": "(unixepoch() * 1000)"
1022
+ },
1023
+ "updatedAt": {
1024
+ "name": "updatedAt",
1025
+ "type": "integer",
1026
+ "primaryKey": false,
1027
+ "notNull": true,
1028
+ "autoincrement": false,
1029
+ "default": "(unixepoch() * 1000)"
1030
+ }
1031
+ },
1032
+ "indexes": {},
1033
+ "foreignKeys": {},
1034
+ "compositePrimaryKeys": {},
1035
+ "uniqueConstraints": {},
1036
+ "checkConstraints": {}
1037
+ },
1038
+ "workspaces": {
1039
+ "name": "workspaces",
1040
+ "columns": {
1041
+ "id": {
1042
+ "name": "id",
1043
+ "type": "integer",
1044
+ "primaryKey": true,
1045
+ "notNull": true,
1046
+ "autoincrement": true
1047
+ },
1048
+ "slug": {
1049
+ "name": "slug",
1050
+ "type": "text",
1051
+ "primaryKey": false,
1052
+ "notNull": true,
1053
+ "autoincrement": false
1054
+ },
1055
+ "name": {
1056
+ "name": "name",
1057
+ "type": "text",
1058
+ "primaryKey": false,
1059
+ "notNull": true,
1060
+ "autoincrement": false
1061
+ },
1062
+ "created_by_user_id": {
1063
+ "name": "created_by_user_id",
1064
+ "type": "text",
1065
+ "primaryKey": false,
1066
+ "notNull": true,
1067
+ "autoincrement": false
1068
+ },
1069
+ "created_at": {
1070
+ "name": "created_at",
1071
+ "type": "integer",
1072
+ "primaryKey": false,
1073
+ "notNull": true,
1074
+ "autoincrement": false,
1075
+ "default": "(unixepoch() * 1000)"
1076
+ },
1077
+ "updated_at": {
1078
+ "name": "updated_at",
1079
+ "type": "integer",
1080
+ "primaryKey": false,
1081
+ "notNull": true,
1082
+ "autoincrement": false,
1083
+ "default": "(unixepoch() * 1000)"
1084
+ }
1085
+ },
1086
+ "indexes": {
1087
+ "workspaces_slug_idx": {
1088
+ "name": "workspaces_slug_idx",
1089
+ "columns": [
1090
+ "slug"
1091
+ ],
1092
+ "isUnique": true
1093
+ },
1094
+ "workspaces_owner_idx": {
1095
+ "name": "workspaces_owner_idx",
1096
+ "columns": [
1097
+ "created_by_user_id"
1098
+ ],
1099
+ "isUnique": false
1100
+ }
1101
+ },
1102
+ "foreignKeys": {
1103
+ "workspaces_created_by_user_id_user_id_fk": {
1104
+ "name": "workspaces_created_by_user_id_user_id_fk",
1105
+ "tableFrom": "workspaces",
1106
+ "tableTo": "user",
1107
+ "columnsFrom": [
1108
+ "created_by_user_id"
1109
+ ],
1110
+ "columnsTo": [
1111
+ "id"
1112
+ ],
1113
+ "onDelete": "no action",
1114
+ "onUpdate": "no action"
1115
+ }
1116
+ },
1117
+ "compositePrimaryKeys": {},
1118
+ "uniqueConstraints": {},
1119
+ "checkConstraints": {}
1120
+ },
1121
+ "folders": {
1122
+ "name": "folders",
1123
+ "columns": {
1124
+ "id": {
1125
+ "name": "id",
1126
+ "type": "integer",
1127
+ "primaryKey": true,
1128
+ "notNull": true,
1129
+ "autoincrement": true
1130
+ },
1131
+ "public_id": {
1132
+ "name": "public_id",
1133
+ "type": "text",
1134
+ "primaryKey": false,
1135
+ "notNull": true,
1136
+ "autoincrement": false
1137
+ },
1138
+ "workspace_id": {
1139
+ "name": "workspace_id",
1140
+ "type": "integer",
1141
+ "primaryKey": false,
1142
+ "notNull": true,
1143
+ "autoincrement": false
1144
+ },
1145
+ "parent_id": {
1146
+ "name": "parent_id",
1147
+ "type": "integer",
1148
+ "primaryKey": false,
1149
+ "notNull": false,
1150
+ "autoincrement": false
1151
+ },
1152
+ "name": {
1153
+ "name": "name",
1154
+ "type": "text",
1155
+ "primaryKey": false,
1156
+ "notNull": true,
1157
+ "autoincrement": false
1158
+ },
1159
+ "display_name": {
1160
+ "name": "display_name",
1161
+ "type": "text",
1162
+ "primaryKey": false,
1163
+ "notNull": true,
1164
+ "autoincrement": false
1165
+ },
1166
+ "created_at": {
1167
+ "name": "created_at",
1168
+ "type": "integer",
1169
+ "primaryKey": false,
1170
+ "notNull": true,
1171
+ "autoincrement": false,
1172
+ "default": "(unixepoch() * 1000)"
1173
+ },
1174
+ "updated_at": {
1175
+ "name": "updated_at",
1176
+ "type": "integer",
1177
+ "primaryKey": false,
1178
+ "notNull": true,
1179
+ "autoincrement": false,
1180
+ "default": "(unixepoch() * 1000)"
1181
+ }
1182
+ },
1183
+ "indexes": {
1184
+ "folders_public_id_unique": {
1185
+ "name": "folders_public_id_unique",
1186
+ "columns": [
1187
+ "public_id"
1188
+ ],
1189
+ "isUnique": true
1190
+ },
1191
+ "folders_public_id_idx": {
1192
+ "name": "folders_public_id_idx",
1193
+ "columns": [
1194
+ "public_id"
1195
+ ],
1196
+ "isUnique": false
1197
+ },
1198
+ "folders_workspace_parent_idx": {
1199
+ "name": "folders_workspace_parent_idx",
1200
+ "columns": [
1201
+ "workspace_id",
1202
+ "parent_id"
1203
+ ],
1204
+ "isUnique": false
1205
+ }
1206
+ },
1207
+ "foreignKeys": {
1208
+ "folders_workspace_id_workspaces_id_fk": {
1209
+ "name": "folders_workspace_id_workspaces_id_fk",
1210
+ "tableFrom": "folders",
1211
+ "tableTo": "workspaces",
1212
+ "columnsFrom": [
1213
+ "workspace_id"
1214
+ ],
1215
+ "columnsTo": [
1216
+ "id"
1217
+ ],
1218
+ "onDelete": "no action",
1219
+ "onUpdate": "no action"
1220
+ },
1221
+ "folders_parent_id_folders_id_fk": {
1222
+ "name": "folders_parent_id_folders_id_fk",
1223
+ "tableFrom": "folders",
1224
+ "tableTo": "folders",
1225
+ "columnsFrom": [
1226
+ "parent_id"
1227
+ ],
1228
+ "columnsTo": [
1229
+ "id"
1230
+ ],
1231
+ "onDelete": "no action",
1232
+ "onUpdate": "no action"
1233
+ }
1234
+ },
1235
+ "compositePrimaryKeys": {},
1236
+ "uniqueConstraints": {},
1237
+ "checkConstraints": {}
1238
+ },
1239
+ "notes": {
1240
+ "name": "notes",
1241
+ "columns": {
1242
+ "id": {
1243
+ "name": "id",
1244
+ "type": "integer",
1245
+ "primaryKey": true,
1246
+ "notNull": true,
1247
+ "autoincrement": true
1248
+ },
1249
+ "public_id": {
1250
+ "name": "public_id",
1251
+ "type": "text",
1252
+ "primaryKey": false,
1253
+ "notNull": true,
1254
+ "autoincrement": false
1255
+ },
1256
+ "workspace_id": {
1257
+ "name": "workspace_id",
1258
+ "type": "integer",
1259
+ "primaryKey": false,
1260
+ "notNull": true,
1261
+ "autoincrement": false
1262
+ },
1263
+ "folder_id": {
1264
+ "name": "folder_id",
1265
+ "type": "integer",
1266
+ "primaryKey": false,
1267
+ "notNull": false,
1268
+ "autoincrement": false
1269
+ },
1270
+ "name": {
1271
+ "name": "name",
1272
+ "type": "text",
1273
+ "primaryKey": false,
1274
+ "notNull": true,
1275
+ "autoincrement": false
1276
+ },
1277
+ "title": {
1278
+ "name": "title",
1279
+ "type": "text",
1280
+ "primaryKey": false,
1281
+ "notNull": true,
1282
+ "autoincrement": false
1283
+ },
1284
+ "content": {
1285
+ "name": "content",
1286
+ "type": "text",
1287
+ "primaryKey": false,
1288
+ "notNull": true,
1289
+ "autoincrement": false
1290
+ },
1291
+ "createdAt": {
1292
+ "name": "createdAt",
1293
+ "type": "integer",
1294
+ "primaryKey": false,
1295
+ "notNull": true,
1296
+ "autoincrement": false,
1297
+ "default": "(unixepoch() * 1000)"
1298
+ },
1299
+ "updatedAt": {
1300
+ "name": "updatedAt",
1301
+ "type": "integer",
1302
+ "primaryKey": false,
1303
+ "notNull": true,
1304
+ "autoincrement": false,
1305
+ "default": "(unixepoch() * 1000)"
1306
+ }
1307
+ },
1308
+ "indexes": {
1309
+ "notes_public_id_unique": {
1310
+ "name": "notes_public_id_unique",
1311
+ "columns": [
1312
+ "public_id"
1313
+ ],
1314
+ "isUnique": true
1315
+ },
1316
+ "notes_public_id_idx": {
1317
+ "name": "notes_public_id_idx",
1318
+ "columns": [
1319
+ "public_id"
1320
+ ],
1321
+ "isUnique": false
1322
+ },
1323
+ "notes_workspace_folder_idx": {
1324
+ "name": "notes_workspace_folder_idx",
1325
+ "columns": [
1326
+ "workspace_id",
1327
+ "folder_id"
1328
+ ],
1329
+ "isUnique": false
1330
+ },
1331
+ "notes_workspace_updated_idx": {
1332
+ "name": "notes_workspace_updated_idx",
1333
+ "columns": [
1334
+ "workspace_id",
1335
+ "updatedAt"
1336
+ ],
1337
+ "isUnique": false
1338
+ }
1339
+ },
1340
+ "foreignKeys": {
1341
+ "notes_workspace_id_workspaces_id_fk": {
1342
+ "name": "notes_workspace_id_workspaces_id_fk",
1343
+ "tableFrom": "notes",
1344
+ "tableTo": "workspaces",
1345
+ "columnsFrom": [
1346
+ "workspace_id"
1347
+ ],
1348
+ "columnsTo": [
1349
+ "id"
1350
+ ],
1351
+ "onDelete": "no action",
1352
+ "onUpdate": "no action"
1353
+ },
1354
+ "notes_folder_id_folders_id_fk": {
1355
+ "name": "notes_folder_id_folders_id_fk",
1356
+ "tableFrom": "notes",
1357
+ "tableTo": "folders",
1358
+ "columnsFrom": [
1359
+ "folder_id"
1360
+ ],
1361
+ "columnsTo": [
1362
+ "id"
1363
+ ],
1364
+ "onDelete": "no action",
1365
+ "onUpdate": "no action"
1366
+ }
1367
+ },
1368
+ "compositePrimaryKeys": {},
1369
+ "uniqueConstraints": {},
1370
+ "checkConstraints": {}
1371
+ },
1372
+ "revisions": {
1373
+ "name": "revisions",
1374
+ "columns": {
1375
+ "id": {
1376
+ "name": "id",
1377
+ "type": "integer",
1378
+ "primaryKey": true,
1379
+ "notNull": true,
1380
+ "autoincrement": true
1381
+ },
1382
+ "workspace_id": {
1383
+ "name": "workspace_id",
1384
+ "type": "integer",
1385
+ "primaryKey": false,
1386
+ "notNull": true,
1387
+ "autoincrement": false
1388
+ },
1389
+ "note_id": {
1390
+ "name": "note_id",
1391
+ "type": "integer",
1392
+ "primaryKey": false,
1393
+ "notNull": true,
1394
+ "autoincrement": false
1395
+ },
1396
+ "author_user_id": {
1397
+ "name": "author_user_id",
1398
+ "type": "text",
1399
+ "primaryKey": false,
1400
+ "notNull": true,
1401
+ "autoincrement": false
1402
+ },
1403
+ "content": {
1404
+ "name": "content",
1405
+ "type": "text",
1406
+ "primaryKey": false,
1407
+ "notNull": true,
1408
+ "autoincrement": false
1409
+ },
1410
+ "created_at": {
1411
+ "name": "created_at",
1412
+ "type": "integer",
1413
+ "primaryKey": false,
1414
+ "notNull": true,
1415
+ "autoincrement": false,
1416
+ "default": "(unixepoch() * 1000)"
1417
+ }
1418
+ },
1419
+ "indexes": {
1420
+ "revisions_note_created_idx": {
1421
+ "name": "revisions_note_created_idx",
1422
+ "columns": [
1423
+ "note_id",
1424
+ "created_at"
1425
+ ],
1426
+ "isUnique": false
1427
+ }
1428
+ },
1429
+ "foreignKeys": {
1430
+ "revisions_workspace_id_workspaces_id_fk": {
1431
+ "name": "revisions_workspace_id_workspaces_id_fk",
1432
+ "tableFrom": "revisions",
1433
+ "tableTo": "workspaces",
1434
+ "columnsFrom": [
1435
+ "workspace_id"
1436
+ ],
1437
+ "columnsTo": [
1438
+ "id"
1439
+ ],
1440
+ "onDelete": "no action",
1441
+ "onUpdate": "no action"
1442
+ },
1443
+ "revisions_note_id_notes_id_fk": {
1444
+ "name": "revisions_note_id_notes_id_fk",
1445
+ "tableFrom": "revisions",
1446
+ "tableTo": "notes",
1447
+ "columnsFrom": [
1448
+ "note_id"
1449
+ ],
1450
+ "columnsTo": [
1451
+ "id"
1452
+ ],
1453
+ "onDelete": "no action",
1454
+ "onUpdate": "no action"
1455
+ },
1456
+ "revisions_author_user_id_user_id_fk": {
1457
+ "name": "revisions_author_user_id_user_id_fk",
1458
+ "tableFrom": "revisions",
1459
+ "tableTo": "user",
1460
+ "columnsFrom": [
1461
+ "author_user_id"
1462
+ ],
1463
+ "columnsTo": [
1464
+ "id"
1465
+ ],
1466
+ "onDelete": "no action",
1467
+ "onUpdate": "no action"
1468
+ }
1469
+ },
1470
+ "compositePrimaryKeys": {},
1471
+ "uniqueConstraints": {},
1472
+ "checkConstraints": {}
1473
+ },
1474
+ "note_line_blame": {
1475
+ "name": "note_line_blame",
1476
+ "columns": {
1477
+ "note_id": {
1478
+ "name": "note_id",
1479
+ "type": "integer",
1480
+ "primaryKey": false,
1481
+ "notNull": true,
1482
+ "autoincrement": false
1483
+ },
1484
+ "line_number": {
1485
+ "name": "line_number",
1486
+ "type": "integer",
1487
+ "primaryKey": false,
1488
+ "notNull": true,
1489
+ "autoincrement": false
1490
+ },
1491
+ "author_user_id": {
1492
+ "name": "author_user_id",
1493
+ "type": "text",
1494
+ "primaryKey": false,
1495
+ "notNull": true,
1496
+ "autoincrement": false
1497
+ },
1498
+ "revision_id": {
1499
+ "name": "revision_id",
1500
+ "type": "integer",
1501
+ "primaryKey": false,
1502
+ "notNull": true,
1503
+ "autoincrement": false
1504
+ },
1505
+ "touched_at": {
1506
+ "name": "touched_at",
1507
+ "type": "integer",
1508
+ "primaryKey": false,
1509
+ "notNull": true,
1510
+ "autoincrement": false,
1511
+ "default": "(unixepoch() * 1000)"
1512
+ }
1513
+ },
1514
+ "indexes": {
1515
+ "note_line_blame_note_idx": {
1516
+ "name": "note_line_blame_note_idx",
1517
+ "columns": [
1518
+ "note_id"
1519
+ ],
1520
+ "isUnique": false
1521
+ }
1522
+ },
1523
+ "foreignKeys": {
1524
+ "note_line_blame_note_id_notes_id_fk": {
1525
+ "name": "note_line_blame_note_id_notes_id_fk",
1526
+ "tableFrom": "note_line_blame",
1527
+ "tableTo": "notes",
1528
+ "columnsFrom": [
1529
+ "note_id"
1530
+ ],
1531
+ "columnsTo": [
1532
+ "id"
1533
+ ],
1534
+ "onDelete": "no action",
1535
+ "onUpdate": "no action"
1536
+ },
1537
+ "note_line_blame_author_user_id_user_id_fk": {
1538
+ "name": "note_line_blame_author_user_id_user_id_fk",
1539
+ "tableFrom": "note_line_blame",
1540
+ "tableTo": "user",
1541
+ "columnsFrom": [
1542
+ "author_user_id"
1543
+ ],
1544
+ "columnsTo": [
1545
+ "id"
1546
+ ],
1547
+ "onDelete": "no action",
1548
+ "onUpdate": "no action"
1549
+ },
1550
+ "note_line_blame_revision_id_revisions_id_fk": {
1551
+ "name": "note_line_blame_revision_id_revisions_id_fk",
1552
+ "tableFrom": "note_line_blame",
1553
+ "tableTo": "revisions",
1554
+ "columnsFrom": [
1555
+ "revision_id"
1556
+ ],
1557
+ "columnsTo": [
1558
+ "id"
1559
+ ],
1560
+ "onDelete": "no action",
1561
+ "onUpdate": "no action"
1562
+ }
1563
+ },
1564
+ "compositePrimaryKeys": {
1565
+ "note_line_blame_note_id_line_number_pk": {
1566
+ "columns": [
1567
+ "note_id",
1568
+ "line_number"
1569
+ ],
1570
+ "name": "note_line_blame_note_id_line_number_pk"
1571
+ }
1572
+ },
1573
+ "uniqueConstraints": {},
1574
+ "checkConstraints": {}
1575
+ }
1576
+ },
1577
+ "views": {},
1578
+ "enums": {},
1579
+ "_meta": {
1580
+ "schemas": {},
1581
+ "tables": {},
1582
+ "columns": {}
1583
+ },
1584
+ "internal": {
1585
+ "indexes": {}
1586
+ }
1587
+ }