attraverso 0.0.1 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/README.txt +9 -0
  2. package/assets/migrations/0000_burly_firestar.sql +76 -0
  3. package/assets/migrations/0001_sleepy_gorilla_man.sql +27 -0
  4. package/assets/migrations/0002_smart_ikaris.sql +14 -0
  5. package/assets/migrations/0003_pink_zodiak.sql +17 -0
  6. package/assets/migrations/0004_loose_hitman.sql +14 -0
  7. package/assets/migrations/0005_glamorous_typhoid_mary.sql +5 -0
  8. package/assets/migrations/0006_slow_deadpool.sql +1 -0
  9. package/assets/migrations/0007_jittery_tag.sql +8 -0
  10. package/assets/migrations/0008_daily_firestar.sql +1 -0
  11. package/assets/migrations/0009_cute_marvex.sql +13 -0
  12. package/assets/migrations/0010_acoustic_pixie.sql +10 -0
  13. package/assets/migrations/0011_orange_rawhide_kid.sql +1 -0
  14. package/assets/migrations/0012_smiling_butterfly.sql +23 -0
  15. package/assets/migrations/0013_kind_bloodscream.sql +9 -0
  16. package/assets/migrations/meta/0000_snapshot.json +629 -0
  17. package/assets/migrations/meta/0001_snapshot.json +852 -0
  18. package/assets/migrations/meta/0002_snapshot.json +972 -0
  19. package/assets/migrations/meta/0003_snapshot.json +1130 -0
  20. package/assets/migrations/meta/0004_snapshot.json +1244 -0
  21. package/assets/migrations/meta/0005_snapshot.json +1275 -0
  22. package/assets/migrations/meta/0006_snapshot.json +1276 -0
  23. package/assets/migrations/meta/0007_snapshot.json +1376 -0
  24. package/assets/migrations/meta/0008_snapshot.json +1241 -0
  25. package/assets/migrations/meta/0009_snapshot.json +1241 -0
  26. package/assets/migrations/meta/0010_snapshot.json +1329 -0
  27. package/assets/migrations/meta/0011_snapshot.json +1322 -0
  28. package/assets/migrations/meta/0012_snapshot.json +1516 -0
  29. package/assets/migrations/meta/0013_snapshot.json +1576 -0
  30. package/assets/migrations/meta/_journal.json +104 -0
  31. package/assets/nodefs-BbnD6x79.js +33 -0
  32. package/assets/opfs-ahp-CFnUNF4E.js +308 -0
  33. package/assets/postgres-X5RxLyOz.js +5438 -0
  34. package/initdb.wasm +0 -0
  35. package/migrations/0000_burly_firestar.sql +76 -0
  36. package/migrations/0001_sleepy_gorilla_man.sql +27 -0
  37. package/migrations/0002_smart_ikaris.sql +14 -0
  38. package/migrations/0003_pink_zodiak.sql +17 -0
  39. package/migrations/0004_loose_hitman.sql +14 -0
  40. package/migrations/0005_glamorous_typhoid_mary.sql +5 -0
  41. package/migrations/0006_slow_deadpool.sql +1 -0
  42. package/migrations/0007_jittery_tag.sql +8 -0
  43. package/migrations/0008_daily_firestar.sql +1 -0
  44. package/migrations/0009_cute_marvex.sql +13 -0
  45. package/migrations/0010_acoustic_pixie.sql +10 -0
  46. package/migrations/0011_orange_rawhide_kid.sql +1 -0
  47. package/migrations/0012_smiling_butterfly.sql +23 -0
  48. package/migrations/0013_kind_bloodscream.sql +9 -0
  49. package/migrations/meta/0000_snapshot.json +629 -0
  50. package/migrations/meta/0001_snapshot.json +852 -0
  51. package/migrations/meta/0002_snapshot.json +972 -0
  52. package/migrations/meta/0003_snapshot.json +1130 -0
  53. package/migrations/meta/0004_snapshot.json +1244 -0
  54. package/migrations/meta/0005_snapshot.json +1275 -0
  55. package/migrations/meta/0006_snapshot.json +1276 -0
  56. package/migrations/meta/0007_snapshot.json +1376 -0
  57. package/migrations/meta/0008_snapshot.json +1241 -0
  58. package/migrations/meta/0009_snapshot.json +1241 -0
  59. package/migrations/meta/0010_snapshot.json +1329 -0
  60. package/migrations/meta/0011_snapshot.json +1322 -0
  61. package/migrations/meta/0012_snapshot.json +1516 -0
  62. package/migrations/meta/0013_snapshot.json +1576 -0
  63. package/migrations/meta/_journal.json +104 -0
  64. package/package.json +28 -4
  65. package/pglite.data +37667 -8
  66. package/pglite.wasm +0 -0
  67. package/server.js +47451 -0
  68. package/viewer/assets/index-BW6lgiAa.css +1 -0
  69. package/viewer/assets/index-CBMcK_jK.js +90 -0
  70. package/viewer/index.html +13 -0
  71. package/README.md +0 -19
