@tstdl/base 0.93.78 → 0.93.80

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.
@@ -1,2728 +0,0 @@
1
- {
2
- "id": "511a820f-2767-4bce-8f31-03d2c770ef6e",
3
- "prevId": "bbddb1b8-fa09-4465-8016-5a9b7915023d",
4
- "version": "7",
5
- "dialect": "postgresql",
6
- "tables": {
7
- "document_management.document": {
8
- "name": "document",
9
- "schema": "document_management",
10
- "columns": {
11
- "id": {
12
- "name": "id",
13
- "type": "uuid",
14
- "primaryKey": false,
15
- "notNull": true,
16
- "default": "gen_random_uuid()"
17
- },
18
- "tenant_id": {
19
- "name": "tenant_id",
20
- "type": "uuid",
21
- "primaryKey": false,
22
- "notNull": true
23
- },
24
- "type_id": {
25
- "name": "type_id",
26
- "type": "uuid",
27
- "primaryKey": false,
28
- "notNull": false
29
- },
30
- "title": {
31
- "name": "title",
32
- "type": "text",
33
- "primaryKey": false,
34
- "notNull": false
35
- },
36
- "subtitle": {
37
- "name": "subtitle",
38
- "type": "text",
39
- "primaryKey": false,
40
- "notNull": false
41
- },
42
- "pages": {
43
- "name": "pages",
44
- "type": "integer",
45
- "primaryKey": false,
46
- "notNull": false
47
- },
48
- "date": {
49
- "name": "date",
50
- "type": "date",
51
- "primaryKey": false,
52
- "notNull": false
53
- },
54
- "summary": {
55
- "name": "summary",
56
- "type": "text",
57
- "primaryKey": false,
58
- "notNull": false
59
- },
60
- "approval": {
61
- "name": "approval",
62
- "type": "document_approval",
63
- "typeSchema": "document_management",
64
- "primaryKey": false,
65
- "notNull": true
66
- },
67
- "comment": {
68
- "name": "comment",
69
- "type": "text",
70
- "primaryKey": false,
71
- "notNull": false
72
- },
73
- "original_file_name": {
74
- "name": "original_file_name",
75
- "type": "text",
76
- "primaryKey": false,
77
- "notNull": false
78
- },
79
- "mime_type": {
80
- "name": "mime_type",
81
- "type": "text",
82
- "primaryKey": false,
83
- "notNull": true
84
- },
85
- "hash": {
86
- "name": "hash",
87
- "type": "text",
88
- "primaryKey": false,
89
- "notNull": true
90
- },
91
- "size": {
92
- "name": "size",
93
- "type": "integer",
94
- "primaryKey": false,
95
- "notNull": true
96
- },
97
- "create_user_id": {
98
- "name": "create_user_id",
99
- "type": "uuid",
100
- "primaryKey": false,
101
- "notNull": false
102
- },
103
- "revision": {
104
- "name": "revision",
105
- "type": "integer",
106
- "primaryKey": false,
107
- "notNull": true
108
- },
109
- "revision_timestamp": {
110
- "name": "revision_timestamp",
111
- "type": "timestamp with time zone",
112
- "primaryKey": false,
113
- "notNull": true
114
- },
115
- "create_timestamp": {
116
- "name": "create_timestamp",
117
- "type": "timestamp with time zone",
118
- "primaryKey": false,
119
- "notNull": true
120
- },
121
- "delete_timestamp": {
122
- "name": "delete_timestamp",
123
- "type": "timestamp with time zone",
124
- "primaryKey": false,
125
- "notNull": false
126
- },
127
- "attributes": {
128
- "name": "attributes",
129
- "type": "jsonb",
130
- "primaryKey": false,
131
- "notNull": true,
132
- "default": "'{}'::jsonb"
133
- }
134
- },
135
- "indexes": {},
136
- "foreignKeys": {
137
- "document_id_fkey": {
138
- "name": "document_id_fkey",
139
- "tableFrom": "document",
140
- "tableTo": "type",
141
- "schemaTo": "document_management",
142
- "columnsFrom": [
143
- "tenant_id",
144
- "type_id"
145
- ],
146
- "columnsTo": [
147
- "tenant_id",
148
- "id"
149
- ],
150
- "onDelete": "no action",
151
- "onUpdate": "no action"
152
- }
153
- },
154
- "compositePrimaryKeys": {
155
- "document_tenant_id_id_pk": {
156
- "name": "document_tenant_id_id_pk",
157
- "columns": [
158
- "tenant_id",
159
- "id"
160
- ]
161
- }
162
- },
163
- "uniqueConstraints": {
164
- "document_tenant_id_id_unique": {
165
- "name": "document_tenant_id_id_unique",
166
- "nullsNotDistinct": false,
167
- "columns": [
168
- "tenant_id",
169
- "id"
170
- ]
171
- }
172
- },
173
- "policies": {},
174
- "checkConstraints": {},
175
- "isRLSEnabled": false
176
- },
177
- "document_management.assignment_scope": {
178
- "name": "assignment_scope",
179
- "schema": "document_management",
180
- "columns": {
181
- "id": {
182
- "name": "id",
183
- "type": "uuid",
184
- "primaryKey": false,
185
- "notNull": true,
186
- "default": "gen_random_uuid()"
187
- },
188
- "tenant_id": {
189
- "name": "tenant_id",
190
- "type": "uuid",
191
- "primaryKey": false,
192
- "notNull": true
193
- },
194
- "task_id": {
195
- "name": "task_id",
196
- "type": "uuid",
197
- "primaryKey": false,
198
- "notNull": true
199
- },
200
- "collection_id": {
201
- "name": "collection_id",
202
- "type": "uuid",
203
- "primaryKey": false,
204
- "notNull": true
205
- },
206
- "revision": {
207
- "name": "revision",
208
- "type": "integer",
209
- "primaryKey": false,
210
- "notNull": true
211
- },
212
- "revision_timestamp": {
213
- "name": "revision_timestamp",
214
- "type": "timestamp with time zone",
215
- "primaryKey": false,
216
- "notNull": true
217
- },
218
- "create_timestamp": {
219
- "name": "create_timestamp",
220
- "type": "timestamp with time zone",
221
- "primaryKey": false,
222
- "notNull": true
223
- },
224
- "delete_timestamp": {
225
- "name": "delete_timestamp",
226
- "type": "timestamp with time zone",
227
- "primaryKey": false,
228
- "notNull": false
229
- },
230
- "attributes": {
231
- "name": "attributes",
232
- "type": "jsonb",
233
- "primaryKey": false,
234
- "notNull": true,
235
- "default": "'{}'::jsonb"
236
- }
237
- },
238
- "indexes": {},
239
- "foreignKeys": {
240
- "assignment_scope_id_fkey": {
241
- "name": "assignment_scope_id_fkey",
242
- "tableFrom": "assignment_scope",
243
- "tableTo": "collection",
244
- "schemaTo": "document_management",
245
- "columnsFrom": [
246
- "tenant_id",
247
- "collection_id"
248
- ],
249
- "columnsTo": [
250
- "tenant_id",
251
- "id"
252
- ],
253
- "onDelete": "no action",
254
- "onUpdate": "no action"
255
- },
256
- "assignment_scope_tenantId_collectionId_fkey": {
257
- "name": "assignment_scope_tenantId_collectionId_fkey",
258
- "tableFrom": "assignment_scope",
259
- "tableTo": "collection",
260
- "schemaTo": "document_management",
261
- "columnsFrom": [
262
- "tenant_id",
263
- "collection_id"
264
- ],
265
- "columnsTo": [
266
- "tenant_id",
267
- "id"
268
- ],
269
- "onDelete": "no action",
270
- "onUpdate": "no action"
271
- },
272
- "assignment_scope_tenantId_taskId_fkey": {
273
- "name": "assignment_scope_tenantId_taskId_fkey",
274
- "tableFrom": "assignment_scope",
275
- "tableTo": "assignment_task",
276
- "schemaTo": "document_management",
277
- "columnsFrom": [
278
- "tenant_id",
279
- "task_id"
280
- ],
281
- "columnsTo": [
282
- "tenant_id",
283
- "id"
284
- ],
285
- "onDelete": "no action",
286
- "onUpdate": "no action"
287
- }
288
- },
289
- "compositePrimaryKeys": {
290
- "assignment_scope_tenant_id_id_pk": {
291
- "name": "assignment_scope_tenant_id_id_pk",
292
- "columns": [
293
- "tenant_id",
294
- "id"
295
- ]
296
- }
297
- },
298
- "uniqueConstraints": {
299
- "assignment_scope_task_id_collection_id_unique": {
300
- "name": "assignment_scope_task_id_collection_id_unique",
301
- "nullsNotDistinct": false,
302
- "columns": [
303
- "task_id",
304
- "collection_id"
305
- ]
306
- }
307
- },
308
- "policies": {},
309
- "checkConstraints": {},
310
- "isRLSEnabled": false
311
- },
312
- "document_management.assignment_task": {
313
- "name": "assignment_task",
314
- "schema": "document_management",
315
- "columns": {
316
- "id": {
317
- "name": "id",
318
- "type": "uuid",
319
- "primaryKey": false,
320
- "notNull": true,
321
- "default": "gen_random_uuid()"
322
- },
323
- "tenant_id": {
324
- "name": "tenant_id",
325
- "type": "uuid",
326
- "primaryKey": false,
327
- "notNull": true
328
- },
329
- "document_id": {
330
- "name": "document_id",
331
- "type": "uuid",
332
- "primaryKey": false,
333
- "notNull": true
334
- },
335
- "target": {
336
- "name": "target",
337
- "type": "assignment_target",
338
- "typeSchema": "document_management",
339
- "primaryKey": false,
340
- "notNull": true
341
- },
342
- "revision": {
343
- "name": "revision",
344
- "type": "integer",
345
- "primaryKey": false,
346
- "notNull": true
347
- },
348
- "revision_timestamp": {
349
- "name": "revision_timestamp",
350
- "type": "timestamp with time zone",
351
- "primaryKey": false,
352
- "notNull": true
353
- },
354
- "create_timestamp": {
355
- "name": "create_timestamp",
356
- "type": "timestamp with time zone",
357
- "primaryKey": false,
358
- "notNull": true
359
- },
360
- "delete_timestamp": {
361
- "name": "delete_timestamp",
362
- "type": "timestamp with time zone",
363
- "primaryKey": false,
364
- "notNull": false
365
- },
366
- "attributes": {
367
- "name": "attributes",
368
- "type": "jsonb",
369
- "primaryKey": false,
370
- "notNull": true,
371
- "default": "'{}'::jsonb"
372
- }
373
- },
374
- "indexes": {},
375
- "foreignKeys": {
376
- "assignment_task_id_fkey": {
377
- "name": "assignment_task_id_fkey",
378
- "tableFrom": "assignment_task",
379
- "tableTo": "document",
380
- "schemaTo": "document_management",
381
- "columnsFrom": [
382
- "tenant_id",
383
- "document_id"
384
- ],
385
- "columnsTo": [
386
- "tenant_id",
387
- "id"
388
- ],
389
- "onDelete": "no action",
390
- "onUpdate": "no action"
391
- },
392
- "assignment_task_tenantId_documentId_fkey": {
393
- "name": "assignment_task_tenantId_documentId_fkey",
394
- "tableFrom": "assignment_task",
395
- "tableTo": "document",
396
- "schemaTo": "document_management",
397
- "columnsFrom": [
398
- "tenant_id",
399
- "document_id"
400
- ],
401
- "columnsTo": [
402
- "tenant_id",
403
- "id"
404
- ],
405
- "onDelete": "no action",
406
- "onUpdate": "no action"
407
- }
408
- },
409
- "compositePrimaryKeys": {
410
- "assignment_task_tenant_id_id_pk": {
411
- "name": "assignment_task_tenant_id_id_pk",
412
- "columns": [
413
- "tenant_id",
414
- "id"
415
- ]
416
- }
417
- },
418
- "uniqueConstraints": {
419
- "assignment_task_document_id_unique": {
420
- "name": "assignment_task_document_id_unique",
421
- "nullsNotDistinct": false,
422
- "columns": [
423
- "document_id"
424
- ]
425
- },
426
- "assignment_task_tenant_id_id_unique": {
427
- "name": "assignment_task_tenant_id_id_unique",
428
- "nullsNotDistinct": false,
429
- "columns": [
430
- "tenant_id",
431
- "id"
432
- ]
433
- }
434
- },
435
- "policies": {},
436
- "checkConstraints": {},
437
- "isRLSEnabled": false
438
- },
439
- "document_management.category": {
440
- "name": "category",
441
- "schema": "document_management",
442
- "columns": {
443
- "id": {
444
- "name": "id",
445
- "type": "uuid",
446
- "primaryKey": false,
447
- "notNull": true,
448
- "default": "gen_random_uuid()"
449
- },
450
- "tenant_id": {
451
- "name": "tenant_id",
452
- "type": "uuid",
453
- "primaryKey": false,
454
- "notNull": true
455
- },
456
- "parent_id": {
457
- "name": "parent_id",
458
- "type": "uuid",
459
- "primaryKey": false,
460
- "notNull": false
461
- },
462
- "label": {
463
- "name": "label",
464
- "type": "text",
465
- "primaryKey": false,
466
- "notNull": true
467
- },
468
- "revision": {
469
- "name": "revision",
470
- "type": "integer",
471
- "primaryKey": false,
472
- "notNull": true
473
- },
474
- "revision_timestamp": {
475
- "name": "revision_timestamp",
476
- "type": "timestamp with time zone",
477
- "primaryKey": false,
478
- "notNull": true
479
- },
480
- "create_timestamp": {
481
- "name": "create_timestamp",
482
- "type": "timestamp with time zone",
483
- "primaryKey": false,
484
- "notNull": true
485
- },
486
- "delete_timestamp": {
487
- "name": "delete_timestamp",
488
- "type": "timestamp with time zone",
489
- "primaryKey": false,
490
- "notNull": false
491
- },
492
- "attributes": {
493
- "name": "attributes",
494
- "type": "jsonb",
495
- "primaryKey": false,
496
- "notNull": true,
497
- "default": "'{}'::jsonb"
498
- }
499
- },
500
- "indexes": {},
501
- "foreignKeys": {
502
- "category_id_fkey": {
503
- "name": "category_id_fkey",
504
- "tableFrom": "category",
505
- "tableTo": "category",
506
- "schemaTo": "document_management",
507
- "columnsFrom": [
508
- "tenant_id",
509
- "parent_id"
510
- ],
511
- "columnsTo": [
512
- "tenant_id",
513
- "id"
514
- ],
515
- "onDelete": "no action",
516
- "onUpdate": "no action"
517
- }
518
- },
519
- "compositePrimaryKeys": {
520
- "category_tenant_id_id_pk": {
521
- "name": "category_tenant_id_id_pk",
522
- "columns": [
523
- "tenant_id",
524
- "id"
525
- ]
526
- }
527
- },
528
- "uniqueConstraints": {
529
- "category_label_unique": {
530
- "name": "category_label_unique",
531
- "nullsNotDistinct": false,
532
- "columns": [
533
- "label"
534
- ]
535
- },
536
- "category_tenant_id_parent_id_label_unique": {
537
- "name": "category_tenant_id_parent_id_label_unique",
538
- "nullsNotDistinct": false,
539
- "columns": [
540
- "tenant_id",
541
- "parent_id",
542
- "label"
543
- ]
544
- }
545
- },
546
- "policies": {},
547
- "checkConstraints": {},
548
- "isRLSEnabled": false
549
- },
550
- "document_management.collection": {
551
- "name": "collection",
552
- "schema": "document_management",
553
- "columns": {
554
- "id": {
555
- "name": "id",
556
- "type": "uuid",
557
- "primaryKey": false,
558
- "notNull": true,
559
- "default": "gen_random_uuid()"
560
- },
561
- "tenant_id": {
562
- "name": "tenant_id",
563
- "type": "uuid",
564
- "primaryKey": false,
565
- "notNull": true
566
- },
567
- "parent_id": {
568
- "name": "parent_id",
569
- "type": "uuid",
570
- "primaryKey": false,
571
- "notNull": false
572
- },
573
- "revision": {
574
- "name": "revision",
575
- "type": "integer",
576
- "primaryKey": false,
577
- "notNull": true
578
- },
579
- "revision_timestamp": {
580
- "name": "revision_timestamp",
581
- "type": "timestamp with time zone",
582
- "primaryKey": false,
583
- "notNull": true
584
- },
585
- "create_timestamp": {
586
- "name": "create_timestamp",
587
- "type": "timestamp with time zone",
588
- "primaryKey": false,
589
- "notNull": true
590
- },
591
- "delete_timestamp": {
592
- "name": "delete_timestamp",
593
- "type": "timestamp with time zone",
594
- "primaryKey": false,
595
- "notNull": false
596
- },
597
- "attributes": {
598
- "name": "attributes",
599
- "type": "jsonb",
600
- "primaryKey": false,
601
- "notNull": true,
602
- "default": "'{}'::jsonb"
603
- }
604
- },
605
- "indexes": {},
606
- "foreignKeys": {
607
- "collection_id_fkey": {
608
- "name": "collection_id_fkey",
609
- "tableFrom": "collection",
610
- "tableTo": "collection",
611
- "schemaTo": "document_management",
612
- "columnsFrom": [
613
- "tenant_id",
614
- "parent_id"
615
- ],
616
- "columnsTo": [
617
- "tenant_id",
618
- "id"
619
- ],
620
- "onDelete": "no action",
621
- "onUpdate": "no action"
622
- }
623
- },
624
- "compositePrimaryKeys": {
625
- "collection_tenant_id_id_pk": {
626
- "name": "collection_tenant_id_id_pk",
627
- "columns": [
628
- "tenant_id",
629
- "id"
630
- ]
631
- }
632
- },
633
- "uniqueConstraints": {
634
- "collection_tenant_id_id_unique": {
635
- "name": "collection_tenant_id_id_unique",
636
- "nullsNotDistinct": false,
637
- "columns": [
638
- "tenant_id",
639
- "id"
640
- ]
641
- }
642
- },
643
- "policies": {},
644
- "checkConstraints": {},
645
- "isRLSEnabled": false
646
- },
647
- "document_management.collection_assignment": {
648
- "name": "collection_assignment",
649
- "schema": "document_management",
650
- "columns": {
651
- "id": {
652
- "name": "id",
653
- "type": "uuid",
654
- "primaryKey": false,
655
- "notNull": true,
656
- "default": "gen_random_uuid()"
657
- },
658
- "tenant_id": {
659
- "name": "tenant_id",
660
- "type": "uuid",
661
- "primaryKey": false,
662
- "notNull": true
663
- },
664
- "collection_id": {
665
- "name": "collection_id",
666
- "type": "uuid",
667
- "primaryKey": false,
668
- "notNull": true
669
- },
670
- "document_id": {
671
- "name": "document_id",
672
- "type": "uuid",
673
- "primaryKey": false,
674
- "notNull": true
675
- },
676
- "archive_timestamp": {
677
- "name": "archive_timestamp",
678
- "type": "timestamp with time zone",
679
- "primaryKey": false,
680
- "notNull": false
681
- },
682
- "revision": {
683
- "name": "revision",
684
- "type": "integer",
685
- "primaryKey": false,
686
- "notNull": true
687
- },
688
- "revision_timestamp": {
689
- "name": "revision_timestamp",
690
- "type": "timestamp with time zone",
691
- "primaryKey": false,
692
- "notNull": true
693
- },
694
- "create_timestamp": {
695
- "name": "create_timestamp",
696
- "type": "timestamp with time zone",
697
- "primaryKey": false,
698
- "notNull": true
699
- },
700
- "delete_timestamp": {
701
- "name": "delete_timestamp",
702
- "type": "timestamp with time zone",
703
- "primaryKey": false,
704
- "notNull": false
705
- },
706
- "attributes": {
707
- "name": "attributes",
708
- "type": "jsonb",
709
- "primaryKey": false,
710
- "notNull": true,
711
- "default": "'{}'::jsonb"
712
- }
713
- },
714
- "indexes": {
715
- "collection_assignment_collection_id_idx": {
716
- "name": "collection_assignment_collection_id_idx",
717
- "columns": [
718
- {
719
- "expression": "collection_id",
720
- "isExpression": false,
721
- "asc": true,
722
- "nulls": "last"
723
- }
724
- ],
725
- "isUnique": false,
726
- "concurrently": false,
727
- "method": "btree",
728
- "with": {}
729
- }
730
- },
731
- "foreignKeys": {
732
- "collection_assignment_id_fkey": {
733
- "name": "collection_assignment_id_fkey",
734
- "tableFrom": "collection_assignment",
735
- "tableTo": "document",
736
- "schemaTo": "document_management",
737
- "columnsFrom": [
738
- "tenant_id",
739
- "document_id"
740
- ],
741
- "columnsTo": [
742
- "tenant_id",
743
- "id"
744
- ],
745
- "onDelete": "no action",
746
- "onUpdate": "no action"
747
- },
748
- "collection_assignment_tenantId_documentId_fkey": {
749
- "name": "collection_assignment_tenantId_documentId_fkey",
750
- "tableFrom": "collection_assignment",
751
- "tableTo": "document",
752
- "schemaTo": "document_management",
753
- "columnsFrom": [
754
- "tenant_id",
755
- "document_id"
756
- ],
757
- "columnsTo": [
758
- "tenant_id",
759
- "id"
760
- ],
761
- "onDelete": "no action",
762
- "onUpdate": "no action"
763
- },
764
- "collection_assignment_tenantId_collectionId_fkey": {
765
- "name": "collection_assignment_tenantId_collectionId_fkey",
766
- "tableFrom": "collection_assignment",
767
- "tableTo": "collection",
768
- "schemaTo": "document_management",
769
- "columnsFrom": [
770
- "tenant_id",
771
- "collection_id"
772
- ],
773
- "columnsTo": [
774
- "tenant_id",
775
- "id"
776
- ],
777
- "onDelete": "no action",
778
- "onUpdate": "no action"
779
- }
780
- },
781
- "compositePrimaryKeys": {
782
- "collection_assignment_tenant_id_id_pk": {
783
- "name": "collection_assignment_tenant_id_id_pk",
784
- "columns": [
785
- "tenant_id",
786
- "id"
787
- ]
788
- }
789
- },
790
- "uniqueConstraints": {
791
- "ca_tenant_id_collection_id_document_id_unique": {
792
- "name": "ca_tenant_id_collection_id_document_id_unique",
793
- "nullsNotDistinct": false,
794
- "columns": [
795
- "tenant_id",
796
- "collection_id",
797
- "document_id"
798
- ]
799
- }
800
- },
801
- "policies": {},
802
- "checkConstraints": {},
803
- "isRLSEnabled": false
804
- },
805
- "document_management.property": {
806
- "name": "property",
807
- "schema": "document_management",
808
- "columns": {
809
- "id": {
810
- "name": "id",
811
- "type": "uuid",
812
- "primaryKey": false,
813
- "notNull": true,
814
- "default": "gen_random_uuid()"
815
- },
816
- "tenant_id": {
817
- "name": "tenant_id",
818
- "type": "uuid",
819
- "primaryKey": false,
820
- "notNull": true
821
- },
822
- "label": {
823
- "name": "label",
824
- "type": "text",
825
- "primaryKey": false,
826
- "notNull": true
827
- },
828
- "data_type": {
829
- "name": "data_type",
830
- "type": "property_data_type",
831
- "typeSchema": "document_management",
832
- "primaryKey": false,
833
- "notNull": true
834
- },
835
- "revision": {
836
- "name": "revision",
837
- "type": "integer",
838
- "primaryKey": false,
839
- "notNull": true
840
- },
841
- "revision_timestamp": {
842
- "name": "revision_timestamp",
843
- "type": "timestamp with time zone",
844
- "primaryKey": false,
845
- "notNull": true
846
- },
847
- "create_timestamp": {
848
- "name": "create_timestamp",
849
- "type": "timestamp with time zone",
850
- "primaryKey": false,
851
- "notNull": true
852
- },
853
- "delete_timestamp": {
854
- "name": "delete_timestamp",
855
- "type": "timestamp with time zone",
856
- "primaryKey": false,
857
- "notNull": false
858
- },
859
- "attributes": {
860
- "name": "attributes",
861
- "type": "jsonb",
862
- "primaryKey": false,
863
- "notNull": true,
864
- "default": "'{}'::jsonb"
865
- }
866
- },
867
- "indexes": {},
868
- "foreignKeys": {},
869
- "compositePrimaryKeys": {
870
- "property_tenant_id_id_pk": {
871
- "name": "property_tenant_id_id_pk",
872
- "columns": [
873
- "tenant_id",
874
- "id"
875
- ]
876
- }
877
- },
878
- "uniqueConstraints": {
879
- "property_label_unique": {
880
- "name": "property_label_unique",
881
- "nullsNotDistinct": false,
882
- "columns": [
883
- "label"
884
- ]
885
- },
886
- "property_tenant_id_label_unique": {
887
- "name": "property_tenant_id_label_unique",
888
- "nullsNotDistinct": false,
889
- "columns": [
890
- "tenant_id",
891
- "label"
892
- ]
893
- }
894
- },
895
- "policies": {},
896
- "checkConstraints": {},
897
- "isRLSEnabled": false
898
- },
899
- "document_management.property_value": {
900
- "name": "property_value",
901
- "schema": "document_management",
902
- "columns": {
903
- "id": {
904
- "name": "id",
905
- "type": "uuid",
906
- "primaryKey": false,
907
- "notNull": true,
908
- "default": "gen_random_uuid()"
909
- },
910
- "tenant_id": {
911
- "name": "tenant_id",
912
- "type": "uuid",
913
- "primaryKey": false,
914
- "notNull": true
915
- },
916
- "document_id": {
917
- "name": "document_id",
918
- "type": "uuid",
919
- "primaryKey": false,
920
- "notNull": true
921
- },
922
- "property_id": {
923
- "name": "property_id",
924
- "type": "uuid",
925
- "primaryKey": false,
926
- "notNull": true
927
- },
928
- "text": {
929
- "name": "text",
930
- "type": "text",
931
- "primaryKey": false,
932
- "notNull": false
933
- },
934
- "integer": {
935
- "name": "integer",
936
- "type": "integer",
937
- "primaryKey": false,
938
- "notNull": false
939
- },
940
- "decimal": {
941
- "name": "decimal",
942
- "type": "double precision",
943
- "primaryKey": false,
944
- "notNull": false
945
- },
946
- "boolean": {
947
- "name": "boolean",
948
- "type": "boolean",
949
- "primaryKey": false,
950
- "notNull": false
951
- },
952
- "date": {
953
- "name": "date",
954
- "type": "date",
955
- "primaryKey": false,
956
- "notNull": false
957
- },
958
- "revision": {
959
- "name": "revision",
960
- "type": "integer",
961
- "primaryKey": false,
962
- "notNull": true
963
- },
964
- "revision_timestamp": {
965
- "name": "revision_timestamp",
966
- "type": "timestamp with time zone",
967
- "primaryKey": false,
968
- "notNull": true
969
- },
970
- "create_timestamp": {
971
- "name": "create_timestamp",
972
- "type": "timestamp with time zone",
973
- "primaryKey": false,
974
- "notNull": true
975
- },
976
- "delete_timestamp": {
977
- "name": "delete_timestamp",
978
- "type": "timestamp with time zone",
979
- "primaryKey": false,
980
- "notNull": false
981
- },
982
- "attributes": {
983
- "name": "attributes",
984
- "type": "jsonb",
985
- "primaryKey": false,
986
- "notNull": true,
987
- "default": "'{}'::jsonb"
988
- }
989
- },
990
- "indexes": {},
991
- "foreignKeys": {
992
- "property_value_id_fkey": {
993
- "name": "property_value_id_fkey",
994
- "tableFrom": "property_value",
995
- "tableTo": "property",
996
- "schemaTo": "document_management",
997
- "columnsFrom": [
998
- "tenant_id",
999
- "property_id"
1000
- ],
1001
- "columnsTo": [
1002
- "tenant_id",
1003
- "id"
1004
- ],
1005
- "onDelete": "no action",
1006
- "onUpdate": "no action"
1007
- },
1008
- "property_value_tenantId_documentId_fkey": {
1009
- "name": "property_value_tenantId_documentId_fkey",
1010
- "tableFrom": "property_value",
1011
- "tableTo": "document",
1012
- "schemaTo": "document_management",
1013
- "columnsFrom": [
1014
- "tenant_id",
1015
- "document_id"
1016
- ],
1017
- "columnsTo": [
1018
- "tenant_id",
1019
- "id"
1020
- ],
1021
- "onDelete": "no action",
1022
- "onUpdate": "no action"
1023
- }
1024
- },
1025
- "compositePrimaryKeys": {
1026
- "property_value_tenant_id_id_pk": {
1027
- "name": "property_value_tenant_id_id_pk",
1028
- "columns": [
1029
- "tenant_id",
1030
- "id"
1031
- ]
1032
- }
1033
- },
1034
- "uniqueConstraints": {
1035
- "property_value_tenant_id_document_id_property_id_unique": {
1036
- "name": "property_value_tenant_id_document_id_property_id_unique",
1037
- "nullsNotDistinct": false,
1038
- "columns": [
1039
- "tenant_id",
1040
- "document_id",
1041
- "property_id"
1042
- ]
1043
- }
1044
- },
1045
- "policies": {},
1046
- "checkConstraints": {
1047
- "only_one_value": {
1048
- "name": "only_one_value",
1049
- "value": "num_nonnulls(\"document_management\".\"property_value\".\"text\", \"document_management\".\"property_value\".\"integer\", \"document_management\".\"property_value\".\"decimal\", \"document_management\".\"property_value\".\"boolean\", \"document_management\".\"property_value\".\"date\") = 1"
1050
- }
1051
- },
1052
- "isRLSEnabled": false
1053
- },
1054
- "document_management.request": {
1055
- "name": "request",
1056
- "schema": "document_management",
1057
- "columns": {
1058
- "id": {
1059
- "name": "id",
1060
- "type": "uuid",
1061
- "primaryKey": false,
1062
- "notNull": true,
1063
- "default": "gen_random_uuid()"
1064
- },
1065
- "tenant_id": {
1066
- "name": "tenant_id",
1067
- "type": "uuid",
1068
- "primaryKey": false,
1069
- "notNull": true
1070
- },
1071
- "type_id": {
1072
- "name": "type_id",
1073
- "type": "uuid",
1074
- "primaryKey": false,
1075
- "notNull": false
1076
- },
1077
- "document_id": {
1078
- "name": "document_id",
1079
- "type": "uuid",
1080
- "primaryKey": false,
1081
- "notNull": false
1082
- },
1083
- "comment": {
1084
- "name": "comment",
1085
- "type": "text",
1086
- "primaryKey": false,
1087
- "notNull": false
1088
- },
1089
- "state": {
1090
- "name": "state",
1091
- "type": "request_state",
1092
- "typeSchema": "document_management",
1093
- "primaryKey": false,
1094
- "notNull": true
1095
- },
1096
- "revision": {
1097
- "name": "revision",
1098
- "type": "integer",
1099
- "primaryKey": false,
1100
- "notNull": true
1101
- },
1102
- "revision_timestamp": {
1103
- "name": "revision_timestamp",
1104
- "type": "timestamp with time zone",
1105
- "primaryKey": false,
1106
- "notNull": true
1107
- },
1108
- "create_timestamp": {
1109
- "name": "create_timestamp",
1110
- "type": "timestamp with time zone",
1111
- "primaryKey": false,
1112
- "notNull": true
1113
- },
1114
- "delete_timestamp": {
1115
- "name": "delete_timestamp",
1116
- "type": "timestamp with time zone",
1117
- "primaryKey": false,
1118
- "notNull": false
1119
- },
1120
- "attributes": {
1121
- "name": "attributes",
1122
- "type": "jsonb",
1123
- "primaryKey": false,
1124
- "notNull": true,
1125
- "default": "'{}'::jsonb"
1126
- }
1127
- },
1128
- "indexes": {
1129
- "request_type_id_idx": {
1130
- "name": "request_type_id_idx",
1131
- "columns": [
1132
- {
1133
- "expression": "type_id",
1134
- "isExpression": false,
1135
- "asc": true,
1136
- "nulls": "last"
1137
- }
1138
- ],
1139
- "isUnique": false,
1140
- "concurrently": false,
1141
- "method": "btree",
1142
- "with": {}
1143
- },
1144
- "request_state_idx": {
1145
- "name": "request_state_idx",
1146
- "columns": [
1147
- {
1148
- "expression": "state",
1149
- "isExpression": false,
1150
- "asc": true,
1151
- "nulls": "last"
1152
- }
1153
- ],
1154
- "isUnique": false,
1155
- "concurrently": false,
1156
- "method": "btree",
1157
- "with": {}
1158
- }
1159
- },
1160
- "foreignKeys": {
1161
- "request_id_fkey": {
1162
- "name": "request_id_fkey",
1163
- "tableFrom": "request",
1164
- "tableTo": "document",
1165
- "schemaTo": "document_management",
1166
- "columnsFrom": [
1167
- "tenant_id",
1168
- "document_id"
1169
- ],
1170
- "columnsTo": [
1171
- "tenant_id",
1172
- "id"
1173
- ],
1174
- "onDelete": "no action",
1175
- "onUpdate": "no action"
1176
- },
1177
- "request_tenantId_documentId_fkey": {
1178
- "name": "request_tenantId_documentId_fkey",
1179
- "tableFrom": "request",
1180
- "tableTo": "document",
1181
- "schemaTo": "document_management",
1182
- "columnsFrom": [
1183
- "tenant_id",
1184
- "document_id"
1185
- ],
1186
- "columnsTo": [
1187
- "tenant_id",
1188
- "id"
1189
- ],
1190
- "onDelete": "no action",
1191
- "onUpdate": "no action"
1192
- }
1193
- },
1194
- "compositePrimaryKeys": {
1195
- "request_tenant_id_id_pk": {
1196
- "name": "request_tenant_id_id_pk",
1197
- "columns": [
1198
- "tenant_id",
1199
- "id"
1200
- ]
1201
- }
1202
- },
1203
- "uniqueConstraints": {
1204
- "request_document_id_unique": {
1205
- "name": "request_document_id_unique",
1206
- "nullsNotDistinct": false,
1207
- "columns": [
1208
- "document_id"
1209
- ]
1210
- },
1211
- "request_tenant_id_id_unique": {
1212
- "name": "request_tenant_id_id_unique",
1213
- "nullsNotDistinct": false,
1214
- "columns": [
1215
- "tenant_id",
1216
- "id"
1217
- ]
1218
- }
1219
- },
1220
- "policies": {},
1221
- "checkConstraints": {},
1222
- "isRLSEnabled": false
1223
- },
1224
- "document_management.request_collection_assignment": {
1225
- "name": "request_collection_assignment",
1226
- "schema": "document_management",
1227
- "columns": {
1228
- "id": {
1229
- "name": "id",
1230
- "type": "uuid",
1231
- "primaryKey": false,
1232
- "notNull": true,
1233
- "default": "gen_random_uuid()"
1234
- },
1235
- "tenant_id": {
1236
- "name": "tenant_id",
1237
- "type": "uuid",
1238
- "primaryKey": false,
1239
- "notNull": true
1240
- },
1241
- "request_id": {
1242
- "name": "request_id",
1243
- "type": "uuid",
1244
- "primaryKey": false,
1245
- "notNull": true
1246
- },
1247
- "collection_id": {
1248
- "name": "collection_id",
1249
- "type": "uuid",
1250
- "primaryKey": false,
1251
- "notNull": true
1252
- },
1253
- "revision": {
1254
- "name": "revision",
1255
- "type": "integer",
1256
- "primaryKey": false,
1257
- "notNull": true
1258
- },
1259
- "revision_timestamp": {
1260
- "name": "revision_timestamp",
1261
- "type": "timestamp with time zone",
1262
- "primaryKey": false,
1263
- "notNull": true
1264
- },
1265
- "create_timestamp": {
1266
- "name": "create_timestamp",
1267
- "type": "timestamp with time zone",
1268
- "primaryKey": false,
1269
- "notNull": true
1270
- },
1271
- "delete_timestamp": {
1272
- "name": "delete_timestamp",
1273
- "type": "timestamp with time zone",
1274
- "primaryKey": false,
1275
- "notNull": false
1276
- },
1277
- "attributes": {
1278
- "name": "attributes",
1279
- "type": "jsonb",
1280
- "primaryKey": false,
1281
- "notNull": true,
1282
- "default": "'{}'::jsonb"
1283
- }
1284
- },
1285
- "indexes": {
1286
- "request_collection_assignment_collection_id_idx": {
1287
- "name": "request_collection_assignment_collection_id_idx",
1288
- "columns": [
1289
- {
1290
- "expression": "collection_id",
1291
- "isExpression": false,
1292
- "asc": true,
1293
- "nulls": "last"
1294
- }
1295
- ],
1296
- "isUnique": false,
1297
- "concurrently": false,
1298
- "method": "btree",
1299
- "with": {}
1300
- }
1301
- },
1302
- "foreignKeys": {
1303
- "request_collection_assignment_id_fkey": {
1304
- "name": "request_collection_assignment_id_fkey",
1305
- "tableFrom": "request_collection_assignment",
1306
- "tableTo": "collection",
1307
- "schemaTo": "document_management",
1308
- "columnsFrom": [
1309
- "tenant_id",
1310
- "collection_id"
1311
- ],
1312
- "columnsTo": [
1313
- "tenant_id",
1314
- "id"
1315
- ],
1316
- "onDelete": "no action",
1317
- "onUpdate": "no action"
1318
- },
1319
- "request_collection_assignment_tenantId_collectionId_fkey": {
1320
- "name": "request_collection_assignment_tenantId_collectionId_fkey",
1321
- "tableFrom": "request_collection_assignment",
1322
- "tableTo": "collection",
1323
- "schemaTo": "document_management",
1324
- "columnsFrom": [
1325
- "tenant_id",
1326
- "collection_id"
1327
- ],
1328
- "columnsTo": [
1329
- "tenant_id",
1330
- "id"
1331
- ],
1332
- "onDelete": "no action",
1333
- "onUpdate": "no action"
1334
- },
1335
- "request_collection_assignment_tenantId_requestId_fkey": {
1336
- "name": "request_collection_assignment_tenantId_requestId_fkey",
1337
- "tableFrom": "request_collection_assignment",
1338
- "tableTo": "request",
1339
- "schemaTo": "document_management",
1340
- "columnsFrom": [
1341
- "tenant_id",
1342
- "request_id"
1343
- ],
1344
- "columnsTo": [
1345
- "tenant_id",
1346
- "id"
1347
- ],
1348
- "onDelete": "no action",
1349
- "onUpdate": "no action"
1350
- }
1351
- },
1352
- "compositePrimaryKeys": {
1353
- "request_collection_assignment_tenant_id_id_pk": {
1354
- "name": "request_collection_assignment_tenant_id_id_pk",
1355
- "columns": [
1356
- "tenant_id",
1357
- "id"
1358
- ]
1359
- }
1360
- },
1361
- "uniqueConstraints": {
1362
- "rca_tenant_id_request_id_collection_id_unique": {
1363
- "name": "rca_tenant_id_request_id_collection_id_unique",
1364
- "nullsNotDistinct": false,
1365
- "columns": [
1366
- "tenant_id",
1367
- "request_id",
1368
- "collection_id"
1369
- ]
1370
- }
1371
- },
1372
- "policies": {},
1373
- "checkConstraints": {},
1374
- "isRLSEnabled": false
1375
- },
1376
- "document_management.request_template": {
1377
- "name": "request_template",
1378
- "schema": "document_management",
1379
- "columns": {
1380
- "id": {
1381
- "name": "id",
1382
- "type": "uuid",
1383
- "primaryKey": false,
1384
- "notNull": true,
1385
- "default": "gen_random_uuid()"
1386
- },
1387
- "tenant_id": {
1388
- "name": "tenant_id",
1389
- "type": "uuid",
1390
- "primaryKey": false,
1391
- "notNull": true
1392
- },
1393
- "requests_template_id": {
1394
- "name": "requests_template_id",
1395
- "type": "uuid",
1396
- "primaryKey": false,
1397
- "notNull": true
1398
- },
1399
- "type_id": {
1400
- "name": "type_id",
1401
- "type": "uuid",
1402
- "primaryKey": false,
1403
- "notNull": true
1404
- },
1405
- "comment": {
1406
- "name": "comment",
1407
- "type": "text",
1408
- "primaryKey": false,
1409
- "notNull": false
1410
- },
1411
- "revision": {
1412
- "name": "revision",
1413
- "type": "integer",
1414
- "primaryKey": false,
1415
- "notNull": true
1416
- },
1417
- "revision_timestamp": {
1418
- "name": "revision_timestamp",
1419
- "type": "timestamp with time zone",
1420
- "primaryKey": false,
1421
- "notNull": true
1422
- },
1423
- "create_timestamp": {
1424
- "name": "create_timestamp",
1425
- "type": "timestamp with time zone",
1426
- "primaryKey": false,
1427
- "notNull": true
1428
- },
1429
- "delete_timestamp": {
1430
- "name": "delete_timestamp",
1431
- "type": "timestamp with time zone",
1432
- "primaryKey": false,
1433
- "notNull": false
1434
- },
1435
- "attributes": {
1436
- "name": "attributes",
1437
- "type": "jsonb",
1438
- "primaryKey": false,
1439
- "notNull": true,
1440
- "default": "'{}'::jsonb"
1441
- }
1442
- },
1443
- "indexes": {},
1444
- "foreignKeys": {
1445
- "request_template_id_fkey": {
1446
- "name": "request_template_id_fkey",
1447
- "tableFrom": "request_template",
1448
- "tableTo": "type",
1449
- "schemaTo": "document_management",
1450
- "columnsFrom": [
1451
- "tenant_id",
1452
- "type_id"
1453
- ],
1454
- "columnsTo": [
1455
- "tenant_id",
1456
- "id"
1457
- ],
1458
- "onDelete": "no action",
1459
- "onUpdate": "no action"
1460
- }
1461
- },
1462
- "compositePrimaryKeys": {
1463
- "request_template_tenant_id_id_pk": {
1464
- "name": "request_template_tenant_id_id_pk",
1465
- "columns": [
1466
- "tenant_id",
1467
- "id"
1468
- ]
1469
- }
1470
- },
1471
- "uniqueConstraints": {},
1472
- "policies": {},
1473
- "checkConstraints": {},
1474
- "isRLSEnabled": false
1475
- },
1476
- "document_management.requests_template": {
1477
- "name": "requests_template",
1478
- "schema": "document_management",
1479
- "columns": {
1480
- "id": {
1481
- "name": "id",
1482
- "type": "uuid",
1483
- "primaryKey": false,
1484
- "notNull": true,
1485
- "default": "gen_random_uuid()"
1486
- },
1487
- "tenant_id": {
1488
- "name": "tenant_id",
1489
- "type": "uuid",
1490
- "primaryKey": false,
1491
- "notNull": true
1492
- },
1493
- "label": {
1494
- "name": "label",
1495
- "type": "text",
1496
- "primaryKey": false,
1497
- "notNull": true
1498
- },
1499
- "description": {
1500
- "name": "description",
1501
- "type": "text",
1502
- "primaryKey": false,
1503
- "notNull": false
1504
- },
1505
- "revision": {
1506
- "name": "revision",
1507
- "type": "integer",
1508
- "primaryKey": false,
1509
- "notNull": true
1510
- },
1511
- "revision_timestamp": {
1512
- "name": "revision_timestamp",
1513
- "type": "timestamp with time zone",
1514
- "primaryKey": false,
1515
- "notNull": true
1516
- },
1517
- "create_timestamp": {
1518
- "name": "create_timestamp",
1519
- "type": "timestamp with time zone",
1520
- "primaryKey": false,
1521
- "notNull": true
1522
- },
1523
- "delete_timestamp": {
1524
- "name": "delete_timestamp",
1525
- "type": "timestamp with time zone",
1526
- "primaryKey": false,
1527
- "notNull": false
1528
- },
1529
- "attributes": {
1530
- "name": "attributes",
1531
- "type": "jsonb",
1532
- "primaryKey": false,
1533
- "notNull": true,
1534
- "default": "'{}'::jsonb"
1535
- }
1536
- },
1537
- "indexes": {},
1538
- "foreignKeys": {},
1539
- "compositePrimaryKeys": {
1540
- "requests_template_tenant_id_id_pk": {
1541
- "name": "requests_template_tenant_id_id_pk",
1542
- "columns": [
1543
- "tenant_id",
1544
- "id"
1545
- ]
1546
- }
1547
- },
1548
- "uniqueConstraints": {},
1549
- "policies": {},
1550
- "checkConstraints": {},
1551
- "isRLSEnabled": false
1552
- },
1553
- "document_management.tag": {
1554
- "name": "tag",
1555
- "schema": "document_management",
1556
- "columns": {
1557
- "id": {
1558
- "name": "id",
1559
- "type": "uuid",
1560
- "primaryKey": false,
1561
- "notNull": true,
1562
- "default": "gen_random_uuid()"
1563
- },
1564
- "tenant_id": {
1565
- "name": "tenant_id",
1566
- "type": "uuid",
1567
- "primaryKey": false,
1568
- "notNull": true
1569
- },
1570
- "label": {
1571
- "name": "label",
1572
- "type": "text",
1573
- "primaryKey": false,
1574
- "notNull": true
1575
- },
1576
- "revision": {
1577
- "name": "revision",
1578
- "type": "integer",
1579
- "primaryKey": false,
1580
- "notNull": true
1581
- },
1582
- "revision_timestamp": {
1583
- "name": "revision_timestamp",
1584
- "type": "timestamp with time zone",
1585
- "primaryKey": false,
1586
- "notNull": true
1587
- },
1588
- "create_timestamp": {
1589
- "name": "create_timestamp",
1590
- "type": "timestamp with time zone",
1591
- "primaryKey": false,
1592
- "notNull": true
1593
- },
1594
- "delete_timestamp": {
1595
- "name": "delete_timestamp",
1596
- "type": "timestamp with time zone",
1597
- "primaryKey": false,
1598
- "notNull": false
1599
- },
1600
- "attributes": {
1601
- "name": "attributes",
1602
- "type": "jsonb",
1603
- "primaryKey": false,
1604
- "notNull": true,
1605
- "default": "'{}'::jsonb"
1606
- }
1607
- },
1608
- "indexes": {},
1609
- "foreignKeys": {},
1610
- "compositePrimaryKeys": {
1611
- "tag_tenant_id_id_pk": {
1612
- "name": "tag_tenant_id_id_pk",
1613
- "columns": [
1614
- "tenant_id",
1615
- "id"
1616
- ]
1617
- }
1618
- },
1619
- "uniqueConstraints": {
1620
- "tag_tenant_id_label_unique": {
1621
- "name": "tag_tenant_id_label_unique",
1622
- "nullsNotDistinct": false,
1623
- "columns": [
1624
- "tenant_id",
1625
- "label"
1626
- ]
1627
- }
1628
- },
1629
- "policies": {},
1630
- "checkConstraints": {},
1631
- "isRLSEnabled": false
1632
- },
1633
- "document_management.tag_assignment": {
1634
- "name": "tag_assignment",
1635
- "schema": "document_management",
1636
- "columns": {
1637
- "id": {
1638
- "name": "id",
1639
- "type": "uuid",
1640
- "primaryKey": false,
1641
- "notNull": true,
1642
- "default": "gen_random_uuid()"
1643
- },
1644
- "tenant_id": {
1645
- "name": "tenant_id",
1646
- "type": "uuid",
1647
- "primaryKey": false,
1648
- "notNull": true
1649
- },
1650
- "document_id": {
1651
- "name": "document_id",
1652
- "type": "uuid",
1653
- "primaryKey": false,
1654
- "notNull": true
1655
- },
1656
- "tag_id": {
1657
- "name": "tag_id",
1658
- "type": "uuid",
1659
- "primaryKey": false,
1660
- "notNull": true
1661
- },
1662
- "revision": {
1663
- "name": "revision",
1664
- "type": "integer",
1665
- "primaryKey": false,
1666
- "notNull": true
1667
- },
1668
- "revision_timestamp": {
1669
- "name": "revision_timestamp",
1670
- "type": "timestamp with time zone",
1671
- "primaryKey": false,
1672
- "notNull": true
1673
- },
1674
- "create_timestamp": {
1675
- "name": "create_timestamp",
1676
- "type": "timestamp with time zone",
1677
- "primaryKey": false,
1678
- "notNull": true
1679
- },
1680
- "delete_timestamp": {
1681
- "name": "delete_timestamp",
1682
- "type": "timestamp with time zone",
1683
- "primaryKey": false,
1684
- "notNull": false
1685
- },
1686
- "attributes": {
1687
- "name": "attributes",
1688
- "type": "jsonb",
1689
- "primaryKey": false,
1690
- "notNull": true,
1691
- "default": "'{}'::jsonb"
1692
- }
1693
- },
1694
- "indexes": {},
1695
- "foreignKeys": {
1696
- "tag_assignment_id_fkey": {
1697
- "name": "tag_assignment_id_fkey",
1698
- "tableFrom": "tag_assignment",
1699
- "tableTo": "tag",
1700
- "schemaTo": "document_management",
1701
- "columnsFrom": [
1702
- "tenant_id",
1703
- "tag_id"
1704
- ],
1705
- "columnsTo": [
1706
- "tenant_id",
1707
- "id"
1708
- ],
1709
- "onDelete": "no action",
1710
- "onUpdate": "no action"
1711
- },
1712
- "tag_assignment_tenantId_documentId_fkey": {
1713
- "name": "tag_assignment_tenantId_documentId_fkey",
1714
- "tableFrom": "tag_assignment",
1715
- "tableTo": "document",
1716
- "schemaTo": "document_management",
1717
- "columnsFrom": [
1718
- "tenant_id",
1719
- "document_id"
1720
- ],
1721
- "columnsTo": [
1722
- "tenant_id",
1723
- "id"
1724
- ],
1725
- "onDelete": "no action",
1726
- "onUpdate": "no action"
1727
- }
1728
- },
1729
- "compositePrimaryKeys": {
1730
- "tag_assignment_tenant_id_id_pk": {
1731
- "name": "tag_assignment_tenant_id_id_pk",
1732
- "columns": [
1733
- "tenant_id",
1734
- "id"
1735
- ]
1736
- }
1737
- },
1738
- "uniqueConstraints": {
1739
- "tag_assignment_tenant_id_document_id_tag_id_unique": {
1740
- "name": "tag_assignment_tenant_id_document_id_tag_id_unique",
1741
- "nullsNotDistinct": false,
1742
- "columns": [
1743
- "tenant_id",
1744
- "document_id",
1745
- "tag_id"
1746
- ]
1747
- }
1748
- },
1749
- "policies": {},
1750
- "checkConstraints": {},
1751
- "isRLSEnabled": false
1752
- },
1753
- "document_management.type": {
1754
- "name": "type",
1755
- "schema": "document_management",
1756
- "columns": {
1757
- "id": {
1758
- "name": "id",
1759
- "type": "uuid",
1760
- "primaryKey": false,
1761
- "notNull": true,
1762
- "default": "gen_random_uuid()"
1763
- },
1764
- "tenant_id": {
1765
- "name": "tenant_id",
1766
- "type": "uuid",
1767
- "primaryKey": false,
1768
- "notNull": true
1769
- },
1770
- "category_id": {
1771
- "name": "category_id",
1772
- "type": "uuid",
1773
- "primaryKey": false,
1774
- "notNull": true
1775
- },
1776
- "label": {
1777
- "name": "label",
1778
- "type": "text",
1779
- "primaryKey": false,
1780
- "notNull": true
1781
- },
1782
- "revision": {
1783
- "name": "revision",
1784
- "type": "integer",
1785
- "primaryKey": false,
1786
- "notNull": true
1787
- },
1788
- "revision_timestamp": {
1789
- "name": "revision_timestamp",
1790
- "type": "timestamp with time zone",
1791
- "primaryKey": false,
1792
- "notNull": true
1793
- },
1794
- "create_timestamp": {
1795
- "name": "create_timestamp",
1796
- "type": "timestamp with time zone",
1797
- "primaryKey": false,
1798
- "notNull": true
1799
- },
1800
- "delete_timestamp": {
1801
- "name": "delete_timestamp",
1802
- "type": "timestamp with time zone",
1803
- "primaryKey": false,
1804
- "notNull": false
1805
- },
1806
- "attributes": {
1807
- "name": "attributes",
1808
- "type": "jsonb",
1809
- "primaryKey": false,
1810
- "notNull": true,
1811
- "default": "'{}'::jsonb"
1812
- }
1813
- },
1814
- "indexes": {},
1815
- "foreignKeys": {
1816
- "type_id_fkey": {
1817
- "name": "type_id_fkey",
1818
- "tableFrom": "type",
1819
- "tableTo": "category",
1820
- "schemaTo": "document_management",
1821
- "columnsFrom": [
1822
- "tenant_id",
1823
- "category_id"
1824
- ],
1825
- "columnsTo": [
1826
- "tenant_id",
1827
- "id"
1828
- ],
1829
- "onDelete": "no action",
1830
- "onUpdate": "no action"
1831
- }
1832
- },
1833
- "compositePrimaryKeys": {
1834
- "type_tenant_id_id_pk": {
1835
- "name": "type_tenant_id_id_pk",
1836
- "columns": [
1837
- "tenant_id",
1838
- "id"
1839
- ]
1840
- }
1841
- },
1842
- "uniqueConstraints": {
1843
- "type_tenant_id_category_id_label_unique": {
1844
- "name": "type_tenant_id_category_id_label_unique",
1845
- "nullsNotDistinct": false,
1846
- "columns": [
1847
- "tenant_id",
1848
- "category_id",
1849
- "label"
1850
- ]
1851
- }
1852
- },
1853
- "policies": {},
1854
- "checkConstraints": {},
1855
- "isRLSEnabled": false
1856
- },
1857
- "document_management.type_property": {
1858
- "name": "type_property",
1859
- "schema": "document_management",
1860
- "columns": {
1861
- "id": {
1862
- "name": "id",
1863
- "type": "uuid",
1864
- "primaryKey": false,
1865
- "notNull": true,
1866
- "default": "gen_random_uuid()"
1867
- },
1868
- "tenant_id": {
1869
- "name": "tenant_id",
1870
- "type": "uuid",
1871
- "primaryKey": false,
1872
- "notNull": true
1873
- },
1874
- "type_id": {
1875
- "name": "type_id",
1876
- "type": "uuid",
1877
- "primaryKey": false,
1878
- "notNull": true
1879
- },
1880
- "property_id": {
1881
- "name": "property_id",
1882
- "type": "uuid",
1883
- "primaryKey": false,
1884
- "notNull": true
1885
- },
1886
- "revision": {
1887
- "name": "revision",
1888
- "type": "integer",
1889
- "primaryKey": false,
1890
- "notNull": true
1891
- },
1892
- "revision_timestamp": {
1893
- "name": "revision_timestamp",
1894
- "type": "timestamp with time zone",
1895
- "primaryKey": false,
1896
- "notNull": true
1897
- },
1898
- "create_timestamp": {
1899
- "name": "create_timestamp",
1900
- "type": "timestamp with time zone",
1901
- "primaryKey": false,
1902
- "notNull": true
1903
- },
1904
- "delete_timestamp": {
1905
- "name": "delete_timestamp",
1906
- "type": "timestamp with time zone",
1907
- "primaryKey": false,
1908
- "notNull": false
1909
- },
1910
- "attributes": {
1911
- "name": "attributes",
1912
- "type": "jsonb",
1913
- "primaryKey": false,
1914
- "notNull": true,
1915
- "default": "'{}'::jsonb"
1916
- }
1917
- },
1918
- "indexes": {},
1919
- "foreignKeys": {
1920
- "type_property_id_fkey": {
1921
- "name": "type_property_id_fkey",
1922
- "tableFrom": "type_property",
1923
- "tableTo": "property",
1924
- "schemaTo": "document_management",
1925
- "columnsFrom": [
1926
- "tenant_id",
1927
- "property_id"
1928
- ],
1929
- "columnsTo": [
1930
- "tenant_id",
1931
- "id"
1932
- ],
1933
- "onDelete": "no action",
1934
- "onUpdate": "no action"
1935
- }
1936
- },
1937
- "compositePrimaryKeys": {
1938
- "type_property_tenant_id_id_pk": {
1939
- "name": "type_property_tenant_id_id_pk",
1940
- "columns": [
1941
- "tenant_id",
1942
- "id"
1943
- ]
1944
- }
1945
- },
1946
- "uniqueConstraints": {
1947
- "type_property_tenant_id_type_id_property_id_unique": {
1948
- "name": "type_property_tenant_id_type_id_property_id_unique",
1949
- "nullsNotDistinct": false,
1950
- "columns": [
1951
- "tenant_id",
1952
- "type_id",
1953
- "property_id"
1954
- ]
1955
- }
1956
- },
1957
- "policies": {},
1958
- "checkConstraints": {},
1959
- "isRLSEnabled": false
1960
- },
1961
- "document_management.document_type_validation": {
1962
- "name": "document_type_validation",
1963
- "schema": "document_management",
1964
- "columns": {
1965
- "id": {
1966
- "name": "id",
1967
- "type": "uuid",
1968
- "primaryKey": false,
1969
- "notNull": true,
1970
- "default": "gen_random_uuid()"
1971
- },
1972
- "tenant_id": {
1973
- "name": "tenant_id",
1974
- "type": "uuid",
1975
- "primaryKey": false,
1976
- "notNull": true
1977
- },
1978
- "type_id": {
1979
- "name": "type_id",
1980
- "type": "uuid",
1981
- "primaryKey": false,
1982
- "notNull": true
1983
- },
1984
- "validation_id": {
1985
- "name": "validation_id",
1986
- "type": "uuid",
1987
- "primaryKey": false,
1988
- "notNull": true
1989
- },
1990
- "revision": {
1991
- "name": "revision",
1992
- "type": "integer",
1993
- "primaryKey": false,
1994
- "notNull": true
1995
- },
1996
- "revision_timestamp": {
1997
- "name": "revision_timestamp",
1998
- "type": "timestamp with time zone",
1999
- "primaryKey": false,
2000
- "notNull": true
2001
- },
2002
- "create_timestamp": {
2003
- "name": "create_timestamp",
2004
- "type": "timestamp with time zone",
2005
- "primaryKey": false,
2006
- "notNull": true
2007
- },
2008
- "delete_timestamp": {
2009
- "name": "delete_timestamp",
2010
- "type": "timestamp with time zone",
2011
- "primaryKey": false,
2012
- "notNull": false
2013
- },
2014
- "attributes": {
2015
- "name": "attributes",
2016
- "type": "jsonb",
2017
- "primaryKey": false,
2018
- "notNull": true,
2019
- "default": "'{}'::jsonb"
2020
- }
2021
- },
2022
- "indexes": {
2023
- "document_type_validation_type_id_idx": {
2024
- "name": "document_type_validation_type_id_idx",
2025
- "columns": [
2026
- {
2027
- "expression": "type_id",
2028
- "isExpression": false,
2029
- "asc": true,
2030
- "nulls": "last"
2031
- }
2032
- ],
2033
- "isUnique": false,
2034
- "concurrently": false,
2035
- "method": "btree",
2036
- "with": {}
2037
- }
2038
- },
2039
- "foreignKeys": {
2040
- "document_type_validation_id_fkey": {
2041
- "name": "document_type_validation_id_fkey",
2042
- "tableFrom": "document_type_validation",
2043
- "tableTo": "validation_definition",
2044
- "schemaTo": "document_management",
2045
- "columnsFrom": [
2046
- "tenant_id",
2047
- "validation_id"
2048
- ],
2049
- "columnsTo": [
2050
- "tenant_id",
2051
- "id"
2052
- ],
2053
- "onDelete": "no action",
2054
- "onUpdate": "no action"
2055
- }
2056
- },
2057
- "compositePrimaryKeys": {
2058
- "document_type_validation_tenant_id_id_pk": {
2059
- "name": "document_type_validation_tenant_id_id_pk",
2060
- "columns": [
2061
- "tenant_id",
2062
- "id"
2063
- ]
2064
- }
2065
- },
2066
- "uniqueConstraints": {
2067
- "document_type_validation_tenant_id_type_id_validation_id_unique": {
2068
- "name": "document_type_validation_tenant_id_type_id_validation_id_unique",
2069
- "nullsNotDistinct": false,
2070
- "columns": [
2071
- "tenant_id",
2072
- "type_id",
2073
- "validation_id"
2074
- ]
2075
- }
2076
- },
2077
- "policies": {},
2078
- "checkConstraints": {},
2079
- "isRLSEnabled": false
2080
- },
2081
- "document_management.validation_definition": {
2082
- "name": "validation_definition",
2083
- "schema": "document_management",
2084
- "columns": {
2085
- "id": {
2086
- "name": "id",
2087
- "type": "uuid",
2088
- "primaryKey": false,
2089
- "notNull": true,
2090
- "default": "gen_random_uuid()"
2091
- },
2092
- "tenant_id": {
2093
- "name": "tenant_id",
2094
- "type": "uuid",
2095
- "primaryKey": false,
2096
- "notNull": true
2097
- },
2098
- "identifier": {
2099
- "name": "identifier",
2100
- "type": "text",
2101
- "primaryKey": false,
2102
- "notNull": true
2103
- },
2104
- "label": {
2105
- "name": "label",
2106
- "type": "text",
2107
- "primaryKey": false,
2108
- "notNull": true
2109
- },
2110
- "description": {
2111
- "name": "description",
2112
- "type": "text",
2113
- "primaryKey": false,
2114
- "notNull": false
2115
- },
2116
- "configuration": {
2117
- "name": "configuration",
2118
- "type": "jsonb",
2119
- "primaryKey": false,
2120
- "notNull": true
2121
- },
2122
- "revision": {
2123
- "name": "revision",
2124
- "type": "integer",
2125
- "primaryKey": false,
2126
- "notNull": true
2127
- },
2128
- "revision_timestamp": {
2129
- "name": "revision_timestamp",
2130
- "type": "timestamp with time zone",
2131
- "primaryKey": false,
2132
- "notNull": true
2133
- },
2134
- "create_timestamp": {
2135
- "name": "create_timestamp",
2136
- "type": "timestamp with time zone",
2137
- "primaryKey": false,
2138
- "notNull": true
2139
- },
2140
- "delete_timestamp": {
2141
- "name": "delete_timestamp",
2142
- "type": "timestamp with time zone",
2143
- "primaryKey": false,
2144
- "notNull": false
2145
- },
2146
- "attributes": {
2147
- "name": "attributes",
2148
- "type": "jsonb",
2149
- "primaryKey": false,
2150
- "notNull": true,
2151
- "default": "'{}'::jsonb"
2152
- }
2153
- },
2154
- "indexes": {},
2155
- "foreignKeys": {},
2156
- "compositePrimaryKeys": {
2157
- "validation_definition_tenant_id_id_pk": {
2158
- "name": "validation_definition_tenant_id_id_pk",
2159
- "columns": [
2160
- "tenant_id",
2161
- "id"
2162
- ]
2163
- }
2164
- },
2165
- "uniqueConstraints": {},
2166
- "policies": {},
2167
- "checkConstraints": {},
2168
- "isRLSEnabled": false
2169
- },
2170
- "document_management.validation_execution": {
2171
- "name": "validation_execution",
2172
- "schema": "document_management",
2173
- "columns": {
2174
- "id": {
2175
- "name": "id",
2176
- "type": "uuid",
2177
- "primaryKey": false,
2178
- "notNull": true,
2179
- "default": "gen_random_uuid()"
2180
- },
2181
- "tenant_id": {
2182
- "name": "tenant_id",
2183
- "type": "uuid",
2184
- "primaryKey": false,
2185
- "notNull": true
2186
- },
2187
- "workflow_id": {
2188
- "name": "workflow_id",
2189
- "type": "uuid",
2190
- "primaryKey": false,
2191
- "notNull": true
2192
- },
2193
- "definition_id": {
2194
- "name": "definition_id",
2195
- "type": "uuid",
2196
- "primaryKey": false,
2197
- "notNull": true
2198
- },
2199
- "state": {
2200
- "name": "state",
2201
- "type": "validation_execution_state",
2202
- "typeSchema": "document_management",
2203
- "primaryKey": false,
2204
- "notNull": true
2205
- },
2206
- "result_status": {
2207
- "name": "result_status",
2208
- "type": "validation_result_status",
2209
- "typeSchema": "document_management",
2210
- "primaryKey": false,
2211
- "notNull": false
2212
- },
2213
- "result_message": {
2214
- "name": "result_message",
2215
- "type": "text",
2216
- "primaryKey": false,
2217
- "notNull": false
2218
- },
2219
- "started_at": {
2220
- "name": "started_at",
2221
- "type": "timestamp with time zone",
2222
- "primaryKey": false,
2223
- "notNull": false
2224
- },
2225
- "completed_at": {
2226
- "name": "completed_at",
2227
- "type": "timestamp with time zone",
2228
- "primaryKey": false,
2229
- "notNull": false
2230
- },
2231
- "revision": {
2232
- "name": "revision",
2233
- "type": "integer",
2234
- "primaryKey": false,
2235
- "notNull": true
2236
- },
2237
- "revision_timestamp": {
2238
- "name": "revision_timestamp",
2239
- "type": "timestamp with time zone",
2240
- "primaryKey": false,
2241
- "notNull": true
2242
- },
2243
- "create_timestamp": {
2244
- "name": "create_timestamp",
2245
- "type": "timestamp with time zone",
2246
- "primaryKey": false,
2247
- "notNull": true
2248
- },
2249
- "delete_timestamp": {
2250
- "name": "delete_timestamp",
2251
- "type": "timestamp with time zone",
2252
- "primaryKey": false,
2253
- "notNull": false
2254
- },
2255
- "attributes": {
2256
- "name": "attributes",
2257
- "type": "jsonb",
2258
- "primaryKey": false,
2259
- "notNull": true,
2260
- "default": "'{}'::jsonb"
2261
- }
2262
- },
2263
- "indexes": {},
2264
- "foreignKeys": {
2265
- "validation_execution_id_fkey": {
2266
- "name": "validation_execution_id_fkey",
2267
- "tableFrom": "validation_execution",
2268
- "tableTo": "validation_definition",
2269
- "schemaTo": "document_management",
2270
- "columnsFrom": [
2271
- "tenant_id",
2272
- "definition_id"
2273
- ],
2274
- "columnsTo": [
2275
- "tenant_id",
2276
- "id"
2277
- ],
2278
- "onDelete": "no action",
2279
- "onUpdate": "no action"
2280
- },
2281
- "validation_execution_tenantId_workflowId_fkey": {
2282
- "name": "validation_execution_tenantId_workflowId_fkey",
2283
- "tableFrom": "validation_execution",
2284
- "tableTo": "workflow",
2285
- "schemaTo": "document_management",
2286
- "columnsFrom": [
2287
- "tenant_id",
2288
- "workflow_id"
2289
- ],
2290
- "columnsTo": [
2291
- "tenant_id",
2292
- "id"
2293
- ],
2294
- "onDelete": "no action",
2295
- "onUpdate": "no action"
2296
- }
2297
- },
2298
- "compositePrimaryKeys": {
2299
- "validation_execution_tenant_id_id_pk": {
2300
- "name": "validation_execution_tenant_id_id_pk",
2301
- "columns": [
2302
- "tenant_id",
2303
- "id"
2304
- ]
2305
- }
2306
- },
2307
- "uniqueConstraints": {
2308
- "validation_execution_tenant_id_workflow_id_definition_id_unique": {
2309
- "name": "validation_execution_tenant_id_workflow_id_definition_id_unique",
2310
- "nullsNotDistinct": false,
2311
- "columns": [
2312
- "tenant_id",
2313
- "workflow_id",
2314
- "definition_id"
2315
- ]
2316
- },
2317
- "validation_execution_tenant_id_id_unique": {
2318
- "name": "validation_execution_tenant_id_id_unique",
2319
- "nullsNotDistinct": false,
2320
- "columns": [
2321
- "tenant_id",
2322
- "id"
2323
- ]
2324
- }
2325
- },
2326
- "policies": {},
2327
- "checkConstraints": {},
2328
- "isRLSEnabled": false
2329
- },
2330
- "document_management.validation_execution_related_document": {
2331
- "name": "validation_execution_related_document",
2332
- "schema": "document_management",
2333
- "columns": {
2334
- "id": {
2335
- "name": "id",
2336
- "type": "uuid",
2337
- "primaryKey": false,
2338
- "notNull": true,
2339
- "default": "gen_random_uuid()"
2340
- },
2341
- "tenant_id": {
2342
- "name": "tenant_id",
2343
- "type": "uuid",
2344
- "primaryKey": false,
2345
- "notNull": true
2346
- },
2347
- "execution_id": {
2348
- "name": "execution_id",
2349
- "type": "uuid",
2350
- "primaryKey": false,
2351
- "notNull": true
2352
- },
2353
- "document_id": {
2354
- "name": "document_id",
2355
- "type": "uuid",
2356
- "primaryKey": false,
2357
- "notNull": true
2358
- },
2359
- "revision": {
2360
- "name": "revision",
2361
- "type": "integer",
2362
- "primaryKey": false,
2363
- "notNull": true
2364
- },
2365
- "revision_timestamp": {
2366
- "name": "revision_timestamp",
2367
- "type": "timestamp with time zone",
2368
- "primaryKey": false,
2369
- "notNull": true
2370
- },
2371
- "create_timestamp": {
2372
- "name": "create_timestamp",
2373
- "type": "timestamp with time zone",
2374
- "primaryKey": false,
2375
- "notNull": true
2376
- },
2377
- "delete_timestamp": {
2378
- "name": "delete_timestamp",
2379
- "type": "timestamp with time zone",
2380
- "primaryKey": false,
2381
- "notNull": false
2382
- },
2383
- "attributes": {
2384
- "name": "attributes",
2385
- "type": "jsonb",
2386
- "primaryKey": false,
2387
- "notNull": true,
2388
- "default": "'{}'::jsonb"
2389
- }
2390
- },
2391
- "indexes": {},
2392
- "foreignKeys": {
2393
- "validation_execution_related_document_id_fkey": {
2394
- "name": "validation_execution_related_document_id_fkey",
2395
- "tableFrom": "validation_execution_related_document",
2396
- "tableTo": "document",
2397
- "schemaTo": "document_management",
2398
- "columnsFrom": [
2399
- "tenant_id",
2400
- "document_id"
2401
- ],
2402
- "columnsTo": [
2403
- "tenant_id",
2404
- "id"
2405
- ],
2406
- "onDelete": "no action",
2407
- "onUpdate": "no action"
2408
- },
2409
- "validation_execution_related_document_tenantId_documentId_fkey": {
2410
- "name": "validation_execution_related_document_tenantId_documentId_fkey",
2411
- "tableFrom": "validation_execution_related_document",
2412
- "tableTo": "document",
2413
- "schemaTo": "document_management",
2414
- "columnsFrom": [
2415
- "tenant_id",
2416
- "document_id"
2417
- ],
2418
- "columnsTo": [
2419
- "tenant_id",
2420
- "id"
2421
- ],
2422
- "onDelete": "no action",
2423
- "onUpdate": "no action"
2424
- },
2425
- "validation_execution_related_document_tenantId_executionId_fkey": {
2426
- "name": "validation_execution_related_document_tenantId_executionId_fkey",
2427
- "tableFrom": "validation_execution_related_document",
2428
- "tableTo": "validation_execution",
2429
- "schemaTo": "document_management",
2430
- "columnsFrom": [
2431
- "tenant_id",
2432
- "execution_id"
2433
- ],
2434
- "columnsTo": [
2435
- "tenant_id",
2436
- "id"
2437
- ],
2438
- "onDelete": "no action",
2439
- "onUpdate": "no action"
2440
- }
2441
- },
2442
- "compositePrimaryKeys": {
2443
- "validation_execution_related_document_tenant_id_id_pk": {
2444
- "name": "validation_execution_related_document_tenant_id_id_pk",
2445
- "columns": [
2446
- "tenant_id",
2447
- "id"
2448
- ]
2449
- }
2450
- },
2451
- "uniqueConstraints": {
2452
- "verd_tenant_id_execution_id_document_id_unique": {
2453
- "name": "verd_tenant_id_execution_id_document_id_unique",
2454
- "nullsNotDistinct": false,
2455
- "columns": [
2456
- "tenant_id",
2457
- "execution_id",
2458
- "document_id"
2459
- ]
2460
- }
2461
- },
2462
- "policies": {},
2463
- "checkConstraints": {},
2464
- "isRLSEnabled": false
2465
- },
2466
- "document_management.workflow": {
2467
- "name": "workflow",
2468
- "schema": "document_management",
2469
- "columns": {
2470
- "id": {
2471
- "name": "id",
2472
- "type": "uuid",
2473
- "primaryKey": false,
2474
- "notNull": true,
2475
- "default": "gen_random_uuid()"
2476
- },
2477
- "tenant_id": {
2478
- "name": "tenant_id",
2479
- "type": "uuid",
2480
- "primaryKey": false,
2481
- "notNull": true
2482
- },
2483
- "document_id": {
2484
- "name": "document_id",
2485
- "type": "uuid",
2486
- "primaryKey": false,
2487
- "notNull": true
2488
- },
2489
- "step": {
2490
- "name": "step",
2491
- "type": "workflow_step",
2492
- "typeSchema": "document_management",
2493
- "primaryKey": false,
2494
- "notNull": true
2495
- },
2496
- "state": {
2497
- "name": "state",
2498
- "type": "workflow_state",
2499
- "typeSchema": "document_management",
2500
- "primaryKey": false,
2501
- "notNull": true
2502
- },
2503
- "fail_reason": {
2504
- "name": "fail_reason",
2505
- "type": "workflow_fail_reason",
2506
- "typeSchema": "document_management",
2507
- "primaryKey": false,
2508
- "notNull": false
2509
- },
2510
- "complete_timestamp": {
2511
- "name": "complete_timestamp",
2512
- "type": "timestamp with time zone",
2513
- "primaryKey": false,
2514
- "notNull": false
2515
- },
2516
- "complete_user_id": {
2517
- "name": "complete_user_id",
2518
- "type": "uuid",
2519
- "primaryKey": false,
2520
- "notNull": false
2521
- },
2522
- "revision": {
2523
- "name": "revision",
2524
- "type": "integer",
2525
- "primaryKey": false,
2526
- "notNull": true
2527
- },
2528
- "revision_timestamp": {
2529
- "name": "revision_timestamp",
2530
- "type": "timestamp with time zone",
2531
- "primaryKey": false,
2532
- "notNull": true
2533
- },
2534
- "create_timestamp": {
2535
- "name": "create_timestamp",
2536
- "type": "timestamp with time zone",
2537
- "primaryKey": false,
2538
- "notNull": true
2539
- },
2540
- "delete_timestamp": {
2541
- "name": "delete_timestamp",
2542
- "type": "timestamp with time zone",
2543
- "primaryKey": false,
2544
- "notNull": false
2545
- },
2546
- "attributes": {
2547
- "name": "attributes",
2548
- "type": "jsonb",
2549
- "primaryKey": false,
2550
- "notNull": true,
2551
- "default": "'{}'::jsonb"
2552
- }
2553
- },
2554
- "indexes": {
2555
- "workflow_document_id_idx": {
2556
- "name": "workflow_document_id_idx",
2557
- "columns": [
2558
- {
2559
- "expression": "document_id",
2560
- "isExpression": false,
2561
- "asc": true,
2562
- "nulls": "last"
2563
- }
2564
- ],
2565
- "isUnique": true,
2566
- "where": "\"document_management\".\"workflow\".\"state\" <> 'completed'",
2567
- "concurrently": false,
2568
- "method": "btree",
2569
- "with": {}
2570
- }
2571
- },
2572
- "foreignKeys": {
2573
- "workflow_id_fkey": {
2574
- "name": "workflow_id_fkey",
2575
- "tableFrom": "workflow",
2576
- "tableTo": "document",
2577
- "schemaTo": "document_management",
2578
- "columnsFrom": [
2579
- "tenant_id",
2580
- "document_id"
2581
- ],
2582
- "columnsTo": [
2583
- "tenant_id",
2584
- "id"
2585
- ],
2586
- "onDelete": "no action",
2587
- "onUpdate": "no action"
2588
- },
2589
- "workflow_tenantId_documentId_fkey": {
2590
- "name": "workflow_tenantId_documentId_fkey",
2591
- "tableFrom": "workflow",
2592
- "tableTo": "document",
2593
- "schemaTo": "document_management",
2594
- "columnsFrom": [
2595
- "tenant_id",
2596
- "document_id"
2597
- ],
2598
- "columnsTo": [
2599
- "tenant_id",
2600
- "id"
2601
- ],
2602
- "onDelete": "no action",
2603
- "onUpdate": "no action"
2604
- }
2605
- },
2606
- "compositePrimaryKeys": {
2607
- "workflow_tenant_id_id_pk": {
2608
- "name": "workflow_tenant_id_id_pk",
2609
- "columns": [
2610
- "tenant_id",
2611
- "id"
2612
- ]
2613
- }
2614
- },
2615
- "uniqueConstraints": {
2616
- "workflow_tenant_id_id_unique": {
2617
- "name": "workflow_tenant_id_id_unique",
2618
- "nullsNotDistinct": false,
2619
- "columns": [
2620
- "tenant_id",
2621
- "id"
2622
- ]
2623
- }
2624
- },
2625
- "policies": {},
2626
- "checkConstraints": {},
2627
- "isRLSEnabled": false
2628
- }
2629
- },
2630
- "enums": {
2631
- "document_management.document_approval": {
2632
- "name": "document_approval",
2633
- "schema": "document_management",
2634
- "values": [
2635
- "pending",
2636
- "approved",
2637
- "rejected"
2638
- ]
2639
- },
2640
- "document_management.assignment_target": {
2641
- "name": "assignment_target",
2642
- "schema": "document_management",
2643
- "values": [
2644
- "collection",
2645
- "request"
2646
- ]
2647
- },
2648
- "document_management.property_data_type": {
2649
- "name": "property_data_type",
2650
- "schema": "document_management",
2651
- "values": [
2652
- "text",
2653
- "integer",
2654
- "decimal",
2655
- "boolean",
2656
- "date"
2657
- ]
2658
- },
2659
- "document_management.request_state": {
2660
- "name": "request_state",
2661
- "schema": "document_management",
2662
- "values": [
2663
- "open",
2664
- "fulfilled",
2665
- "closed"
2666
- ]
2667
- },
2668
- "document_management.validation_execution_state": {
2669
- "name": "validation_execution_state",
2670
- "schema": "document_management",
2671
- "values": [
2672
- "pending",
2673
- "running",
2674
- "completed",
2675
- "error"
2676
- ]
2677
- },
2678
- "document_management.validation_result_status": {
2679
- "name": "validation_result_status",
2680
- "schema": "document_management",
2681
- "values": [
2682
- "passed",
2683
- "failed",
2684
- "warning"
2685
- ]
2686
- },
2687
- "document_management.workflow_fail_reason": {
2688
- "name": "workflow_fail_reason",
2689
- "schema": "document_management",
2690
- "values": [
2691
- "no-suitable-collection",
2692
- "no-suitable-request"
2693
- ]
2694
- },
2695
- "document_management.workflow_state": {
2696
- "name": "workflow_state",
2697
- "schema": "document_management",
2698
- "values": [
2699
- "pending",
2700
- "running",
2701
- "review",
2702
- "completed",
2703
- "error",
2704
- "failed"
2705
- ]
2706
- },
2707
- "document_management.workflow_step": {
2708
- "name": "workflow_step",
2709
- "schema": "document_management",
2710
- "values": [
2711
- "classification",
2712
- "extraction",
2713
- "assignment",
2714
- "validation"
2715
- ]
2716
- }
2717
- },
2718
- "schemas": {},
2719
- "sequences": {},
2720
- "roles": {},
2721
- "policies": {},
2722
- "views": {},
2723
- "_meta": {
2724
- "columns": {},
2725
- "schemas": {},
2726
- "tables": {}
2727
- }
2728
- }