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,1275 @@
1
+ {
2
+ "id": "810cc30b-eb56-43c7-840f-411f1a436f3c",
3
+ "prevId": "80a1cea6-0402-4d9b-8d95-fd16b9c500cc",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.allowed_emails": {
8
+ "name": "allowed_emails",
9
+ "schema": "",
10
+ "columns": {
11
+ "email": {
12
+ "name": "email",
13
+ "type": "text",
14
+ "primaryKey": true,
15
+ "notNull": true
16
+ },
17
+ "note": {
18
+ "name": "note",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": false
22
+ },
23
+ "created_at": {
24
+ "name": "created_at",
25
+ "type": "text",
26
+ "primaryKey": false,
27
+ "notNull": true
28
+ }
29
+ },
30
+ "indexes": {},
31
+ "foreignKeys": {},
32
+ "compositePrimaryKeys": {},
33
+ "uniqueConstraints": {},
34
+ "policies": {},
35
+ "checkConstraints": {},
36
+ "isRLSEnabled": false
37
+ },
38
+ "public.areas": {
39
+ "name": "areas",
40
+ "schema": "",
41
+ "columns": {
42
+ "id": {
43
+ "name": "id",
44
+ "type": "text",
45
+ "primaryKey": true,
46
+ "notNull": true
47
+ },
48
+ "project_id": {
49
+ "name": "project_id",
50
+ "type": "text",
51
+ "primaryKey": false,
52
+ "notNull": true
53
+ },
54
+ "key": {
55
+ "name": "key",
56
+ "type": "text",
57
+ "primaryKey": false,
58
+ "notNull": true
59
+ },
60
+ "name": {
61
+ "name": "name",
62
+ "type": "text",
63
+ "primaryKey": false,
64
+ "notNull": true
65
+ },
66
+ "description": {
67
+ "name": "description",
68
+ "type": "text",
69
+ "primaryKey": false,
70
+ "notNull": false
71
+ },
72
+ "colour": {
73
+ "name": "colour",
74
+ "type": "text",
75
+ "primaryKey": false,
76
+ "notNull": false
77
+ },
78
+ "sort_order": {
79
+ "name": "sort_order",
80
+ "type": "integer",
81
+ "primaryKey": false,
82
+ "notNull": true,
83
+ "default": 0
84
+ },
85
+ "created_at": {
86
+ "name": "created_at",
87
+ "type": "text",
88
+ "primaryKey": false,
89
+ "notNull": true
90
+ }
91
+ },
92
+ "indexes": {
93
+ "areas_project_key": {
94
+ "name": "areas_project_key",
95
+ "columns": [
96
+ {
97
+ "expression": "project_id",
98
+ "isExpression": false,
99
+ "asc": true,
100
+ "nulls": "last"
101
+ },
102
+ {
103
+ "expression": "key",
104
+ "isExpression": false,
105
+ "asc": true,
106
+ "nulls": "last"
107
+ }
108
+ ],
109
+ "isUnique": true,
110
+ "concurrently": false,
111
+ "method": "btree",
112
+ "with": {}
113
+ }
114
+ },
115
+ "foreignKeys": {
116
+ "areas_project_id_projects_id_fk": {
117
+ "name": "areas_project_id_projects_id_fk",
118
+ "tableFrom": "areas",
119
+ "tableTo": "projects",
120
+ "columnsFrom": [
121
+ "project_id"
122
+ ],
123
+ "columnsTo": [
124
+ "id"
125
+ ],
126
+ "onDelete": "cascade",
127
+ "onUpdate": "no action"
128
+ }
129
+ },
130
+ "compositePrimaryKeys": {},
131
+ "uniqueConstraints": {},
132
+ "policies": {},
133
+ "checkConstraints": {},
134
+ "isRLSEnabled": false
135
+ },
136
+ "public.attachments": {
137
+ "name": "attachments",
138
+ "schema": "",
139
+ "columns": {
140
+ "id": {
141
+ "name": "id",
142
+ "type": "text",
143
+ "primaryKey": true,
144
+ "notNull": true
145
+ },
146
+ "project_id": {
147
+ "name": "project_id",
148
+ "type": "text",
149
+ "primaryKey": false,
150
+ "notNull": true
151
+ },
152
+ "item_id": {
153
+ "name": "item_id",
154
+ "type": "text",
155
+ "primaryKey": false,
156
+ "notNull": false
157
+ },
158
+ "hash": {
159
+ "name": "hash",
160
+ "type": "text",
161
+ "primaryKey": false,
162
+ "notNull": true
163
+ },
164
+ "mime": {
165
+ "name": "mime",
166
+ "type": "text",
167
+ "primaryKey": false,
168
+ "notNull": true
169
+ },
170
+ "bytes": {
171
+ "name": "bytes",
172
+ "type": "integer",
173
+ "primaryKey": false,
174
+ "notNull": true
175
+ },
176
+ "caption": {
177
+ "name": "caption",
178
+ "type": "text",
179
+ "primaryKey": false,
180
+ "notNull": false
181
+ },
182
+ "actor": {
183
+ "name": "actor",
184
+ "type": "text",
185
+ "primaryKey": false,
186
+ "notNull": true
187
+ },
188
+ "created_at": {
189
+ "name": "created_at",
190
+ "type": "text",
191
+ "primaryKey": false,
192
+ "notNull": true
193
+ }
194
+ },
195
+ "indexes": {
196
+ "attachments_project_item": {
197
+ "name": "attachments_project_item",
198
+ "columns": [
199
+ {
200
+ "expression": "project_id",
201
+ "isExpression": false,
202
+ "asc": true,
203
+ "nulls": "last"
204
+ },
205
+ {
206
+ "expression": "item_id",
207
+ "isExpression": false,
208
+ "asc": true,
209
+ "nulls": "last"
210
+ }
211
+ ],
212
+ "isUnique": false,
213
+ "concurrently": false,
214
+ "method": "btree",
215
+ "with": {}
216
+ },
217
+ "attachments_hash": {
218
+ "name": "attachments_hash",
219
+ "columns": [
220
+ {
221
+ "expression": "hash",
222
+ "isExpression": false,
223
+ "asc": true,
224
+ "nulls": "last"
225
+ }
226
+ ],
227
+ "isUnique": false,
228
+ "concurrently": false,
229
+ "method": "btree",
230
+ "with": {}
231
+ },
232
+ "attachments_item_hash": {
233
+ "name": "attachments_item_hash",
234
+ "columns": [
235
+ {
236
+ "expression": "project_id",
237
+ "isExpression": false,
238
+ "asc": true,
239
+ "nulls": "last"
240
+ },
241
+ {
242
+ "expression": "item_id",
243
+ "isExpression": false,
244
+ "asc": true,
245
+ "nulls": "last"
246
+ },
247
+ {
248
+ "expression": "hash",
249
+ "isExpression": false,
250
+ "asc": true,
251
+ "nulls": "last"
252
+ }
253
+ ],
254
+ "isUnique": true,
255
+ "concurrently": false,
256
+ "method": "btree",
257
+ "with": {}
258
+ }
259
+ },
260
+ "foreignKeys": {
261
+ "attachments_project_id_projects_id_fk": {
262
+ "name": "attachments_project_id_projects_id_fk",
263
+ "tableFrom": "attachments",
264
+ "tableTo": "projects",
265
+ "columnsFrom": [
266
+ "project_id"
267
+ ],
268
+ "columnsTo": [
269
+ "id"
270
+ ],
271
+ "onDelete": "cascade",
272
+ "onUpdate": "no action"
273
+ },
274
+ "attachments_item_id_items_id_fk": {
275
+ "name": "attachments_item_id_items_id_fk",
276
+ "tableFrom": "attachments",
277
+ "tableTo": "items",
278
+ "columnsFrom": [
279
+ "item_id"
280
+ ],
281
+ "columnsTo": [
282
+ "id"
283
+ ],
284
+ "onDelete": "cascade",
285
+ "onUpdate": "no action"
286
+ }
287
+ },
288
+ "compositePrimaryKeys": {},
289
+ "uniqueConstraints": {},
290
+ "policies": {},
291
+ "checkConstraints": {},
292
+ "isRLSEnabled": false
293
+ },
294
+ "public.context_sections": {
295
+ "name": "context_sections",
296
+ "schema": "",
297
+ "columns": {
298
+ "id": {
299
+ "name": "id",
300
+ "type": "text",
301
+ "primaryKey": true,
302
+ "notNull": true
303
+ },
304
+ "project_id": {
305
+ "name": "project_id",
306
+ "type": "text",
307
+ "primaryKey": false,
308
+ "notNull": true
309
+ },
310
+ "heading": {
311
+ "name": "heading",
312
+ "type": "text",
313
+ "primaryKey": false,
314
+ "notNull": true
315
+ },
316
+ "content": {
317
+ "name": "content",
318
+ "type": "text",
319
+ "primaryKey": false,
320
+ "notNull": true
321
+ },
322
+ "sort_order": {
323
+ "name": "sort_order",
324
+ "type": "integer",
325
+ "primaryKey": false,
326
+ "notNull": true,
327
+ "default": 0
328
+ },
329
+ "created_at": {
330
+ "name": "created_at",
331
+ "type": "text",
332
+ "primaryKey": false,
333
+ "notNull": true
334
+ },
335
+ "updated_at": {
336
+ "name": "updated_at",
337
+ "type": "text",
338
+ "primaryKey": false,
339
+ "notNull": true
340
+ }
341
+ },
342
+ "indexes": {
343
+ "context_sections_project_heading": {
344
+ "name": "context_sections_project_heading",
345
+ "columns": [
346
+ {
347
+ "expression": "project_id",
348
+ "isExpression": false,
349
+ "asc": true,
350
+ "nulls": "last"
351
+ },
352
+ {
353
+ "expression": "heading",
354
+ "isExpression": false,
355
+ "asc": true,
356
+ "nulls": "last"
357
+ }
358
+ ],
359
+ "isUnique": true,
360
+ "concurrently": false,
361
+ "method": "btree",
362
+ "with": {}
363
+ },
364
+ "context_sections_project_order": {
365
+ "name": "context_sections_project_order",
366
+ "columns": [
367
+ {
368
+ "expression": "project_id",
369
+ "isExpression": false,
370
+ "asc": true,
371
+ "nulls": "last"
372
+ },
373
+ {
374
+ "expression": "sort_order",
375
+ "isExpression": false,
376
+ "asc": true,
377
+ "nulls": "last"
378
+ }
379
+ ],
380
+ "isUnique": false,
381
+ "concurrently": false,
382
+ "method": "btree",
383
+ "with": {}
384
+ }
385
+ },
386
+ "foreignKeys": {
387
+ "context_sections_project_id_projects_id_fk": {
388
+ "name": "context_sections_project_id_projects_id_fk",
389
+ "tableFrom": "context_sections",
390
+ "tableTo": "projects",
391
+ "columnsFrom": [
392
+ "project_id"
393
+ ],
394
+ "columnsTo": [
395
+ "id"
396
+ ],
397
+ "onDelete": "cascade",
398
+ "onUpdate": "no action"
399
+ }
400
+ },
401
+ "compositePrimaryKeys": {},
402
+ "uniqueConstraints": {},
403
+ "policies": {},
404
+ "checkConstraints": {},
405
+ "isRLSEnabled": false
406
+ },
407
+ "public.dependencies": {
408
+ "name": "dependencies",
409
+ "schema": "",
410
+ "columns": {
411
+ "item_id": {
412
+ "name": "item_id",
413
+ "type": "text",
414
+ "primaryKey": false,
415
+ "notNull": true
416
+ },
417
+ "depends_on_id": {
418
+ "name": "depends_on_id",
419
+ "type": "text",
420
+ "primaryKey": false,
421
+ "notNull": true
422
+ },
423
+ "created_at": {
424
+ "name": "created_at",
425
+ "type": "text",
426
+ "primaryKey": false,
427
+ "notNull": true
428
+ }
429
+ },
430
+ "indexes": {
431
+ "dependencies_depends_on": {
432
+ "name": "dependencies_depends_on",
433
+ "columns": [
434
+ {
435
+ "expression": "depends_on_id",
436
+ "isExpression": false,
437
+ "asc": true,
438
+ "nulls": "last"
439
+ }
440
+ ],
441
+ "isUnique": false,
442
+ "concurrently": false,
443
+ "method": "btree",
444
+ "with": {}
445
+ }
446
+ },
447
+ "foreignKeys": {
448
+ "dependencies_item_id_items_id_fk": {
449
+ "name": "dependencies_item_id_items_id_fk",
450
+ "tableFrom": "dependencies",
451
+ "tableTo": "items",
452
+ "columnsFrom": [
453
+ "item_id"
454
+ ],
455
+ "columnsTo": [
456
+ "id"
457
+ ],
458
+ "onDelete": "cascade",
459
+ "onUpdate": "no action"
460
+ },
461
+ "dependencies_depends_on_id_items_id_fk": {
462
+ "name": "dependencies_depends_on_id_items_id_fk",
463
+ "tableFrom": "dependencies",
464
+ "tableTo": "items",
465
+ "columnsFrom": [
466
+ "depends_on_id"
467
+ ],
468
+ "columnsTo": [
469
+ "id"
470
+ ],
471
+ "onDelete": "cascade",
472
+ "onUpdate": "no action"
473
+ }
474
+ },
475
+ "compositePrimaryKeys": {
476
+ "dependencies_item_id_depends_on_id_pk": {
477
+ "name": "dependencies_item_id_depends_on_id_pk",
478
+ "columns": [
479
+ "item_id",
480
+ "depends_on_id"
481
+ ]
482
+ }
483
+ },
484
+ "uniqueConstraints": {},
485
+ "policies": {},
486
+ "checkConstraints": {},
487
+ "isRLSEnabled": false
488
+ },
489
+ "public.events": {
490
+ "name": "events",
491
+ "schema": "",
492
+ "columns": {
493
+ "id": {
494
+ "name": "id",
495
+ "type": "text",
496
+ "primaryKey": true,
497
+ "notNull": true
498
+ },
499
+ "project_id": {
500
+ "name": "project_id",
501
+ "type": "text",
502
+ "primaryKey": false,
503
+ "notNull": false
504
+ },
505
+ "entity_type": {
506
+ "name": "entity_type",
507
+ "type": "text",
508
+ "primaryKey": false,
509
+ "notNull": true
510
+ },
511
+ "entity_id": {
512
+ "name": "entity_id",
513
+ "type": "text",
514
+ "primaryKey": false,
515
+ "notNull": true
516
+ },
517
+ "at": {
518
+ "name": "at",
519
+ "type": "text",
520
+ "primaryKey": false,
521
+ "notNull": true
522
+ },
523
+ "actor": {
524
+ "name": "actor",
525
+ "type": "text",
526
+ "primaryKey": false,
527
+ "notNull": true
528
+ },
529
+ "kind": {
530
+ "name": "kind",
531
+ "type": "text",
532
+ "primaryKey": false,
533
+ "notNull": true
534
+ },
535
+ "correlation_id": {
536
+ "name": "correlation_id",
537
+ "type": "text",
538
+ "primaryKey": false,
539
+ "notNull": false
540
+ },
541
+ "before": {
542
+ "name": "before",
543
+ "type": "text",
544
+ "primaryKey": false,
545
+ "notNull": false
546
+ },
547
+ "after": {
548
+ "name": "after",
549
+ "type": "text",
550
+ "primaryKey": false,
551
+ "notNull": false
552
+ }
553
+ },
554
+ "indexes": {
555
+ "events_entity": {
556
+ "name": "events_entity",
557
+ "columns": [
558
+ {
559
+ "expression": "entity_type",
560
+ "isExpression": false,
561
+ "asc": true,
562
+ "nulls": "last"
563
+ },
564
+ {
565
+ "expression": "entity_id",
566
+ "isExpression": false,
567
+ "asc": true,
568
+ "nulls": "last"
569
+ }
570
+ ],
571
+ "isUnique": false,
572
+ "concurrently": false,
573
+ "method": "btree",
574
+ "with": {}
575
+ },
576
+ "events_project_at": {
577
+ "name": "events_project_at",
578
+ "columns": [
579
+ {
580
+ "expression": "project_id",
581
+ "isExpression": false,
582
+ "asc": true,
583
+ "nulls": "last"
584
+ },
585
+ {
586
+ "expression": "at",
587
+ "isExpression": false,
588
+ "asc": true,
589
+ "nulls": "last"
590
+ }
591
+ ],
592
+ "isUnique": false,
593
+ "concurrently": false,
594
+ "method": "btree",
595
+ "with": {}
596
+ }
597
+ },
598
+ "foreignKeys": {
599
+ "events_project_id_projects_id_fk": {
600
+ "name": "events_project_id_projects_id_fk",
601
+ "tableFrom": "events",
602
+ "tableTo": "projects",
603
+ "columnsFrom": [
604
+ "project_id"
605
+ ],
606
+ "columnsTo": [
607
+ "id"
608
+ ],
609
+ "onDelete": "cascade",
610
+ "onUpdate": "no action"
611
+ }
612
+ },
613
+ "compositePrimaryKeys": {},
614
+ "uniqueConstraints": {},
615
+ "policies": {},
616
+ "checkConstraints": {},
617
+ "isRLSEnabled": false
618
+ },
619
+ "public.items": {
620
+ "name": "items",
621
+ "schema": "",
622
+ "columns": {
623
+ "id": {
624
+ "name": "id",
625
+ "type": "text",
626
+ "primaryKey": true,
627
+ "notNull": true
628
+ },
629
+ "project_id": {
630
+ "name": "project_id",
631
+ "type": "text",
632
+ "primaryKey": false,
633
+ "notNull": true
634
+ },
635
+ "ref": {
636
+ "name": "ref",
637
+ "type": "text",
638
+ "primaryKey": false,
639
+ "notNull": true
640
+ },
641
+ "area_key": {
642
+ "name": "area_key",
643
+ "type": "text",
644
+ "primaryKey": false,
645
+ "notNull": true
646
+ },
647
+ "sort_path": {
648
+ "name": "sort_path",
649
+ "type": "text",
650
+ "primaryKey": false,
651
+ "notNull": true
652
+ },
653
+ "parent_id": {
654
+ "name": "parent_id",
655
+ "type": "text",
656
+ "primaryKey": false,
657
+ "notNull": false
658
+ },
659
+ "title": {
660
+ "name": "title",
661
+ "type": "text",
662
+ "primaryKey": false,
663
+ "notNull": true
664
+ },
665
+ "body": {
666
+ "name": "body",
667
+ "type": "text",
668
+ "primaryKey": false,
669
+ "notNull": false
670
+ },
671
+ "status": {
672
+ "name": "status",
673
+ "type": "text",
674
+ "primaryKey": false,
675
+ "notNull": true
676
+ },
677
+ "priority": {
678
+ "name": "priority",
679
+ "type": "integer",
680
+ "primaryKey": false,
681
+ "notNull": true,
682
+ "default": 0
683
+ },
684
+ "created_at": {
685
+ "name": "created_at",
686
+ "type": "text",
687
+ "primaryKey": false,
688
+ "notNull": true
689
+ },
690
+ "updated_at": {
691
+ "name": "updated_at",
692
+ "type": "text",
693
+ "primaryKey": false,
694
+ "notNull": true
695
+ },
696
+ "closed_at": {
697
+ "name": "closed_at",
698
+ "type": "text",
699
+ "primaryKey": false,
700
+ "notNull": false
701
+ },
702
+ "deleted_at": {
703
+ "name": "deleted_at",
704
+ "type": "text",
705
+ "primaryKey": false,
706
+ "notNull": false
707
+ }
708
+ },
709
+ "indexes": {
710
+ "items_project_ref": {
711
+ "name": "items_project_ref",
712
+ "columns": [
713
+ {
714
+ "expression": "project_id",
715
+ "isExpression": false,
716
+ "asc": true,
717
+ "nulls": "last"
718
+ },
719
+ {
720
+ "expression": "ref",
721
+ "isExpression": false,
722
+ "asc": true,
723
+ "nulls": "last"
724
+ }
725
+ ],
726
+ "isUnique": true,
727
+ "concurrently": false,
728
+ "method": "btree",
729
+ "with": {}
730
+ },
731
+ "items_project_status": {
732
+ "name": "items_project_status",
733
+ "columns": [
734
+ {
735
+ "expression": "project_id",
736
+ "isExpression": false,
737
+ "asc": true,
738
+ "nulls": "last"
739
+ },
740
+ {
741
+ "expression": "status",
742
+ "isExpression": false,
743
+ "asc": true,
744
+ "nulls": "last"
745
+ }
746
+ ],
747
+ "isUnique": false,
748
+ "concurrently": false,
749
+ "method": "btree",
750
+ "with": {}
751
+ },
752
+ "items_project_area": {
753
+ "name": "items_project_area",
754
+ "columns": [
755
+ {
756
+ "expression": "project_id",
757
+ "isExpression": false,
758
+ "asc": true,
759
+ "nulls": "last"
760
+ },
761
+ {
762
+ "expression": "area_key",
763
+ "isExpression": false,
764
+ "asc": true,
765
+ "nulls": "last"
766
+ }
767
+ ],
768
+ "isUnique": false,
769
+ "concurrently": false,
770
+ "method": "btree",
771
+ "with": {}
772
+ },
773
+ "items_project_sort": {
774
+ "name": "items_project_sort",
775
+ "columns": [
776
+ {
777
+ "expression": "project_id",
778
+ "isExpression": false,
779
+ "asc": true,
780
+ "nulls": "last"
781
+ },
782
+ {
783
+ "expression": "sort_path",
784
+ "isExpression": false,
785
+ "asc": true,
786
+ "nulls": "last"
787
+ }
788
+ ],
789
+ "isUnique": false,
790
+ "concurrently": false,
791
+ "method": "btree",
792
+ "with": {}
793
+ },
794
+ "items_parent": {
795
+ "name": "items_parent",
796
+ "columns": [
797
+ {
798
+ "expression": "parent_id",
799
+ "isExpression": false,
800
+ "asc": true,
801
+ "nulls": "last"
802
+ }
803
+ ],
804
+ "isUnique": false,
805
+ "concurrently": false,
806
+ "method": "btree",
807
+ "with": {}
808
+ }
809
+ },
810
+ "foreignKeys": {
811
+ "items_project_id_projects_id_fk": {
812
+ "name": "items_project_id_projects_id_fk",
813
+ "tableFrom": "items",
814
+ "tableTo": "projects",
815
+ "columnsFrom": [
816
+ "project_id"
817
+ ],
818
+ "columnsTo": [
819
+ "id"
820
+ ],
821
+ "onDelete": "cascade",
822
+ "onUpdate": "no action"
823
+ },
824
+ "items_parent_id_items_id_fk": {
825
+ "name": "items_parent_id_items_id_fk",
826
+ "tableFrom": "items",
827
+ "tableTo": "items",
828
+ "columnsFrom": [
829
+ "parent_id"
830
+ ],
831
+ "columnsTo": [
832
+ "id"
833
+ ],
834
+ "onDelete": "cascade",
835
+ "onUpdate": "no action"
836
+ }
837
+ },
838
+ "compositePrimaryKeys": {},
839
+ "uniqueConstraints": {},
840
+ "policies": {},
841
+ "checkConstraints": {},
842
+ "isRLSEnabled": false
843
+ },
844
+ "public.notes": {
845
+ "name": "notes",
846
+ "schema": "",
847
+ "columns": {
848
+ "id": {
849
+ "name": "id",
850
+ "type": "text",
851
+ "primaryKey": true,
852
+ "notNull": true
853
+ },
854
+ "project_id": {
855
+ "name": "project_id",
856
+ "type": "text",
857
+ "primaryKey": false,
858
+ "notNull": true
859
+ },
860
+ "item_id": {
861
+ "name": "item_id",
862
+ "type": "text",
863
+ "primaryKey": false,
864
+ "notNull": false
865
+ },
866
+ "body": {
867
+ "name": "body",
868
+ "type": "text",
869
+ "primaryKey": false,
870
+ "notNull": true
871
+ },
872
+ "audience": {
873
+ "name": "audience",
874
+ "type": "text",
875
+ "primaryKey": false,
876
+ "notNull": true,
877
+ "default": "'user'"
878
+ },
879
+ "actor": {
880
+ "name": "actor",
881
+ "type": "text",
882
+ "primaryKey": false,
883
+ "notNull": true
884
+ },
885
+ "created_at": {
886
+ "name": "created_at",
887
+ "type": "text",
888
+ "primaryKey": false,
889
+ "notNull": true
890
+ }
891
+ },
892
+ "indexes": {
893
+ "notes_project_created": {
894
+ "name": "notes_project_created",
895
+ "columns": [
896
+ {
897
+ "expression": "project_id",
898
+ "isExpression": false,
899
+ "asc": true,
900
+ "nulls": "last"
901
+ },
902
+ {
903
+ "expression": "created_at",
904
+ "isExpression": false,
905
+ "asc": true,
906
+ "nulls": "last"
907
+ }
908
+ ],
909
+ "isUnique": false,
910
+ "concurrently": false,
911
+ "method": "btree",
912
+ "with": {}
913
+ },
914
+ "notes_item": {
915
+ "name": "notes_item",
916
+ "columns": [
917
+ {
918
+ "expression": "item_id",
919
+ "isExpression": false,
920
+ "asc": true,
921
+ "nulls": "last"
922
+ }
923
+ ],
924
+ "isUnique": false,
925
+ "concurrently": false,
926
+ "method": "btree",
927
+ "with": {}
928
+ }
929
+ },
930
+ "foreignKeys": {
931
+ "notes_project_id_projects_id_fk": {
932
+ "name": "notes_project_id_projects_id_fk",
933
+ "tableFrom": "notes",
934
+ "tableTo": "projects",
935
+ "columnsFrom": [
936
+ "project_id"
937
+ ],
938
+ "columnsTo": [
939
+ "id"
940
+ ],
941
+ "onDelete": "cascade",
942
+ "onUpdate": "no action"
943
+ },
944
+ "notes_item_id_items_id_fk": {
945
+ "name": "notes_item_id_items_id_fk",
946
+ "tableFrom": "notes",
947
+ "tableTo": "items",
948
+ "columnsFrom": [
949
+ "item_id"
950
+ ],
951
+ "columnsTo": [
952
+ "id"
953
+ ],
954
+ "onDelete": "cascade",
955
+ "onUpdate": "no action"
956
+ }
957
+ },
958
+ "compositePrimaryKeys": {},
959
+ "uniqueConstraints": {},
960
+ "policies": {},
961
+ "checkConstraints": {},
962
+ "isRLSEnabled": false
963
+ },
964
+ "public.projects": {
965
+ "name": "projects",
966
+ "schema": "",
967
+ "columns": {
968
+ "id": {
969
+ "name": "id",
970
+ "type": "text",
971
+ "primaryKey": true,
972
+ "notNull": true
973
+ },
974
+ "key": {
975
+ "name": "key",
976
+ "type": "text",
977
+ "primaryKey": false,
978
+ "notNull": true
979
+ },
980
+ "owner_id": {
981
+ "name": "owner_id",
982
+ "type": "text",
983
+ "primaryKey": false,
984
+ "notNull": true
985
+ },
986
+ "name": {
987
+ "name": "name",
988
+ "type": "text",
989
+ "primaryKey": false,
990
+ "notNull": true
991
+ },
992
+ "type": {
993
+ "name": "type",
994
+ "type": "text",
995
+ "primaryKey": false,
996
+ "notNull": true
997
+ },
998
+ "direction": {
999
+ "name": "direction",
1000
+ "type": "text",
1001
+ "primaryKey": false,
1002
+ "notNull": false
1003
+ },
1004
+ "status": {
1005
+ "name": "status",
1006
+ "type": "text",
1007
+ "primaryKey": false,
1008
+ "notNull": true
1009
+ },
1010
+ "created_at": {
1011
+ "name": "created_at",
1012
+ "type": "text",
1013
+ "primaryKey": false,
1014
+ "notNull": true
1015
+ },
1016
+ "updated_at": {
1017
+ "name": "updated_at",
1018
+ "type": "text",
1019
+ "primaryKey": false,
1020
+ "notNull": true
1021
+ },
1022
+ "archived_at": {
1023
+ "name": "archived_at",
1024
+ "type": "text",
1025
+ "primaryKey": false,
1026
+ "notNull": false
1027
+ }
1028
+ },
1029
+ "indexes": {
1030
+ "projects_owner_key": {
1031
+ "name": "projects_owner_key",
1032
+ "columns": [
1033
+ {
1034
+ "expression": "owner_id",
1035
+ "isExpression": false,
1036
+ "asc": true,
1037
+ "nulls": "last"
1038
+ },
1039
+ {
1040
+ "expression": "key",
1041
+ "isExpression": false,
1042
+ "asc": true,
1043
+ "nulls": "last"
1044
+ }
1045
+ ],
1046
+ "isUnique": true,
1047
+ "concurrently": false,
1048
+ "method": "btree",
1049
+ "with": {}
1050
+ }
1051
+ },
1052
+ "foreignKeys": {
1053
+ "projects_owner_id_users_id_fk": {
1054
+ "name": "projects_owner_id_users_id_fk",
1055
+ "tableFrom": "projects",
1056
+ "tableTo": "users",
1057
+ "columnsFrom": [
1058
+ "owner_id"
1059
+ ],
1060
+ "columnsTo": [
1061
+ "id"
1062
+ ],
1063
+ "onDelete": "no action",
1064
+ "onUpdate": "no action"
1065
+ }
1066
+ },
1067
+ "compositePrimaryKeys": {},
1068
+ "uniqueConstraints": {},
1069
+ "policies": {},
1070
+ "checkConstraints": {},
1071
+ "isRLSEnabled": false
1072
+ },
1073
+ "public.sessions": {
1074
+ "name": "sessions",
1075
+ "schema": "",
1076
+ "columns": {
1077
+ "id": {
1078
+ "name": "id",
1079
+ "type": "text",
1080
+ "primaryKey": true,
1081
+ "notNull": true
1082
+ },
1083
+ "project_id": {
1084
+ "name": "project_id",
1085
+ "type": "text",
1086
+ "primaryKey": false,
1087
+ "notNull": true
1088
+ },
1089
+ "started_at": {
1090
+ "name": "started_at",
1091
+ "type": "text",
1092
+ "primaryKey": false,
1093
+ "notNull": true
1094
+ },
1095
+ "ended_at": {
1096
+ "name": "ended_at",
1097
+ "type": "text",
1098
+ "primaryKey": false,
1099
+ "notNull": false
1100
+ },
1101
+ "summary": {
1102
+ "name": "summary",
1103
+ "type": "text",
1104
+ "primaryKey": false,
1105
+ "notNull": false
1106
+ },
1107
+ "actor": {
1108
+ "name": "actor",
1109
+ "type": "text",
1110
+ "primaryKey": false,
1111
+ "notNull": true
1112
+ },
1113
+ "compacted_into": {
1114
+ "name": "compacted_into",
1115
+ "type": "text",
1116
+ "primaryKey": false,
1117
+ "notNull": false
1118
+ },
1119
+ "created_at": {
1120
+ "name": "created_at",
1121
+ "type": "text",
1122
+ "primaryKey": false,
1123
+ "notNull": true
1124
+ }
1125
+ },
1126
+ "indexes": {
1127
+ "sessions_project_started": {
1128
+ "name": "sessions_project_started",
1129
+ "columns": [
1130
+ {
1131
+ "expression": "project_id",
1132
+ "isExpression": false,
1133
+ "asc": true,
1134
+ "nulls": "last"
1135
+ },
1136
+ {
1137
+ "expression": "started_at",
1138
+ "isExpression": false,
1139
+ "asc": true,
1140
+ "nulls": "last"
1141
+ }
1142
+ ],
1143
+ "isUnique": false,
1144
+ "concurrently": false,
1145
+ "method": "btree",
1146
+ "with": {}
1147
+ }
1148
+ },
1149
+ "foreignKeys": {
1150
+ "sessions_project_id_projects_id_fk": {
1151
+ "name": "sessions_project_id_projects_id_fk",
1152
+ "tableFrom": "sessions",
1153
+ "tableTo": "projects",
1154
+ "columnsFrom": [
1155
+ "project_id"
1156
+ ],
1157
+ "columnsTo": [
1158
+ "id"
1159
+ ],
1160
+ "onDelete": "cascade",
1161
+ "onUpdate": "no action"
1162
+ },
1163
+ "sessions_compacted_into_sessions_id_fk": {
1164
+ "name": "sessions_compacted_into_sessions_id_fk",
1165
+ "tableFrom": "sessions",
1166
+ "tableTo": "sessions",
1167
+ "columnsFrom": [
1168
+ "compacted_into"
1169
+ ],
1170
+ "columnsTo": [
1171
+ "id"
1172
+ ],
1173
+ "onDelete": "set null",
1174
+ "onUpdate": "no action"
1175
+ }
1176
+ },
1177
+ "compositePrimaryKeys": {},
1178
+ "uniqueConstraints": {},
1179
+ "policies": {},
1180
+ "checkConstraints": {},
1181
+ "isRLSEnabled": false
1182
+ },
1183
+ "public.users": {
1184
+ "name": "users",
1185
+ "schema": "",
1186
+ "columns": {
1187
+ "id": {
1188
+ "name": "id",
1189
+ "type": "text",
1190
+ "primaryKey": true,
1191
+ "notNull": true
1192
+ },
1193
+ "issuer": {
1194
+ "name": "issuer",
1195
+ "type": "text",
1196
+ "primaryKey": false,
1197
+ "notNull": true
1198
+ },
1199
+ "subject": {
1200
+ "name": "subject",
1201
+ "type": "text",
1202
+ "primaryKey": false,
1203
+ "notNull": true
1204
+ },
1205
+ "email": {
1206
+ "name": "email",
1207
+ "type": "text",
1208
+ "primaryKey": false,
1209
+ "notNull": false
1210
+ },
1211
+ "created_at": {
1212
+ "name": "created_at",
1213
+ "type": "text",
1214
+ "primaryKey": false,
1215
+ "notNull": true
1216
+ }
1217
+ },
1218
+ "indexes": {
1219
+ "users_issuer_subject": {
1220
+ "name": "users_issuer_subject",
1221
+ "columns": [
1222
+ {
1223
+ "expression": "issuer",
1224
+ "isExpression": false,
1225
+ "asc": true,
1226
+ "nulls": "last"
1227
+ },
1228
+ {
1229
+ "expression": "subject",
1230
+ "isExpression": false,
1231
+ "asc": true,
1232
+ "nulls": "last"
1233
+ }
1234
+ ],
1235
+ "isUnique": true,
1236
+ "concurrently": false,
1237
+ "method": "btree",
1238
+ "with": {}
1239
+ },
1240
+ "users_email": {
1241
+ "name": "users_email",
1242
+ "columns": [
1243
+ {
1244
+ "expression": "email",
1245
+ "isExpression": false,
1246
+ "asc": true,
1247
+ "nulls": "last"
1248
+ }
1249
+ ],
1250
+ "isUnique": true,
1251
+ "concurrently": false,
1252
+ "method": "btree",
1253
+ "with": {}
1254
+ }
1255
+ },
1256
+ "foreignKeys": {},
1257
+ "compositePrimaryKeys": {},
1258
+ "uniqueConstraints": {},
1259
+ "policies": {},
1260
+ "checkConstraints": {},
1261
+ "isRLSEnabled": false
1262
+ }
1263
+ },
1264
+ "enums": {},
1265
+ "schemas": {},
1266
+ "sequences": {},
1267
+ "roles": {},
1268
+ "policies": {},
1269
+ "views": {},
1270
+ "_meta": {
1271
+ "columns": {},
1272
+ "schemas": {},
1273
+ "tables": {}
1274
+ }
1275
+ }