@matteai/stma-server 0.11.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.
Files changed (43) hide show
  1. package/dist/index.js +18444 -0
  2. package/dist/index.js.map +1 -0
  3. package/drizzle/0000_nappy_franklin_storm.sql +115 -0
  4. package/drizzle/0001_grey_ogun.sql +1 -0
  5. package/drizzle/0002_crazy_vindicator.sql +1 -0
  6. package/drizzle/0003_tan_puma.sql +1 -0
  7. package/drizzle/0004_dry_selene.sql +40 -0
  8. package/drizzle/0005_hot_the_fallen.sql +103 -0
  9. package/drizzle/0006_cooing_cargill.sql +42 -0
  10. package/drizzle/0007_public_slyde.sql +12 -0
  11. package/drizzle/0008_loving_maestro.sql +9 -0
  12. package/drizzle/0009_cultured_bucky.sql +15 -0
  13. package/drizzle/0010_dazzling_mephisto.sql +26 -0
  14. package/drizzle/0011_kind_toxin.sql +20 -0
  15. package/drizzle/0012_ordinary_jamie_braddock.sql +31 -0
  16. package/drizzle/0013_warm_silk_fever.sql +7 -0
  17. package/drizzle/0014_talented_squadron_sinister.sql +22 -0
  18. package/drizzle/0015_wild_bill_hollister.sql +8 -0
  19. package/drizzle/0016_lucky_shooting_star.sql +8 -0
  20. package/drizzle/0017_same_blindfold.sql +21 -0
  21. package/drizzle/0018_premium_namora.sql +20 -0
  22. package/drizzle/0019_brown_dragon_lord.sql +6 -0
  23. package/drizzle/meta/0000_snapshot.json +845 -0
  24. package/drizzle/meta/0001_snapshot.json +851 -0
  25. package/drizzle/meta/0002_snapshot.json +857 -0
  26. package/drizzle/meta/0003_snapshot.json +863 -0
  27. package/drizzle/meta/0004_snapshot.json +1204 -0
  28. package/drizzle/meta/0005_snapshot.json +2063 -0
  29. package/drizzle/meta/0006_snapshot.json +2080 -0
  30. package/drizzle/meta/0007_snapshot.json +2157 -0
  31. package/drizzle/meta/0008_snapshot.json +2216 -0
  32. package/drizzle/meta/0009_snapshot.json +2314 -0
  33. package/drizzle/meta/0010_snapshot.json +2431 -0
  34. package/drizzle/meta/0011_snapshot.json +2608 -0
  35. package/drizzle/meta/0012_snapshot.json +2870 -0
  36. package/drizzle/meta/0013_snapshot.json +2918 -0
  37. package/drizzle/meta/0014_snapshot.json +3081 -0
  38. package/drizzle/meta/0015_snapshot.json +3093 -0
  39. package/drizzle/meta/0017_snapshot.json +3271 -0
  40. package/drizzle/meta/0018_snapshot.json +3430 -0
  41. package/drizzle/meta/0019_snapshot.json +3466 -0
  42. package/drizzle/meta/_journal.json +146 -0
  43. package/package.json +67 -0
