@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,851 @@
1
+ {
2
+ "id": "7c45c2ae-443c-49c3-8096-dcc56556d227",
3
+ "prevId": "7a4929cb-9a95-4748-8559-fc05f56c0210",
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
+ "via": {
308
+ "name": "via",
309
+ "type": "text",
310
+ "primaryKey": false,
311
+ "notNull": false
312
+ },
313
+ "body": {
314
+ "name": "body",
315
+ "type": "text",
316
+ "primaryKey": false,
317
+ "notNull": true
318
+ },
319
+ "attachments": {
320
+ "name": "attachments",
321
+ "type": "jsonb",
322
+ "primaryKey": false,
323
+ "notNull": false
324
+ },
325
+ "created_at": {
326
+ "name": "created_at",
327
+ "type": "timestamp with time zone",
328
+ "primaryKey": false,
329
+ "notNull": true,
330
+ "default": "now()"
331
+ }
332
+ },
333
+ "indexes": {
334
+ "messages_session_created": {
335
+ "name": "messages_session_created",
336
+ "columns": [
337
+ {
338
+ "expression": "session_id",
339
+ "isExpression": false,
340
+ "asc": true,
341
+ "nulls": "last"
342
+ },
343
+ {
344
+ "expression": "created_at",
345
+ "isExpression": false,
346
+ "asc": true,
347
+ "nulls": "last"
348
+ }
349
+ ],
350
+ "isUnique": false,
351
+ "concurrently": false,
352
+ "method": "btree",
353
+ "with": {}
354
+ }
355
+ },
356
+ "foreignKeys": {
357
+ "messages_session_id_debug_sessions_id_fk": {
358
+ "name": "messages_session_id_debug_sessions_id_fk",
359
+ "tableFrom": "messages",
360
+ "tableTo": "debug_sessions",
361
+ "columnsFrom": [
362
+ "session_id"
363
+ ],
364
+ "columnsTo": [
365
+ "id"
366
+ ],
367
+ "onDelete": "cascade",
368
+ "onUpdate": "no action"
369
+ },
370
+ "messages_author_id_users_id_fk": {
371
+ "name": "messages_author_id_users_id_fk",
372
+ "tableFrom": "messages",
373
+ "tableTo": "users",
374
+ "columnsFrom": [
375
+ "author_id"
376
+ ],
377
+ "columnsTo": [
378
+ "id"
379
+ ],
380
+ "onDelete": "no action",
381
+ "onUpdate": "no action"
382
+ }
383
+ },
384
+ "compositePrimaryKeys": {},
385
+ "uniqueConstraints": {},
386
+ "policies": {},
387
+ "checkConstraints": {},
388
+ "isRLSEnabled": false
389
+ },
390
+ "public.read_state": {
391
+ "name": "read_state",
392
+ "schema": "",
393
+ "columns": {
394
+ "user_id": {
395
+ "name": "user_id",
396
+ "type": "uuid",
397
+ "primaryKey": false,
398
+ "notNull": true
399
+ },
400
+ "session_id": {
401
+ "name": "session_id",
402
+ "type": "uuid",
403
+ "primaryKey": false,
404
+ "notNull": true
405
+ },
406
+ "last_read_at": {
407
+ "name": "last_read_at",
408
+ "type": "timestamp with time zone",
409
+ "primaryKey": false,
410
+ "notNull": true,
411
+ "default": "now()"
412
+ }
413
+ },
414
+ "indexes": {},
415
+ "foreignKeys": {
416
+ "read_state_user_id_users_id_fk": {
417
+ "name": "read_state_user_id_users_id_fk",
418
+ "tableFrom": "read_state",
419
+ "tableTo": "users",
420
+ "columnsFrom": [
421
+ "user_id"
422
+ ],
423
+ "columnsTo": [
424
+ "id"
425
+ ],
426
+ "onDelete": "cascade",
427
+ "onUpdate": "no action"
428
+ },
429
+ "read_state_session_id_debug_sessions_id_fk": {
430
+ "name": "read_state_session_id_debug_sessions_id_fk",
431
+ "tableFrom": "read_state",
432
+ "tableTo": "debug_sessions",
433
+ "columnsFrom": [
434
+ "session_id"
435
+ ],
436
+ "columnsTo": [
437
+ "id"
438
+ ],
439
+ "onDelete": "cascade",
440
+ "onUpdate": "no action"
441
+ }
442
+ },
443
+ "compositePrimaryKeys": {
444
+ "read_state_user_id_session_id_pk": {
445
+ "name": "read_state_user_id_session_id_pk",
446
+ "columns": [
447
+ "user_id",
448
+ "session_id"
449
+ ]
450
+ }
451
+ },
452
+ "uniqueConstraints": {},
453
+ "policies": {},
454
+ "checkConstraints": {},
455
+ "isRLSEnabled": false
456
+ },
457
+ "public.snapshots": {
458
+ "name": "snapshots",
459
+ "schema": "",
460
+ "columns": {
461
+ "id": {
462
+ "name": "id",
463
+ "type": "uuid",
464
+ "primaryKey": true,
465
+ "notNull": true,
466
+ "default": "gen_random_uuid()"
467
+ },
468
+ "team_id": {
469
+ "name": "team_id",
470
+ "type": "uuid",
471
+ "primaryKey": false,
472
+ "notNull": true
473
+ },
474
+ "user_id": {
475
+ "name": "user_id",
476
+ "type": "uuid",
477
+ "primaryKey": false,
478
+ "notNull": true
479
+ },
480
+ "repo": {
481
+ "name": "repo",
482
+ "type": "text",
483
+ "primaryKey": false,
484
+ "notNull": false
485
+ },
486
+ "data": {
487
+ "name": "data",
488
+ "type": "jsonb",
489
+ "primaryKey": false,
490
+ "notNull": true
491
+ },
492
+ "created_at": {
493
+ "name": "created_at",
494
+ "type": "timestamp with time zone",
495
+ "primaryKey": false,
496
+ "notNull": true,
497
+ "default": "now()"
498
+ }
499
+ },
500
+ "indexes": {
501
+ "snapshots_team_user_created": {
502
+ "name": "snapshots_team_user_created",
503
+ "columns": [
504
+ {
505
+ "expression": "team_id",
506
+ "isExpression": false,
507
+ "asc": true,
508
+ "nulls": "last"
509
+ },
510
+ {
511
+ "expression": "user_id",
512
+ "isExpression": false,
513
+ "asc": true,
514
+ "nulls": "last"
515
+ },
516
+ {
517
+ "expression": "created_at",
518
+ "isExpression": false,
519
+ "asc": true,
520
+ "nulls": "last"
521
+ }
522
+ ],
523
+ "isUnique": false,
524
+ "concurrently": false,
525
+ "method": "btree",
526
+ "with": {}
527
+ }
528
+ },
529
+ "foreignKeys": {
530
+ "snapshots_team_id_teams_id_fk": {
531
+ "name": "snapshots_team_id_teams_id_fk",
532
+ "tableFrom": "snapshots",
533
+ "tableTo": "teams",
534
+ "columnsFrom": [
535
+ "team_id"
536
+ ],
537
+ "columnsTo": [
538
+ "id"
539
+ ],
540
+ "onDelete": "cascade",
541
+ "onUpdate": "no action"
542
+ },
543
+ "snapshots_user_id_users_id_fk": {
544
+ "name": "snapshots_user_id_users_id_fk",
545
+ "tableFrom": "snapshots",
546
+ "tableTo": "users",
547
+ "columnsFrom": [
548
+ "user_id"
549
+ ],
550
+ "columnsTo": [
551
+ "id"
552
+ ],
553
+ "onDelete": "cascade",
554
+ "onUpdate": "no action"
555
+ }
556
+ },
557
+ "compositePrimaryKeys": {},
558
+ "uniqueConstraints": {},
559
+ "policies": {},
560
+ "checkConstraints": {},
561
+ "isRLSEnabled": false
562
+ },
563
+ "public.teams": {
564
+ "name": "teams",
565
+ "schema": "",
566
+ "columns": {
567
+ "id": {
568
+ "name": "id",
569
+ "type": "uuid",
570
+ "primaryKey": true,
571
+ "notNull": true,
572
+ "default": "gen_random_uuid()"
573
+ },
574
+ "name": {
575
+ "name": "name",
576
+ "type": "text",
577
+ "primaryKey": false,
578
+ "notNull": true
579
+ },
580
+ "slug": {
581
+ "name": "slug",
582
+ "type": "text",
583
+ "primaryKey": false,
584
+ "notNull": true
585
+ },
586
+ "created_by": {
587
+ "name": "created_by",
588
+ "type": "uuid",
589
+ "primaryKey": false,
590
+ "notNull": false
591
+ },
592
+ "created_at": {
593
+ "name": "created_at",
594
+ "type": "timestamp with time zone",
595
+ "primaryKey": false,
596
+ "notNull": true,
597
+ "default": "now()"
598
+ }
599
+ },
600
+ "indexes": {},
601
+ "foreignKeys": {
602
+ "teams_created_by_users_id_fk": {
603
+ "name": "teams_created_by_users_id_fk",
604
+ "tableFrom": "teams",
605
+ "tableTo": "users",
606
+ "columnsFrom": [
607
+ "created_by"
608
+ ],
609
+ "columnsTo": [
610
+ "id"
611
+ ],
612
+ "onDelete": "no action",
613
+ "onUpdate": "no action"
614
+ }
615
+ },
616
+ "compositePrimaryKeys": {},
617
+ "uniqueConstraints": {
618
+ "teams_slug_unique": {
619
+ "name": "teams_slug_unique",
620
+ "nullsNotDistinct": false,
621
+ "columns": [
622
+ "slug"
623
+ ]
624
+ }
625
+ },
626
+ "policies": {},
627
+ "checkConstraints": {},
628
+ "isRLSEnabled": false
629
+ },
630
+ "public.tokens": {
631
+ "name": "tokens",
632
+ "schema": "",
633
+ "columns": {
634
+ "id": {
635
+ "name": "id",
636
+ "type": "uuid",
637
+ "primaryKey": true,
638
+ "notNull": true,
639
+ "default": "gen_random_uuid()"
640
+ },
641
+ "user_id": {
642
+ "name": "user_id",
643
+ "type": "uuid",
644
+ "primaryKey": false,
645
+ "notNull": true
646
+ },
647
+ "name": {
648
+ "name": "name",
649
+ "type": "text",
650
+ "primaryKey": false,
651
+ "notNull": true
652
+ },
653
+ "token_hash": {
654
+ "name": "token_hash",
655
+ "type": "text",
656
+ "primaryKey": false,
657
+ "notNull": true
658
+ },
659
+ "prefix": {
660
+ "name": "prefix",
661
+ "type": "text",
662
+ "primaryKey": false,
663
+ "notNull": true
664
+ },
665
+ "last_used_at": {
666
+ "name": "last_used_at",
667
+ "type": "timestamp with time zone",
668
+ "primaryKey": false,
669
+ "notNull": false
670
+ },
671
+ "revoked_at": {
672
+ "name": "revoked_at",
673
+ "type": "timestamp with time zone",
674
+ "primaryKey": false,
675
+ "notNull": false
676
+ },
677
+ "created_at": {
678
+ "name": "created_at",
679
+ "type": "timestamp with time zone",
680
+ "primaryKey": false,
681
+ "notNull": true,
682
+ "default": "now()"
683
+ }
684
+ },
685
+ "indexes": {},
686
+ "foreignKeys": {
687
+ "tokens_user_id_users_id_fk": {
688
+ "name": "tokens_user_id_users_id_fk",
689
+ "tableFrom": "tokens",
690
+ "tableTo": "users",
691
+ "columnsFrom": [
692
+ "user_id"
693
+ ],
694
+ "columnsTo": [
695
+ "id"
696
+ ],
697
+ "onDelete": "cascade",
698
+ "onUpdate": "no action"
699
+ }
700
+ },
701
+ "compositePrimaryKeys": {},
702
+ "uniqueConstraints": {
703
+ "tokens_token_hash_unique": {
704
+ "name": "tokens_token_hash_unique",
705
+ "nullsNotDistinct": false,
706
+ "columns": [
707
+ "token_hash"
708
+ ]
709
+ }
710
+ },
711
+ "policies": {},
712
+ "checkConstraints": {},
713
+ "isRLSEnabled": false
714
+ },
715
+ "public.users": {
716
+ "name": "users",
717
+ "schema": "",
718
+ "columns": {
719
+ "id": {
720
+ "name": "id",
721
+ "type": "uuid",
722
+ "primaryKey": true,
723
+ "notNull": true,
724
+ "default": "gen_random_uuid()"
725
+ },
726
+ "github_id": {
727
+ "name": "github_id",
728
+ "type": "bigint",
729
+ "primaryKey": false,
730
+ "notNull": false
731
+ },
732
+ "username": {
733
+ "name": "username",
734
+ "type": "text",
735
+ "primaryKey": false,
736
+ "notNull": true
737
+ },
738
+ "display_name": {
739
+ "name": "display_name",
740
+ "type": "text",
741
+ "primaryKey": false,
742
+ "notNull": false
743
+ },
744
+ "email": {
745
+ "name": "email",
746
+ "type": "text",
747
+ "primaryKey": false,
748
+ "notNull": false
749
+ },
750
+ "avatar_url": {
751
+ "name": "avatar_url",
752
+ "type": "text",
753
+ "primaryKey": false,
754
+ "notNull": false
755
+ },
756
+ "created_at": {
757
+ "name": "created_at",
758
+ "type": "timestamp with time zone",
759
+ "primaryKey": false,
760
+ "notNull": true,
761
+ "default": "now()"
762
+ }
763
+ },
764
+ "indexes": {},
765
+ "foreignKeys": {},
766
+ "compositePrimaryKeys": {},
767
+ "uniqueConstraints": {
768
+ "users_github_id_unique": {
769
+ "name": "users_github_id_unique",
770
+ "nullsNotDistinct": false,
771
+ "columns": [
772
+ "github_id"
773
+ ]
774
+ },
775
+ "users_username_unique": {
776
+ "name": "users_username_unique",
777
+ "nullsNotDistinct": false,
778
+ "columns": [
779
+ "username"
780
+ ]
781
+ }
782
+ },
783
+ "policies": {},
784
+ "checkConstraints": {},
785
+ "isRLSEnabled": false
786
+ },
787
+ "public.web_sessions": {
788
+ "name": "web_sessions",
789
+ "schema": "",
790
+ "columns": {
791
+ "id": {
792
+ "name": "id",
793
+ "type": "text",
794
+ "primaryKey": true,
795
+ "notNull": true
796
+ },
797
+ "user_id": {
798
+ "name": "user_id",
799
+ "type": "uuid",
800
+ "primaryKey": false,
801
+ "notNull": true
802
+ },
803
+ "expires_at": {
804
+ "name": "expires_at",
805
+ "type": "timestamp with time zone",
806
+ "primaryKey": false,
807
+ "notNull": true
808
+ },
809
+ "created_at": {
810
+ "name": "created_at",
811
+ "type": "timestamp with time zone",
812
+ "primaryKey": false,
813
+ "notNull": true,
814
+ "default": "now()"
815
+ }
816
+ },
817
+ "indexes": {},
818
+ "foreignKeys": {
819
+ "web_sessions_user_id_users_id_fk": {
820
+ "name": "web_sessions_user_id_users_id_fk",
821
+ "tableFrom": "web_sessions",
822
+ "tableTo": "users",
823
+ "columnsFrom": [
824
+ "user_id"
825
+ ],
826
+ "columnsTo": [
827
+ "id"
828
+ ],
829
+ "onDelete": "cascade",
830
+ "onUpdate": "no action"
831
+ }
832
+ },
833
+ "compositePrimaryKeys": {},
834
+ "uniqueConstraints": {},
835
+ "policies": {},
836
+ "checkConstraints": {},
837
+ "isRLSEnabled": false
838
+ }
839
+ },
840
+ "enums": {},
841
+ "schemas": {},
842
+ "sequences": {},
843
+ "roles": {},
844
+ "policies": {},
845
+ "views": {},
846
+ "_meta": {
847
+ "columns": {},
848
+ "schemas": {},
849
+ "tables": {}
850
+ }
851
+ }