attraverso 0.1.3 → 0.2.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.
@@ -0,0 +1,1609 @@
1
+ {
2
+ "id": "0c1cd0a8-dc11-41f8-9848-0163624deeb8",
3
+ "prevId": "b1eba0ed-480d-4a13-a07c-2d6b4f22f4c9",
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
+ "start_on": {
873
+ "name": "start_on",
874
+ "type": "text",
875
+ "primaryKey": false,
876
+ "notNull": false
877
+ },
878
+ "due_on": {
879
+ "name": "due_on",
880
+ "type": "text",
881
+ "primaryKey": false,
882
+ "notNull": false
883
+ },
884
+ "tsv": {
885
+ "name": "tsv",
886
+ "type": "tsvector",
887
+ "primaryKey": false,
888
+ "notNull": false,
889
+ "generated": {
890
+ "as": "setweight(to_tsvector('english', coalesce(\"title\", '')), 'A') || setweight(to_tsvector('english', coalesce(\"body\", '')), 'B')",
891
+ "type": "stored"
892
+ }
893
+ }
894
+ },
895
+ "indexes": {
896
+ "items_project_ref": {
897
+ "name": "items_project_ref",
898
+ "columns": [
899
+ {
900
+ "expression": "project_id",
901
+ "isExpression": false,
902
+ "asc": true,
903
+ "nulls": "last"
904
+ },
905
+ {
906
+ "expression": "ref",
907
+ "isExpression": false,
908
+ "asc": true,
909
+ "nulls": "last"
910
+ }
911
+ ],
912
+ "isUnique": true,
913
+ "concurrently": false,
914
+ "method": "btree",
915
+ "with": {}
916
+ },
917
+ "items_project_status": {
918
+ "name": "items_project_status",
919
+ "columns": [
920
+ {
921
+ "expression": "project_id",
922
+ "isExpression": false,
923
+ "asc": true,
924
+ "nulls": "last"
925
+ },
926
+ {
927
+ "expression": "status",
928
+ "isExpression": false,
929
+ "asc": true,
930
+ "nulls": "last"
931
+ }
932
+ ],
933
+ "isUnique": false,
934
+ "concurrently": false,
935
+ "method": "btree",
936
+ "with": {}
937
+ },
938
+ "items_project_area": {
939
+ "name": "items_project_area",
940
+ "columns": [
941
+ {
942
+ "expression": "project_id",
943
+ "isExpression": false,
944
+ "asc": true,
945
+ "nulls": "last"
946
+ },
947
+ {
948
+ "expression": "area_key",
949
+ "isExpression": false,
950
+ "asc": true,
951
+ "nulls": "last"
952
+ }
953
+ ],
954
+ "isUnique": false,
955
+ "concurrently": false,
956
+ "method": "btree",
957
+ "with": {}
958
+ },
959
+ "items_project_sort": {
960
+ "name": "items_project_sort",
961
+ "columns": [
962
+ {
963
+ "expression": "project_id",
964
+ "isExpression": false,
965
+ "asc": true,
966
+ "nulls": "last"
967
+ },
968
+ {
969
+ "expression": "sort_path",
970
+ "isExpression": false,
971
+ "asc": true,
972
+ "nulls": "last"
973
+ }
974
+ ],
975
+ "isUnique": false,
976
+ "concurrently": false,
977
+ "method": "btree",
978
+ "with": {}
979
+ },
980
+ "items_parent": {
981
+ "name": "items_parent",
982
+ "columns": [
983
+ {
984
+ "expression": "parent_id",
985
+ "isExpression": false,
986
+ "asc": true,
987
+ "nulls": "last"
988
+ }
989
+ ],
990
+ "isUnique": false,
991
+ "concurrently": false,
992
+ "method": "btree",
993
+ "with": {}
994
+ },
995
+ "items_project_due": {
996
+ "name": "items_project_due",
997
+ "columns": [
998
+ {
999
+ "expression": "project_id",
1000
+ "isExpression": false,
1001
+ "asc": true,
1002
+ "nulls": "last"
1003
+ },
1004
+ {
1005
+ "expression": "due_on",
1006
+ "isExpression": false,
1007
+ "asc": true,
1008
+ "nulls": "last"
1009
+ }
1010
+ ],
1011
+ "isUnique": false,
1012
+ "concurrently": false,
1013
+ "method": "btree",
1014
+ "with": {}
1015
+ },
1016
+ "items_tsv": {
1017
+ "name": "items_tsv",
1018
+ "columns": [
1019
+ {
1020
+ "expression": "tsv",
1021
+ "isExpression": false,
1022
+ "asc": true,
1023
+ "nulls": "last"
1024
+ }
1025
+ ],
1026
+ "isUnique": false,
1027
+ "concurrently": false,
1028
+ "method": "gin",
1029
+ "with": {}
1030
+ }
1031
+ },
1032
+ "foreignKeys": {
1033
+ "items_project_id_projects_id_fk": {
1034
+ "name": "items_project_id_projects_id_fk",
1035
+ "tableFrom": "items",
1036
+ "tableTo": "projects",
1037
+ "columnsFrom": [
1038
+ "project_id"
1039
+ ],
1040
+ "columnsTo": [
1041
+ "id"
1042
+ ],
1043
+ "onDelete": "cascade",
1044
+ "onUpdate": "no action"
1045
+ },
1046
+ "items_parent_id_items_id_fk": {
1047
+ "name": "items_parent_id_items_id_fk",
1048
+ "tableFrom": "items",
1049
+ "tableTo": "items",
1050
+ "columnsFrom": [
1051
+ "parent_id"
1052
+ ],
1053
+ "columnsTo": [
1054
+ "id"
1055
+ ],
1056
+ "onDelete": "cascade",
1057
+ "onUpdate": "no action"
1058
+ }
1059
+ },
1060
+ "compositePrimaryKeys": {},
1061
+ "uniqueConstraints": {},
1062
+ "policies": {},
1063
+ "checkConstraints": {},
1064
+ "isRLSEnabled": false
1065
+ },
1066
+ "public.measurements": {
1067
+ "name": "measurements",
1068
+ "schema": "",
1069
+ "columns": {
1070
+ "id": {
1071
+ "name": "id",
1072
+ "type": "text",
1073
+ "primaryKey": true,
1074
+ "notNull": true
1075
+ },
1076
+ "project_id": {
1077
+ "name": "project_id",
1078
+ "type": "text",
1079
+ "primaryKey": false,
1080
+ "notNull": true
1081
+ },
1082
+ "item_id": {
1083
+ "name": "item_id",
1084
+ "type": "text",
1085
+ "primaryKey": false,
1086
+ "notNull": false
1087
+ },
1088
+ "parent_id": {
1089
+ "name": "parent_id",
1090
+ "type": "text",
1091
+ "primaryKey": false,
1092
+ "notNull": false
1093
+ },
1094
+ "metric": {
1095
+ "name": "metric",
1096
+ "type": "text",
1097
+ "primaryKey": false,
1098
+ "notNull": true
1099
+ },
1100
+ "value": {
1101
+ "name": "value",
1102
+ "type": "double precision",
1103
+ "primaryKey": false,
1104
+ "notNull": false
1105
+ },
1106
+ "text_value": {
1107
+ "name": "text_value",
1108
+ "type": "text",
1109
+ "primaryKey": false,
1110
+ "notNull": false
1111
+ },
1112
+ "unit": {
1113
+ "name": "unit",
1114
+ "type": "text",
1115
+ "primaryKey": false,
1116
+ "notNull": false
1117
+ },
1118
+ "label": {
1119
+ "name": "label",
1120
+ "type": "text",
1121
+ "primaryKey": false,
1122
+ "notNull": false
1123
+ },
1124
+ "at": {
1125
+ "name": "at",
1126
+ "type": "text",
1127
+ "primaryKey": false,
1128
+ "notNull": true
1129
+ },
1130
+ "source": {
1131
+ "name": "source",
1132
+ "type": "text",
1133
+ "primaryKey": false,
1134
+ "notNull": false
1135
+ },
1136
+ "actor": {
1137
+ "name": "actor",
1138
+ "type": "text",
1139
+ "primaryKey": false,
1140
+ "notNull": true
1141
+ },
1142
+ "created_at": {
1143
+ "name": "created_at",
1144
+ "type": "text",
1145
+ "primaryKey": false,
1146
+ "notNull": true
1147
+ }
1148
+ },
1149
+ "indexes": {
1150
+ "measurements_project_metric_at": {
1151
+ "name": "measurements_project_metric_at",
1152
+ "columns": [
1153
+ {
1154
+ "expression": "project_id",
1155
+ "isExpression": false,
1156
+ "asc": true,
1157
+ "nulls": "last"
1158
+ },
1159
+ {
1160
+ "expression": "metric",
1161
+ "isExpression": false,
1162
+ "asc": true,
1163
+ "nulls": "last"
1164
+ },
1165
+ {
1166
+ "expression": "at",
1167
+ "isExpression": false,
1168
+ "asc": true,
1169
+ "nulls": "last"
1170
+ }
1171
+ ],
1172
+ "isUnique": false,
1173
+ "concurrently": false,
1174
+ "method": "btree",
1175
+ "with": {}
1176
+ },
1177
+ "measurements_item": {
1178
+ "name": "measurements_item",
1179
+ "columns": [
1180
+ {
1181
+ "expression": "item_id",
1182
+ "isExpression": false,
1183
+ "asc": true,
1184
+ "nulls": "last"
1185
+ }
1186
+ ],
1187
+ "isUnique": false,
1188
+ "concurrently": false,
1189
+ "method": "btree",
1190
+ "with": {}
1191
+ },
1192
+ "measurements_parent": {
1193
+ "name": "measurements_parent",
1194
+ "columns": [
1195
+ {
1196
+ "expression": "parent_id",
1197
+ "isExpression": false,
1198
+ "asc": true,
1199
+ "nulls": "last"
1200
+ }
1201
+ ],
1202
+ "isUnique": false,
1203
+ "concurrently": false,
1204
+ "method": "btree",
1205
+ "with": {}
1206
+ }
1207
+ },
1208
+ "foreignKeys": {
1209
+ "measurements_project_id_projects_id_fk": {
1210
+ "name": "measurements_project_id_projects_id_fk",
1211
+ "tableFrom": "measurements",
1212
+ "tableTo": "projects",
1213
+ "columnsFrom": [
1214
+ "project_id"
1215
+ ],
1216
+ "columnsTo": [
1217
+ "id"
1218
+ ],
1219
+ "onDelete": "cascade",
1220
+ "onUpdate": "no action"
1221
+ },
1222
+ "measurements_item_id_items_id_fk": {
1223
+ "name": "measurements_item_id_items_id_fk",
1224
+ "tableFrom": "measurements",
1225
+ "tableTo": "items",
1226
+ "columnsFrom": [
1227
+ "item_id"
1228
+ ],
1229
+ "columnsTo": [
1230
+ "id"
1231
+ ],
1232
+ "onDelete": "cascade",
1233
+ "onUpdate": "no action"
1234
+ },
1235
+ "measurements_parent_id_measurements_id_fk": {
1236
+ "name": "measurements_parent_id_measurements_id_fk",
1237
+ "tableFrom": "measurements",
1238
+ "tableTo": "measurements",
1239
+ "columnsFrom": [
1240
+ "parent_id"
1241
+ ],
1242
+ "columnsTo": [
1243
+ "id"
1244
+ ],
1245
+ "onDelete": "cascade",
1246
+ "onUpdate": "no action"
1247
+ }
1248
+ },
1249
+ "compositePrimaryKeys": {},
1250
+ "uniqueConstraints": {},
1251
+ "policies": {},
1252
+ "checkConstraints": {
1253
+ "measurements_one_reading": {
1254
+ "name": "measurements_one_reading",
1255
+ "value": "NOT (\"measurements\".\"value\" IS NOT NULL AND \"measurements\".\"text_value\" IS NOT NULL)"
1256
+ }
1257
+ },
1258
+ "isRLSEnabled": false
1259
+ },
1260
+ "public.project_next": {
1261
+ "name": "project_next",
1262
+ "schema": "",
1263
+ "columns": {
1264
+ "project_id": {
1265
+ "name": "project_id",
1266
+ "type": "text",
1267
+ "primaryKey": false,
1268
+ "notNull": true
1269
+ },
1270
+ "item_id": {
1271
+ "name": "item_id",
1272
+ "type": "text",
1273
+ "primaryKey": false,
1274
+ "notNull": true
1275
+ },
1276
+ "position": {
1277
+ "name": "position",
1278
+ "type": "integer",
1279
+ "primaryKey": false,
1280
+ "notNull": true
1281
+ }
1282
+ },
1283
+ "indexes": {
1284
+ "project_next_position": {
1285
+ "name": "project_next_position",
1286
+ "columns": [
1287
+ {
1288
+ "expression": "project_id",
1289
+ "isExpression": false,
1290
+ "asc": true,
1291
+ "nulls": "last"
1292
+ },
1293
+ {
1294
+ "expression": "position",
1295
+ "isExpression": false,
1296
+ "asc": true,
1297
+ "nulls": "last"
1298
+ }
1299
+ ],
1300
+ "isUnique": true,
1301
+ "concurrently": false,
1302
+ "method": "btree",
1303
+ "with": {}
1304
+ }
1305
+ },
1306
+ "foreignKeys": {
1307
+ "project_next_project_id_projects_id_fk": {
1308
+ "name": "project_next_project_id_projects_id_fk",
1309
+ "tableFrom": "project_next",
1310
+ "tableTo": "projects",
1311
+ "columnsFrom": [
1312
+ "project_id"
1313
+ ],
1314
+ "columnsTo": [
1315
+ "id"
1316
+ ],
1317
+ "onDelete": "cascade",
1318
+ "onUpdate": "no action"
1319
+ },
1320
+ "project_next_item_id_items_id_fk": {
1321
+ "name": "project_next_item_id_items_id_fk",
1322
+ "tableFrom": "project_next",
1323
+ "tableTo": "items",
1324
+ "columnsFrom": [
1325
+ "item_id"
1326
+ ],
1327
+ "columnsTo": [
1328
+ "id"
1329
+ ],
1330
+ "onDelete": "cascade",
1331
+ "onUpdate": "no action"
1332
+ }
1333
+ },
1334
+ "compositePrimaryKeys": {
1335
+ "project_next_project_id_item_id_pk": {
1336
+ "name": "project_next_project_id_item_id_pk",
1337
+ "columns": [
1338
+ "project_id",
1339
+ "item_id"
1340
+ ]
1341
+ }
1342
+ },
1343
+ "uniqueConstraints": {},
1344
+ "policies": {},
1345
+ "checkConstraints": {},
1346
+ "isRLSEnabled": false
1347
+ },
1348
+ "public.projects": {
1349
+ "name": "projects",
1350
+ "schema": "",
1351
+ "columns": {
1352
+ "id": {
1353
+ "name": "id",
1354
+ "type": "text",
1355
+ "primaryKey": true,
1356
+ "notNull": true
1357
+ },
1358
+ "key": {
1359
+ "name": "key",
1360
+ "type": "text",
1361
+ "primaryKey": false,
1362
+ "notNull": true
1363
+ },
1364
+ "owner_id": {
1365
+ "name": "owner_id",
1366
+ "type": "text",
1367
+ "primaryKey": false,
1368
+ "notNull": true
1369
+ },
1370
+ "name": {
1371
+ "name": "name",
1372
+ "type": "text",
1373
+ "primaryKey": false,
1374
+ "notNull": true
1375
+ },
1376
+ "type": {
1377
+ "name": "type",
1378
+ "type": "text",
1379
+ "primaryKey": false,
1380
+ "notNull": true
1381
+ },
1382
+ "direction": {
1383
+ "name": "direction",
1384
+ "type": "text",
1385
+ "primaryKey": false,
1386
+ "notNull": false
1387
+ },
1388
+ "status": {
1389
+ "name": "status",
1390
+ "type": "text",
1391
+ "primaryKey": false,
1392
+ "notNull": true
1393
+ },
1394
+ "created_at": {
1395
+ "name": "created_at",
1396
+ "type": "text",
1397
+ "primaryKey": false,
1398
+ "notNull": true
1399
+ },
1400
+ "updated_at": {
1401
+ "name": "updated_at",
1402
+ "type": "text",
1403
+ "primaryKey": false,
1404
+ "notNull": true
1405
+ },
1406
+ "archived_at": {
1407
+ "name": "archived_at",
1408
+ "type": "text",
1409
+ "primaryKey": false,
1410
+ "notNull": false
1411
+ }
1412
+ },
1413
+ "indexes": {
1414
+ "projects_owner_key": {
1415
+ "name": "projects_owner_key",
1416
+ "columns": [
1417
+ {
1418
+ "expression": "owner_id",
1419
+ "isExpression": false,
1420
+ "asc": true,
1421
+ "nulls": "last"
1422
+ },
1423
+ {
1424
+ "expression": "key",
1425
+ "isExpression": false,
1426
+ "asc": true,
1427
+ "nulls": "last"
1428
+ }
1429
+ ],
1430
+ "isUnique": true,
1431
+ "concurrently": false,
1432
+ "method": "btree",
1433
+ "with": {}
1434
+ }
1435
+ },
1436
+ "foreignKeys": {
1437
+ "projects_owner_id_users_id_fk": {
1438
+ "name": "projects_owner_id_users_id_fk",
1439
+ "tableFrom": "projects",
1440
+ "tableTo": "users",
1441
+ "columnsFrom": [
1442
+ "owner_id"
1443
+ ],
1444
+ "columnsTo": [
1445
+ "id"
1446
+ ],
1447
+ "onDelete": "no action",
1448
+ "onUpdate": "no action"
1449
+ }
1450
+ },
1451
+ "compositePrimaryKeys": {},
1452
+ "uniqueConstraints": {},
1453
+ "policies": {},
1454
+ "checkConstraints": {},
1455
+ "isRLSEnabled": false
1456
+ },
1457
+ "public.scoped_dependencies": {
1458
+ "name": "scoped_dependencies",
1459
+ "schema": "",
1460
+ "columns": {
1461
+ "item_id": {
1462
+ "name": "item_id",
1463
+ "type": "text",
1464
+ "primaryKey": false,
1465
+ "notNull": true
1466
+ },
1467
+ "target_project": {
1468
+ "name": "target_project",
1469
+ "type": "text",
1470
+ "primaryKey": false,
1471
+ "notNull": true
1472
+ },
1473
+ "target_ref": {
1474
+ "name": "target_ref",
1475
+ "type": "text",
1476
+ "primaryKey": false,
1477
+ "notNull": true
1478
+ },
1479
+ "created_at": {
1480
+ "name": "created_at",
1481
+ "type": "text",
1482
+ "primaryKey": false,
1483
+ "notNull": true
1484
+ }
1485
+ },
1486
+ "indexes": {},
1487
+ "foreignKeys": {
1488
+ "scoped_dependencies_item_id_items_id_fk": {
1489
+ "name": "scoped_dependencies_item_id_items_id_fk",
1490
+ "tableFrom": "scoped_dependencies",
1491
+ "tableTo": "items",
1492
+ "columnsFrom": [
1493
+ "item_id"
1494
+ ],
1495
+ "columnsTo": [
1496
+ "id"
1497
+ ],
1498
+ "onDelete": "cascade",
1499
+ "onUpdate": "no action"
1500
+ }
1501
+ },
1502
+ "compositePrimaryKeys": {
1503
+ "scoped_dependencies_item_id_target_project_target_ref_pk": {
1504
+ "name": "scoped_dependencies_item_id_target_project_target_ref_pk",
1505
+ "columns": [
1506
+ "item_id",
1507
+ "target_project",
1508
+ "target_ref"
1509
+ ]
1510
+ }
1511
+ },
1512
+ "uniqueConstraints": {},
1513
+ "policies": {},
1514
+ "checkConstraints": {},
1515
+ "isRLSEnabled": false
1516
+ },
1517
+ "public.users": {
1518
+ "name": "users",
1519
+ "schema": "",
1520
+ "columns": {
1521
+ "id": {
1522
+ "name": "id",
1523
+ "type": "text",
1524
+ "primaryKey": true,
1525
+ "notNull": true
1526
+ },
1527
+ "issuer": {
1528
+ "name": "issuer",
1529
+ "type": "text",
1530
+ "primaryKey": false,
1531
+ "notNull": true
1532
+ },
1533
+ "subject": {
1534
+ "name": "subject",
1535
+ "type": "text",
1536
+ "primaryKey": false,
1537
+ "notNull": true
1538
+ },
1539
+ "email": {
1540
+ "name": "email",
1541
+ "type": "text",
1542
+ "primaryKey": false,
1543
+ "notNull": false
1544
+ },
1545
+ "created_at": {
1546
+ "name": "created_at",
1547
+ "type": "text",
1548
+ "primaryKey": false,
1549
+ "notNull": true
1550
+ }
1551
+ },
1552
+ "indexes": {
1553
+ "users_issuer_subject": {
1554
+ "name": "users_issuer_subject",
1555
+ "columns": [
1556
+ {
1557
+ "expression": "issuer",
1558
+ "isExpression": false,
1559
+ "asc": true,
1560
+ "nulls": "last"
1561
+ },
1562
+ {
1563
+ "expression": "subject",
1564
+ "isExpression": false,
1565
+ "asc": true,
1566
+ "nulls": "last"
1567
+ }
1568
+ ],
1569
+ "isUnique": true,
1570
+ "concurrently": false,
1571
+ "method": "btree",
1572
+ "with": {}
1573
+ },
1574
+ "users_email": {
1575
+ "name": "users_email",
1576
+ "columns": [
1577
+ {
1578
+ "expression": "email",
1579
+ "isExpression": false,
1580
+ "asc": true,
1581
+ "nulls": "last"
1582
+ }
1583
+ ],
1584
+ "isUnique": true,
1585
+ "concurrently": false,
1586
+ "method": "btree",
1587
+ "with": {}
1588
+ }
1589
+ },
1590
+ "foreignKeys": {},
1591
+ "compositePrimaryKeys": {},
1592
+ "uniqueConstraints": {},
1593
+ "policies": {},
1594
+ "checkConstraints": {},
1595
+ "isRLSEnabled": false
1596
+ }
1597
+ },
1598
+ "enums": {},
1599
+ "schemas": {},
1600
+ "sequences": {},
1601
+ "roles": {},
1602
+ "policies": {},
1603
+ "views": {},
1604
+ "_meta": {
1605
+ "columns": {},
1606
+ "schemas": {},
1607
+ "tables": {}
1608
+ }
1609
+ }