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