attraverso 0.0.1 → 0.1.1

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 (71) hide show
  1. package/README.txt +9 -0
  2. package/assets/migrations/0000_burly_firestar.sql +76 -0
  3. package/assets/migrations/0001_sleepy_gorilla_man.sql +27 -0
  4. package/assets/migrations/0002_smart_ikaris.sql +14 -0
  5. package/assets/migrations/0003_pink_zodiak.sql +17 -0
  6. package/assets/migrations/0004_loose_hitman.sql +14 -0
  7. package/assets/migrations/0005_glamorous_typhoid_mary.sql +5 -0
  8. package/assets/migrations/0006_slow_deadpool.sql +1 -0
  9. package/assets/migrations/0007_jittery_tag.sql +8 -0
  10. package/assets/migrations/0008_daily_firestar.sql +1 -0
  11. package/assets/migrations/0009_cute_marvex.sql +13 -0
  12. package/assets/migrations/0010_acoustic_pixie.sql +10 -0
  13. package/assets/migrations/0011_orange_rawhide_kid.sql +1 -0
  14. package/assets/migrations/0012_smiling_butterfly.sql +23 -0
  15. package/assets/migrations/0013_kind_bloodscream.sql +9 -0
  16. package/assets/migrations/meta/0000_snapshot.json +629 -0
  17. package/assets/migrations/meta/0001_snapshot.json +852 -0
  18. package/assets/migrations/meta/0002_snapshot.json +972 -0
  19. package/assets/migrations/meta/0003_snapshot.json +1130 -0
  20. package/assets/migrations/meta/0004_snapshot.json +1244 -0
  21. package/assets/migrations/meta/0005_snapshot.json +1275 -0
  22. package/assets/migrations/meta/0006_snapshot.json +1276 -0
  23. package/assets/migrations/meta/0007_snapshot.json +1376 -0
  24. package/assets/migrations/meta/0008_snapshot.json +1241 -0
  25. package/assets/migrations/meta/0009_snapshot.json +1241 -0
  26. package/assets/migrations/meta/0010_snapshot.json +1329 -0
  27. package/assets/migrations/meta/0011_snapshot.json +1322 -0
  28. package/assets/migrations/meta/0012_snapshot.json +1516 -0
  29. package/assets/migrations/meta/0013_snapshot.json +1576 -0
  30. package/assets/migrations/meta/_journal.json +104 -0
  31. package/assets/nodefs-BbnD6x79.js +33 -0
  32. package/assets/opfs-ahp-CFnUNF4E.js +308 -0
  33. package/assets/postgres-X5RxLyOz.js +5438 -0
  34. package/initdb.wasm +0 -0
  35. package/migrations/0000_burly_firestar.sql +76 -0
  36. package/migrations/0001_sleepy_gorilla_man.sql +27 -0
  37. package/migrations/0002_smart_ikaris.sql +14 -0
  38. package/migrations/0003_pink_zodiak.sql +17 -0
  39. package/migrations/0004_loose_hitman.sql +14 -0
  40. package/migrations/0005_glamorous_typhoid_mary.sql +5 -0
  41. package/migrations/0006_slow_deadpool.sql +1 -0
  42. package/migrations/0007_jittery_tag.sql +8 -0
  43. package/migrations/0008_daily_firestar.sql +1 -0
  44. package/migrations/0009_cute_marvex.sql +13 -0
  45. package/migrations/0010_acoustic_pixie.sql +10 -0
  46. package/migrations/0011_orange_rawhide_kid.sql +1 -0
  47. package/migrations/0012_smiling_butterfly.sql +23 -0
  48. package/migrations/0013_kind_bloodscream.sql +9 -0
  49. package/migrations/meta/0000_snapshot.json +629 -0
  50. package/migrations/meta/0001_snapshot.json +852 -0
  51. package/migrations/meta/0002_snapshot.json +972 -0
  52. package/migrations/meta/0003_snapshot.json +1130 -0
  53. package/migrations/meta/0004_snapshot.json +1244 -0
  54. package/migrations/meta/0005_snapshot.json +1275 -0
  55. package/migrations/meta/0006_snapshot.json +1276 -0
  56. package/migrations/meta/0007_snapshot.json +1376 -0
  57. package/migrations/meta/0008_snapshot.json +1241 -0
  58. package/migrations/meta/0009_snapshot.json +1241 -0
  59. package/migrations/meta/0010_snapshot.json +1329 -0
  60. package/migrations/meta/0011_snapshot.json +1322 -0
  61. package/migrations/meta/0012_snapshot.json +1516 -0
  62. package/migrations/meta/0013_snapshot.json +1576 -0
  63. package/migrations/meta/_journal.json +104 -0
  64. package/package.json +28 -4
  65. package/pglite.data +37667 -8
  66. package/pglite.wasm +0 -0
  67. package/server.js +47451 -0
  68. package/viewer/assets/index-BW6lgiAa.css +1 -0
  69. package/viewer/assets/index-CBMcK_jK.js +90 -0
  70. package/viewer/index.html +13 -0
  71. package/README.md +0 -19
