@wrenautomation/aerie 0.4.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,1520 @@
1
+ {
2
+ "id": "961aa79e-bf3d-4cec-b234-b69d97047629",
3
+ "prevId": "4b59a4ac-28e3-4ab1-899a-4bbdc158c160",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "aerie.actor": {
8
+ "name": "actor",
9
+ "schema": "aerie",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "text",
14
+ "primaryKey": false,
15
+ "notNull": true
16
+ },
17
+ "kind": {
18
+ "name": "kind",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "name": {
24
+ "name": "name",
25
+ "type": "text",
26
+ "primaryKey": false,
27
+ "notNull": true
28
+ },
29
+ "email": {
30
+ "name": "email",
31
+ "type": "text",
32
+ "primaryKey": false,
33
+ "notNull": false
34
+ }
35
+ },
36
+ "indexes": {},
37
+ "foreignKeys": {},
38
+ "compositePrimaryKeys": {
39
+ "pk_actor": {
40
+ "name": "pk_actor",
41
+ "columns": [
42
+ "id"
43
+ ]
44
+ }
45
+ },
46
+ "uniqueConstraints": {
47
+ "actor_email": {
48
+ "name": "actor_email",
49
+ "nullsNotDistinct": false,
50
+ "columns": [
51
+ "email"
52
+ ]
53
+ }
54
+ },
55
+ "policies": {},
56
+ "checkConstraints": {
57
+ "actor_kind": {
58
+ "name": "actor_kind",
59
+ "value": "\"kind\" IN ('person', 'agent', 'runner')"
60
+ }
61
+ },
62
+ "isRLSEnabled": false
63
+ },
64
+ "aerie.area": {
65
+ "name": "area",
66
+ "schema": "aerie",
67
+ "columns": {
68
+ "id": {
69
+ "name": "id",
70
+ "type": "serial",
71
+ "primaryKey": false,
72
+ "notNull": true
73
+ },
74
+ "parent_id": {
75
+ "name": "parent_id",
76
+ "type": "integer",
77
+ "primaryKey": false,
78
+ "notNull": false
79
+ },
80
+ "slug": {
81
+ "name": "slug",
82
+ "type": "text",
83
+ "primaryKey": false,
84
+ "notNull": true
85
+ },
86
+ "name": {
87
+ "name": "name",
88
+ "type": "text",
89
+ "primaryKey": false,
90
+ "notNull": true
91
+ },
92
+ "description": {
93
+ "name": "description",
94
+ "type": "text",
95
+ "primaryKey": false,
96
+ "notNull": false
97
+ },
98
+ "mirror": {
99
+ "name": "mirror",
100
+ "type": "boolean",
101
+ "primaryKey": false,
102
+ "notNull": true,
103
+ "default": false
104
+ },
105
+ "sort": {
106
+ "name": "sort",
107
+ "type": "double precision",
108
+ "primaryKey": false,
109
+ "notNull": true,
110
+ "default": 0
111
+ }
112
+ },
113
+ "indexes": {},
114
+ "foreignKeys": {
115
+ "fk_area_parent_id_area": {
116
+ "name": "fk_area_parent_id_area",
117
+ "tableFrom": "area",
118
+ "tableTo": "area",
119
+ "schemaTo": "aerie",
120
+ "columnsFrom": [
121
+ "parent_id"
122
+ ],
123
+ "columnsTo": [
124
+ "id"
125
+ ],
126
+ "onDelete": "restrict",
127
+ "onUpdate": "no action"
128
+ }
129
+ },
130
+ "compositePrimaryKeys": {
131
+ "pk_area": {
132
+ "name": "pk_area",
133
+ "columns": [
134
+ "id"
135
+ ]
136
+ }
137
+ },
138
+ "uniqueConstraints": {
139
+ "area_parent_slug": {
140
+ "name": "area_parent_slug",
141
+ "nullsNotDistinct": true,
142
+ "columns": [
143
+ "parent_id",
144
+ "slug"
145
+ ]
146
+ }
147
+ },
148
+ "policies": {},
149
+ "checkConstraints": {
150
+ "area_slug_shape": {
151
+ "name": "area_slug_shape",
152
+ "value": "\"aerie\".\"area\".\"slug\" ~ '^[a-z0-9][a-z0-9-]*$'"
153
+ }
154
+ },
155
+ "isRLSEnabled": false
156
+ },
157
+ "aerie.area_role": {
158
+ "name": "area_role",
159
+ "schema": "aerie",
160
+ "columns": {
161
+ "area_id": {
162
+ "name": "area_id",
163
+ "type": "integer",
164
+ "primaryKey": false,
165
+ "notNull": true
166
+ },
167
+ "actor_id": {
168
+ "name": "actor_id",
169
+ "type": "text",
170
+ "primaryKey": false,
171
+ "notNull": true
172
+ },
173
+ "role": {
174
+ "name": "role",
175
+ "type": "text",
176
+ "primaryKey": false,
177
+ "notNull": true
178
+ }
179
+ },
180
+ "indexes": {
181
+ "area_role_actor_idx": {
182
+ "name": "area_role_actor_idx",
183
+ "columns": [
184
+ {
185
+ "expression": "actor_id",
186
+ "isExpression": false,
187
+ "asc": true,
188
+ "nulls": "last"
189
+ }
190
+ ],
191
+ "isUnique": false,
192
+ "concurrently": false,
193
+ "method": "btree",
194
+ "with": {}
195
+ }
196
+ },
197
+ "foreignKeys": {
198
+ "fk_area_role_area_id_area": {
199
+ "name": "fk_area_role_area_id_area",
200
+ "tableFrom": "area_role",
201
+ "tableTo": "area",
202
+ "schemaTo": "aerie",
203
+ "columnsFrom": [
204
+ "area_id"
205
+ ],
206
+ "columnsTo": [
207
+ "id"
208
+ ],
209
+ "onDelete": "cascade",
210
+ "onUpdate": "no action"
211
+ },
212
+ "fk_area_role_actor_id_actor": {
213
+ "name": "fk_area_role_actor_id_actor",
214
+ "tableFrom": "area_role",
215
+ "tableTo": "actor",
216
+ "schemaTo": "aerie",
217
+ "columnsFrom": [
218
+ "actor_id"
219
+ ],
220
+ "columnsTo": [
221
+ "id"
222
+ ],
223
+ "onDelete": "cascade",
224
+ "onUpdate": "no action"
225
+ }
226
+ },
227
+ "compositePrimaryKeys": {
228
+ "pk_area_role": {
229
+ "name": "pk_area_role",
230
+ "columns": [
231
+ "area_id",
232
+ "actor_id",
233
+ "role"
234
+ ]
235
+ }
236
+ },
237
+ "uniqueConstraints": {},
238
+ "policies": {},
239
+ "checkConstraints": {
240
+ "area_role_role": {
241
+ "name": "area_role_role",
242
+ "value": "\"role\" IN ('owner', 'manager', 'doer', 'watcher')"
243
+ }
244
+ },
245
+ "isRLSEnabled": false
246
+ },
247
+ "aerie.coord_closing": {
248
+ "name": "coord_closing",
249
+ "schema": "aerie",
250
+ "columns": {
251
+ "id": {
252
+ "name": "id",
253
+ "type": "bigserial",
254
+ "primaryKey": false,
255
+ "notNull": true
256
+ },
257
+ "ns": {
258
+ "name": "ns",
259
+ "type": "text",
260
+ "primaryKey": false,
261
+ "notNull": true
262
+ },
263
+ "task_id": {
264
+ "name": "task_id",
265
+ "type": "text",
266
+ "primaryKey": false,
267
+ "notNull": true
268
+ },
269
+ "holder": {
270
+ "name": "holder",
271
+ "type": "text",
272
+ "primaryKey": false,
273
+ "notNull": true
274
+ },
275
+ "reason": {
276
+ "name": "reason",
277
+ "type": "text",
278
+ "primaryKey": false,
279
+ "notNull": true
280
+ },
281
+ "at": {
282
+ "name": "at",
283
+ "type": "timestamp with time zone",
284
+ "primaryKey": false,
285
+ "notNull": true,
286
+ "default": "now()"
287
+ }
288
+ },
289
+ "indexes": {
290
+ "coord_closing_task_idx": {
291
+ "name": "coord_closing_task_idx",
292
+ "columns": [
293
+ {
294
+ "expression": "ns",
295
+ "isExpression": false,
296
+ "asc": true,
297
+ "nulls": "last"
298
+ },
299
+ {
300
+ "expression": "task_id",
301
+ "isExpression": false,
302
+ "asc": true,
303
+ "nulls": "last"
304
+ }
305
+ ],
306
+ "isUnique": false,
307
+ "concurrently": false,
308
+ "method": "btree",
309
+ "with": {}
310
+ }
311
+ },
312
+ "foreignKeys": {},
313
+ "compositePrimaryKeys": {
314
+ "pk_coord_closing": {
315
+ "name": "pk_coord_closing",
316
+ "columns": [
317
+ "id"
318
+ ]
319
+ }
320
+ },
321
+ "uniqueConstraints": {},
322
+ "policies": {},
323
+ "checkConstraints": {},
324
+ "isRLSEnabled": false
325
+ },
326
+ "aerie.coord_lease": {
327
+ "name": "coord_lease",
328
+ "schema": "aerie",
329
+ "columns": {
330
+ "ns": {
331
+ "name": "ns",
332
+ "type": "text",
333
+ "primaryKey": false,
334
+ "notNull": true
335
+ },
336
+ "task_id": {
337
+ "name": "task_id",
338
+ "type": "text",
339
+ "primaryKey": false,
340
+ "notNull": true
341
+ },
342
+ "holder": {
343
+ "name": "holder",
344
+ "type": "text",
345
+ "primaryKey": false,
346
+ "notNull": true
347
+ },
348
+ "gen": {
349
+ "name": "gen",
350
+ "type": "bigint",
351
+ "primaryKey": false,
352
+ "notNull": true
353
+ },
354
+ "expires": {
355
+ "name": "expires",
356
+ "type": "timestamp with time zone",
357
+ "primaryKey": false,
358
+ "notNull": true
359
+ },
360
+ "queued": {
361
+ "name": "queued",
362
+ "type": "boolean",
363
+ "primaryKey": false,
364
+ "notNull": true,
365
+ "default": false
366
+ },
367
+ "lane": {
368
+ "name": "lane",
369
+ "type": "text",
370
+ "primaryKey": false,
371
+ "notNull": false
372
+ },
373
+ "pin": {
374
+ "name": "pin",
375
+ "type": "text",
376
+ "primaryKey": false,
377
+ "notNull": false
378
+ }
379
+ },
380
+ "indexes": {},
381
+ "foreignKeys": {},
382
+ "compositePrimaryKeys": {
383
+ "pk_coord_lease": {
384
+ "name": "pk_coord_lease",
385
+ "columns": [
386
+ "ns",
387
+ "task_id",
388
+ "holder"
389
+ ]
390
+ }
391
+ },
392
+ "uniqueConstraints": {},
393
+ "policies": {},
394
+ "checkConstraints": {},
395
+ "isRLSEnabled": false
396
+ },
397
+ "aerie.coord_queue": {
398
+ "name": "coord_queue",
399
+ "schema": "aerie",
400
+ "columns": {
401
+ "ns": {
402
+ "name": "ns",
403
+ "type": "text",
404
+ "primaryKey": false,
405
+ "notNull": true
406
+ },
407
+ "task_id": {
408
+ "name": "task_id",
409
+ "type": "text",
410
+ "primaryKey": false,
411
+ "notNull": true
412
+ },
413
+ "lane": {
414
+ "name": "lane",
415
+ "type": "text",
416
+ "primaryKey": false,
417
+ "notNull": false
418
+ },
419
+ "pin": {
420
+ "name": "pin",
421
+ "type": "text",
422
+ "primaryKey": false,
423
+ "notNull": false
424
+ },
425
+ "pos": {
426
+ "name": "pos",
427
+ "type": "double precision",
428
+ "primaryKey": false,
429
+ "notNull": true
430
+ }
431
+ },
432
+ "indexes": {
433
+ "coord_queue_pos_idx": {
434
+ "name": "coord_queue_pos_idx",
435
+ "columns": [
436
+ {
437
+ "expression": "ns",
438
+ "isExpression": false,
439
+ "asc": true,
440
+ "nulls": "last"
441
+ },
442
+ {
443
+ "expression": "pos",
444
+ "isExpression": false,
445
+ "asc": true,
446
+ "nulls": "last"
447
+ }
448
+ ],
449
+ "isUnique": false,
450
+ "concurrently": false,
451
+ "method": "btree",
452
+ "with": {}
453
+ }
454
+ },
455
+ "foreignKeys": {},
456
+ "compositePrimaryKeys": {
457
+ "pk_coord_queue": {
458
+ "name": "pk_coord_queue",
459
+ "columns": [
460
+ "ns",
461
+ "task_id"
462
+ ]
463
+ }
464
+ },
465
+ "uniqueConstraints": {},
466
+ "policies": {},
467
+ "checkConstraints": {},
468
+ "isRLSEnabled": false
469
+ },
470
+ "aerie.coord_task": {
471
+ "name": "coord_task",
472
+ "schema": "aerie",
473
+ "columns": {
474
+ "ns": {
475
+ "name": "ns",
476
+ "type": "text",
477
+ "primaryKey": false,
478
+ "notNull": true
479
+ },
480
+ "task_id": {
481
+ "name": "task_id",
482
+ "type": "text",
483
+ "primaryKey": false,
484
+ "notNull": true
485
+ },
486
+ "updated": {
487
+ "name": "updated",
488
+ "type": "timestamp with time zone",
489
+ "primaryKey": false,
490
+ "notNull": true,
491
+ "default": "now()"
492
+ }
493
+ },
494
+ "indexes": {},
495
+ "foreignKeys": {},
496
+ "compositePrimaryKeys": {
497
+ "pk_coord_task": {
498
+ "name": "pk_coord_task",
499
+ "columns": [
500
+ "ns",
501
+ "task_id"
502
+ ]
503
+ }
504
+ },
505
+ "uniqueConstraints": {},
506
+ "policies": {},
507
+ "checkConstraints": {},
508
+ "isRLSEnabled": false
509
+ },
510
+ "aerie.decision": {
511
+ "name": "decision",
512
+ "schema": "aerie",
513
+ "columns": {
514
+ "id": {
515
+ "name": "id",
516
+ "type": "serial",
517
+ "primaryKey": false,
518
+ "notNull": true
519
+ },
520
+ "question": {
521
+ "name": "question",
522
+ "type": "text",
523
+ "primaryKey": false,
524
+ "notNull": true
525
+ },
526
+ "options": {
527
+ "name": "options",
528
+ "type": "jsonb",
529
+ "primaryKey": false,
530
+ "notNull": true,
531
+ "default": "'[]'::jsonb"
532
+ },
533
+ "recommendation": {
534
+ "name": "recommendation",
535
+ "type": "text",
536
+ "primaryKey": false,
537
+ "notNull": false
538
+ },
539
+ "brief": {
540
+ "name": "brief",
541
+ "type": "text",
542
+ "primaryKey": false,
543
+ "notNull": false
544
+ },
545
+ "blocks": {
546
+ "name": "blocks",
547
+ "type": "text[]",
548
+ "primaryKey": false,
549
+ "notNull": true,
550
+ "default": "'{}'::text[]"
551
+ },
552
+ "area_id": {
553
+ "name": "area_id",
554
+ "type": "integer",
555
+ "primaryKey": false,
556
+ "notNull": false
557
+ },
558
+ "asked_by": {
559
+ "name": "asked_by",
560
+ "type": "text",
561
+ "primaryKey": false,
562
+ "notNull": true
563
+ },
564
+ "asked_at": {
565
+ "name": "asked_at",
566
+ "type": "timestamp with time zone",
567
+ "primaryKey": false,
568
+ "notNull": true,
569
+ "default": "now()"
570
+ },
571
+ "due": {
572
+ "name": "due",
573
+ "type": "timestamp with time zone",
574
+ "primaryKey": false,
575
+ "notNull": false
576
+ },
577
+ "answer": {
578
+ "name": "answer",
579
+ "type": "text",
580
+ "primaryKey": false,
581
+ "notNull": false
582
+ },
583
+ "answered_by": {
584
+ "name": "answered_by",
585
+ "type": "text",
586
+ "primaryKey": false,
587
+ "notNull": false
588
+ },
589
+ "answered_at": {
590
+ "name": "answered_at",
591
+ "type": "timestamp with time zone",
592
+ "primaryKey": false,
593
+ "notNull": false
594
+ },
595
+ "why": {
596
+ "name": "why",
597
+ "type": "text",
598
+ "primaryKey": false,
599
+ "notNull": false
600
+ }
601
+ },
602
+ "indexes": {
603
+ "decision_area_idx": {
604
+ "name": "decision_area_idx",
605
+ "columns": [
606
+ {
607
+ "expression": "area_id",
608
+ "isExpression": false,
609
+ "asc": true,
610
+ "nulls": "last"
611
+ }
612
+ ],
613
+ "isUnique": false,
614
+ "concurrently": false,
615
+ "method": "btree",
616
+ "with": {}
617
+ },
618
+ "decision_open_idx": {
619
+ "name": "decision_open_idx",
620
+ "columns": [
621
+ {
622
+ "expression": "answered_at",
623
+ "isExpression": false,
624
+ "asc": true,
625
+ "nulls": "last"
626
+ }
627
+ ],
628
+ "isUnique": false,
629
+ "concurrently": false,
630
+ "method": "btree",
631
+ "with": {}
632
+ }
633
+ },
634
+ "foreignKeys": {
635
+ "fk_decision_area_id_area": {
636
+ "name": "fk_decision_area_id_area",
637
+ "tableFrom": "decision",
638
+ "tableTo": "area",
639
+ "schemaTo": "aerie",
640
+ "columnsFrom": [
641
+ "area_id"
642
+ ],
643
+ "columnsTo": [
644
+ "id"
645
+ ],
646
+ "onDelete": "no action",
647
+ "onUpdate": "no action"
648
+ }
649
+ },
650
+ "compositePrimaryKeys": {
651
+ "pk_decision": {
652
+ "name": "pk_decision",
653
+ "columns": [
654
+ "id"
655
+ ]
656
+ }
657
+ },
658
+ "uniqueConstraints": {},
659
+ "policies": {},
660
+ "checkConstraints": {},
661
+ "isRLSEnabled": false
662
+ },
663
+ "aerie.milestone": {
664
+ "name": "milestone",
665
+ "schema": "aerie",
666
+ "columns": {
667
+ "id": {
668
+ "name": "id",
669
+ "type": "text",
670
+ "primaryKey": false,
671
+ "notNull": true
672
+ },
673
+ "title": {
674
+ "name": "title",
675
+ "type": "text",
676
+ "primaryKey": false,
677
+ "notNull": true
678
+ },
679
+ "description": {
680
+ "name": "description",
681
+ "type": "text",
682
+ "primaryKey": false,
683
+ "notNull": false
684
+ }
685
+ },
686
+ "indexes": {},
687
+ "foreignKeys": {},
688
+ "compositePrimaryKeys": {
689
+ "pk_milestone": {
690
+ "name": "pk_milestone",
691
+ "columns": [
692
+ "id"
693
+ ]
694
+ }
695
+ },
696
+ "uniqueConstraints": {},
697
+ "policies": {},
698
+ "checkConstraints": {},
699
+ "isRLSEnabled": false
700
+ },
701
+ "aerie.mirror_file": {
702
+ "name": "mirror_file",
703
+ "schema": "aerie",
704
+ "columns": {
705
+ "task_id": {
706
+ "name": "task_id",
707
+ "type": "text",
708
+ "primaryKey": false,
709
+ "notNull": true
710
+ },
711
+ "path": {
712
+ "name": "path",
713
+ "type": "text",
714
+ "primaryKey": false,
715
+ "notNull": true
716
+ },
717
+ "hash": {
718
+ "name": "hash",
719
+ "type": "text",
720
+ "primaryKey": false,
721
+ "notNull": true
722
+ },
723
+ "version": {
724
+ "name": "version",
725
+ "type": "integer",
726
+ "primaryKey": false,
727
+ "notNull": true,
728
+ "default": 0
729
+ },
730
+ "at": {
731
+ "name": "at",
732
+ "type": "timestamp with time zone",
733
+ "primaryKey": false,
734
+ "notNull": true,
735
+ "default": "now()"
736
+ }
737
+ },
738
+ "indexes": {},
739
+ "foreignKeys": {},
740
+ "compositePrimaryKeys": {
741
+ "pk_mirror_file": {
742
+ "name": "pk_mirror_file",
743
+ "columns": [
744
+ "task_id"
745
+ ]
746
+ }
747
+ },
748
+ "uniqueConstraints": {
749
+ "mirror_file_path_unique": {
750
+ "name": "mirror_file_path_unique",
751
+ "nullsNotDistinct": false,
752
+ "columns": [
753
+ "path"
754
+ ]
755
+ }
756
+ },
757
+ "policies": {},
758
+ "checkConstraints": {},
759
+ "isRLSEnabled": false
760
+ },
761
+ "aerie.setting": {
762
+ "name": "setting",
763
+ "schema": "aerie",
764
+ "columns": {
765
+ "key": {
766
+ "name": "key",
767
+ "type": "text",
768
+ "primaryKey": false,
769
+ "notNull": true
770
+ },
771
+ "value": {
772
+ "name": "value",
773
+ "type": "text",
774
+ "primaryKey": false,
775
+ "notNull": true
776
+ }
777
+ },
778
+ "indexes": {},
779
+ "foreignKeys": {},
780
+ "compositePrimaryKeys": {
781
+ "pk_setting": {
782
+ "name": "pk_setting",
783
+ "columns": [
784
+ "key"
785
+ ]
786
+ }
787
+ },
788
+ "uniqueConstraints": {},
789
+ "policies": {},
790
+ "checkConstraints": {},
791
+ "isRLSEnabled": false
792
+ },
793
+ "aerie.task": {
794
+ "name": "task",
795
+ "schema": "aerie",
796
+ "columns": {
797
+ "id": {
798
+ "name": "id",
799
+ "type": "text",
800
+ "primaryKey": false,
801
+ "notNull": true
802
+ },
803
+ "area_id": {
804
+ "name": "area_id",
805
+ "type": "integer",
806
+ "primaryKey": false,
807
+ "notNull": true
808
+ },
809
+ "title": {
810
+ "name": "title",
811
+ "type": "text",
812
+ "primaryKey": false,
813
+ "notNull": true
814
+ },
815
+ "status": {
816
+ "name": "status",
817
+ "type": "text",
818
+ "primaryKey": false,
819
+ "notNull": true
820
+ },
821
+ "priority": {
822
+ "name": "priority",
823
+ "type": "text",
824
+ "primaryKey": false,
825
+ "notNull": false
826
+ },
827
+ "type": {
828
+ "name": "type",
829
+ "type": "text",
830
+ "primaryKey": false,
831
+ "notNull": false
832
+ },
833
+ "milestone": {
834
+ "name": "milestone",
835
+ "type": "text",
836
+ "primaryKey": false,
837
+ "notNull": false
838
+ },
839
+ "labels": {
840
+ "name": "labels",
841
+ "type": "text[]",
842
+ "primaryKey": false,
843
+ "notNull": true,
844
+ "default": "'{}'::text[]"
845
+ },
846
+ "parent_id": {
847
+ "name": "parent_id",
848
+ "type": "text",
849
+ "primaryKey": false,
850
+ "notNull": false
851
+ },
852
+ "dependencies": {
853
+ "name": "dependencies",
854
+ "type": "text[]",
855
+ "primaryKey": false,
856
+ "notNull": true,
857
+ "default": "'{}'::text[]"
858
+ },
859
+ "references": {
860
+ "name": "references",
861
+ "type": "text[]",
862
+ "primaryKey": false,
863
+ "notNull": true,
864
+ "default": "'{}'::text[]"
865
+ },
866
+ "ordinal": {
867
+ "name": "ordinal",
868
+ "type": "double precision",
869
+ "primaryKey": false,
870
+ "notNull": false
871
+ },
872
+ "description": {
873
+ "name": "description",
874
+ "type": "text",
875
+ "primaryKey": false,
876
+ "notNull": false
877
+ },
878
+ "ac": {
879
+ "name": "ac",
880
+ "type": "jsonb",
881
+ "primaryKey": false,
882
+ "notNull": true,
883
+ "default": "'[]'::jsonb"
884
+ },
885
+ "dod": {
886
+ "name": "dod",
887
+ "type": "jsonb",
888
+ "primaryKey": false,
889
+ "notNull": true,
890
+ "default": "'[]'::jsonb"
891
+ },
892
+ "plan": {
893
+ "name": "plan",
894
+ "type": "text",
895
+ "primaryKey": false,
896
+ "notNull": false
897
+ },
898
+ "notes": {
899
+ "name": "notes",
900
+ "type": "text",
901
+ "primaryKey": false,
902
+ "notNull": false
903
+ },
904
+ "final_summary": {
905
+ "name": "final_summary",
906
+ "type": "text",
907
+ "primaryKey": false,
908
+ "notNull": false
909
+ },
910
+ "comments": {
911
+ "name": "comments",
912
+ "type": "jsonb",
913
+ "primaryKey": false,
914
+ "notNull": true,
915
+ "default": "'[]'::jsonb"
916
+ },
917
+ "reporter": {
918
+ "name": "reporter",
919
+ "type": "text",
920
+ "primaryKey": false,
921
+ "notNull": false
922
+ },
923
+ "created_by": {
924
+ "name": "created_by",
925
+ "type": "text",
926
+ "primaryKey": false,
927
+ "notNull": false
928
+ },
929
+ "created_at": {
930
+ "name": "created_at",
931
+ "type": "timestamp with time zone",
932
+ "primaryKey": false,
933
+ "notNull": true,
934
+ "default": "now()"
935
+ },
936
+ "updated_at": {
937
+ "name": "updated_at",
938
+ "type": "timestamp with time zone",
939
+ "primaryKey": false,
940
+ "notNull": false
941
+ },
942
+ "closed_at": {
943
+ "name": "closed_at",
944
+ "type": "timestamp with time zone",
945
+ "primaryKey": false,
946
+ "notNull": false
947
+ },
948
+ "place": {
949
+ "name": "place",
950
+ "type": "text",
951
+ "primaryKey": false,
952
+ "notNull": true,
953
+ "default": "'tasks'"
954
+ },
955
+ "extra": {
956
+ "name": "extra",
957
+ "type": "jsonb",
958
+ "primaryKey": false,
959
+ "notNull": true,
960
+ "default": "'{}'::jsonb"
961
+ },
962
+ "stray": {
963
+ "name": "stray",
964
+ "type": "text",
965
+ "primaryKey": false,
966
+ "notNull": false
967
+ },
968
+ "version": {
969
+ "name": "version",
970
+ "type": "integer",
971
+ "primaryKey": false,
972
+ "notNull": true,
973
+ "default": 1
974
+ }
975
+ },
976
+ "indexes": {
977
+ "task_area_id_idx": {
978
+ "name": "task_area_id_idx",
979
+ "columns": [
980
+ {
981
+ "expression": "area_id",
982
+ "isExpression": false,
983
+ "asc": true,
984
+ "nulls": "last"
985
+ }
986
+ ],
987
+ "isUnique": false,
988
+ "concurrently": false,
989
+ "method": "btree",
990
+ "with": {}
991
+ },
992
+ "task_status_idx": {
993
+ "name": "task_status_idx",
994
+ "columns": [
995
+ {
996
+ "expression": "status",
997
+ "isExpression": false,
998
+ "asc": true,
999
+ "nulls": "last"
1000
+ }
1001
+ ],
1002
+ "isUnique": false,
1003
+ "concurrently": false,
1004
+ "method": "btree",
1005
+ "with": {}
1006
+ },
1007
+ "task_parent_idx": {
1008
+ "name": "task_parent_idx",
1009
+ "columns": [
1010
+ {
1011
+ "expression": "parent_id",
1012
+ "isExpression": false,
1013
+ "asc": true,
1014
+ "nulls": "last"
1015
+ }
1016
+ ],
1017
+ "isUnique": false,
1018
+ "concurrently": false,
1019
+ "method": "btree",
1020
+ "with": {}
1021
+ },
1022
+ "task_labels_idx": {
1023
+ "name": "task_labels_idx",
1024
+ "columns": [
1025
+ {
1026
+ "expression": "labels",
1027
+ "isExpression": false,
1028
+ "asc": true,
1029
+ "nulls": "last"
1030
+ }
1031
+ ],
1032
+ "isUnique": false,
1033
+ "concurrently": false,
1034
+ "method": "gin",
1035
+ "with": {}
1036
+ }
1037
+ },
1038
+ "foreignKeys": {
1039
+ "fk_task_area_id_area": {
1040
+ "name": "fk_task_area_id_area",
1041
+ "tableFrom": "task",
1042
+ "tableTo": "area",
1043
+ "schemaTo": "aerie",
1044
+ "columnsFrom": [
1045
+ "area_id"
1046
+ ],
1047
+ "columnsTo": [
1048
+ "id"
1049
+ ],
1050
+ "onDelete": "restrict",
1051
+ "onUpdate": "no action"
1052
+ }
1053
+ },
1054
+ "compositePrimaryKeys": {
1055
+ "pk_task": {
1056
+ "name": "pk_task",
1057
+ "columns": [
1058
+ "id"
1059
+ ]
1060
+ }
1061
+ },
1062
+ "uniqueConstraints": {},
1063
+ "policies": {},
1064
+ "checkConstraints": {
1065
+ "task_place": {
1066
+ "name": "task_place",
1067
+ "value": "\"place\" IN ('tasks', 'drafts', 'archive/tasks', 'archive/drafts')"
1068
+ }
1069
+ },
1070
+ "isRLSEnabled": false
1071
+ },
1072
+ "aerie.task_actor": {
1073
+ "name": "task_actor",
1074
+ "schema": "aerie",
1075
+ "columns": {
1076
+ "task_id": {
1077
+ "name": "task_id",
1078
+ "type": "text",
1079
+ "primaryKey": false,
1080
+ "notNull": true
1081
+ },
1082
+ "actor_id": {
1083
+ "name": "actor_id",
1084
+ "type": "text",
1085
+ "primaryKey": false,
1086
+ "notNull": true
1087
+ },
1088
+ "role": {
1089
+ "name": "role",
1090
+ "type": "text",
1091
+ "primaryKey": false,
1092
+ "notNull": true
1093
+ },
1094
+ "sort": {
1095
+ "name": "sort",
1096
+ "type": "integer",
1097
+ "primaryKey": false,
1098
+ "notNull": true,
1099
+ "default": 0
1100
+ }
1101
+ },
1102
+ "indexes": {
1103
+ "task_actor_actor_idx": {
1104
+ "name": "task_actor_actor_idx",
1105
+ "columns": [
1106
+ {
1107
+ "expression": "actor_id",
1108
+ "isExpression": false,
1109
+ "asc": true,
1110
+ "nulls": "last"
1111
+ }
1112
+ ],
1113
+ "isUnique": false,
1114
+ "concurrently": false,
1115
+ "method": "btree",
1116
+ "with": {}
1117
+ }
1118
+ },
1119
+ "foreignKeys": {
1120
+ "fk_task_actor_task_id_task": {
1121
+ "name": "fk_task_actor_task_id_task",
1122
+ "tableFrom": "task_actor",
1123
+ "tableTo": "task",
1124
+ "schemaTo": "aerie",
1125
+ "columnsFrom": [
1126
+ "task_id"
1127
+ ],
1128
+ "columnsTo": [
1129
+ "id"
1130
+ ],
1131
+ "onDelete": "cascade",
1132
+ "onUpdate": "no action"
1133
+ },
1134
+ "fk_task_actor_actor_id_actor": {
1135
+ "name": "fk_task_actor_actor_id_actor",
1136
+ "tableFrom": "task_actor",
1137
+ "tableTo": "actor",
1138
+ "schemaTo": "aerie",
1139
+ "columnsFrom": [
1140
+ "actor_id"
1141
+ ],
1142
+ "columnsTo": [
1143
+ "id"
1144
+ ],
1145
+ "onDelete": "restrict",
1146
+ "onUpdate": "no action"
1147
+ }
1148
+ },
1149
+ "compositePrimaryKeys": {
1150
+ "pk_task_actor": {
1151
+ "name": "pk_task_actor",
1152
+ "columns": [
1153
+ "task_id",
1154
+ "actor_id",
1155
+ "role"
1156
+ ]
1157
+ }
1158
+ },
1159
+ "uniqueConstraints": {},
1160
+ "policies": {},
1161
+ "checkConstraints": {
1162
+ "task_actor_role": {
1163
+ "name": "task_actor_role",
1164
+ "value": "\"role\" IN ('assignee', 'reviewer', 'watcher')"
1165
+ }
1166
+ },
1167
+ "isRLSEnabled": false
1168
+ },
1169
+ "aerie.task_area": {
1170
+ "name": "task_area",
1171
+ "schema": "aerie",
1172
+ "columns": {
1173
+ "task_id": {
1174
+ "name": "task_id",
1175
+ "type": "text",
1176
+ "primaryKey": false,
1177
+ "notNull": true
1178
+ },
1179
+ "area_id": {
1180
+ "name": "area_id",
1181
+ "type": "integer",
1182
+ "primaryKey": false,
1183
+ "notNull": true
1184
+ }
1185
+ },
1186
+ "indexes": {
1187
+ "task_area_area_idx": {
1188
+ "name": "task_area_area_idx",
1189
+ "columns": [
1190
+ {
1191
+ "expression": "area_id",
1192
+ "isExpression": false,
1193
+ "asc": true,
1194
+ "nulls": "last"
1195
+ }
1196
+ ],
1197
+ "isUnique": false,
1198
+ "concurrently": false,
1199
+ "method": "btree",
1200
+ "with": {}
1201
+ }
1202
+ },
1203
+ "foreignKeys": {
1204
+ "fk_task_area_task_id_task": {
1205
+ "name": "fk_task_area_task_id_task",
1206
+ "tableFrom": "task_area",
1207
+ "tableTo": "task",
1208
+ "schemaTo": "aerie",
1209
+ "columnsFrom": [
1210
+ "task_id"
1211
+ ],
1212
+ "columnsTo": [
1213
+ "id"
1214
+ ],
1215
+ "onDelete": "cascade",
1216
+ "onUpdate": "no action"
1217
+ },
1218
+ "fk_task_area_area_id_area": {
1219
+ "name": "fk_task_area_area_id_area",
1220
+ "tableFrom": "task_area",
1221
+ "tableTo": "area",
1222
+ "schemaTo": "aerie",
1223
+ "columnsFrom": [
1224
+ "area_id"
1225
+ ],
1226
+ "columnsTo": [
1227
+ "id"
1228
+ ],
1229
+ "onDelete": "cascade",
1230
+ "onUpdate": "no action"
1231
+ }
1232
+ },
1233
+ "compositePrimaryKeys": {
1234
+ "pk_task_area": {
1235
+ "name": "pk_task_area",
1236
+ "columns": [
1237
+ "task_id",
1238
+ "area_id"
1239
+ ]
1240
+ }
1241
+ },
1242
+ "uniqueConstraints": {},
1243
+ "policies": {},
1244
+ "checkConstraints": {},
1245
+ "isRLSEnabled": false
1246
+ },
1247
+ "aerie.task_event": {
1248
+ "name": "task_event",
1249
+ "schema": "aerie",
1250
+ "columns": {
1251
+ "seq": {
1252
+ "name": "seq",
1253
+ "type": "bigserial",
1254
+ "primaryKey": false,
1255
+ "notNull": true
1256
+ },
1257
+ "task_id": {
1258
+ "name": "task_id",
1259
+ "type": "text",
1260
+ "primaryKey": false,
1261
+ "notNull": true
1262
+ },
1263
+ "at": {
1264
+ "name": "at",
1265
+ "type": "timestamp with time zone",
1266
+ "primaryKey": false,
1267
+ "notNull": true,
1268
+ "default": "now()"
1269
+ },
1270
+ "by": {
1271
+ "name": "by",
1272
+ "type": "text",
1273
+ "primaryKey": false,
1274
+ "notNull": true
1275
+ },
1276
+ "kind": {
1277
+ "name": "kind",
1278
+ "type": "text",
1279
+ "primaryKey": false,
1280
+ "notNull": true
1281
+ },
1282
+ "why": {
1283
+ "name": "why",
1284
+ "type": "text",
1285
+ "primaryKey": false,
1286
+ "notNull": false
1287
+ },
1288
+ "body": {
1289
+ "name": "body",
1290
+ "type": "jsonb",
1291
+ "primaryKey": false,
1292
+ "notNull": true,
1293
+ "default": "'{}'::jsonb"
1294
+ }
1295
+ },
1296
+ "indexes": {
1297
+ "task_event_task_idx": {
1298
+ "name": "task_event_task_idx",
1299
+ "columns": [
1300
+ {
1301
+ "expression": "task_id",
1302
+ "isExpression": false,
1303
+ "asc": true,
1304
+ "nulls": "last"
1305
+ },
1306
+ {
1307
+ "expression": "seq",
1308
+ "isExpression": false,
1309
+ "asc": true,
1310
+ "nulls": "last"
1311
+ }
1312
+ ],
1313
+ "isUnique": false,
1314
+ "concurrently": false,
1315
+ "method": "btree",
1316
+ "with": {}
1317
+ }
1318
+ },
1319
+ "foreignKeys": {},
1320
+ "compositePrimaryKeys": {
1321
+ "pk_task_event": {
1322
+ "name": "pk_task_event",
1323
+ "columns": [
1324
+ "seq"
1325
+ ]
1326
+ }
1327
+ },
1328
+ "uniqueConstraints": {},
1329
+ "policies": {},
1330
+ "checkConstraints": {},
1331
+ "isRLSEnabled": false
1332
+ },
1333
+ "aerie.task_holder": {
1334
+ "name": "task_holder",
1335
+ "schema": "aerie",
1336
+ "columns": {
1337
+ "task_id": {
1338
+ "name": "task_id",
1339
+ "type": "text",
1340
+ "primaryKey": false,
1341
+ "notNull": true
1342
+ },
1343
+ "holder": {
1344
+ "name": "holder",
1345
+ "type": "text",
1346
+ "primaryKey": false,
1347
+ "notNull": true
1348
+ },
1349
+ "since": {
1350
+ "name": "since",
1351
+ "type": "timestamp with time zone",
1352
+ "primaryKey": false,
1353
+ "notNull": true,
1354
+ "default": "now()"
1355
+ },
1356
+ "sort": {
1357
+ "name": "sort",
1358
+ "type": "integer",
1359
+ "primaryKey": false,
1360
+ "notNull": true,
1361
+ "default": 0
1362
+ }
1363
+ },
1364
+ "indexes": {},
1365
+ "foreignKeys": {
1366
+ "fk_task_holder_task_id_task": {
1367
+ "name": "fk_task_holder_task_id_task",
1368
+ "tableFrom": "task_holder",
1369
+ "tableTo": "task",
1370
+ "schemaTo": "aerie",
1371
+ "columnsFrom": [
1372
+ "task_id"
1373
+ ],
1374
+ "columnsTo": [
1375
+ "id"
1376
+ ],
1377
+ "onDelete": "cascade",
1378
+ "onUpdate": "no action"
1379
+ }
1380
+ },
1381
+ "compositePrimaryKeys": {
1382
+ "pk_task_holder": {
1383
+ "name": "pk_task_holder",
1384
+ "columns": [
1385
+ "task_id",
1386
+ "holder"
1387
+ ]
1388
+ }
1389
+ },
1390
+ "uniqueConstraints": {},
1391
+ "policies": {},
1392
+ "checkConstraints": {},
1393
+ "isRLSEnabled": false
1394
+ },
1395
+ "aerie.view": {
1396
+ "name": "view",
1397
+ "schema": "aerie",
1398
+ "columns": {
1399
+ "id": {
1400
+ "name": "id",
1401
+ "type": "serial",
1402
+ "primaryKey": false,
1403
+ "notNull": true
1404
+ },
1405
+ "owner": {
1406
+ "name": "owner",
1407
+ "type": "text",
1408
+ "primaryKey": false,
1409
+ "notNull": true
1410
+ },
1411
+ "name": {
1412
+ "name": "name",
1413
+ "type": "text",
1414
+ "primaryKey": false,
1415
+ "notNull": true
1416
+ },
1417
+ "filter": {
1418
+ "name": "filter",
1419
+ "type": "jsonb",
1420
+ "primaryKey": false,
1421
+ "notNull": true,
1422
+ "default": "'{}'::jsonb"
1423
+ },
1424
+ "sort": {
1425
+ "name": "sort",
1426
+ "type": "jsonb",
1427
+ "primaryKey": false,
1428
+ "notNull": true,
1429
+ "default": "'[]'::jsonb"
1430
+ },
1431
+ "group_by": {
1432
+ "name": "group_by",
1433
+ "type": "text",
1434
+ "primaryKey": false,
1435
+ "notNull": false
1436
+ },
1437
+ "layout": {
1438
+ "name": "layout",
1439
+ "type": "text",
1440
+ "primaryKey": false,
1441
+ "notNull": true,
1442
+ "default": "'board'"
1443
+ },
1444
+ "columns": {
1445
+ "name": "columns",
1446
+ "type": "jsonb",
1447
+ "primaryKey": false,
1448
+ "notNull": false
1449
+ }
1450
+ },
1451
+ "indexes": {},
1452
+ "foreignKeys": {
1453
+ "fk_view_owner_actor": {
1454
+ "name": "fk_view_owner_actor",
1455
+ "tableFrom": "view",
1456
+ "tableTo": "actor",
1457
+ "schemaTo": "aerie",
1458
+ "columnsFrom": [
1459
+ "owner"
1460
+ ],
1461
+ "columnsTo": [
1462
+ "id"
1463
+ ],
1464
+ "onDelete": "cascade",
1465
+ "onUpdate": "no action"
1466
+ }
1467
+ },
1468
+ "compositePrimaryKeys": {
1469
+ "pk_view": {
1470
+ "name": "pk_view",
1471
+ "columns": [
1472
+ "id"
1473
+ ]
1474
+ }
1475
+ },
1476
+ "uniqueConstraints": {
1477
+ "view_owner_name": {
1478
+ "name": "view_owner_name",
1479
+ "nullsNotDistinct": false,
1480
+ "columns": [
1481
+ "owner",
1482
+ "name"
1483
+ ]
1484
+ }
1485
+ },
1486
+ "policies": {},
1487
+ "checkConstraints": {
1488
+ "view_layout": {
1489
+ "name": "view_layout",
1490
+ "value": "\"layout\" IN ('board', 'list', 'columns')"
1491
+ }
1492
+ },
1493
+ "isRLSEnabled": false
1494
+ }
1495
+ },
1496
+ "enums": {},
1497
+ "schemas": {
1498
+ "aerie": "aerie"
1499
+ },
1500
+ "sequences": {
1501
+ "aerie.coord_gen": {
1502
+ "name": "coord_gen",
1503
+ "schema": "aerie",
1504
+ "increment": "1",
1505
+ "startWith": "1",
1506
+ "minValue": "1",
1507
+ "maxValue": "9223372036854775807",
1508
+ "cache": "1",
1509
+ "cycle": false
1510
+ }
1511
+ },
1512
+ "roles": {},
1513
+ "policies": {},
1514
+ "views": {},
1515
+ "_meta": {
1516
+ "columns": {},
1517
+ "schemas": {},
1518
+ "tables": {}
1519
+ }
1520
+ }