@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,857 @@
1
+ {
2
+ "id": "6b3bced1-66f4-4b1e-831b-8d18adc7adbc",
3
+ "prevId": "7c45c2ae-443c-49c3-8096-dcc56556d227",
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
+ "webhook_url": {
593
+ "name": "webhook_url",
594
+ "type": "text",
595
+ "primaryKey": false,
596
+ "notNull": false
597
+ },
598
+ "created_at": {
599
+ "name": "created_at",
600
+ "type": "timestamp with time zone",
601
+ "primaryKey": false,
602
+ "notNull": true,
603
+ "default": "now()"
604
+ }
605
+ },
606
+ "indexes": {},
607
+ "foreignKeys": {
608
+ "teams_created_by_users_id_fk": {
609
+ "name": "teams_created_by_users_id_fk",
610
+ "tableFrom": "teams",
611
+ "tableTo": "users",
612
+ "columnsFrom": [
613
+ "created_by"
614
+ ],
615
+ "columnsTo": [
616
+ "id"
617
+ ],
618
+ "onDelete": "no action",
619
+ "onUpdate": "no action"
620
+ }
621
+ },
622
+ "compositePrimaryKeys": {},
623
+ "uniqueConstraints": {
624
+ "teams_slug_unique": {
625
+ "name": "teams_slug_unique",
626
+ "nullsNotDistinct": false,
627
+ "columns": [
628
+ "slug"
629
+ ]
630
+ }
631
+ },
632
+ "policies": {},
633
+ "checkConstraints": {},
634
+ "isRLSEnabled": false
635
+ },
636
+ "public.tokens": {
637
+ "name": "tokens",
638
+ "schema": "",
639
+ "columns": {
640
+ "id": {
641
+ "name": "id",
642
+ "type": "uuid",
643
+ "primaryKey": true,
644
+ "notNull": true,
645
+ "default": "gen_random_uuid()"
646
+ },
647
+ "user_id": {
648
+ "name": "user_id",
649
+ "type": "uuid",
650
+ "primaryKey": false,
651
+ "notNull": true
652
+ },
653
+ "name": {
654
+ "name": "name",
655
+ "type": "text",
656
+ "primaryKey": false,
657
+ "notNull": true
658
+ },
659
+ "token_hash": {
660
+ "name": "token_hash",
661
+ "type": "text",
662
+ "primaryKey": false,
663
+ "notNull": true
664
+ },
665
+ "prefix": {
666
+ "name": "prefix",
667
+ "type": "text",
668
+ "primaryKey": false,
669
+ "notNull": true
670
+ },
671
+ "last_used_at": {
672
+ "name": "last_used_at",
673
+ "type": "timestamp with time zone",
674
+ "primaryKey": false,
675
+ "notNull": false
676
+ },
677
+ "revoked_at": {
678
+ "name": "revoked_at",
679
+ "type": "timestamp with time zone",
680
+ "primaryKey": false,
681
+ "notNull": false
682
+ },
683
+ "created_at": {
684
+ "name": "created_at",
685
+ "type": "timestamp with time zone",
686
+ "primaryKey": false,
687
+ "notNull": true,
688
+ "default": "now()"
689
+ }
690
+ },
691
+ "indexes": {},
692
+ "foreignKeys": {
693
+ "tokens_user_id_users_id_fk": {
694
+ "name": "tokens_user_id_users_id_fk",
695
+ "tableFrom": "tokens",
696
+ "tableTo": "users",
697
+ "columnsFrom": [
698
+ "user_id"
699
+ ],
700
+ "columnsTo": [
701
+ "id"
702
+ ],
703
+ "onDelete": "cascade",
704
+ "onUpdate": "no action"
705
+ }
706
+ },
707
+ "compositePrimaryKeys": {},
708
+ "uniqueConstraints": {
709
+ "tokens_token_hash_unique": {
710
+ "name": "tokens_token_hash_unique",
711
+ "nullsNotDistinct": false,
712
+ "columns": [
713
+ "token_hash"
714
+ ]
715
+ }
716
+ },
717
+ "policies": {},
718
+ "checkConstraints": {},
719
+ "isRLSEnabled": false
720
+ },
721
+ "public.users": {
722
+ "name": "users",
723
+ "schema": "",
724
+ "columns": {
725
+ "id": {
726
+ "name": "id",
727
+ "type": "uuid",
728
+ "primaryKey": true,
729
+ "notNull": true,
730
+ "default": "gen_random_uuid()"
731
+ },
732
+ "github_id": {
733
+ "name": "github_id",
734
+ "type": "bigint",
735
+ "primaryKey": false,
736
+ "notNull": false
737
+ },
738
+ "username": {
739
+ "name": "username",
740
+ "type": "text",
741
+ "primaryKey": false,
742
+ "notNull": true
743
+ },
744
+ "display_name": {
745
+ "name": "display_name",
746
+ "type": "text",
747
+ "primaryKey": false,
748
+ "notNull": false
749
+ },
750
+ "email": {
751
+ "name": "email",
752
+ "type": "text",
753
+ "primaryKey": false,
754
+ "notNull": false
755
+ },
756
+ "avatar_url": {
757
+ "name": "avatar_url",
758
+ "type": "text",
759
+ "primaryKey": false,
760
+ "notNull": false
761
+ },
762
+ "created_at": {
763
+ "name": "created_at",
764
+ "type": "timestamp with time zone",
765
+ "primaryKey": false,
766
+ "notNull": true,
767
+ "default": "now()"
768
+ }
769
+ },
770
+ "indexes": {},
771
+ "foreignKeys": {},
772
+ "compositePrimaryKeys": {},
773
+ "uniqueConstraints": {
774
+ "users_github_id_unique": {
775
+ "name": "users_github_id_unique",
776
+ "nullsNotDistinct": false,
777
+ "columns": [
778
+ "github_id"
779
+ ]
780
+ },
781
+ "users_username_unique": {
782
+ "name": "users_username_unique",
783
+ "nullsNotDistinct": false,
784
+ "columns": [
785
+ "username"
786
+ ]
787
+ }
788
+ },
789
+ "policies": {},
790
+ "checkConstraints": {},
791
+ "isRLSEnabled": false
792
+ },
793
+ "public.web_sessions": {
794
+ "name": "web_sessions",
795
+ "schema": "",
796
+ "columns": {
797
+ "id": {
798
+ "name": "id",
799
+ "type": "text",
800
+ "primaryKey": true,
801
+ "notNull": true
802
+ },
803
+ "user_id": {
804
+ "name": "user_id",
805
+ "type": "uuid",
806
+ "primaryKey": false,
807
+ "notNull": true
808
+ },
809
+ "expires_at": {
810
+ "name": "expires_at",
811
+ "type": "timestamp with time zone",
812
+ "primaryKey": false,
813
+ "notNull": true
814
+ },
815
+ "created_at": {
816
+ "name": "created_at",
817
+ "type": "timestamp with time zone",
818
+ "primaryKey": false,
819
+ "notNull": true,
820
+ "default": "now()"
821
+ }
822
+ },
823
+ "indexes": {},
824
+ "foreignKeys": {
825
+ "web_sessions_user_id_users_id_fk": {
826
+ "name": "web_sessions_user_id_users_id_fk",
827
+ "tableFrom": "web_sessions",
828
+ "tableTo": "users",
829
+ "columnsFrom": [
830
+ "user_id"
831
+ ],
832
+ "columnsTo": [
833
+ "id"
834
+ ],
835
+ "onDelete": "cascade",
836
+ "onUpdate": "no action"
837
+ }
838
+ },
839
+ "compositePrimaryKeys": {},
840
+ "uniqueConstraints": {},
841
+ "policies": {},
842
+ "checkConstraints": {},
843
+ "isRLSEnabled": false
844
+ }
845
+ },
846
+ "enums": {},
847
+ "schemas": {},
848
+ "sequences": {},
849
+ "roles": {},
850
+ "policies": {},
851
+ "views": {},
852
+ "_meta": {
853
+ "columns": {},
854
+ "schemas": {},
855
+ "tables": {}
856
+ }
857
+ }