@@ -0,0 +1,972 @@
1
+ {
2
+ "id": "ea0d4628-d8b5-495a-a4b0-b36309b3e57d",
3
+ "prevId": "b5ffae13-c576-4c70-87ee-92aff5f3c0fc",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.areas": {
8
+ "name": "areas",
9
+ "schema": "",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "text",
14
+ "primaryKey": true,
15
+ "notNull": true
16
+ },
17
+ "project_id": {
18
+ "name": "project_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "key": {
24
+ "name": "key",
25
+ "type": "text",
26
+ "primaryKey": false,
27
+ "notNull": true
28
+ },
29
+ "name": {
30
+ "name": "name",
31
+ "type": "text",
32
+ "primaryKey": false,
33
+ "notNull": true
34
+ },
35
+ "description": {
36
+ "name": "description",
37
+ "type": "text",
38
+ "primaryKey": false,
39
+ "notNull": false
40
+ },
41
+ "colour": {
42
+ "name": "colour",
43
+ "type": "text",
44
+ "primaryKey": false,
45
+ "notNull": false
46
+ },
47
+ "sort_order": {
48
+ "name": "sort_order",
49
+ "type": "integer",
50
+ "primaryKey": false,
51
+ "notNull": true,
52
+ "default": 0
53
+ },
54
+ "created_at": {
55
+ "name": "created_at",
56
+ "type": "text",
57
+ "primaryKey": false,
58
+ "notNull": true
59
+ }
60
+ },
61
+ "indexes": {
62
+ "areas_project_key": {
63
+ "name": "areas_project_key",
64
+ "columns": [
65
+ {
66
+ "expression": "project_id",
67
+ "isExpression": false,
68
+ "asc": true,
69
+ "nulls": "last"
70
+ },
71
+ {
72
+ "expression": "key",
73
+ "isExpression": false,
74
+ "asc": true,
75
+ "nulls": "last"
76
+ }
77
+ ],
78
+ "isUnique": true,
79
+ "concurrently": false,
80
+ "method": "btree",
81
+ "with": {}
82
+ }
83
+ },
84
+ "foreignKeys": {
85
+ "areas_project_id_projects_id_fk": {
86
+ "name": "areas_project_id_projects_id_fk",
87
+ "tableFrom": "areas",
88
+ "tableTo": "projects",
89
+ "columnsFrom": [
90
+ "project_id"
91
+ ],
92
+ "columnsTo": [
93
+ "id"
94
+ ],
95
+ "onDelete": "cascade",
96
+ "onUpdate": "no action"
97
+ }
98
+ },
99
+ "compositePrimaryKeys": {},
100
+ "uniqueConstraints": {},
101
+ "policies": {},
102
+ "checkConstraints": {},
103
+ "isRLSEnabled": false
104
+ },
105
+ "public.context_sections": {
106
+ "name": "context_sections",
107
+ "schema": "",
108
+ "columns": {
109
+ "id": {
110
+ "name": "id",
111
+ "type": "text",
112
+ "primaryKey": true,
113
+ "notNull": true
114
+ },
115
+ "project_id": {
116
+ "name": "project_id",
117
+ "type": "text",
118
+ "primaryKey": false,
119
+ "notNull": true
120
+ },
121
+ "heading": {
122
+ "name": "heading",
123
+ "type": "text",
124
+ "primaryKey": false,
125
+ "notNull": true
126
+ },
127
+ "content": {
128
+ "name": "content",
129
+ "type": "text",
130
+ "primaryKey": false,
131
+ "notNull": true
132
+ },
133
+ "sort_order": {
134
+ "name": "sort_order",
135
+ "type": "integer",
136
+ "primaryKey": false,
137
+ "notNull": true,
138
+ "default": 0
139
+ },
140
+ "created_at": {
141
+ "name": "created_at",
142
+ "type": "text",
143
+ "primaryKey": false,
144
+ "notNull": true
145
+ },
146
+ "updated_at": {
147
+ "name": "updated_at",
148
+ "type": "text",
149
+ "primaryKey": false,
150
+ "notNull": true
151
+ }
152
+ },
153
+ "indexes": {
154
+ "context_sections_project_heading": {
155
+ "name": "context_sections_project_heading",
156
+ "columns": [
157
+ {
158
+ "expression": "project_id",
159
+ "isExpression": false,
160
+ "asc": true,
161
+ "nulls": "last"
162
+ },
163
+ {
164
+ "expression": "heading",
165
+ "isExpression": false,
166
+ "asc": true,
167
+ "nulls": "last"
168
+ }
169
+ ],
170
+ "isUnique": true,
171
+ "concurrently": false,
172
+ "method": "btree",
173
+ "with": {}
174
+ },
175
+ "context_sections_project_order": {
176
+ "name": "context_sections_project_order",
177
+ "columns": [
178
+ {
179
+ "expression": "project_id",
180
+ "isExpression": false,
181
+ "asc": true,
182
+ "nulls": "last"
183
+ },
184
+ {
185
+ "expression": "sort_order",
186
+ "isExpression": false,
187
+ "asc": true,
188
+ "nulls": "last"
189
+ }
190
+ ],
191
+ "isUnique": false,
192
+ "concurrently": false,
193
+ "method": "btree",
194
+ "with": {}
195
+ }
196
+ },
197
+ "foreignKeys": {
198
+ "context_sections_project_id_projects_id_fk": {
199
+ "name": "context_sections_project_id_projects_id_fk",
200
+ "tableFrom": "context_sections",
201
+ "tableTo": "projects",
202
+ "columnsFrom": [
203
+ "project_id"
204
+ ],
205
+ "columnsTo": [
206
+ "id"
207
+ ],
208
+ "onDelete": "cascade",
209
+ "onUpdate": "no action"
210
+ }
211
+ },
212
+ "compositePrimaryKeys": {},
213
+ "uniqueConstraints": {},
214
+ "policies": {},
215
+ "checkConstraints": {},
216
+ "isRLSEnabled": false
217
+ },
218
+ "public.dependencies": {
219
+ "name": "dependencies",
220
+ "schema": "",
221
+ "columns": {
222
+ "item_id": {
223
+ "name": "item_id",
224
+ "type": "text",
225
+ "primaryKey": false,
226
+ "notNull": true
227
+ },
228
+ "depends_on_id": {
229
+ "name": "depends_on_id",
230
+ "type": "text",
231
+ "primaryKey": false,
232
+ "notNull": true
233
+ },
234
+ "created_at": {
235
+ "name": "created_at",
236
+ "type": "text",
237
+ "primaryKey": false,
238
+ "notNull": true
239
+ }
240
+ },
241
+ "indexes": {
242
+ "dependencies_depends_on": {
243
+ "name": "dependencies_depends_on",
244
+ "columns": [
245
+ {
246
+ "expression": "depends_on_id",
247
+ "isExpression": false,
248
+ "asc": true,
249
+ "nulls": "last"
250
+ }
251
+ ],
252
+ "isUnique": false,
253
+ "concurrently": false,
254
+ "method": "btree",
255
+ "with": {}
256
+ }
257
+ },
258
+ "foreignKeys": {
259
+ "dependencies_item_id_items_id_fk": {
260
+ "name": "dependencies_item_id_items_id_fk",
261
+ "tableFrom": "dependencies",
262
+ "tableTo": "items",
263
+ "columnsFrom": [
264
+ "item_id"
265
+ ],
266
+ "columnsTo": [
267
+ "id"
268
+ ],
269
+ "onDelete": "cascade",
270
+ "onUpdate": "no action"
271
+ },
272
+ "dependencies_depends_on_id_items_id_fk": {
273
+ "name": "dependencies_depends_on_id_items_id_fk",
274
+ "tableFrom": "dependencies",
275
+ "tableTo": "items",
276
+ "columnsFrom": [
277
+ "depends_on_id"
278
+ ],
279
+ "columnsTo": [
280
+ "id"
281
+ ],
282
+ "onDelete": "cascade",
283
+ "onUpdate": "no action"
284
+ }
285
+ },
286
+ "compositePrimaryKeys": {
287
+ "dependencies_item_id_depends_on_id_pk": {
288
+ "name": "dependencies_item_id_depends_on_id_pk",
289
+ "columns": [
290
+ "item_id",
291
+ "depends_on_id"
292
+ ]
293
+ }
294
+ },
295
+ "uniqueConstraints": {},
296
+ "policies": {},
297
+ "checkConstraints": {},
298
+ "isRLSEnabled": false
299
+ },
300
+ "public.events": {
301
+ "name": "events",
302
+ "schema": "",
303
+ "columns": {
304
+ "id": {
305
+ "name": "id",
306
+ "type": "text",
307
+ "primaryKey": true,
308
+ "notNull": true
309
+ },
310
+ "project_id": {
311
+ "name": "project_id",
312
+ "type": "text",
313
+ "primaryKey": false,
314
+ "notNull": false
315
+ },
316
+ "entity_type": {
317
+ "name": "entity_type",
318
+ "type": "text",
319
+ "primaryKey": false,
320
+ "notNull": true
321
+ },
322
+ "entity_id": {
323
+ "name": "entity_id",
324
+ "type": "text",
325
+ "primaryKey": false,
326
+ "notNull": true
327
+ },
328
+ "at": {
329
+ "name": "at",
330
+ "type": "text",
331
+ "primaryKey": false,
332
+ "notNull": true
333
+ },
334
+ "actor": {
335
+ "name": "actor",
336
+ "type": "text",
337
+ "primaryKey": false,
338
+ "notNull": true
339
+ },
340
+ "kind": {
341
+ "name": "kind",
342
+ "type": "text",
343
+ "primaryKey": false,
344
+ "notNull": true
345
+ },
346
+ "correlation_id": {
347
+ "name": "correlation_id",
348
+ "type": "text",
349
+ "primaryKey": false,
350
+ "notNull": false
351
+ },
352
+ "before": {
353
+ "name": "before",
354
+ "type": "text",
355
+ "primaryKey": false,
356
+ "notNull": false
357
+ },
358
+ "after": {
359
+ "name": "after",
360
+ "type": "text",
361
+ "primaryKey": false,
362
+ "notNull": false
363
+ }
364
+ },
365
+ "indexes": {
366
+ "events_entity": {
367
+ "name": "events_entity",
368
+ "columns": [
369
+ {
370
+ "expression": "entity_type",
371
+ "isExpression": false,
372
+ "asc": true,
373
+ "nulls": "last"
374
+ },
375
+ {
376
+ "expression": "entity_id",
377
+ "isExpression": false,
378
+ "asc": true,
379
+ "nulls": "last"
380
+ }
381
+ ],
382
+ "isUnique": false,
383
+ "concurrently": false,
384
+ "method": "btree",
385
+ "with": {}
386
+ },
387
+ "events_project_at": {
388
+ "name": "events_project_at",
389
+ "columns": [
390
+ {
391
+ "expression": "project_id",
392
+ "isExpression": false,
393
+ "asc": true,
394
+ "nulls": "last"
395
+ },
396
+ {
397
+ "expression": "at",
398
+ "isExpression": false,
399
+ "asc": true,
400
+ "nulls": "last"
401
+ }
402
+ ],
403
+ "isUnique": false,
404
+ "concurrently": false,
405
+ "method": "btree",
406
+ "with": {}
407
+ }
408
+ },
409
+ "foreignKeys": {
410
+ "events_project_id_projects_id_fk": {
411
+ "name": "events_project_id_projects_id_fk",
412
+ "tableFrom": "events",
413
+ "tableTo": "projects",
414
+ "columnsFrom": [
415
+ "project_id"
416
+ ],
417
+ "columnsTo": [
418
+ "id"
419
+ ],
420
+ "onDelete": "cascade",
421
+ "onUpdate": "no action"
422
+ }
423
+ },
424
+ "compositePrimaryKeys": {},
425
+ "uniqueConstraints": {},
426
+ "policies": {},
427
+ "checkConstraints": {},
428
+ "isRLSEnabled": false
429
+ },
430
+ "public.items": {
431
+ "name": "items",
432
+ "schema": "",
433
+ "columns": {
434
+ "id": {
435
+ "name": "id",
436
+ "type": "text",
437
+ "primaryKey": true,
438
+ "notNull": true
439
+ },
440
+ "project_id": {
441
+ "name": "project_id",
442
+ "type": "text",
443
+ "primaryKey": false,
444
+ "notNull": true
445
+ },
446
+ "ref": {
447
+ "name": "ref",
448
+ "type": "text",
449
+ "primaryKey": false,
450
+ "notNull": true
451
+ },
452
+ "area_key": {
453
+ "name": "area_key",
454
+ "type": "text",
455
+ "primaryKey": false,
456
+ "notNull": true
457
+ },
458
+ "sort_path": {
459
+ "name": "sort_path",
460
+ "type": "text",
461
+ "primaryKey": false,
462
+ "notNull": true
463
+ },
464
+ "parent_id": {
465
+ "name": "parent_id",
466
+ "type": "text",
467
+ "primaryKey": false,
468
+ "notNull": false
469
+ },
470
+ "title": {
471
+ "name": "title",
472
+ "type": "text",
473
+ "primaryKey": false,
474
+ "notNull": true
475
+ },
476
+ "body": {
477
+ "name": "body",
478
+ "type": "text",
479
+ "primaryKey": false,
480
+ "notNull": false
481
+ },
482
+ "status": {
483
+ "name": "status",
484
+ "type": "text",
485
+ "primaryKey": false,
486
+ "notNull": true
487
+ },
488
+ "priority": {
489
+ "name": "priority",
490
+ "type": "integer",
491
+ "primaryKey": false,
492
+ "notNull": true,
493
+ "default": 0
494
+ },
495
+ "created_at": {
496
+ "name": "created_at",
497
+ "type": "text",
498
+ "primaryKey": false,
499
+ "notNull": true
500
+ },
501
+ "updated_at": {
502
+ "name": "updated_at",
503
+ "type": "text",
504
+ "primaryKey": false,
505
+ "notNull": true
506
+ },
507
+ "closed_at": {
508
+ "name": "closed_at",
509
+ "type": "text",
510
+ "primaryKey": false,
511
+ "notNull": false
512
+ },
513
+ "deleted_at": {
514
+ "name": "deleted_at",
515
+ "type": "text",
516
+ "primaryKey": false,
517
+ "notNull": false
518
+ }
519
+ },
520
+ "indexes": {
521
+ "items_project_ref": {
522
+ "name": "items_project_ref",
523
+ "columns": [
524
+ {
525
+ "expression": "project_id",
526
+ "isExpression": false,
527
+ "asc": true,
528
+ "nulls": "last"
529
+ },
530
+ {
531
+ "expression": "ref",
532
+ "isExpression": false,
533
+ "asc": true,
534
+ "nulls": "last"
535
+ }
536
+ ],
537
+ "isUnique": true,
538
+ "concurrently": false,
539
+ "method": "btree",
540
+ "with": {}
541
+ },
542
+ "items_project_status": {
543
+ "name": "items_project_status",
544
+ "columns": [
545
+ {
546
+ "expression": "project_id",
547
+ "isExpression": false,
548
+ "asc": true,
549
+ "nulls": "last"
550
+ },
551
+ {
552
+ "expression": "status",
553
+ "isExpression": false,
554
+ "asc": true,
555
+ "nulls": "last"
556
+ }
557
+ ],
558
+ "isUnique": false,
559
+ "concurrently": false,
560
+ "method": "btree",
561
+ "with": {}
562
+ },
563
+ "items_project_area": {
564
+ "name": "items_project_area",
565
+ "columns": [
566
+ {
567
+ "expression": "project_id",
568
+ "isExpression": false,
569
+ "asc": true,
570
+ "nulls": "last"
571
+ },
572
+ {
573
+ "expression": "area_key",
574
+ "isExpression": false,
575
+ "asc": true,
576
+ "nulls": "last"
577
+ }
578
+ ],
579
+ "isUnique": false,
580
+ "concurrently": false,
581
+ "method": "btree",
582
+ "with": {}
583
+ },
584
+ "items_project_sort": {
585
+ "name": "items_project_sort",
586
+ "columns": [
587
+ {
588
+ "expression": "project_id",
589
+ "isExpression": false,
590
+ "asc": true,
591
+ "nulls": "last"
592
+ },
593
+ {
594
+ "expression": "sort_path",
595
+ "isExpression": false,
596
+ "asc": true,
597
+ "nulls": "last"
598
+ }
599
+ ],
600
+ "isUnique": false,
601
+ "concurrently": false,
602
+ "method": "btree",
603
+ "with": {}
604
+ },
605
+ "items_parent": {
606
+ "name": "items_parent",
607
+ "columns": [
608
+ {
609
+ "expression": "parent_id",
610
+ "isExpression": false,
611
+ "asc": true,
612
+ "nulls": "last"
613
+ }
614
+ ],
615
+ "isUnique": false,
616
+ "concurrently": false,
617
+ "method": "btree",
618
+ "with": {}
619
+ }
620
+ },
621
+ "foreignKeys": {
622
+ "items_project_id_projects_id_fk": {
623
+ "name": "items_project_id_projects_id_fk",
624
+ "tableFrom": "items",
625
+ "tableTo": "projects",
626
+ "columnsFrom": [
627
+ "project_id"
628
+ ],
629
+ "columnsTo": [
630
+ "id"
631
+ ],
632
+ "onDelete": "cascade",
633
+ "onUpdate": "no action"
634
+ },
635
+ "items_parent_id_items_id_fk": {
636
+ "name": "items_parent_id_items_id_fk",
637
+ "tableFrom": "items",
638
+ "tableTo": "items",
639
+ "columnsFrom": [
640
+ "parent_id"
641
+ ],
642
+ "columnsTo": [
643
+ "id"
644
+ ],
645
+ "onDelete": "cascade",
646
+ "onUpdate": "no action"
647
+ }
648
+ },
649
+ "compositePrimaryKeys": {},
650
+ "uniqueConstraints": {},
651
+ "policies": {},
652
+ "checkConstraints": {},
653
+ "isRLSEnabled": false
654
+ },
655
+ "public.notes": {
656
+ "name": "notes",
657
+ "schema": "",
658
+ "columns": {
659
+ "id": {
660
+ "name": "id",
661
+ "type": "text",
662
+ "primaryKey": true,
663
+ "notNull": true
664
+ },
665
+ "project_id": {
666
+ "name": "project_id",
667
+ "type": "text",
668
+ "primaryKey": false,
669
+ "notNull": true
670
+ },
671
+ "item_id": {
672
+ "name": "item_id",
673
+ "type": "text",
674
+ "primaryKey": false,
675
+ "notNull": false
676
+ },
677
+ "body": {
678
+ "name": "body",
679
+ "type": "text",
680
+ "primaryKey": false,
681
+ "notNull": true
682
+ },
683
+ "audience": {
684
+ "name": "audience",
685
+ "type": "text",
686
+ "primaryKey": false,
687
+ "notNull": true,
688
+ "default": "'user'"
689
+ },
690
+ "actor": {
691
+ "name": "actor",
692
+ "type": "text",
693
+ "primaryKey": false,
694
+ "notNull": true
695
+ },
696
+ "created_at": {
697
+ "name": "created_at",
698
+ "type": "text",
699
+ "primaryKey": false,
700
+ "notNull": true
701
+ }
702
+ },
703
+ "indexes": {
704
+ "notes_project_created": {
705
+ "name": "notes_project_created",
706
+ "columns": [
707
+ {
708
+ "expression": "project_id",
709
+ "isExpression": false,
710
+ "asc": true,
711
+ "nulls": "last"
712
+ },
713
+ {
714
+ "expression": "created_at",
715
+ "isExpression": false,
716
+ "asc": true,
717
+ "nulls": "last"
718
+ }
719
+ ],
720
+ "isUnique": false,
721
+ "concurrently": false,
722
+ "method": "btree",
723
+ "with": {}
724
+ },
725
+ "notes_item": {
726
+ "name": "notes_item",
727
+ "columns": [
728
+ {
729
+ "expression": "item_id",
730
+ "isExpression": false,
731
+ "asc": true,
732
+ "nulls": "last"
733
+ }
734
+ ],
735
+ "isUnique": false,
736
+ "concurrently": false,
737
+ "method": "btree",
738
+ "with": {}
739
+ }
740
+ },
741
+ "foreignKeys": {
742
+ "notes_project_id_projects_id_fk": {
743
+ "name": "notes_project_id_projects_id_fk",
744
+ "tableFrom": "notes",
745
+ "tableTo": "projects",
746
+ "columnsFrom": [
747
+ "project_id"
748
+ ],
749
+ "columnsTo": [
750
+ "id"
751
+ ],
752
+ "onDelete": "cascade",
753
+ "onUpdate": "no action"
754
+ },
755
+ "notes_item_id_items_id_fk": {
756
+ "name": "notes_item_id_items_id_fk",
757
+ "tableFrom": "notes",
758
+ "tableTo": "items",
759
+ "columnsFrom": [
760
+ "item_id"
761
+ ],
762
+ "columnsTo": [
763
+ "id"
764
+ ],
765
+ "onDelete": "cascade",
766
+ "onUpdate": "no action"
767
+ }
768
+ },
769
+ "compositePrimaryKeys": {},
770
+ "uniqueConstraints": {},
771
+ "policies": {},
772
+ "checkConstraints": {},
773
+ "isRLSEnabled": false
774
+ },
775
+ "public.projects": {
776
+ "name": "projects",
777
+ "schema": "",
778
+ "columns": {
779
+ "id": {
780
+ "name": "id",
781
+ "type": "text",
782
+ "primaryKey": true,
783
+ "notNull": true
784
+ },
785
+ "key": {
786
+ "name": "key",
787
+ "type": "text",
788
+ "primaryKey": false,
789
+ "notNull": true
790
+ },
791
+ "name": {
792
+ "name": "name",
793
+ "type": "text",
794
+ "primaryKey": false,
795
+ "notNull": true
796
+ },
797
+ "type": {
798
+ "name": "type",
799
+ "type": "text",
800
+ "primaryKey": false,
801
+ "notNull": true
802
+ },
803
+ "direction": {
804
+ "name": "direction",
805
+ "type": "text",
806
+ "primaryKey": false,
807
+ "notNull": false
808
+ },
809
+ "status": {
810
+ "name": "status",
811
+ "type": "text",
812
+ "primaryKey": false,
813
+ "notNull": true
814
+ },
815
+ "created_at": {
816
+ "name": "created_at",
817
+ "type": "text",
818
+ "primaryKey": false,
819
+ "notNull": true
820
+ },
821
+ "updated_at": {
822
+ "name": "updated_at",
823
+ "type": "text",
824
+ "primaryKey": false,
825
+ "notNull": true
826
+ },
827
+ "archived_at": {
828
+ "name": "archived_at",
829
+ "type": "text",
830
+ "primaryKey": false,
831
+ "notNull": false
832
+ }
833
+ },
834
+ "indexes": {},
835
+ "foreignKeys": {},
836
+ "compositePrimaryKeys": {},
837
+ "uniqueConstraints": {
838
+ "projects_key_unique": {
839
+ "name": "projects_key_unique",
840
+ "nullsNotDistinct": false,
841
+ "columns": [
842
+ "key"
843
+ ]
844
+ }
845
+ },
846
+ "policies": {},
847
+ "checkConstraints": {},
848
+ "isRLSEnabled": false
849
+ },
850
+ "public.sessions": {
851
+ "name": "sessions",
852
+ "schema": "",
853
+ "columns": {
854
+ "id": {
855
+ "name": "id",
856
+ "type": "text",
857
+ "primaryKey": true,
858
+ "notNull": true
859
+ },
860
+ "project_id": {
861
+ "name": "project_id",
862
+ "type": "text",
863
+ "primaryKey": false,
864
+ "notNull": true
865
+ },
866
+ "started_at": {
867
+ "name": "started_at",
868
+ "type": "text",
869
+ "primaryKey": false,
870
+ "notNull": true
871
+ },
872
+ "ended_at": {
873
+ "name": "ended_at",
874
+ "type": "text",
875
+ "primaryKey": false,
876
+ "notNull": false
877
+ },
878
+ "summary": {
879
+ "name": "summary",
880
+ "type": "text",
881
+ "primaryKey": false,
882
+ "notNull": false
883
+ },
884
+ "actor": {
885
+ "name": "actor",
886
+ "type": "text",
887
+ "primaryKey": false,
888
+ "notNull": true
889
+ },
890
+ "compacted_into": {
891
+ "name": "compacted_into",
892
+ "type": "text",
893
+ "primaryKey": false,
894
+ "notNull": false
895
+ },
896
+ "created_at": {
897
+ "name": "created_at",
898
+ "type": "text",
899
+ "primaryKey": false,
900
+ "notNull": true
901
+ }
902
+ },
903
+ "indexes": {
904
+ "sessions_project_started": {
905
+ "name": "sessions_project_started",
906
+ "columns": [
907
+ {
908
+ "expression": "project_id",
909
+ "isExpression": false,
910
+ "asc": true,
911
+ "nulls": "last"
912
+ },
913
+ {
914
+ "expression": "started_at",
915
+ "isExpression": false,
916
+ "asc": true,
917
+ "nulls": "last"
918
+ }
919
+ ],
920
+ "isUnique": false,
921
+ "concurrently": false,
922
+ "method": "btree",
923
+ "with": {}
924
+ }
925
+ },
926
+ "foreignKeys": {
927
+ "sessions_project_id_projects_id_fk": {
928
+ "name": "sessions_project_id_projects_id_fk",
929
+ "tableFrom": "sessions",
930
+ "tableTo": "projects",
931
+ "columnsFrom": [
932
+ "project_id"
933
+ ],
934
+ "columnsTo": [
935
+ "id"
936
+ ],
937
+ "onDelete": "cascade",
938
+ "onUpdate": "no action"
939
+ },
940
+ "sessions_compacted_into_sessions_id_fk": {
941
+ "name": "sessions_compacted_into_sessions_id_fk",
942
+ "tableFrom": "sessions",
943
+ "tableTo": "sessions",
944
+ "columnsFrom": [
945
+ "compacted_into"
946
+ ],
947
+ "columnsTo": [
948
+ "id"
949
+ ],
950
+ "onDelete": "set null",
951
+ "onUpdate": "no action"
952
+ }
953
+ },
954
+ "compositePrimaryKeys": {},
955
+ "uniqueConstraints": {},
956
+ "policies": {},
957
+ "checkConstraints": {},
958
+ "isRLSEnabled": false
959
+ }
960
+ },
961
+ "enums": {},
962
+ "schemas": {},
963
+ "sequences": {},
964
+ "roles": {},
965
+ "policies": {},
966
+ "views": {},
967
+ "_meta": {
968
+ "columns": {},
969
+ "schemas": {},
970
+ "tables": {}
971
+ }
972
+ }