@wrenautomation/vireo 0.2.0 → 0.4.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,927 @@
1
+ {
2
+ "id": "17ecf42c-a22a-4bef-82ad-466fb6ed6f45",
3
+ "prevId": "da5d181c-4d9e-479e-b5ab-c9af806de537",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "vireo.batches": {
8
+ "name": "batches",
9
+ "schema": "vireo",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "serial",
14
+ "primaryKey": false,
15
+ "notNull": true
16
+ },
17
+ "subject_id": {
18
+ "name": "subject_id",
19
+ "type": "integer",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "n": {
24
+ "name": "n",
25
+ "type": "integer",
26
+ "primaryKey": false,
27
+ "notNull": true
28
+ },
29
+ "why": {
30
+ "name": "why",
31
+ "type": "text",
32
+ "primaryKey": false,
33
+ "notNull": true
34
+ },
35
+ "agent": {
36
+ "name": "agent",
37
+ "type": "varchar(120)",
38
+ "primaryKey": false,
39
+ "notNull": false
40
+ },
41
+ "state": {
42
+ "name": "state",
43
+ "type": "varchar(8)",
44
+ "primaryKey": false,
45
+ "notNull": true,
46
+ "default": "'open'"
47
+ },
48
+ "note": {
49
+ "name": "note",
50
+ "type": "text",
51
+ "primaryKey": false,
52
+ "notNull": false
53
+ },
54
+ "closed_at": {
55
+ "name": "closed_at",
56
+ "type": "timestamp with time zone",
57
+ "primaryKey": false,
58
+ "notNull": false
59
+ },
60
+ "created_at": {
61
+ "name": "created_at",
62
+ "type": "timestamp with time zone",
63
+ "primaryKey": false,
64
+ "notNull": true,
65
+ "default": "now()"
66
+ }
67
+ },
68
+ "indexes": {
69
+ "ix_vireo_batches_subject": {
70
+ "name": "ix_vireo_batches_subject",
71
+ "columns": [
72
+ {
73
+ "expression": "subject_id",
74
+ "isExpression": false,
75
+ "asc": true,
76
+ "nulls": "last"
77
+ },
78
+ {
79
+ "expression": "state",
80
+ "isExpression": false,
81
+ "asc": true,
82
+ "nulls": "last"
83
+ }
84
+ ],
85
+ "isUnique": false,
86
+ "concurrently": false,
87
+ "method": "btree",
88
+ "with": {}
89
+ }
90
+ },
91
+ "foreignKeys": {
92
+ "fk_batches_subject_id_subjects": {
93
+ "name": "fk_batches_subject_id_subjects",
94
+ "tableFrom": "batches",
95
+ "tableTo": "subjects",
96
+ "schemaTo": "vireo",
97
+ "columnsFrom": [
98
+ "subject_id"
99
+ ],
100
+ "columnsTo": [
101
+ "id"
102
+ ],
103
+ "onDelete": "cascade",
104
+ "onUpdate": "no action"
105
+ }
106
+ },
107
+ "compositePrimaryKeys": {
108
+ "pk_batches": {
109
+ "name": "pk_batches",
110
+ "columns": [
111
+ "id"
112
+ ]
113
+ }
114
+ },
115
+ "uniqueConstraints": {
116
+ "uq_vireo_batches_subject_n": {
117
+ "name": "uq_vireo_batches_subject_n",
118
+ "nullsNotDistinct": false,
119
+ "columns": [
120
+ "subject_id",
121
+ "n"
122
+ ]
123
+ }
124
+ },
125
+ "policies": {},
126
+ "checkConstraints": {
127
+ "ck_vireo_batches_state": {
128
+ "name": "ck_vireo_batches_state",
129
+ "value": "(\"state\")::text = ANY ((ARRAY['open'::character varying, 'closed'::character varying])::text[])"
130
+ }
131
+ },
132
+ "isRLSEnabled": false
133
+ },
134
+ "vireo.guides": {
135
+ "name": "guides",
136
+ "schema": "vireo",
137
+ "columns": {
138
+ "id": {
139
+ "name": "id",
140
+ "type": "serial",
141
+ "primaryKey": false,
142
+ "notNull": true
143
+ },
144
+ "text": {
145
+ "name": "text",
146
+ "type": "text",
147
+ "primaryKey": false,
148
+ "notNull": true
149
+ },
150
+ "source": {
151
+ "name": "source",
152
+ "type": "varchar(8)",
153
+ "primaryKey": false,
154
+ "notNull": true,
155
+ "default": "'person'"
156
+ },
157
+ "ref": {
158
+ "name": "ref",
159
+ "type": "text",
160
+ "primaryKey": false,
161
+ "notNull": false
162
+ },
163
+ "subject_id": {
164
+ "name": "subject_id",
165
+ "type": "integer",
166
+ "primaryKey": false,
167
+ "notNull": false
168
+ },
169
+ "kind": {
170
+ "name": "kind",
171
+ "type": "varchar(8)",
172
+ "primaryKey": false,
173
+ "notNull": false
174
+ },
175
+ "state": {
176
+ "name": "state",
177
+ "type": "varchar(8)",
178
+ "primaryKey": false,
179
+ "notNull": true,
180
+ "default": "'testing'"
181
+ },
182
+ "by": {
183
+ "name": "by",
184
+ "type": "varchar(320)",
185
+ "primaryKey": false,
186
+ "notNull": false
187
+ },
188
+ "decided_at": {
189
+ "name": "decided_at",
190
+ "type": "timestamp with time zone",
191
+ "primaryKey": false,
192
+ "notNull": false
193
+ },
194
+ "created_at": {
195
+ "name": "created_at",
196
+ "type": "timestamp with time zone",
197
+ "primaryKey": false,
198
+ "notNull": true,
199
+ "default": "now()"
200
+ }
201
+ },
202
+ "indexes": {
203
+ "ix_vireo_guides_subject": {
204
+ "name": "ix_vireo_guides_subject",
205
+ "columns": [
206
+ {
207
+ "expression": "subject_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
+ },
219
+ "foreignKeys": {
220
+ "fk_guides_subject_id_subjects": {
221
+ "name": "fk_guides_subject_id_subjects",
222
+ "tableFrom": "guides",
223
+ "tableTo": "subjects",
224
+ "schemaTo": "vireo",
225
+ "columnsFrom": [
226
+ "subject_id"
227
+ ],
228
+ "columnsTo": [
229
+ "id"
230
+ ],
231
+ "onDelete": "cascade",
232
+ "onUpdate": "no action"
233
+ }
234
+ },
235
+ "compositePrimaryKeys": {
236
+ "pk_guides": {
237
+ "name": "pk_guides",
238
+ "columns": [
239
+ "id"
240
+ ]
241
+ }
242
+ },
243
+ "uniqueConstraints": {},
244
+ "policies": {},
245
+ "checkConstraints": {
246
+ "ck_vireo_guides_source": {
247
+ "name": "ck_vireo_guides_source",
248
+ "value": "(\"source\")::text = ANY ((ARRAY['person'::character varying, 'study'::character varying, 'sop'::character varying, 'skill'::character varying, 'agent'::character varying])::text[])"
249
+ },
250
+ "ck_vireo_guides_kind": {
251
+ "name": "ck_vireo_guides_kind",
252
+ "value": "(\"kind\")::text = ANY ((ARRAY['text'::character varying, 'image'::character varying, 'video'::character varying, 'page'::character varying])::text[])"
253
+ },
254
+ "ck_vireo_guides_state": {
255
+ "name": "ck_vireo_guides_state",
256
+ "value": "(\"state\")::text = ANY ((ARRAY['testing'::character varying, 'locked'::character varying, 'dropped'::character varying])::text[])"
257
+ }
258
+ },
259
+ "isRLSEnabled": false
260
+ },
261
+ "vireo.lineage": {
262
+ "name": "lineage",
263
+ "schema": "vireo",
264
+ "columns": {
265
+ "child_id": {
266
+ "name": "child_id",
267
+ "type": "integer",
268
+ "primaryKey": false,
269
+ "notNull": true
270
+ },
271
+ "parent_id": {
272
+ "name": "parent_id",
273
+ "type": "integer",
274
+ "primaryKey": false,
275
+ "notNull": true
276
+ },
277
+ "position": {
278
+ "name": "position",
279
+ "type": "smallint",
280
+ "primaryKey": false,
281
+ "notNull": true,
282
+ "default": 0
283
+ },
284
+ "took": {
285
+ "name": "took",
286
+ "type": "text",
287
+ "primaryKey": false,
288
+ "notNull": false
289
+ }
290
+ },
291
+ "indexes": {
292
+ "ix_vireo_lineage_parent": {
293
+ "name": "ix_vireo_lineage_parent",
294
+ "columns": [
295
+ {
296
+ "expression": "parent_id",
297
+ "isExpression": false,
298
+ "asc": true,
299
+ "nulls": "last"
300
+ }
301
+ ],
302
+ "isUnique": false,
303
+ "concurrently": false,
304
+ "method": "btree",
305
+ "with": {}
306
+ }
307
+ },
308
+ "foreignKeys": {
309
+ "fk_lineage_child_id_samples": {
310
+ "name": "fk_lineage_child_id_samples",
311
+ "tableFrom": "lineage",
312
+ "tableTo": "samples",
313
+ "schemaTo": "vireo",
314
+ "columnsFrom": [
315
+ "child_id"
316
+ ],
317
+ "columnsTo": [
318
+ "id"
319
+ ],
320
+ "onDelete": "cascade",
321
+ "onUpdate": "no action"
322
+ },
323
+ "fk_lineage_parent_id_samples": {
324
+ "name": "fk_lineage_parent_id_samples",
325
+ "tableFrom": "lineage",
326
+ "tableTo": "samples",
327
+ "schemaTo": "vireo",
328
+ "columnsFrom": [
329
+ "parent_id"
330
+ ],
331
+ "columnsTo": [
332
+ "id"
333
+ ],
334
+ "onDelete": "cascade",
335
+ "onUpdate": "no action"
336
+ }
337
+ },
338
+ "compositePrimaryKeys": {
339
+ "pk_lineage": {
340
+ "name": "pk_lineage",
341
+ "columns": [
342
+ "child_id",
343
+ "parent_id"
344
+ ]
345
+ }
346
+ },
347
+ "uniqueConstraints": {},
348
+ "policies": {},
349
+ "checkConstraints": {
350
+ "ck_vireo_lineage_not_self": {
351
+ "name": "ck_vireo_lineage_not_self",
352
+ "value": "\"child_id\" <> \"parent_id\""
353
+ }
354
+ },
355
+ "isRLSEnabled": false
356
+ },
357
+ "vireo.notes": {
358
+ "name": "notes",
359
+ "schema": "vireo",
360
+ "columns": {
361
+ "id": {
362
+ "name": "id",
363
+ "type": "serial",
364
+ "primaryKey": false,
365
+ "notNull": true
366
+ },
367
+ "sample_id": {
368
+ "name": "sample_id",
369
+ "type": "integer",
370
+ "primaryKey": false,
371
+ "notNull": true
372
+ },
373
+ "anchor": {
374
+ "name": "anchor",
375
+ "type": "jsonb",
376
+ "primaryKey": false,
377
+ "notNull": false
378
+ },
379
+ "tone": {
380
+ "name": "tone",
381
+ "type": "varchar(4)",
382
+ "primaryKey": false,
383
+ "notNull": false
384
+ },
385
+ "text": {
386
+ "name": "text",
387
+ "type": "text",
388
+ "primaryKey": false,
389
+ "notNull": false
390
+ },
391
+ "by": {
392
+ "name": "by",
393
+ "type": "varchar(320)",
394
+ "primaryKey": false,
395
+ "notNull": false
396
+ },
397
+ "created_at": {
398
+ "name": "created_at",
399
+ "type": "timestamp with time zone",
400
+ "primaryKey": false,
401
+ "notNull": true,
402
+ "default": "now()"
403
+ }
404
+ },
405
+ "indexes": {
406
+ "ix_vireo_notes_sample": {
407
+ "name": "ix_vireo_notes_sample",
408
+ "columns": [
409
+ {
410
+ "expression": "sample_id",
411
+ "isExpression": false,
412
+ "asc": true,
413
+ "nulls": "last"
414
+ }
415
+ ],
416
+ "isUnique": false,
417
+ "concurrently": false,
418
+ "method": "btree",
419
+ "with": {}
420
+ }
421
+ },
422
+ "foreignKeys": {
423
+ "fk_notes_sample_id_samples": {
424
+ "name": "fk_notes_sample_id_samples",
425
+ "tableFrom": "notes",
426
+ "tableTo": "samples",
427
+ "schemaTo": "vireo",
428
+ "columnsFrom": [
429
+ "sample_id"
430
+ ],
431
+ "columnsTo": [
432
+ "id"
433
+ ],
434
+ "onDelete": "cascade",
435
+ "onUpdate": "no action"
436
+ }
437
+ },
438
+ "compositePrimaryKeys": {
439
+ "pk_notes": {
440
+ "name": "pk_notes",
441
+ "columns": [
442
+ "id"
443
+ ]
444
+ }
445
+ },
446
+ "uniqueConstraints": {},
447
+ "policies": {},
448
+ "checkConstraints": {
449
+ "ck_vireo_notes_tone": {
450
+ "name": "ck_vireo_notes_tone",
451
+ "value": "(\"tone\")::text = ANY ((ARRAY['good'::character varying, 'bad'::character varying])::text[])"
452
+ }
453
+ },
454
+ "isRLSEnabled": false
455
+ },
456
+ "vireo.outcomes": {
457
+ "name": "outcomes",
458
+ "schema": "vireo",
459
+ "columns": {
460
+ "ship_id": {
461
+ "name": "ship_id",
462
+ "type": "integer",
463
+ "primaryKey": false,
464
+ "notNull": true
465
+ },
466
+ "segment": {
467
+ "name": "segment",
468
+ "type": "varchar(160)",
469
+ "primaryKey": false,
470
+ "notNull": true
471
+ },
472
+ "day": {
473
+ "name": "day",
474
+ "type": "date",
475
+ "primaryKey": false,
476
+ "notNull": true
477
+ },
478
+ "metric": {
479
+ "name": "metric",
480
+ "type": "varchar(32)",
481
+ "primaryKey": false,
482
+ "notNull": true
483
+ },
484
+ "value": {
485
+ "name": "value",
486
+ "type": "double precision",
487
+ "primaryKey": false,
488
+ "notNull": true
489
+ },
490
+ "fetched_at": {
491
+ "name": "fetched_at",
492
+ "type": "timestamp with time zone",
493
+ "primaryKey": false,
494
+ "notNull": true,
495
+ "default": "now()"
496
+ }
497
+ },
498
+ "indexes": {},
499
+ "foreignKeys": {
500
+ "fk_outcomes_ship_id_ships": {
501
+ "name": "fk_outcomes_ship_id_ships",
502
+ "tableFrom": "outcomes",
503
+ "tableTo": "ships",
504
+ "schemaTo": "vireo",
505
+ "columnsFrom": [
506
+ "ship_id"
507
+ ],
508
+ "columnsTo": [
509
+ "id"
510
+ ],
511
+ "onDelete": "cascade",
512
+ "onUpdate": "no action"
513
+ }
514
+ },
515
+ "compositePrimaryKeys": {
516
+ "pk_outcomes": {
517
+ "name": "pk_outcomes",
518
+ "columns": [
519
+ "ship_id",
520
+ "segment",
521
+ "day",
522
+ "metric"
523
+ ]
524
+ }
525
+ },
526
+ "uniqueConstraints": {},
527
+ "policies": {},
528
+ "checkConstraints": {},
529
+ "isRLSEnabled": false
530
+ },
531
+ "vireo.samples": {
532
+ "name": "samples",
533
+ "schema": "vireo",
534
+ "columns": {
535
+ "id": {
536
+ "name": "id",
537
+ "type": "serial",
538
+ "primaryKey": false,
539
+ "notNull": true
540
+ },
541
+ "batch_id": {
542
+ "name": "batch_id",
543
+ "type": "integer",
544
+ "primaryKey": false,
545
+ "notNull": true
546
+ },
547
+ "subject_id": {
548
+ "name": "subject_id",
549
+ "type": "integer",
550
+ "primaryKey": false,
551
+ "notNull": true
552
+ },
553
+ "position": {
554
+ "name": "position",
555
+ "type": "smallint",
556
+ "primaryKey": false,
557
+ "notNull": true,
558
+ "default": 0
559
+ },
560
+ "body": {
561
+ "name": "body",
562
+ "type": "text",
563
+ "primaryKey": false,
564
+ "notNull": false
565
+ },
566
+ "media": {
567
+ "name": "media",
568
+ "type": "text",
569
+ "primaryKey": false,
570
+ "notNull": false
571
+ },
572
+ "poster": {
573
+ "name": "poster",
574
+ "type": "text",
575
+ "primaryKey": false,
576
+ "notNull": false
577
+ },
578
+ "source": {
579
+ "name": "source",
580
+ "type": "jsonb",
581
+ "primaryKey": false,
582
+ "notNull": false
583
+ },
584
+ "name": {
585
+ "name": "name",
586
+ "type": "varchar(60)",
587
+ "primaryKey": false,
588
+ "notNull": false
589
+ },
590
+ "guides": {
591
+ "name": "guides",
592
+ "type": "integer[]",
593
+ "primaryKey": false,
594
+ "notNull": true,
595
+ "default": "'{}'::integer[]"
596
+ },
597
+ "change": {
598
+ "name": "change",
599
+ "type": "text",
600
+ "primaryKey": false,
601
+ "notNull": false
602
+ },
603
+ "agent": {
604
+ "name": "agent",
605
+ "type": "varchar(120)",
606
+ "primaryKey": false,
607
+ "notNull": false
608
+ },
609
+ "verdict": {
610
+ "name": "verdict",
611
+ "type": "varchar(8)",
612
+ "primaryKey": false,
613
+ "notNull": false
614
+ },
615
+ "kept_at": {
616
+ "name": "kept_at",
617
+ "type": "timestamp with time zone",
618
+ "primaryKey": false,
619
+ "notNull": false
620
+ },
621
+ "created_at": {
622
+ "name": "created_at",
623
+ "type": "timestamp with time zone",
624
+ "primaryKey": false,
625
+ "notNull": true,
626
+ "default": "now()"
627
+ }
628
+ },
629
+ "indexes": {
630
+ "ix_vireo_samples_batch": {
631
+ "name": "ix_vireo_samples_batch",
632
+ "columns": [
633
+ {
634
+ "expression": "batch_id",
635
+ "isExpression": false,
636
+ "asc": true,
637
+ "nulls": "last"
638
+ }
639
+ ],
640
+ "isUnique": false,
641
+ "concurrently": false,
642
+ "method": "btree",
643
+ "with": {}
644
+ },
645
+ "ix_vireo_samples_subject": {
646
+ "name": "ix_vireo_samples_subject",
647
+ "columns": [
648
+ {
649
+ "expression": "subject_id",
650
+ "isExpression": false,
651
+ "asc": true,
652
+ "nulls": "last"
653
+ }
654
+ ],
655
+ "isUnique": false,
656
+ "concurrently": false,
657
+ "method": "btree",
658
+ "with": {}
659
+ }
660
+ },
661
+ "foreignKeys": {
662
+ "fk_samples_batch_id_batches": {
663
+ "name": "fk_samples_batch_id_batches",
664
+ "tableFrom": "samples",
665
+ "tableTo": "batches",
666
+ "schemaTo": "vireo",
667
+ "columnsFrom": [
668
+ "batch_id"
669
+ ],
670
+ "columnsTo": [
671
+ "id"
672
+ ],
673
+ "onDelete": "cascade",
674
+ "onUpdate": "no action"
675
+ },
676
+ "fk_samples_subject_id_subjects": {
677
+ "name": "fk_samples_subject_id_subjects",
678
+ "tableFrom": "samples",
679
+ "tableTo": "subjects",
680
+ "schemaTo": "vireo",
681
+ "columnsFrom": [
682
+ "subject_id"
683
+ ],
684
+ "columnsTo": [
685
+ "id"
686
+ ],
687
+ "onDelete": "cascade",
688
+ "onUpdate": "no action"
689
+ }
690
+ },
691
+ "compositePrimaryKeys": {
692
+ "pk_samples": {
693
+ "name": "pk_samples",
694
+ "columns": [
695
+ "id"
696
+ ]
697
+ }
698
+ },
699
+ "uniqueConstraints": {},
700
+ "policies": {},
701
+ "checkConstraints": {
702
+ "ck_vireo_samples_verdict": {
703
+ "name": "ck_vireo_samples_verdict",
704
+ "value": "(\"verdict\")::text = ANY ((ARRAY['amazing'::character varying, 'good'::character varying, 'bad'::character varying])::text[])"
705
+ }
706
+ },
707
+ "isRLSEnabled": false
708
+ },
709
+ "vireo.ships": {
710
+ "name": "ships",
711
+ "schema": "vireo",
712
+ "columns": {
713
+ "id": {
714
+ "name": "id",
715
+ "type": "serial",
716
+ "primaryKey": false,
717
+ "notNull": true
718
+ },
719
+ "sample_id": {
720
+ "name": "sample_id",
721
+ "type": "integer",
722
+ "primaryKey": false,
723
+ "notNull": true
724
+ },
725
+ "channel": {
726
+ "name": "channel",
727
+ "type": "varchar(32)",
728
+ "primaryKey": false,
729
+ "notNull": true
730
+ },
731
+ "target": {
732
+ "name": "target",
733
+ "type": "varchar(200)",
734
+ "primaryKey": false,
735
+ "notNull": true
736
+ },
737
+ "why": {
738
+ "name": "why",
739
+ "type": "text",
740
+ "primaryKey": false,
741
+ "notNull": false
742
+ },
743
+ "by": {
744
+ "name": "by",
745
+ "type": "varchar(320)",
746
+ "primaryKey": false,
747
+ "notNull": false
748
+ },
749
+ "started_at": {
750
+ "name": "started_at",
751
+ "type": "timestamp with time zone",
752
+ "primaryKey": false,
753
+ "notNull": true,
754
+ "default": "now()"
755
+ },
756
+ "ended_at": {
757
+ "name": "ended_at",
758
+ "type": "timestamp with time zone",
759
+ "primaryKey": false,
760
+ "notNull": false
761
+ }
762
+ },
763
+ "indexes": {
764
+ "ix_vireo_ships_sample": {
765
+ "name": "ix_vireo_ships_sample",
766
+ "columns": [
767
+ {
768
+ "expression": "sample_id",
769
+ "isExpression": false,
770
+ "asc": true,
771
+ "nulls": "last"
772
+ }
773
+ ],
774
+ "isUnique": false,
775
+ "concurrently": false,
776
+ "method": "btree",
777
+ "with": {}
778
+ }
779
+ },
780
+ "foreignKeys": {
781
+ "fk_ships_sample_id_samples": {
782
+ "name": "fk_ships_sample_id_samples",
783
+ "tableFrom": "ships",
784
+ "tableTo": "samples",
785
+ "schemaTo": "vireo",
786
+ "columnsFrom": [
787
+ "sample_id"
788
+ ],
789
+ "columnsTo": [
790
+ "id"
791
+ ],
792
+ "onDelete": "cascade",
793
+ "onUpdate": "no action"
794
+ }
795
+ },
796
+ "compositePrimaryKeys": {
797
+ "pk_ships": {
798
+ "name": "pk_ships",
799
+ "columns": [
800
+ "id"
801
+ ]
802
+ }
803
+ },
804
+ "uniqueConstraints": {
805
+ "uq_vireo_ships_target": {
806
+ "name": "uq_vireo_ships_target",
807
+ "nullsNotDistinct": false,
808
+ "columns": [
809
+ "channel",
810
+ "target",
811
+ "sample_id"
812
+ ]
813
+ }
814
+ },
815
+ "policies": {},
816
+ "checkConstraints": {},
817
+ "isRLSEnabled": false
818
+ },
819
+ "vireo.subjects": {
820
+ "name": "subjects",
821
+ "schema": "vireo",
822
+ "columns": {
823
+ "id": {
824
+ "name": "id",
825
+ "type": "serial",
826
+ "primaryKey": false,
827
+ "notNull": true
828
+ },
829
+ "slug": {
830
+ "name": "slug",
831
+ "type": "varchar(60)",
832
+ "primaryKey": false,
833
+ "notNull": true
834
+ },
835
+ "name": {
836
+ "name": "name",
837
+ "type": "text",
838
+ "primaryKey": false,
839
+ "notNull": true
840
+ },
841
+ "kind": {
842
+ "name": "kind",
843
+ "type": "varchar(8)",
844
+ "primaryKey": false,
845
+ "notNull": true
846
+ },
847
+ "brief": {
848
+ "name": "brief",
849
+ "type": "text",
850
+ "primaryKey": false,
851
+ "notNull": false
852
+ },
853
+ "seeds": {
854
+ "name": "seeds",
855
+ "type": "jsonb",
856
+ "primaryKey": false,
857
+ "notNull": true,
858
+ "default": "'[]'::jsonb"
859
+ },
860
+ "state": {
861
+ "name": "state",
862
+ "type": "varchar(8)",
863
+ "primaryKey": false,
864
+ "notNull": true,
865
+ "default": "'open'"
866
+ },
867
+ "by": {
868
+ "name": "by",
869
+ "type": "varchar(320)",
870
+ "primaryKey": false,
871
+ "notNull": false
872
+ },
873
+ "created_at": {
874
+ "name": "created_at",
875
+ "type": "timestamp with time zone",
876
+ "primaryKey": false,
877
+ "notNull": true,
878
+ "default": "now()"
879
+ }
880
+ },
881
+ "indexes": {},
882
+ "foreignKeys": {},
883
+ "compositePrimaryKeys": {
884
+ "pk_subjects": {
885
+ "name": "pk_subjects",
886
+ "columns": [
887
+ "id"
888
+ ]
889
+ }
890
+ },
891
+ "uniqueConstraints": {
892
+ "uq_vireo_subjects_slug": {
893
+ "name": "uq_vireo_subjects_slug",
894
+ "nullsNotDistinct": false,
895
+ "columns": [
896
+ "slug"
897
+ ]
898
+ }
899
+ },
900
+ "policies": {},
901
+ "checkConstraints": {
902
+ "ck_vireo_subjects_kind": {
903
+ "name": "ck_vireo_subjects_kind",
904
+ "value": "(\"kind\")::text = ANY ((ARRAY['text'::character varying, 'image'::character varying, 'video'::character varying, 'page'::character varying])::text[])"
905
+ },
906
+ "ck_vireo_subjects_state": {
907
+ "name": "ck_vireo_subjects_state",
908
+ "value": "(\"state\")::text = ANY ((ARRAY['open'::character varying, 'paused'::character varying, 'done'::character varying])::text[])"
909
+ }
910
+ },
911
+ "isRLSEnabled": false
912
+ }
913
+ },
914
+ "enums": {},
915
+ "schemas": {
916
+ "vireo": "vireo"
917
+ },
918
+ "sequences": {},
919
+ "roles": {},
920
+ "policies": {},
921
+ "views": {},
922
+ "_meta": {
923
+ "columns": {},
924
+ "schemas": {},
925
+ "tables": {}
926
+ }
927
+ }