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,1376 @@
1
+ {
2
+ "id": "baa0991b-a1c1-4502-9bb3-4ed0ace4e712",
3
+ "prevId": "c7c6f588-a0a6-4915-8f22-512e1897c112",
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
+ "tsv": {
343
+ "name": "tsv",
344
+ "type": "tsvector",
345
+ "primaryKey": false,
346
+ "notNull": false,
347
+ "generated": {
348
+ "as": "setweight(to_tsvector('english', coalesce(\"heading\", '')), 'A') || setweight(to_tsvector('english', coalesce(\"content\", '')), 'B')",
349
+ "type": "stored"
350
+ }
351
+ }
352
+ },
353
+ "indexes": {
354
+ "context_sections_project_heading": {
355
+ "name": "context_sections_project_heading",
356
+ "columns": [
357
+ {
358
+ "expression": "project_id",
359
+ "isExpression": false,
360
+ "asc": true,
361
+ "nulls": "last"
362
+ },
363
+ {
364
+ "expression": "heading",
365
+ "isExpression": false,
366
+ "asc": true,
367
+ "nulls": "last"
368
+ }
369
+ ],
370
+ "isUnique": true,
371
+ "concurrently": false,
372
+ "method": "btree",
373
+ "with": {}
374
+ },
375
+ "context_sections_project_order": {
376
+ "name": "context_sections_project_order",
377
+ "columns": [
378
+ {
379
+ "expression": "project_id",
380
+ "isExpression": false,
381
+ "asc": true,
382
+ "nulls": "last"
383
+ },
384
+ {
385
+ "expression": "sort_order",
386
+ "isExpression": false,
387
+ "asc": true,
388
+ "nulls": "last"
389
+ }
390
+ ],
391
+ "isUnique": false,
392
+ "concurrently": false,
393
+ "method": "btree",
394
+ "with": {}
395
+ },
396
+ "context_sections_tsv": {
397
+ "name": "context_sections_tsv",
398
+ "columns": [
399
+ {
400
+ "expression": "tsv",
401
+ "isExpression": false,
402
+ "asc": true,
403
+ "nulls": "last"
404
+ }
405
+ ],
406
+ "isUnique": false,
407
+ "concurrently": false,
408
+ "method": "gin",
409
+ "with": {}
410
+ }
411
+ },
412
+ "foreignKeys": {
413
+ "context_sections_project_id_projects_id_fk": {
414
+ "name": "context_sections_project_id_projects_id_fk",
415
+ "tableFrom": "context_sections",
416
+ "tableTo": "projects",
417
+ "columnsFrom": [
418
+ "project_id"
419
+ ],
420
+ "columnsTo": [
421
+ "id"
422
+ ],
423
+ "onDelete": "cascade",
424
+ "onUpdate": "no action"
425
+ }
426
+ },
427
+ "compositePrimaryKeys": {},
428
+ "uniqueConstraints": {},
429
+ "policies": {},
430
+ "checkConstraints": {},
431
+ "isRLSEnabled": false
432
+ },
433
+ "public.dependencies": {
434
+ "name": "dependencies",
435
+ "schema": "",
436
+ "columns": {
437
+ "item_id": {
438
+ "name": "item_id",
439
+ "type": "text",
440
+ "primaryKey": false,
441
+ "notNull": true
442
+ },
443
+ "depends_on_id": {
444
+ "name": "depends_on_id",
445
+ "type": "text",
446
+ "primaryKey": false,
447
+ "notNull": true
448
+ },
449
+ "created_at": {
450
+ "name": "created_at",
451
+ "type": "text",
452
+ "primaryKey": false,
453
+ "notNull": true
454
+ }
455
+ },
456
+ "indexes": {
457
+ "dependencies_depends_on": {
458
+ "name": "dependencies_depends_on",
459
+ "columns": [
460
+ {
461
+ "expression": "depends_on_id",
462
+ "isExpression": false,
463
+ "asc": true,
464
+ "nulls": "last"
465
+ }
466
+ ],
467
+ "isUnique": false,
468
+ "concurrently": false,
469
+ "method": "btree",
470
+ "with": {}
471
+ }
472
+ },
473
+ "foreignKeys": {
474
+ "dependencies_item_id_items_id_fk": {
475
+ "name": "dependencies_item_id_items_id_fk",
476
+ "tableFrom": "dependencies",
477
+ "tableTo": "items",
478
+ "columnsFrom": [
479
+ "item_id"
480
+ ],
481
+ "columnsTo": [
482
+ "id"
483
+ ],
484
+ "onDelete": "cascade",
485
+ "onUpdate": "no action"
486
+ },
487
+ "dependencies_depends_on_id_items_id_fk": {
488
+ "name": "dependencies_depends_on_id_items_id_fk",
489
+ "tableFrom": "dependencies",
490
+ "tableTo": "items",
491
+ "columnsFrom": [
492
+ "depends_on_id"
493
+ ],
494
+ "columnsTo": [
495
+ "id"
496
+ ],
497
+ "onDelete": "cascade",
498
+ "onUpdate": "no action"
499
+ }
500
+ },
501
+ "compositePrimaryKeys": {
502
+ "dependencies_item_id_depends_on_id_pk": {
503
+ "name": "dependencies_item_id_depends_on_id_pk",
504
+ "columns": [
505
+ "item_id",
506
+ "depends_on_id"
507
+ ]
508
+ }
509
+ },
510
+ "uniqueConstraints": {},
511
+ "policies": {},
512
+ "checkConstraints": {},
513
+ "isRLSEnabled": false
514
+ },
515
+ "public.events": {
516
+ "name": "events",
517
+ "schema": "",
518
+ "columns": {
519
+ "id": {
520
+ "name": "id",
521
+ "type": "text",
522
+ "primaryKey": true,
523
+ "notNull": true
524
+ },
525
+ "project_id": {
526
+ "name": "project_id",
527
+ "type": "text",
528
+ "primaryKey": false,
529
+ "notNull": false
530
+ },
531
+ "entity_type": {
532
+ "name": "entity_type",
533
+ "type": "text",
534
+ "primaryKey": false,
535
+ "notNull": true
536
+ },
537
+ "entity_id": {
538
+ "name": "entity_id",
539
+ "type": "text",
540
+ "primaryKey": false,
541
+ "notNull": true
542
+ },
543
+ "at": {
544
+ "name": "at",
545
+ "type": "text",
546
+ "primaryKey": false,
547
+ "notNull": true
548
+ },
549
+ "actor": {
550
+ "name": "actor",
551
+ "type": "text",
552
+ "primaryKey": false,
553
+ "notNull": true
554
+ },
555
+ "kind": {
556
+ "name": "kind",
557
+ "type": "text",
558
+ "primaryKey": false,
559
+ "notNull": true
560
+ },
561
+ "correlation_id": {
562
+ "name": "correlation_id",
563
+ "type": "text",
564
+ "primaryKey": false,
565
+ "notNull": false
566
+ },
567
+ "before": {
568
+ "name": "before",
569
+ "type": "text",
570
+ "primaryKey": false,
571
+ "notNull": false
572
+ },
573
+ "after": {
574
+ "name": "after",
575
+ "type": "text",
576
+ "primaryKey": false,
577
+ "notNull": false
578
+ }
579
+ },
580
+ "indexes": {
581
+ "events_entity": {
582
+ "name": "events_entity",
583
+ "columns": [
584
+ {
585
+ "expression": "entity_type",
586
+ "isExpression": false,
587
+ "asc": true,
588
+ "nulls": "last"
589
+ },
590
+ {
591
+ "expression": "entity_id",
592
+ "isExpression": false,
593
+ "asc": true,
594
+ "nulls": "last"
595
+ }
596
+ ],
597
+ "isUnique": false,
598
+ "concurrently": false,
599
+ "method": "btree",
600
+ "with": {}
601
+ },
602
+ "events_project_at": {
603
+ "name": "events_project_at",
604
+ "columns": [
605
+ {
606
+ "expression": "project_id",
607
+ "isExpression": false,
608
+ "asc": true,
609
+ "nulls": "last"
610
+ },
611
+ {
612
+ "expression": "at",
613
+ "isExpression": false,
614
+ "asc": true,
615
+ "nulls": "last"
616
+ }
617
+ ],
618
+ "isUnique": false,
619
+ "concurrently": false,
620
+ "method": "btree",
621
+ "with": {}
622
+ }
623
+ },
624
+ "foreignKeys": {
625
+ "events_project_id_projects_id_fk": {
626
+ "name": "events_project_id_projects_id_fk",
627
+ "tableFrom": "events",
628
+ "tableTo": "projects",
629
+ "columnsFrom": [
630
+ "project_id"
631
+ ],
632
+ "columnsTo": [
633
+ "id"
634
+ ],
635
+ "onDelete": "cascade",
636
+ "onUpdate": "no action"
637
+ }
638
+ },
639
+ "compositePrimaryKeys": {},
640
+ "uniqueConstraints": {},
641
+ "policies": {},
642
+ "checkConstraints": {},
643
+ "isRLSEnabled": false
644
+ },
645
+ "public.items": {
646
+ "name": "items",
647
+ "schema": "",
648
+ "columns": {
649
+ "id": {
650
+ "name": "id",
651
+ "type": "text",
652
+ "primaryKey": true,
653
+ "notNull": true
654
+ },
655
+ "project_id": {
656
+ "name": "project_id",
657
+ "type": "text",
658
+ "primaryKey": false,
659
+ "notNull": true
660
+ },
661
+ "ref": {
662
+ "name": "ref",
663
+ "type": "text",
664
+ "primaryKey": false,
665
+ "notNull": true
666
+ },
667
+ "area_key": {
668
+ "name": "area_key",
669
+ "type": "text",
670
+ "primaryKey": false,
671
+ "notNull": true
672
+ },
673
+ "sort_path": {
674
+ "name": "sort_path",
675
+ "type": "text",
676
+ "primaryKey": false,
677
+ "notNull": true
678
+ },
679
+ "parent_id": {
680
+ "name": "parent_id",
681
+ "type": "text",
682
+ "primaryKey": false,
683
+ "notNull": false
684
+ },
685
+ "title": {
686
+ "name": "title",
687
+ "type": "text",
688
+ "primaryKey": false,
689
+ "notNull": true
690
+ },
691
+ "body": {
692
+ "name": "body",
693
+ "type": "text",
694
+ "primaryKey": false,
695
+ "notNull": false
696
+ },
697
+ "status": {
698
+ "name": "status",
699
+ "type": "text",
700
+ "primaryKey": false,
701
+ "notNull": true
702
+ },
703
+ "priority": {
704
+ "name": "priority",
705
+ "type": "integer",
706
+ "primaryKey": false,
707
+ "notNull": true,
708
+ "default": 0
709
+ },
710
+ "created_at": {
711
+ "name": "created_at",
712
+ "type": "text",
713
+ "primaryKey": false,
714
+ "notNull": true
715
+ },
716
+ "updated_at": {
717
+ "name": "updated_at",
718
+ "type": "text",
719
+ "primaryKey": false,
720
+ "notNull": true
721
+ },
722
+ "closed_at": {
723
+ "name": "closed_at",
724
+ "type": "text",
725
+ "primaryKey": false,
726
+ "notNull": false
727
+ },
728
+ "deleted_at": {
729
+ "name": "deleted_at",
730
+ "type": "text",
731
+ "primaryKey": false,
732
+ "notNull": false
733
+ },
734
+ "tsv": {
735
+ "name": "tsv",
736
+ "type": "tsvector",
737
+ "primaryKey": false,
738
+ "notNull": false,
739
+ "generated": {
740
+ "as": "setweight(to_tsvector('english', coalesce(\"title\", '')), 'A') || setweight(to_tsvector('english', coalesce(\"body\", '')), 'B')",
741
+ "type": "stored"
742
+ }
743
+ }
744
+ },
745
+ "indexes": {
746
+ "items_project_ref": {
747
+ "name": "items_project_ref",
748
+ "columns": [
749
+ {
750
+ "expression": "project_id",
751
+ "isExpression": false,
752
+ "asc": true,
753
+ "nulls": "last"
754
+ },
755
+ {
756
+ "expression": "ref",
757
+ "isExpression": false,
758
+ "asc": true,
759
+ "nulls": "last"
760
+ }
761
+ ],
762
+ "isUnique": true,
763
+ "concurrently": false,
764
+ "method": "btree",
765
+ "with": {}
766
+ },
767
+ "items_project_status": {
768
+ "name": "items_project_status",
769
+ "columns": [
770
+ {
771
+ "expression": "project_id",
772
+ "isExpression": false,
773
+ "asc": true,
774
+ "nulls": "last"
775
+ },
776
+ {
777
+ "expression": "status",
778
+ "isExpression": false,
779
+ "asc": true,
780
+ "nulls": "last"
781
+ }
782
+ ],
783
+ "isUnique": false,
784
+ "concurrently": false,
785
+ "method": "btree",
786
+ "with": {}
787
+ },
788
+ "items_project_area": {
789
+ "name": "items_project_area",
790
+ "columns": [
791
+ {
792
+ "expression": "project_id",
793
+ "isExpression": false,
794
+ "asc": true,
795
+ "nulls": "last"
796
+ },
797
+ {
798
+ "expression": "area_key",
799
+ "isExpression": false,
800
+ "asc": true,
801
+ "nulls": "last"
802
+ }
803
+ ],
804
+ "isUnique": false,
805
+ "concurrently": false,
806
+ "method": "btree",
807
+ "with": {}
808
+ },
809
+ "items_project_sort": {
810
+ "name": "items_project_sort",
811
+ "columns": [
812
+ {
813
+ "expression": "project_id",
814
+ "isExpression": false,
815
+ "asc": true,
816
+ "nulls": "last"
817
+ },
818
+ {
819
+ "expression": "sort_path",
820
+ "isExpression": false,
821
+ "asc": true,
822
+ "nulls": "last"
823
+ }
824
+ ],
825
+ "isUnique": false,
826
+ "concurrently": false,
827
+ "method": "btree",
828
+ "with": {}
829
+ },
830
+ "items_parent": {
831
+ "name": "items_parent",
832
+ "columns": [
833
+ {
834
+ "expression": "parent_id",
835
+ "isExpression": false,
836
+ "asc": true,
837
+ "nulls": "last"
838
+ }
839
+ ],
840
+ "isUnique": false,
841
+ "concurrently": false,
842
+ "method": "btree",
843
+ "with": {}
844
+ },
845
+ "items_tsv": {
846
+ "name": "items_tsv",
847
+ "columns": [
848
+ {
849
+ "expression": "tsv",
850
+ "isExpression": false,
851
+ "asc": true,
852
+ "nulls": "last"
853
+ }
854
+ ],
855
+ "isUnique": false,
856
+ "concurrently": false,
857
+ "method": "gin",
858
+ "with": {}
859
+ }
860
+ },
861
+ "foreignKeys": {
862
+ "items_project_id_projects_id_fk": {
863
+ "name": "items_project_id_projects_id_fk",
864
+ "tableFrom": "items",
865
+ "tableTo": "projects",
866
+ "columnsFrom": [
867
+ "project_id"
868
+ ],
869
+ "columnsTo": [
870
+ "id"
871
+ ],
872
+ "onDelete": "cascade",
873
+ "onUpdate": "no action"
874
+ },
875
+ "items_parent_id_items_id_fk": {
876
+ "name": "items_parent_id_items_id_fk",
877
+ "tableFrom": "items",
878
+ "tableTo": "items",
879
+ "columnsFrom": [
880
+ "parent_id"
881
+ ],
882
+ "columnsTo": [
883
+ "id"
884
+ ],
885
+ "onDelete": "cascade",
886
+ "onUpdate": "no action"
887
+ }
888
+ },
889
+ "compositePrimaryKeys": {},
890
+ "uniqueConstraints": {},
891
+ "policies": {},
892
+ "checkConstraints": {},
893
+ "isRLSEnabled": false
894
+ },
895
+ "public.notes": {
896
+ "name": "notes",
897
+ "schema": "",
898
+ "columns": {
899
+ "id": {
900
+ "name": "id",
901
+ "type": "text",
902
+ "primaryKey": true,
903
+ "notNull": true
904
+ },
905
+ "project_id": {
906
+ "name": "project_id",
907
+ "type": "text",
908
+ "primaryKey": false,
909
+ "notNull": true
910
+ },
911
+ "item_id": {
912
+ "name": "item_id",
913
+ "type": "text",
914
+ "primaryKey": false,
915
+ "notNull": false
916
+ },
917
+ "body": {
918
+ "name": "body",
919
+ "type": "text",
920
+ "primaryKey": false,
921
+ "notNull": true
922
+ },
923
+ "audience": {
924
+ "name": "audience",
925
+ "type": "text",
926
+ "primaryKey": false,
927
+ "notNull": true,
928
+ "default": "'user'"
929
+ },
930
+ "actor": {
931
+ "name": "actor",
932
+ "type": "text",
933
+ "primaryKey": false,
934
+ "notNull": true
935
+ },
936
+ "created_at": {
937
+ "name": "created_at",
938
+ "type": "text",
939
+ "primaryKey": false,
940
+ "notNull": true
941
+ },
942
+ "tsv": {
943
+ "name": "tsv",
944
+ "type": "tsvector",
945
+ "primaryKey": false,
946
+ "notNull": false,
947
+ "generated": {
948
+ "as": "setweight(to_tsvector('english', coalesce(\"body\", '')), 'A')",
949
+ "type": "stored"
950
+ }
951
+ }
952
+ },
953
+ "indexes": {
954
+ "notes_project_created": {
955
+ "name": "notes_project_created",
956
+ "columns": [
957
+ {
958
+ "expression": "project_id",
959
+ "isExpression": false,
960
+ "asc": true,
961
+ "nulls": "last"
962
+ },
963
+ {
964
+ "expression": "created_at",
965
+ "isExpression": false,
966
+ "asc": true,
967
+ "nulls": "last"
968
+ }
969
+ ],
970
+ "isUnique": false,
971
+ "concurrently": false,
972
+ "method": "btree",
973
+ "with": {}
974
+ },
975
+ "notes_item": {
976
+ "name": "notes_item",
977
+ "columns": [
978
+ {
979
+ "expression": "item_id",
980
+ "isExpression": false,
981
+ "asc": true,
982
+ "nulls": "last"
983
+ }
984
+ ],
985
+ "isUnique": false,
986
+ "concurrently": false,
987
+ "method": "btree",
988
+ "with": {}
989
+ },
990
+ "notes_tsv": {
991
+ "name": "notes_tsv",
992
+ "columns": [
993
+ {
994
+ "expression": "tsv",
995
+ "isExpression": false,
996
+ "asc": true,
997
+ "nulls": "last"
998
+ }
999
+ ],
1000
+ "isUnique": false,
1001
+ "concurrently": false,
1002
+ "method": "gin",
1003
+ "with": {}
1004
+ }
1005
+ },
1006
+ "foreignKeys": {
1007
+ "notes_project_id_projects_id_fk": {
1008
+ "name": "notes_project_id_projects_id_fk",
1009
+ "tableFrom": "notes",
1010
+ "tableTo": "projects",
1011
+ "columnsFrom": [
1012
+ "project_id"
1013
+ ],
1014
+ "columnsTo": [
1015
+ "id"
1016
+ ],
1017
+ "onDelete": "cascade",
1018
+ "onUpdate": "no action"
1019
+ },
1020
+ "notes_item_id_items_id_fk": {
1021
+ "name": "notes_item_id_items_id_fk",
1022
+ "tableFrom": "notes",
1023
+ "tableTo": "items",
1024
+ "columnsFrom": [
1025
+ "item_id"
1026
+ ],
1027
+ "columnsTo": [
1028
+ "id"
1029
+ ],
1030
+ "onDelete": "cascade",
1031
+ "onUpdate": "no action"
1032
+ }
1033
+ },
1034
+ "compositePrimaryKeys": {},
1035
+ "uniqueConstraints": {},
1036
+ "policies": {},
1037
+ "checkConstraints": {},
1038
+ "isRLSEnabled": false
1039
+ },
1040
+ "public.projects": {
1041
+ "name": "projects",
1042
+ "schema": "",
1043
+ "columns": {
1044
+ "id": {
1045
+ "name": "id",
1046
+ "type": "text",
1047
+ "primaryKey": true,
1048
+ "notNull": true
1049
+ },
1050
+ "key": {
1051
+ "name": "key",
1052
+ "type": "text",
1053
+ "primaryKey": false,
1054
+ "notNull": true
1055
+ },
1056
+ "owner_id": {
1057
+ "name": "owner_id",
1058
+ "type": "text",
1059
+ "primaryKey": false,
1060
+ "notNull": true
1061
+ },
1062
+ "name": {
1063
+ "name": "name",
1064
+ "type": "text",
1065
+ "primaryKey": false,
1066
+ "notNull": true
1067
+ },
1068
+ "type": {
1069
+ "name": "type",
1070
+ "type": "text",
1071
+ "primaryKey": false,
1072
+ "notNull": true
1073
+ },
1074
+ "direction": {
1075
+ "name": "direction",
1076
+ "type": "text",
1077
+ "primaryKey": false,
1078
+ "notNull": false
1079
+ },
1080
+ "status": {
1081
+ "name": "status",
1082
+ "type": "text",
1083
+ "primaryKey": false,
1084
+ "notNull": true
1085
+ },
1086
+ "created_at": {
1087
+ "name": "created_at",
1088
+ "type": "text",
1089
+ "primaryKey": false,
1090
+ "notNull": true
1091
+ },
1092
+ "updated_at": {
1093
+ "name": "updated_at",
1094
+ "type": "text",
1095
+ "primaryKey": false,
1096
+ "notNull": true
1097
+ },
1098
+ "archived_at": {
1099
+ "name": "archived_at",
1100
+ "type": "text",
1101
+ "primaryKey": false,
1102
+ "notNull": false
1103
+ }
1104
+ },
1105
+ "indexes": {
1106
+ "projects_owner_key": {
1107
+ "name": "projects_owner_key",
1108
+ "columns": [
1109
+ {
1110
+ "expression": "owner_id",
1111
+ "isExpression": false,
1112
+ "asc": true,
1113
+ "nulls": "last"
1114
+ },
1115
+ {
1116
+ "expression": "key",
1117
+ "isExpression": false,
1118
+ "asc": true,
1119
+ "nulls": "last"
1120
+ }
1121
+ ],
1122
+ "isUnique": true,
1123
+ "concurrently": false,
1124
+ "method": "btree",
1125
+ "with": {}
1126
+ }
1127
+ },
1128
+ "foreignKeys": {
1129
+ "projects_owner_id_users_id_fk": {
1130
+ "name": "projects_owner_id_users_id_fk",
1131
+ "tableFrom": "projects",
1132
+ "tableTo": "users",
1133
+ "columnsFrom": [
1134
+ "owner_id"
1135
+ ],
1136
+ "columnsTo": [
1137
+ "id"
1138
+ ],
1139
+ "onDelete": "no action",
1140
+ "onUpdate": "no action"
1141
+ }
1142
+ },
1143
+ "compositePrimaryKeys": {},
1144
+ "uniqueConstraints": {},
1145
+ "policies": {},
1146
+ "checkConstraints": {},
1147
+ "isRLSEnabled": false
1148
+ },
1149
+ "public.sessions": {
1150
+ "name": "sessions",
1151
+ "schema": "",
1152
+ "columns": {
1153
+ "id": {
1154
+ "name": "id",
1155
+ "type": "text",
1156
+ "primaryKey": true,
1157
+ "notNull": true
1158
+ },
1159
+ "project_id": {
1160
+ "name": "project_id",
1161
+ "type": "text",
1162
+ "primaryKey": false,
1163
+ "notNull": true
1164
+ },
1165
+ "started_at": {
1166
+ "name": "started_at",
1167
+ "type": "text",
1168
+ "primaryKey": false,
1169
+ "notNull": true
1170
+ },
1171
+ "ended_at": {
1172
+ "name": "ended_at",
1173
+ "type": "text",
1174
+ "primaryKey": false,
1175
+ "notNull": false
1176
+ },
1177
+ "summary": {
1178
+ "name": "summary",
1179
+ "type": "text",
1180
+ "primaryKey": false,
1181
+ "notNull": false
1182
+ },
1183
+ "actor": {
1184
+ "name": "actor",
1185
+ "type": "text",
1186
+ "primaryKey": false,
1187
+ "notNull": true
1188
+ },
1189
+ "compacted_into": {
1190
+ "name": "compacted_into",
1191
+ "type": "text",
1192
+ "primaryKey": false,
1193
+ "notNull": false
1194
+ },
1195
+ "created_at": {
1196
+ "name": "created_at",
1197
+ "type": "text",
1198
+ "primaryKey": false,
1199
+ "notNull": true
1200
+ },
1201
+ "tsv": {
1202
+ "name": "tsv",
1203
+ "type": "tsvector",
1204
+ "primaryKey": false,
1205
+ "notNull": false,
1206
+ "generated": {
1207
+ "as": "setweight(to_tsvector('english', coalesce(\"summary\", '')), 'A')",
1208
+ "type": "stored"
1209
+ }
1210
+ }
1211
+ },
1212
+ "indexes": {
1213
+ "sessions_project_started": {
1214
+ "name": "sessions_project_started",
1215
+ "columns": [
1216
+ {
1217
+ "expression": "project_id",
1218
+ "isExpression": false,
1219
+ "asc": true,
1220
+ "nulls": "last"
1221
+ },
1222
+ {
1223
+ "expression": "started_at",
1224
+ "isExpression": false,
1225
+ "asc": true,
1226
+ "nulls": "last"
1227
+ }
1228
+ ],
1229
+ "isUnique": false,
1230
+ "concurrently": false,
1231
+ "method": "btree",
1232
+ "with": {}
1233
+ },
1234
+ "sessions_tsv": {
1235
+ "name": "sessions_tsv",
1236
+ "columns": [
1237
+ {
1238
+ "expression": "tsv",
1239
+ "isExpression": false,
1240
+ "asc": true,
1241
+ "nulls": "last"
1242
+ }
1243
+ ],
1244
+ "isUnique": false,
1245
+ "concurrently": false,
1246
+ "method": "gin",
1247
+ "with": {}
1248
+ }
1249
+ },
1250
+ "foreignKeys": {
1251
+ "sessions_project_id_projects_id_fk": {
1252
+ "name": "sessions_project_id_projects_id_fk",
1253
+ "tableFrom": "sessions",
1254
+ "tableTo": "projects",
1255
+ "columnsFrom": [
1256
+ "project_id"
1257
+ ],
1258
+ "columnsTo": [
1259
+ "id"
1260
+ ],
1261
+ "onDelete": "cascade",
1262
+ "onUpdate": "no action"
1263
+ },
1264
+ "sessions_compacted_into_sessions_id_fk": {
1265
+ "name": "sessions_compacted_into_sessions_id_fk",
1266
+ "tableFrom": "sessions",
1267
+ "tableTo": "sessions",
1268
+ "columnsFrom": [
1269
+ "compacted_into"
1270
+ ],
1271
+ "columnsTo": [
1272
+ "id"
1273
+ ],
1274
+ "onDelete": "set null",
1275
+ "onUpdate": "no action"
1276
+ }
1277
+ },
1278
+ "compositePrimaryKeys": {},
1279
+ "uniqueConstraints": {},
1280
+ "policies": {},
1281
+ "checkConstraints": {},
1282
+ "isRLSEnabled": false
1283
+ },
1284
+ "public.users": {
1285
+ "name": "users",
1286
+ "schema": "",
1287
+ "columns": {
1288
+ "id": {
1289
+ "name": "id",
1290
+ "type": "text",
1291
+ "primaryKey": true,
1292
+ "notNull": true
1293
+ },
1294
+ "issuer": {
1295
+ "name": "issuer",
1296
+ "type": "text",
1297
+ "primaryKey": false,
1298
+ "notNull": true
1299
+ },
1300
+ "subject": {
1301
+ "name": "subject",
1302
+ "type": "text",
1303
+ "primaryKey": false,
1304
+ "notNull": true
1305
+ },
1306
+ "email": {
1307
+ "name": "email",
1308
+ "type": "text",
1309
+ "primaryKey": false,
1310
+ "notNull": false
1311
+ },
1312
+ "created_at": {
1313
+ "name": "created_at",
1314
+ "type": "text",
1315
+ "primaryKey": false,
1316
+ "notNull": true
1317
+ }
1318
+ },
1319
+ "indexes": {
1320
+ "users_issuer_subject": {
1321
+ "name": "users_issuer_subject",
1322
+ "columns": [
1323
+ {
1324
+ "expression": "issuer",
1325
+ "isExpression": false,
1326
+ "asc": true,
1327
+ "nulls": "last"
1328
+ },
1329
+ {
1330
+ "expression": "subject",
1331
+ "isExpression": false,
1332
+ "asc": true,
1333
+ "nulls": "last"
1334
+ }
1335
+ ],
1336
+ "isUnique": true,
1337
+ "concurrently": false,
1338
+ "method": "btree",
1339
+ "with": {}
1340
+ },
1341
+ "users_email": {
1342
+ "name": "users_email",
1343
+ "columns": [
1344
+ {
1345
+ "expression": "email",
1346
+ "isExpression": false,
1347
+ "asc": true,
1348
+ "nulls": "last"
1349
+ }
1350
+ ],
1351
+ "isUnique": true,
1352
+ "concurrently": false,
1353
+ "method": "btree",
1354
+ "with": {}
1355
+ }
1356
+ },
1357
+ "foreignKeys": {},
1358
+ "compositePrimaryKeys": {},
1359
+ "uniqueConstraints": {},
1360
+ "policies": {},
1361
+ "checkConstraints": {},
1362
+ "isRLSEnabled": false
1363
+ }
1364
+ },
1365
+ "enums": {},
1366
+ "schemas": {},
1367
+ "sequences": {},
1368
+ "roles": {},
1369
+ "policies": {},
1370
+ "views": {},
1371
+ "_meta": {
1372
+ "columns": {},
1373
+ "schemas": {},
1374
+ "tables": {}
1375
+ }
1376
+ }