attraverso 0.3.0 → 0.4.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.
@@ -0,0 +1,1668 @@
1
+ {
2
+ "id": "14bcd0d0-00d7-4f9a-99bd-11d4efab7303",
3
+ "prevId": "0c1cd0a8-dc11-41f8-9848-0163624deeb8",
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.layout_positions": {
1067
+ "name": "layout_positions",
1068
+ "schema": "",
1069
+ "columns": {
1070
+ "project_id": {
1071
+ "name": "project_id",
1072
+ "type": "text",
1073
+ "primaryKey": false,
1074
+ "notNull": true
1075
+ },
1076
+ "node": {
1077
+ "name": "node",
1078
+ "type": "text",
1079
+ "primaryKey": false,
1080
+ "notNull": true
1081
+ },
1082
+ "x": {
1083
+ "name": "x",
1084
+ "type": "integer",
1085
+ "primaryKey": false,
1086
+ "notNull": true
1087
+ },
1088
+ "y": {
1089
+ "name": "y",
1090
+ "type": "integer",
1091
+ "primaryKey": false,
1092
+ "notNull": true
1093
+ }
1094
+ },
1095
+ "indexes": {},
1096
+ "foreignKeys": {
1097
+ "layout_positions_project_id_projects_id_fk": {
1098
+ "name": "layout_positions_project_id_projects_id_fk",
1099
+ "tableFrom": "layout_positions",
1100
+ "tableTo": "projects",
1101
+ "columnsFrom": [
1102
+ "project_id"
1103
+ ],
1104
+ "columnsTo": [
1105
+ "id"
1106
+ ],
1107
+ "onDelete": "cascade",
1108
+ "onUpdate": "no action"
1109
+ }
1110
+ },
1111
+ "compositePrimaryKeys": {
1112
+ "layout_positions_project_id_node_pk": {
1113
+ "name": "layout_positions_project_id_node_pk",
1114
+ "columns": [
1115
+ "project_id",
1116
+ "node"
1117
+ ]
1118
+ }
1119
+ },
1120
+ "uniqueConstraints": {},
1121
+ "policies": {},
1122
+ "checkConstraints": {},
1123
+ "isRLSEnabled": false
1124
+ },
1125
+ "public.measurements": {
1126
+ "name": "measurements",
1127
+ "schema": "",
1128
+ "columns": {
1129
+ "id": {
1130
+ "name": "id",
1131
+ "type": "text",
1132
+ "primaryKey": true,
1133
+ "notNull": true
1134
+ },
1135
+ "project_id": {
1136
+ "name": "project_id",
1137
+ "type": "text",
1138
+ "primaryKey": false,
1139
+ "notNull": true
1140
+ },
1141
+ "item_id": {
1142
+ "name": "item_id",
1143
+ "type": "text",
1144
+ "primaryKey": false,
1145
+ "notNull": false
1146
+ },
1147
+ "parent_id": {
1148
+ "name": "parent_id",
1149
+ "type": "text",
1150
+ "primaryKey": false,
1151
+ "notNull": false
1152
+ },
1153
+ "metric": {
1154
+ "name": "metric",
1155
+ "type": "text",
1156
+ "primaryKey": false,
1157
+ "notNull": true
1158
+ },
1159
+ "value": {
1160
+ "name": "value",
1161
+ "type": "double precision",
1162
+ "primaryKey": false,
1163
+ "notNull": false
1164
+ },
1165
+ "text_value": {
1166
+ "name": "text_value",
1167
+ "type": "text",
1168
+ "primaryKey": false,
1169
+ "notNull": false
1170
+ },
1171
+ "unit": {
1172
+ "name": "unit",
1173
+ "type": "text",
1174
+ "primaryKey": false,
1175
+ "notNull": false
1176
+ },
1177
+ "label": {
1178
+ "name": "label",
1179
+ "type": "text",
1180
+ "primaryKey": false,
1181
+ "notNull": false
1182
+ },
1183
+ "at": {
1184
+ "name": "at",
1185
+ "type": "text",
1186
+ "primaryKey": false,
1187
+ "notNull": true
1188
+ },
1189
+ "source": {
1190
+ "name": "source",
1191
+ "type": "text",
1192
+ "primaryKey": false,
1193
+ "notNull": false
1194
+ },
1195
+ "actor": {
1196
+ "name": "actor",
1197
+ "type": "text",
1198
+ "primaryKey": false,
1199
+ "notNull": true
1200
+ },
1201
+ "created_at": {
1202
+ "name": "created_at",
1203
+ "type": "text",
1204
+ "primaryKey": false,
1205
+ "notNull": true
1206
+ }
1207
+ },
1208
+ "indexes": {
1209
+ "measurements_project_metric_at": {
1210
+ "name": "measurements_project_metric_at",
1211
+ "columns": [
1212
+ {
1213
+ "expression": "project_id",
1214
+ "isExpression": false,
1215
+ "asc": true,
1216
+ "nulls": "last"
1217
+ },
1218
+ {
1219
+ "expression": "metric",
1220
+ "isExpression": false,
1221
+ "asc": true,
1222
+ "nulls": "last"
1223
+ },
1224
+ {
1225
+ "expression": "at",
1226
+ "isExpression": false,
1227
+ "asc": true,
1228
+ "nulls": "last"
1229
+ }
1230
+ ],
1231
+ "isUnique": false,
1232
+ "concurrently": false,
1233
+ "method": "btree",
1234
+ "with": {}
1235
+ },
1236
+ "measurements_item": {
1237
+ "name": "measurements_item",
1238
+ "columns": [
1239
+ {
1240
+ "expression": "item_id",
1241
+ "isExpression": false,
1242
+ "asc": true,
1243
+ "nulls": "last"
1244
+ }
1245
+ ],
1246
+ "isUnique": false,
1247
+ "concurrently": false,
1248
+ "method": "btree",
1249
+ "with": {}
1250
+ },
1251
+ "measurements_parent": {
1252
+ "name": "measurements_parent",
1253
+ "columns": [
1254
+ {
1255
+ "expression": "parent_id",
1256
+ "isExpression": false,
1257
+ "asc": true,
1258
+ "nulls": "last"
1259
+ }
1260
+ ],
1261
+ "isUnique": false,
1262
+ "concurrently": false,
1263
+ "method": "btree",
1264
+ "with": {}
1265
+ }
1266
+ },
1267
+ "foreignKeys": {
1268
+ "measurements_project_id_projects_id_fk": {
1269
+ "name": "measurements_project_id_projects_id_fk",
1270
+ "tableFrom": "measurements",
1271
+ "tableTo": "projects",
1272
+ "columnsFrom": [
1273
+ "project_id"
1274
+ ],
1275
+ "columnsTo": [
1276
+ "id"
1277
+ ],
1278
+ "onDelete": "cascade",
1279
+ "onUpdate": "no action"
1280
+ },
1281
+ "measurements_item_id_items_id_fk": {
1282
+ "name": "measurements_item_id_items_id_fk",
1283
+ "tableFrom": "measurements",
1284
+ "tableTo": "items",
1285
+ "columnsFrom": [
1286
+ "item_id"
1287
+ ],
1288
+ "columnsTo": [
1289
+ "id"
1290
+ ],
1291
+ "onDelete": "cascade",
1292
+ "onUpdate": "no action"
1293
+ },
1294
+ "measurements_parent_id_measurements_id_fk": {
1295
+ "name": "measurements_parent_id_measurements_id_fk",
1296
+ "tableFrom": "measurements",
1297
+ "tableTo": "measurements",
1298
+ "columnsFrom": [
1299
+ "parent_id"
1300
+ ],
1301
+ "columnsTo": [
1302
+ "id"
1303
+ ],
1304
+ "onDelete": "cascade",
1305
+ "onUpdate": "no action"
1306
+ }
1307
+ },
1308
+ "compositePrimaryKeys": {},
1309
+ "uniqueConstraints": {},
1310
+ "policies": {},
1311
+ "checkConstraints": {
1312
+ "measurements_one_reading": {
1313
+ "name": "measurements_one_reading",
1314
+ "value": "NOT (\"measurements\".\"value\" IS NOT NULL AND \"measurements\".\"text_value\" IS NOT NULL)"
1315
+ }
1316
+ },
1317
+ "isRLSEnabled": false
1318
+ },
1319
+ "public.project_next": {
1320
+ "name": "project_next",
1321
+ "schema": "",
1322
+ "columns": {
1323
+ "project_id": {
1324
+ "name": "project_id",
1325
+ "type": "text",
1326
+ "primaryKey": false,
1327
+ "notNull": true
1328
+ },
1329
+ "item_id": {
1330
+ "name": "item_id",
1331
+ "type": "text",
1332
+ "primaryKey": false,
1333
+ "notNull": true
1334
+ },
1335
+ "position": {
1336
+ "name": "position",
1337
+ "type": "integer",
1338
+ "primaryKey": false,
1339
+ "notNull": true
1340
+ }
1341
+ },
1342
+ "indexes": {
1343
+ "project_next_position": {
1344
+ "name": "project_next_position",
1345
+ "columns": [
1346
+ {
1347
+ "expression": "project_id",
1348
+ "isExpression": false,
1349
+ "asc": true,
1350
+ "nulls": "last"
1351
+ },
1352
+ {
1353
+ "expression": "position",
1354
+ "isExpression": false,
1355
+ "asc": true,
1356
+ "nulls": "last"
1357
+ }
1358
+ ],
1359
+ "isUnique": true,
1360
+ "concurrently": false,
1361
+ "method": "btree",
1362
+ "with": {}
1363
+ }
1364
+ },
1365
+ "foreignKeys": {
1366
+ "project_next_project_id_projects_id_fk": {
1367
+ "name": "project_next_project_id_projects_id_fk",
1368
+ "tableFrom": "project_next",
1369
+ "tableTo": "projects",
1370
+ "columnsFrom": [
1371
+ "project_id"
1372
+ ],
1373
+ "columnsTo": [
1374
+ "id"
1375
+ ],
1376
+ "onDelete": "cascade",
1377
+ "onUpdate": "no action"
1378
+ },
1379
+ "project_next_item_id_items_id_fk": {
1380
+ "name": "project_next_item_id_items_id_fk",
1381
+ "tableFrom": "project_next",
1382
+ "tableTo": "items",
1383
+ "columnsFrom": [
1384
+ "item_id"
1385
+ ],
1386
+ "columnsTo": [
1387
+ "id"
1388
+ ],
1389
+ "onDelete": "cascade",
1390
+ "onUpdate": "no action"
1391
+ }
1392
+ },
1393
+ "compositePrimaryKeys": {
1394
+ "project_next_project_id_item_id_pk": {
1395
+ "name": "project_next_project_id_item_id_pk",
1396
+ "columns": [
1397
+ "project_id",
1398
+ "item_id"
1399
+ ]
1400
+ }
1401
+ },
1402
+ "uniqueConstraints": {},
1403
+ "policies": {},
1404
+ "checkConstraints": {},
1405
+ "isRLSEnabled": false
1406
+ },
1407
+ "public.projects": {
1408
+ "name": "projects",
1409
+ "schema": "",
1410
+ "columns": {
1411
+ "id": {
1412
+ "name": "id",
1413
+ "type": "text",
1414
+ "primaryKey": true,
1415
+ "notNull": true
1416
+ },
1417
+ "key": {
1418
+ "name": "key",
1419
+ "type": "text",
1420
+ "primaryKey": false,
1421
+ "notNull": true
1422
+ },
1423
+ "owner_id": {
1424
+ "name": "owner_id",
1425
+ "type": "text",
1426
+ "primaryKey": false,
1427
+ "notNull": true
1428
+ },
1429
+ "name": {
1430
+ "name": "name",
1431
+ "type": "text",
1432
+ "primaryKey": false,
1433
+ "notNull": true
1434
+ },
1435
+ "type": {
1436
+ "name": "type",
1437
+ "type": "text",
1438
+ "primaryKey": false,
1439
+ "notNull": true
1440
+ },
1441
+ "direction": {
1442
+ "name": "direction",
1443
+ "type": "text",
1444
+ "primaryKey": false,
1445
+ "notNull": false
1446
+ },
1447
+ "status": {
1448
+ "name": "status",
1449
+ "type": "text",
1450
+ "primaryKey": false,
1451
+ "notNull": true
1452
+ },
1453
+ "created_at": {
1454
+ "name": "created_at",
1455
+ "type": "text",
1456
+ "primaryKey": false,
1457
+ "notNull": true
1458
+ },
1459
+ "updated_at": {
1460
+ "name": "updated_at",
1461
+ "type": "text",
1462
+ "primaryKey": false,
1463
+ "notNull": true
1464
+ },
1465
+ "archived_at": {
1466
+ "name": "archived_at",
1467
+ "type": "text",
1468
+ "primaryKey": false,
1469
+ "notNull": false
1470
+ }
1471
+ },
1472
+ "indexes": {
1473
+ "projects_owner_key": {
1474
+ "name": "projects_owner_key",
1475
+ "columns": [
1476
+ {
1477
+ "expression": "owner_id",
1478
+ "isExpression": false,
1479
+ "asc": true,
1480
+ "nulls": "last"
1481
+ },
1482
+ {
1483
+ "expression": "key",
1484
+ "isExpression": false,
1485
+ "asc": true,
1486
+ "nulls": "last"
1487
+ }
1488
+ ],
1489
+ "isUnique": true,
1490
+ "concurrently": false,
1491
+ "method": "btree",
1492
+ "with": {}
1493
+ }
1494
+ },
1495
+ "foreignKeys": {
1496
+ "projects_owner_id_users_id_fk": {
1497
+ "name": "projects_owner_id_users_id_fk",
1498
+ "tableFrom": "projects",
1499
+ "tableTo": "users",
1500
+ "columnsFrom": [
1501
+ "owner_id"
1502
+ ],
1503
+ "columnsTo": [
1504
+ "id"
1505
+ ],
1506
+ "onDelete": "no action",
1507
+ "onUpdate": "no action"
1508
+ }
1509
+ },
1510
+ "compositePrimaryKeys": {},
1511
+ "uniqueConstraints": {},
1512
+ "policies": {},
1513
+ "checkConstraints": {},
1514
+ "isRLSEnabled": false
1515
+ },
1516
+ "public.scoped_dependencies": {
1517
+ "name": "scoped_dependencies",
1518
+ "schema": "",
1519
+ "columns": {
1520
+ "item_id": {
1521
+ "name": "item_id",
1522
+ "type": "text",
1523
+ "primaryKey": false,
1524
+ "notNull": true
1525
+ },
1526
+ "target_project": {
1527
+ "name": "target_project",
1528
+ "type": "text",
1529
+ "primaryKey": false,
1530
+ "notNull": true
1531
+ },
1532
+ "target_ref": {
1533
+ "name": "target_ref",
1534
+ "type": "text",
1535
+ "primaryKey": false,
1536
+ "notNull": true
1537
+ },
1538
+ "created_at": {
1539
+ "name": "created_at",
1540
+ "type": "text",
1541
+ "primaryKey": false,
1542
+ "notNull": true
1543
+ }
1544
+ },
1545
+ "indexes": {},
1546
+ "foreignKeys": {
1547
+ "scoped_dependencies_item_id_items_id_fk": {
1548
+ "name": "scoped_dependencies_item_id_items_id_fk",
1549
+ "tableFrom": "scoped_dependencies",
1550
+ "tableTo": "items",
1551
+ "columnsFrom": [
1552
+ "item_id"
1553
+ ],
1554
+ "columnsTo": [
1555
+ "id"
1556
+ ],
1557
+ "onDelete": "cascade",
1558
+ "onUpdate": "no action"
1559
+ }
1560
+ },
1561
+ "compositePrimaryKeys": {
1562
+ "scoped_dependencies_item_id_target_project_target_ref_pk": {
1563
+ "name": "scoped_dependencies_item_id_target_project_target_ref_pk",
1564
+ "columns": [
1565
+ "item_id",
1566
+ "target_project",
1567
+ "target_ref"
1568
+ ]
1569
+ }
1570
+ },
1571
+ "uniqueConstraints": {},
1572
+ "policies": {},
1573
+ "checkConstraints": {},
1574
+ "isRLSEnabled": false
1575
+ },
1576
+ "public.users": {
1577
+ "name": "users",
1578
+ "schema": "",
1579
+ "columns": {
1580
+ "id": {
1581
+ "name": "id",
1582
+ "type": "text",
1583
+ "primaryKey": true,
1584
+ "notNull": true
1585
+ },
1586
+ "issuer": {
1587
+ "name": "issuer",
1588
+ "type": "text",
1589
+ "primaryKey": false,
1590
+ "notNull": true
1591
+ },
1592
+ "subject": {
1593
+ "name": "subject",
1594
+ "type": "text",
1595
+ "primaryKey": false,
1596
+ "notNull": true
1597
+ },
1598
+ "email": {
1599
+ "name": "email",
1600
+ "type": "text",
1601
+ "primaryKey": false,
1602
+ "notNull": false
1603
+ },
1604
+ "created_at": {
1605
+ "name": "created_at",
1606
+ "type": "text",
1607
+ "primaryKey": false,
1608
+ "notNull": true
1609
+ }
1610
+ },
1611
+ "indexes": {
1612
+ "users_issuer_subject": {
1613
+ "name": "users_issuer_subject",
1614
+ "columns": [
1615
+ {
1616
+ "expression": "issuer",
1617
+ "isExpression": false,
1618
+ "asc": true,
1619
+ "nulls": "last"
1620
+ },
1621
+ {
1622
+ "expression": "subject",
1623
+ "isExpression": false,
1624
+ "asc": true,
1625
+ "nulls": "last"
1626
+ }
1627
+ ],
1628
+ "isUnique": true,
1629
+ "concurrently": false,
1630
+ "method": "btree",
1631
+ "with": {}
1632
+ },
1633
+ "users_email": {
1634
+ "name": "users_email",
1635
+ "columns": [
1636
+ {
1637
+ "expression": "email",
1638
+ "isExpression": false,
1639
+ "asc": true,
1640
+ "nulls": "last"
1641
+ }
1642
+ ],
1643
+ "isUnique": true,
1644
+ "concurrently": false,
1645
+ "method": "btree",
1646
+ "with": {}
1647
+ }
1648
+ },
1649
+ "foreignKeys": {},
1650
+ "compositePrimaryKeys": {},
1651
+ "uniqueConstraints": {},
1652
+ "policies": {},
1653
+ "checkConstraints": {},
1654
+ "isRLSEnabled": false
1655
+ }
1656
+ },
1657
+ "enums": {},
1658
+ "schemas": {},
1659
+ "sequences": {},
1660
+ "roles": {},
1661
+ "policies": {},
1662
+ "views": {},
1663
+ "_meta": {
1664
+ "columns": {},
1665
+ "schemas": {},
1666
+ "tables": {}
1667
+ }
1668
+ }