@@ -0,0 +1,1241 @@
1
+ {
2
+ "id": "c3c098f2-7ec7-4c81-a633-37358d258568",
3
+ "prevId": "e52bb395-a8db-427c-a73a-8b56c60bce5f",
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
+ "priority": {
849
+ "name": "priority",
850
+ "type": "integer",
851
+ "primaryKey": false,
852
+ "notNull": true,
853
+ "default": 0
854
+ },
855
+ "created_at": {
856
+ "name": "created_at",
857
+ "type": "text",
858
+ "primaryKey": false,
859
+ "notNull": true
860
+ },
861
+ "updated_at": {
862
+ "name": "updated_at",
863
+ "type": "text",
864
+ "primaryKey": false,
865
+ "notNull": true
866
+ },
867
+ "closed_at": {
868
+ "name": "closed_at",
869
+ "type": "text",
870
+ "primaryKey": false,
871
+ "notNull": false
872
+ },
873
+ "deleted_at": {
874
+ "name": "deleted_at",
875
+ "type": "text",
876
+ "primaryKey": false,
877
+ "notNull": false
878
+ },
879
+ "tsv": {
880
+ "name": "tsv",
881
+ "type": "tsvector",
882
+ "primaryKey": false,
883
+ "notNull": false,
884
+ "generated": {
885
+ "as": "setweight(to_tsvector('english', coalesce(\"title\", '')), 'A') || setweight(to_tsvector('english', coalesce(\"body\", '')), 'B')",
886
+ "type": "stored"
887
+ }
888
+ }
889
+ },
890
+ "indexes": {
891
+ "items_project_ref": {
892
+ "name": "items_project_ref",
893
+ "columns": [
894
+ {
895
+ "expression": "project_id",
896
+ "isExpression": false,
897
+ "asc": true,
898
+ "nulls": "last"
899
+ },
900
+ {
901
+ "expression": "ref",
902
+ "isExpression": false,
903
+ "asc": true,
904
+ "nulls": "last"
905
+ }
906
+ ],
907
+ "isUnique": true,
908
+ "concurrently": false,
909
+ "method": "btree",
910
+ "with": {}
911
+ },
912
+ "items_project_status": {
913
+ "name": "items_project_status",
914
+ "columns": [
915
+ {
916
+ "expression": "project_id",
917
+ "isExpression": false,
918
+ "asc": true,
919
+ "nulls": "last"
920
+ },
921
+ {
922
+ "expression": "status",
923
+ "isExpression": false,
924
+ "asc": true,
925
+ "nulls": "last"
926
+ }
927
+ ],
928
+ "isUnique": false,
929
+ "concurrently": false,
930
+ "method": "btree",
931
+ "with": {}
932
+ },
933
+ "items_project_area": {
934
+ "name": "items_project_area",
935
+ "columns": [
936
+ {
937
+ "expression": "project_id",
938
+ "isExpression": false,
939
+ "asc": true,
940
+ "nulls": "last"
941
+ },
942
+ {
943
+ "expression": "area_key",
944
+ "isExpression": false,
945
+ "asc": true,
946
+ "nulls": "last"
947
+ }
948
+ ],
949
+ "isUnique": false,
950
+ "concurrently": false,
951
+ "method": "btree",
952
+ "with": {}
953
+ },
954
+ "items_project_sort": {
955
+ "name": "items_project_sort",
956
+ "columns": [
957
+ {
958
+ "expression": "project_id",
959
+ "isExpression": false,
960
+ "asc": true,
961
+ "nulls": "last"
962
+ },
963
+ {
964
+ "expression": "sort_path",
965
+ "isExpression": false,
966
+ "asc": true,
967
+ "nulls": "last"
968
+ }
969
+ ],
970
+ "isUnique": false,
971
+ "concurrently": false,
972
+ "method": "btree",
973
+ "with": {}
974
+ },
975
+ "items_parent": {
976
+ "name": "items_parent",
977
+ "columns": [
978
+ {
979
+ "expression": "parent_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
+ "items_tsv": {
991
+ "name": "items_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
+ "items_project_id_projects_id_fk": {
1008
+ "name": "items_project_id_projects_id_fk",
1009
+ "tableFrom": "items",
1010
+ "tableTo": "projects",
1011
+ "columnsFrom": [
1012
+ "project_id"
1013
+ ],
1014
+ "columnsTo": [
1015
+ "id"
1016
+ ],
1017
+ "onDelete": "cascade",
1018
+ "onUpdate": "no action"
1019
+ },
1020
+ "items_parent_id_items_id_fk": {
1021
+ "name": "items_parent_id_items_id_fk",
1022
+ "tableFrom": "items",
1023
+ "tableTo": "items",
1024
+ "columnsFrom": [
1025
+ "parent_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.users": {
1150
+ "name": "users",
1151
+ "schema": "",
1152
+ "columns": {
1153
+ "id": {
1154
+ "name": "id",
1155
+ "type": "text",
1156
+ "primaryKey": true,
1157
+ "notNull": true
1158
+ },
1159
+ "issuer": {
1160
+ "name": "issuer",
1161
+ "type": "text",
1162
+ "primaryKey": false,
1163
+ "notNull": true
1164
+ },
1165
+ "subject": {
1166
+ "name": "subject",
1167
+ "type": "text",
1168
+ "primaryKey": false,
1169
+ "notNull": true
1170
+ },
1171
+ "email": {
1172
+ "name": "email",
1173
+ "type": "text",
1174
+ "primaryKey": false,
1175
+ "notNull": false
1176
+ },
1177
+ "created_at": {
1178
+ "name": "created_at",
1179
+ "type": "text",
1180
+ "primaryKey": false,
1181
+ "notNull": true
1182
+ }
1183
+ },
1184
+ "indexes": {
1185
+ "users_issuer_subject": {
1186
+ "name": "users_issuer_subject",
1187
+ "columns": [
1188
+ {
1189
+ "expression": "issuer",
1190
+ "isExpression": false,
1191
+ "asc": true,
1192
+ "nulls": "last"
1193
+ },
1194
+ {
1195
+ "expression": "subject",
1196
+ "isExpression": false,
1197
+ "asc": true,
1198
+ "nulls": "last"
1199
+ }
1200
+ ],
1201
+ "isUnique": true,
1202
+ "concurrently": false,
1203
+ "method": "btree",
1204
+ "with": {}
1205
+ },
1206
+ "users_email": {
1207
+ "name": "users_email",
1208
+ "columns": [
1209
+ {
1210
+ "expression": "email",
1211
+ "isExpression": false,
1212
+ "asc": true,
1213
+ "nulls": "last"
1214
+ }
1215
+ ],
1216
+ "isUnique": true,
1217
+ "concurrently": false,
1218
+ "method": "btree",
1219
+ "with": {}
1220
+ }
1221
+ },
1222
+ "foreignKeys": {},
1223
+ "compositePrimaryKeys": {},
1224
+ "uniqueConstraints": {},
1225
+ "policies": {},
1226
+ "checkConstraints": {},
1227
+ "isRLSEnabled": false
1228
+ }
1229
+ },
1230
+ "enums": {},
1231
+ "schemas": {},
1232
+ "sequences": {},
1233
+ "roles": {},
1234
+ "policies": {},
1235
+ "views": {},
1236
+ "_meta": {
1237
+ "columns": {},
1238
+ "schemas": {},
1239
+ "tables": {}
1240
+ }
1241
+ }