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