@@ -0,0 +1,845 @@
1
+ {
2
+ "id": "7a4929cb-9a95-4748-8559-fc05f56c0210",
3
+ "prevId": "00000000-0000-0000-0000-000000000000",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.debug_sessions": {
8
+ "name": "debug_sessions",
9
+ "schema": "",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "uuid",
14
+ "primaryKey": true,
15
+ "notNull": true,
16
+ "default": "gen_random_uuid()"
17
+ },
18
+ "team_id": {
19
+ "name": "team_id",
20
+ "type": "uuid",
21
+ "primaryKey": false,
22
+ "notNull": true
23
+ },
24
+ "title": {
25
+ "name": "title",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": true
29
+ },
30
+ "status": {
31
+ "name": "status",
32
+ "type": "text",
33
+ "primaryKey": false,
34
+ "notNull": true,
35
+ "default": "'open'"
36
+ },
37
+ "opened_by": {
38
+ "name": "opened_by",
39
+ "type": "uuid",
40
+ "primaryKey": false,
41
+ "notNull": false
42
+ },
43
+ "context": {
44
+ "name": "context",
45
+ "type": "jsonb",
46
+ "primaryKey": false,
47
+ "notNull": false
48
+ },
49
+ "resolution": {
50
+ "name": "resolution",
51
+ "type": "jsonb",
52
+ "primaryKey": false,
53
+ "notNull": false
54
+ },
55
+ "created_at": {
56
+ "name": "created_at",
57
+ "type": "timestamp with time zone",
58
+ "primaryKey": false,
59
+ "notNull": true,
60
+ "default": "now()"
61
+ },
62
+ "resolved_at": {
63
+ "name": "resolved_at",
64
+ "type": "timestamp with time zone",
65
+ "primaryKey": false,
66
+ "notNull": false
67
+ }
68
+ },
69
+ "indexes": {},
70
+ "foreignKeys": {
71
+ "debug_sessions_team_id_teams_id_fk": {
72
+ "name": "debug_sessions_team_id_teams_id_fk",
73
+ "tableFrom": "debug_sessions",
74
+ "tableTo": "teams",
75
+ "columnsFrom": [
76
+ "team_id"
77
+ ],
78
+ "columnsTo": [
79
+ "id"
80
+ ],
81
+ "onDelete": "cascade",
82
+ "onUpdate": "no action"
83
+ },
84
+ "debug_sessions_opened_by_users_id_fk": {
85
+ "name": "debug_sessions_opened_by_users_id_fk",
86
+ "tableFrom": "debug_sessions",
87
+ "tableTo": "users",
88
+ "columnsFrom": [
89
+ "opened_by"
90
+ ],
91
+ "columnsTo": [
92
+ "id"
93
+ ],
94
+ "onDelete": "no action",
95
+ "onUpdate": "no action"
96
+ }
97
+ },
98
+ "compositePrimaryKeys": {},
99
+ "uniqueConstraints": {},
100
+ "policies": {},
101
+ "checkConstraints": {},
102
+ "isRLSEnabled": false
103
+ },
104
+ "public.invites": {
105
+ "name": "invites",
106
+ "schema": "",
107
+ "columns": {
108
+ "id": {
109
+ "name": "id",
110
+ "type": "uuid",
111
+ "primaryKey": true,
112
+ "notNull": true,
113
+ "default": "gen_random_uuid()"
114
+ },
115
+ "team_id": {
116
+ "name": "team_id",
117
+ "type": "uuid",
118
+ "primaryKey": false,
119
+ "notNull": true
120
+ },
121
+ "code": {
122
+ "name": "code",
123
+ "type": "text",
124
+ "primaryKey": false,
125
+ "notNull": true
126
+ },
127
+ "created_by": {
128
+ "name": "created_by",
129
+ "type": "uuid",
130
+ "primaryKey": false,
131
+ "notNull": false
132
+ },
133
+ "expires_at": {
134
+ "name": "expires_at",
135
+ "type": "timestamp with time zone",
136
+ "primaryKey": false,
137
+ "notNull": true
138
+ },
139
+ "uses": {
140
+ "name": "uses",
141
+ "type": "integer",
142
+ "primaryKey": false,
143
+ "notNull": true,
144
+ "default": 0
145
+ },
146
+ "max_uses": {
147
+ "name": "max_uses",
148
+ "type": "integer",
149
+ "primaryKey": false,
150
+ "notNull": false
151
+ },
152
+ "created_at": {
153
+ "name": "created_at",
154
+ "type": "timestamp with time zone",
155
+ "primaryKey": false,
156
+ "notNull": true,
157
+ "default": "now()"
158
+ }
159
+ },
160
+ "indexes": {},
161
+ "foreignKeys": {
162
+ "invites_team_id_teams_id_fk": {
163
+ "name": "invites_team_id_teams_id_fk",
164
+ "tableFrom": "invites",
165
+ "tableTo": "teams",
166
+ "columnsFrom": [
167
+ "team_id"
168
+ ],
169
+ "columnsTo": [
170
+ "id"
171
+ ],
172
+ "onDelete": "cascade",
173
+ "onUpdate": "no action"
174
+ },
175
+ "invites_created_by_users_id_fk": {
176
+ "name": "invites_created_by_users_id_fk",
177
+ "tableFrom": "invites",
178
+ "tableTo": "users",
179
+ "columnsFrom": [
180
+ "created_by"
181
+ ],
182
+ "columnsTo": [
183
+ "id"
184
+ ],
185
+ "onDelete": "no action",
186
+ "onUpdate": "no action"
187
+ }
188
+ },
189
+ "compositePrimaryKeys": {},
190
+ "uniqueConstraints": {
191
+ "invites_code_unique": {
192
+ "name": "invites_code_unique",
193
+ "nullsNotDistinct": false,
194
+ "columns": [
195
+ "code"
196
+ ]
197
+ }
198
+ },
199
+ "policies": {},
200
+ "checkConstraints": {},
201
+ "isRLSEnabled": false
202
+ },
203
+ "public.memberships": {
204
+ "name": "memberships",
205
+ "schema": "",
206
+ "columns": {
207
+ "team_id": {
208
+ "name": "team_id",
209
+ "type": "uuid",
210
+ "primaryKey": false,
211
+ "notNull": true
212
+ },
213
+ "user_id": {
214
+ "name": "user_id",
215
+ "type": "uuid",
216
+ "primaryKey": false,
217
+ "notNull": true
218
+ },
219
+ "role": {
220
+ "name": "role",
221
+ "type": "text",
222
+ "primaryKey": false,
223
+ "notNull": true,
224
+ "default": "'member'"
225
+ },
226
+ "created_at": {
227
+ "name": "created_at",
228
+ "type": "timestamp with time zone",
229
+ "primaryKey": false,
230
+ "notNull": true,
231
+ "default": "now()"
232
+ }
233
+ },
234
+ "indexes": {},
235
+ "foreignKeys": {
236
+ "memberships_team_id_teams_id_fk": {
237
+ "name": "memberships_team_id_teams_id_fk",
238
+ "tableFrom": "memberships",
239
+ "tableTo": "teams",
240
+ "columnsFrom": [
241
+ "team_id"
242
+ ],
243
+ "columnsTo": [
244
+ "id"
245
+ ],
246
+ "onDelete": "cascade",
247
+ "onUpdate": "no action"
248
+ },
249
+ "memberships_user_id_users_id_fk": {
250
+ "name": "memberships_user_id_users_id_fk",
251
+ "tableFrom": "memberships",
252
+ "tableTo": "users",
253
+ "columnsFrom": [
254
+ "user_id"
255
+ ],
256
+ "columnsTo": [
257
+ "id"
258
+ ],
259
+ "onDelete": "cascade",
260
+ "onUpdate": "no action"
261
+ }
262
+ },
263
+ "compositePrimaryKeys": {
264
+ "memberships_team_id_user_id_pk": {
265
+ "name": "memberships_team_id_user_id_pk",
266
+ "columns": [
267
+ "team_id",
268
+ "user_id"
269
+ ]
270
+ }
271
+ },
272
+ "uniqueConstraints": {},
273
+ "policies": {},
274
+ "checkConstraints": {},
275
+ "isRLSEnabled": false
276
+ },
277
+ "public.messages": {
278
+ "name": "messages",
279
+ "schema": "",
280
+ "columns": {
281
+ "id": {
282
+ "name": "id",
283
+ "type": "uuid",
284
+ "primaryKey": true,
285
+ "notNull": true,
286
+ "default": "gen_random_uuid()"
287
+ },
288
+ "session_id": {
289
+ "name": "session_id",
290
+ "type": "uuid",
291
+ "primaryKey": false,
292
+ "notNull": true
293
+ },
294
+ "author_id": {
295
+ "name": "author_id",
296
+ "type": "uuid",
297
+ "primaryKey": false,
298
+ "notNull": false
299
+ },
300
+ "kind": {
301
+ "name": "kind",
302
+ "type": "text",
303
+ "primaryKey": false,
304
+ "notNull": true,
305
+ "default": "'note'"
306
+ },
307
+ "body": {
308
+ "name": "body",
309
+ "type": "text",
310
+ "primaryKey": false,
311
+ "notNull": true
312
+ },
313
+ "attachments": {
314
+ "name": "attachments",
315
+ "type": "jsonb",
316
+ "primaryKey": false,
317
+ "notNull": false
318
+ },
319
+ "created_at": {
320
+ "name": "created_at",
321
+ "type": "timestamp with time zone",
322
+ "primaryKey": false,
323
+ "notNull": true,
324
+ "default": "now()"
325
+ }
326
+ },
327
+ "indexes": {
328
+ "messages_session_created": {
329
+ "name": "messages_session_created",
330
+ "columns": [
331
+ {
332
+ "expression": "session_id",
333
+ "isExpression": false,
334
+ "asc": true,
335
+ "nulls": "last"
336
+ },
337
+ {
338
+ "expression": "created_at",
339
+ "isExpression": false,
340
+ "asc": true,
341
+ "nulls": "last"
342
+ }
343
+ ],
344
+ "isUnique": false,
345
+ "concurrently": false,
346
+ "method": "btree",
347
+ "with": {}
348
+ }
349
+ },
350
+ "foreignKeys": {
351
+ "messages_session_id_debug_sessions_id_fk": {
352
+ "name": "messages_session_id_debug_sessions_id_fk",
353
+ "tableFrom": "messages",
354
+ "tableTo": "debug_sessions",
355
+ "columnsFrom": [
356
+ "session_id"
357
+ ],
358
+ "columnsTo": [
359
+ "id"
360
+ ],
361
+ "onDelete": "cascade",
362
+ "onUpdate": "no action"
363
+ },
364
+ "messages_author_id_users_id_fk": {
365
+ "name": "messages_author_id_users_id_fk",
366
+ "tableFrom": "messages",
367
+ "tableTo": "users",
368
+ "columnsFrom": [
369
+ "author_id"
370
+ ],
371
+ "columnsTo": [
372
+ "id"
373
+ ],
374
+ "onDelete": "no action",
375
+ "onUpdate": "no action"
376
+ }
377
+ },
378
+ "compositePrimaryKeys": {},
379
+ "uniqueConstraints": {},
380
+ "policies": {},
381
+ "checkConstraints": {},
382
+ "isRLSEnabled": false
383
+ },
384
+ "public.read_state": {
385
+ "name": "read_state",
386
+ "schema": "",
387
+ "columns": {
388
+ "user_id": {
389
+ "name": "user_id",
390
+ "type": "uuid",
391
+ "primaryKey": false,
392
+ "notNull": true
393
+ },
394
+ "session_id": {
395
+ "name": "session_id",
396
+ "type": "uuid",
397
+ "primaryKey": false,
398
+ "notNull": true
399
+ },
400
+ "last_read_at": {
401
+ "name": "last_read_at",
402
+ "type": "timestamp with time zone",
403
+ "primaryKey": false,
404
+ "notNull": true,
405
+ "default": "now()"
406
+ }
407
+ },
408
+ "indexes": {},
409
+ "foreignKeys": {
410
+ "read_state_user_id_users_id_fk": {
411
+ "name": "read_state_user_id_users_id_fk",
412
+ "tableFrom": "read_state",
413
+ "tableTo": "users",
414
+ "columnsFrom": [
415
+ "user_id"
416
+ ],
417
+ "columnsTo": [
418
+ "id"
419
+ ],
420
+ "onDelete": "cascade",
421
+ "onUpdate": "no action"
422
+ },
423
+ "read_state_session_id_debug_sessions_id_fk": {
424
+ "name": "read_state_session_id_debug_sessions_id_fk",
425
+ "tableFrom": "read_state",
426
+ "tableTo": "debug_sessions",
427
+ "columnsFrom": [
428
+ "session_id"
429
+ ],
430
+ "columnsTo": [
431
+ "id"
432
+ ],
433
+ "onDelete": "cascade",
434
+ "onUpdate": "no action"
435
+ }
436
+ },
437
+ "compositePrimaryKeys": {
438
+ "read_state_user_id_session_id_pk": {
439
+ "name": "read_state_user_id_session_id_pk",
440
+ "columns": [
441
+ "user_id",
442
+ "session_id"
443
+ ]
444
+ }
445
+ },
446
+ "uniqueConstraints": {},
447
+ "policies": {},
448
+ "checkConstraints": {},
449
+ "isRLSEnabled": false
450
+ },
451
+ "public.snapshots": {
452
+ "name": "snapshots",
453
+ "schema": "",
454
+ "columns": {
455
+ "id": {
456
+ "name": "id",
457
+ "type": "uuid",
458
+ "primaryKey": true,
459
+ "notNull": true,
460
+ "default": "gen_random_uuid()"
461
+ },
462
+ "team_id": {
463
+ "name": "team_id",
464
+ "type": "uuid",
465
+ "primaryKey": false,
466
+ "notNull": true
467
+ },
468
+ "user_id": {
469
+ "name": "user_id",
470
+ "type": "uuid",
471
+ "primaryKey": false,
472
+ "notNull": true
473
+ },
474
+ "repo": {
475
+ "name": "repo",
476
+ "type": "text",
477
+ "primaryKey": false,
478
+ "notNull": false
479
+ },
480
+ "data": {
481
+ "name": "data",
482
+ "type": "jsonb",
483
+ "primaryKey": false,
484
+ "notNull": true
485
+ },
486
+ "created_at": {
487
+ "name": "created_at",
488
+ "type": "timestamp with time zone",
489
+ "primaryKey": false,
490
+ "notNull": true,
491
+ "default": "now()"
492
+ }
493
+ },
494
+ "indexes": {
495
+ "snapshots_team_user_created": {
496
+ "name": "snapshots_team_user_created",
497
+ "columns": [
498
+ {
499
+ "expression": "team_id",
500
+ "isExpression": false,
501
+ "asc": true,
502
+ "nulls": "last"
503
+ },
504
+ {
505
+ "expression": "user_id",
506
+ "isExpression": false,
507
+ "asc": true,
508
+ "nulls": "last"
509
+ },
510
+ {
511
+ "expression": "created_at",
512
+ "isExpression": false,
513
+ "asc": true,
514
+ "nulls": "last"
515
+ }
516
+ ],
517
+ "isUnique": false,
518
+ "concurrently": false,
519
+ "method": "btree",
520
+ "with": {}
521
+ }
522
+ },
523
+ "foreignKeys": {
524
+ "snapshots_team_id_teams_id_fk": {
525
+ "name": "snapshots_team_id_teams_id_fk",
526
+ "tableFrom": "snapshots",
527
+ "tableTo": "teams",
528
+ "columnsFrom": [
529
+ "team_id"
530
+ ],
531
+ "columnsTo": [
532
+ "id"
533
+ ],
534
+ "onDelete": "cascade",
535
+ "onUpdate": "no action"
536
+ },
537
+ "snapshots_user_id_users_id_fk": {
538
+ "name": "snapshots_user_id_users_id_fk",
539
+ "tableFrom": "snapshots",
540
+ "tableTo": "users",
541
+ "columnsFrom": [
542
+ "user_id"
543
+ ],
544
+ "columnsTo": [
545
+ "id"
546
+ ],
547
+ "onDelete": "cascade",
548
+ "onUpdate": "no action"
549
+ }
550
+ },
551
+ "compositePrimaryKeys": {},
552
+ "uniqueConstraints": {},
553
+ "policies": {},
554
+ "checkConstraints": {},
555
+ "isRLSEnabled": false
556
+ },
557
+ "public.teams": {
558
+ "name": "teams",
559
+ "schema": "",
560
+ "columns": {
561
+ "id": {
562
+ "name": "id",
563
+ "type": "uuid",
564
+ "primaryKey": true,
565
+ "notNull": true,
566
+ "default": "gen_random_uuid()"
567
+ },
568
+ "name": {
569
+ "name": "name",
570
+ "type": "text",
571
+ "primaryKey": false,
572
+ "notNull": true
573
+ },
574
+ "slug": {
575
+ "name": "slug",
576
+ "type": "text",
577
+ "primaryKey": false,
578
+ "notNull": true
579
+ },
580
+ "created_by": {
581
+ "name": "created_by",
582
+ "type": "uuid",
583
+ "primaryKey": false,
584
+ "notNull": false
585
+ },
586
+ "created_at": {
587
+ "name": "created_at",
588
+ "type": "timestamp with time zone",
589
+ "primaryKey": false,
590
+ "notNull": true,
591
+ "default": "now()"
592
+ }
593
+ },
594
+ "indexes": {},
595
+ "foreignKeys": {
596
+ "teams_created_by_users_id_fk": {
597
+ "name": "teams_created_by_users_id_fk",
598
+ "tableFrom": "teams",
599
+ "tableTo": "users",
600
+ "columnsFrom": [
601
+ "created_by"
602
+ ],
603
+ "columnsTo": [
604
+ "id"
605
+ ],
606
+ "onDelete": "no action",
607
+ "onUpdate": "no action"
608
+ }
609
+ },
610
+ "compositePrimaryKeys": {},
611
+ "uniqueConstraints": {
612
+ "teams_slug_unique": {
613
+ "name": "teams_slug_unique",
614
+ "nullsNotDistinct": false,
615
+ "columns": [
616
+ "slug"
617
+ ]
618
+ }
619
+ },
620
+ "policies": {},
621
+ "checkConstraints": {},
622
+ "isRLSEnabled": false
623
+ },
624
+ "public.tokens": {
625
+ "name": "tokens",
626
+ "schema": "",
627
+ "columns": {
628
+ "id": {
629
+ "name": "id",
630
+ "type": "uuid",
631
+ "primaryKey": true,
632
+ "notNull": true,
633
+ "default": "gen_random_uuid()"
634
+ },
635
+ "user_id": {
636
+ "name": "user_id",
637
+ "type": "uuid",
638
+ "primaryKey": false,
639
+ "notNull": true
640
+ },
641
+ "name": {
642
+ "name": "name",
643
+ "type": "text",
644
+ "primaryKey": false,
645
+ "notNull": true
646
+ },
647
+ "token_hash": {
648
+ "name": "token_hash",
649
+ "type": "text",
650
+ "primaryKey": false,
651
+ "notNull": true
652
+ },
653
+ "prefix": {
654
+ "name": "prefix",
655
+ "type": "text",
656
+ "primaryKey": false,
657
+ "notNull": true
658
+ },
659
+ "last_used_at": {
660
+ "name": "last_used_at",
661
+ "type": "timestamp with time zone",
662
+ "primaryKey": false,
663
+ "notNull": false
664
+ },
665
+ "revoked_at": {
666
+ "name": "revoked_at",
667
+ "type": "timestamp with time zone",
668
+ "primaryKey": false,
669
+ "notNull": false
670
+ },
671
+ "created_at": {
672
+ "name": "created_at",
673
+ "type": "timestamp with time zone",
674
+ "primaryKey": false,
675
+ "notNull": true,
676
+ "default": "now()"
677
+ }
678
+ },
679
+ "indexes": {},
680
+ "foreignKeys": {
681
+ "tokens_user_id_users_id_fk": {
682
+ "name": "tokens_user_id_users_id_fk",
683
+ "tableFrom": "tokens",
684
+ "tableTo": "users",
685
+ "columnsFrom": [
686
+ "user_id"
687
+ ],
688
+ "columnsTo": [
689
+ "id"
690
+ ],
691
+ "onDelete": "cascade",
692
+ "onUpdate": "no action"
693
+ }
694
+ },
695
+ "compositePrimaryKeys": {},
696
+ "uniqueConstraints": {
697
+ "tokens_token_hash_unique": {
698
+ "name": "tokens_token_hash_unique",
699
+ "nullsNotDistinct": false,
700
+ "columns": [
701
+ "token_hash"
702
+ ]
703
+ }
704
+ },
705
+ "policies": {},
706
+ "checkConstraints": {},
707
+ "isRLSEnabled": false
708
+ },
709
+ "public.users": {
710
+ "name": "users",
711
+ "schema": "",
712
+ "columns": {
713
+ "id": {
714
+ "name": "id",
715
+ "type": "uuid",
716
+ "primaryKey": true,
717
+ "notNull": true,
718
+ "default": "gen_random_uuid()"
719
+ },
720
+ "github_id": {
721
+ "name": "github_id",
722
+ "type": "bigint",
723
+ "primaryKey": false,
724
+ "notNull": false
725
+ },
726
+ "username": {
727
+ "name": "username",
728
+ "type": "text",
729
+ "primaryKey": false,
730
+ "notNull": true
731
+ },
732
+ "display_name": {
733
+ "name": "display_name",
734
+ "type": "text",
735
+ "primaryKey": false,
736
+ "notNull": false
737
+ },
738
+ "email": {
739
+ "name": "email",
740
+ "type": "text",
741
+ "primaryKey": false,
742
+ "notNull": false
743
+ },
744
+ "avatar_url": {
745
+ "name": "avatar_url",
746
+ "type": "text",
747
+ "primaryKey": false,
748
+ "notNull": false
749
+ },
750
+ "created_at": {
751
+ "name": "created_at",
752
+ "type": "timestamp with time zone",
753
+ "primaryKey": false,
754
+ "notNull": true,
755
+ "default": "now()"
756
+ }
757
+ },
758
+ "indexes": {},
759
+ "foreignKeys": {},
760
+ "compositePrimaryKeys": {},
761
+ "uniqueConstraints": {
762
+ "users_github_id_unique": {
763
+ "name": "users_github_id_unique",
764
+ "nullsNotDistinct": false,
765
+ "columns": [
766
+ "github_id"
767
+ ]
768
+ },
769
+ "users_username_unique": {
770
+ "name": "users_username_unique",
771
+ "nullsNotDistinct": false,
772
+ "columns": [
773
+ "username"
774
+ ]
775
+ }
776
+ },
777
+ "policies": {},
778
+ "checkConstraints": {},
779
+ "isRLSEnabled": false
780
+ },
781
+ "public.web_sessions": {
782
+ "name": "web_sessions",
783
+ "schema": "",
784
+ "columns": {
785
+ "id": {
786
+ "name": "id",
787
+ "type": "text",
788
+ "primaryKey": true,
789
+ "notNull": true
790
+ },
791
+ "user_id": {
792
+ "name": "user_id",
793
+ "type": "uuid",
794
+ "primaryKey": false,
795
+ "notNull": true
796
+ },
797
+ "expires_at": {
798
+ "name": "expires_at",
799
+ "type": "timestamp with time zone",
800
+ "primaryKey": false,
801
+ "notNull": true
802
+ },
803
+ "created_at": {
804
+ "name": "created_at",
805
+ "type": "timestamp with time zone",
806
+ "primaryKey": false,
807
+ "notNull": true,
808
+ "default": "now()"
809
+ }
810
+ },
811
+ "indexes": {},
812
+ "foreignKeys": {
813
+ "web_sessions_user_id_users_id_fk": {
814
+ "name": "web_sessions_user_id_users_id_fk",
815
+ "tableFrom": "web_sessions",
816
+ "tableTo": "users",
817
+ "columnsFrom": [
818
+ "user_id"
819
+ ],
820
+ "columnsTo": [
821
+ "id"
822
+ ],
823
+ "onDelete": "cascade",
824
+ "onUpdate": "no action"
825
+ }
826
+ },
827
+ "compositePrimaryKeys": {},
828
+ "uniqueConstraints": {},
829
+ "policies": {},
830
+ "checkConstraints": {},
831
+ "isRLSEnabled": false
832
+ }
833
+ },
834
+ "enums": {},
835
+ "schemas": {},
836
+ "sequences": {},
837
+ "roles": {},
838
+ "policies": {},
839
+ "views": {},
840
+ "_meta": {
841
+ "columns": {},
842
+ "schemas": {},
843
+ "tables": {}
844
+ }
845
+ }