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