@tstdl/base 0.92.130 → 0.92.132
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.
- package/ai/ai.service.js +4 -4
- package/api/server/api-controller.js +1 -2
- package/document-management/api/document-management.api.d.ts +9 -37
- package/document-management/api/document-management.api.js +9 -18
- package/document-management/models/document-request-collection-assignment.model.d.ts +7 -0
- package/document-management/models/{document-request-collection.model.js → document-request-collection-assignment.model.js} +6 -6
- package/document-management/models/index.d.ts +1 -1
- package/document-management/models/index.js +1 -1
- package/document-management/server/api/document-management.api.d.ts +26 -0
- package/document-management/server/api/document-management.api.js +169 -0
- package/document-management/server/api/index.d.ts +1 -0
- package/document-management/server/api/index.js +1 -0
- package/document-management/server/drizzle/{0000_cool_victor_mancha.sql → 0000_magical_madame_hydra.sql} +128 -96
- package/document-management/server/drizzle/meta/0000_snapshot.json +768 -492
- package/document-management/server/drizzle/meta/_journal.json +2 -9
- package/document-management/server/index.d.ts +1 -0
- package/document-management/server/index.js +1 -0
- package/document-management/server/schemas.d.ts +3 -2
- package/document-management/server/schemas.js +3 -2
- package/document-management/server/services/document-category-type.service.d.ts +2 -0
- package/document-management/server/services/document-category-type.service.js +26 -15
- package/document-management/server/services/document-collection.service.js +13 -2
- package/document-management/server/services/document-file.service.js +15 -4
- package/document-management/server/services/document-management-ai.service.js +19 -8
- package/document-management/server/services/document-management-ancillary.service.d.ts +21 -40
- package/document-management/server/services/document-management-ancillary.service.js +25 -14
- package/document-management/server/services/document-management.service.d.ts +1 -1
- package/document-management/server/services/document-management.service.js +53 -34
- package/document-management/server/services/document-property.service.d.ts +2 -34
- package/document-management/server/services/document-property.service.js +20 -8
- package/document-management/server/services/document-request.service.js +11 -11
- package/document-management/server/services/document-validation.service.js +15 -4
- package/document-management/server/services/document-workflow.service.js +27 -16
- package/document-management/server/services/document.service.d.ts +8 -2
- package/document-management/server/services/document.service.js +47 -7
- package/document-management/server/services/index.d.ts +1 -0
- package/document-management/server/services/index.js +1 -0
- package/document-management/server/services/singleton.d.ts +4 -0
- package/document-management/server/services/singleton.js +12 -0
- package/document-management/service-models/enriched/enriched-document-management-data.view.d.ts +2 -1
- package/document-management/service-models/enriched/enriched-document-management-data.view.js +10 -2
- package/eslint.config.js +1 -0
- package/examples/document-management/categories-and-types.d.ts +324 -0
- package/examples/document-management/categories-and-types.js +363 -0
- package/examples/document-management/main.d.ts +7 -8
- package/examples/document-management/main.js +86 -27
- package/injector/decorators.d.ts +1 -0
- package/injector/decorators.js +41 -12
- package/injector/inject.d.ts +12 -2
- package/injector/injector.d.ts +3 -2
- package/injector/injector.js +87 -36
- package/injector/symbols.d.ts +1 -0
- package/injector/symbols.js +1 -0
- package/module/modules/web-server.module.js +4 -4
- package/orm/server/database.d.ts +0 -4
- package/orm/server/database.js +0 -4
- package/orm/server/drizzle/schema-converter.js +5 -4
- package/orm/server/module.d.ts +0 -4
- package/orm/server/module.js +0 -2
- package/orm/server/query-converter.js +11 -38
- package/orm/server/repository.d.ts +3 -2
- package/orm/server/repository.js +2 -2
- package/orm/server/transaction.d.ts +5 -4
- package/orm/server/transaction.js +8 -3
- package/orm/server/transactional.js +3 -3
- package/orm/sqls.d.ts +4 -1
- package/orm/sqls.js +4 -1
- package/package.json +4 -4
- package/reflection/registry.js +6 -6
- package/document-management/models/document-request-collection.model.d.ts +0 -7
- package/document-management/server/drizzle/0001_concerned_quentin_quire.sql +0 -2
- package/document-management/server/drizzle/meta/0001_snapshot.json +0 -1932
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"id": "
|
|
2
|
+
"id": "47c81d93-b7b7-47a9-97fa-0f0204ca54ca",
|
|
3
3
|
"prevId": "00000000-0000-0000-0000-000000000000",
|
|
4
4
|
"version": "7",
|
|
5
5
|
"dialect": "postgresql",
|
|
@@ -63,6 +63,25 @@
|
|
|
63
63
|
"primaryKey": false,
|
|
64
64
|
"notNull": false
|
|
65
65
|
},
|
|
66
|
+
"approval": {
|
|
67
|
+
"name": "approval",
|
|
68
|
+
"type": "document_approval",
|
|
69
|
+
"typeSchema": "document_management",
|
|
70
|
+
"primaryKey": false,
|
|
71
|
+
"notNull": true
|
|
72
|
+
},
|
|
73
|
+
"comment": {
|
|
74
|
+
"name": "comment",
|
|
75
|
+
"type": "text",
|
|
76
|
+
"primaryKey": false,
|
|
77
|
+
"notNull": false
|
|
78
|
+
},
|
|
79
|
+
"create_user_id": {
|
|
80
|
+
"name": "create_user_id",
|
|
81
|
+
"type": "uuid",
|
|
82
|
+
"primaryKey": false,
|
|
83
|
+
"notNull": false
|
|
84
|
+
},
|
|
66
85
|
"revision": {
|
|
67
86
|
"name": "revision",
|
|
68
87
|
"type": "integer",
|
|
@@ -132,6 +151,194 @@
|
|
|
132
151
|
"checkConstraints": {},
|
|
133
152
|
"isRLSEnabled": false
|
|
134
153
|
},
|
|
154
|
+
"document_management.document_assignment_scope": {
|
|
155
|
+
"name": "document_assignment_scope",
|
|
156
|
+
"schema": "document_management",
|
|
157
|
+
"columns": {
|
|
158
|
+
"id": {
|
|
159
|
+
"name": "id",
|
|
160
|
+
"type": "uuid",
|
|
161
|
+
"primaryKey": true,
|
|
162
|
+
"notNull": true,
|
|
163
|
+
"default": "gen_random_uuid()"
|
|
164
|
+
},
|
|
165
|
+
"task_id": {
|
|
166
|
+
"name": "task_id",
|
|
167
|
+
"type": "uuid",
|
|
168
|
+
"primaryKey": false,
|
|
169
|
+
"notNull": true
|
|
170
|
+
},
|
|
171
|
+
"collection_id": {
|
|
172
|
+
"name": "collection_id",
|
|
173
|
+
"type": "uuid",
|
|
174
|
+
"primaryKey": false,
|
|
175
|
+
"notNull": true
|
|
176
|
+
},
|
|
177
|
+
"revision": {
|
|
178
|
+
"name": "revision",
|
|
179
|
+
"type": "integer",
|
|
180
|
+
"primaryKey": false,
|
|
181
|
+
"notNull": true
|
|
182
|
+
},
|
|
183
|
+
"revision_timestamp": {
|
|
184
|
+
"name": "revision_timestamp",
|
|
185
|
+
"type": "timestamp with time zone",
|
|
186
|
+
"primaryKey": false,
|
|
187
|
+
"notNull": true
|
|
188
|
+
},
|
|
189
|
+
"create_timestamp": {
|
|
190
|
+
"name": "create_timestamp",
|
|
191
|
+
"type": "timestamp with time zone",
|
|
192
|
+
"primaryKey": false,
|
|
193
|
+
"notNull": true
|
|
194
|
+
},
|
|
195
|
+
"delete_timestamp": {
|
|
196
|
+
"name": "delete_timestamp",
|
|
197
|
+
"type": "timestamp with time zone",
|
|
198
|
+
"primaryKey": false,
|
|
199
|
+
"notNull": false
|
|
200
|
+
},
|
|
201
|
+
"attributes": {
|
|
202
|
+
"name": "attributes",
|
|
203
|
+
"type": "jsonb",
|
|
204
|
+
"primaryKey": false,
|
|
205
|
+
"notNull": true,
|
|
206
|
+
"default": "'{}'::jsonb"
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
"indexes": {},
|
|
210
|
+
"foreignKeys": {
|
|
211
|
+
"document_assignment_scope_task_id_document_assignment_task_id_fk": {
|
|
212
|
+
"name": "document_assignment_scope_task_id_document_assignment_task_id_fk",
|
|
213
|
+
"tableFrom": "document_assignment_scope",
|
|
214
|
+
"tableTo": "document_assignment_task",
|
|
215
|
+
"schemaTo": "document_management",
|
|
216
|
+
"columnsFrom": [
|
|
217
|
+
"task_id"
|
|
218
|
+
],
|
|
219
|
+
"columnsTo": [
|
|
220
|
+
"id"
|
|
221
|
+
],
|
|
222
|
+
"onDelete": "no action",
|
|
223
|
+
"onUpdate": "no action"
|
|
224
|
+
},
|
|
225
|
+
"document_assignment_scope_collection_id_document_collection_id_fk": {
|
|
226
|
+
"name": "document_assignment_scope_collection_id_document_collection_id_fk",
|
|
227
|
+
"tableFrom": "document_assignment_scope",
|
|
228
|
+
"tableTo": "document_collection",
|
|
229
|
+
"schemaTo": "document_management",
|
|
230
|
+
"columnsFrom": [
|
|
231
|
+
"collection_id"
|
|
232
|
+
],
|
|
233
|
+
"columnsTo": [
|
|
234
|
+
"id"
|
|
235
|
+
],
|
|
236
|
+
"onDelete": "no action",
|
|
237
|
+
"onUpdate": "no action"
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
"compositePrimaryKeys": {},
|
|
241
|
+
"uniqueConstraints": {
|
|
242
|
+
"das_task_id_collection_id_unique": {
|
|
243
|
+
"name": "das_task_id_collection_id_unique",
|
|
244
|
+
"nullsNotDistinct": false,
|
|
245
|
+
"columns": [
|
|
246
|
+
"task_id",
|
|
247
|
+
"collection_id"
|
|
248
|
+
]
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
"policies": {},
|
|
252
|
+
"checkConstraints": {},
|
|
253
|
+
"isRLSEnabled": false
|
|
254
|
+
},
|
|
255
|
+
"document_management.document_assignment_task": {
|
|
256
|
+
"name": "document_assignment_task",
|
|
257
|
+
"schema": "document_management",
|
|
258
|
+
"columns": {
|
|
259
|
+
"id": {
|
|
260
|
+
"name": "id",
|
|
261
|
+
"type": "uuid",
|
|
262
|
+
"primaryKey": true,
|
|
263
|
+
"notNull": true,
|
|
264
|
+
"default": "gen_random_uuid()"
|
|
265
|
+
},
|
|
266
|
+
"document_id": {
|
|
267
|
+
"name": "document_id",
|
|
268
|
+
"type": "uuid",
|
|
269
|
+
"primaryKey": false,
|
|
270
|
+
"notNull": true
|
|
271
|
+
},
|
|
272
|
+
"target": {
|
|
273
|
+
"name": "target",
|
|
274
|
+
"type": "document_assignment_target",
|
|
275
|
+
"typeSchema": "document_management",
|
|
276
|
+
"primaryKey": false,
|
|
277
|
+
"notNull": true
|
|
278
|
+
},
|
|
279
|
+
"revision": {
|
|
280
|
+
"name": "revision",
|
|
281
|
+
"type": "integer",
|
|
282
|
+
"primaryKey": false,
|
|
283
|
+
"notNull": true
|
|
284
|
+
},
|
|
285
|
+
"revision_timestamp": {
|
|
286
|
+
"name": "revision_timestamp",
|
|
287
|
+
"type": "timestamp with time zone",
|
|
288
|
+
"primaryKey": false,
|
|
289
|
+
"notNull": true
|
|
290
|
+
},
|
|
291
|
+
"create_timestamp": {
|
|
292
|
+
"name": "create_timestamp",
|
|
293
|
+
"type": "timestamp with time zone",
|
|
294
|
+
"primaryKey": false,
|
|
295
|
+
"notNull": true
|
|
296
|
+
},
|
|
297
|
+
"delete_timestamp": {
|
|
298
|
+
"name": "delete_timestamp",
|
|
299
|
+
"type": "timestamp with time zone",
|
|
300
|
+
"primaryKey": false,
|
|
301
|
+
"notNull": false
|
|
302
|
+
},
|
|
303
|
+
"attributes": {
|
|
304
|
+
"name": "attributes",
|
|
305
|
+
"type": "jsonb",
|
|
306
|
+
"primaryKey": false,
|
|
307
|
+
"notNull": true,
|
|
308
|
+
"default": "'{}'::jsonb"
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
"indexes": {},
|
|
312
|
+
"foreignKeys": {
|
|
313
|
+
"document_assignment_task_document_id_document_id_fk": {
|
|
314
|
+
"name": "document_assignment_task_document_id_document_id_fk",
|
|
315
|
+
"tableFrom": "document_assignment_task",
|
|
316
|
+
"tableTo": "document",
|
|
317
|
+
"schemaTo": "document_management",
|
|
318
|
+
"columnsFrom": [
|
|
319
|
+
"document_id"
|
|
320
|
+
],
|
|
321
|
+
"columnsTo": [
|
|
322
|
+
"id"
|
|
323
|
+
],
|
|
324
|
+
"onDelete": "no action",
|
|
325
|
+
"onUpdate": "no action"
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
"compositePrimaryKeys": {},
|
|
329
|
+
"uniqueConstraints": {
|
|
330
|
+
"document_assignment_task_document_id_unique": {
|
|
331
|
+
"name": "document_assignment_task_document_id_unique",
|
|
332
|
+
"nullsNotDistinct": false,
|
|
333
|
+
"columns": [
|
|
334
|
+
"document_id"
|
|
335
|
+
]
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
"policies": {},
|
|
339
|
+
"checkConstraints": {},
|
|
340
|
+
"isRLSEnabled": false
|
|
341
|
+
},
|
|
135
342
|
"document_management.document_category": {
|
|
136
343
|
"name": "document_category",
|
|
137
344
|
"schema": "document_management",
|
|
@@ -143,6 +350,12 @@
|
|
|
143
350
|
"notNull": true,
|
|
144
351
|
"default": "gen_random_uuid()"
|
|
145
352
|
},
|
|
353
|
+
"parent_id": {
|
|
354
|
+
"name": "parent_id",
|
|
355
|
+
"type": "uuid",
|
|
356
|
+
"primaryKey": false,
|
|
357
|
+
"notNull": false
|
|
358
|
+
},
|
|
146
359
|
"label": {
|
|
147
360
|
"name": "label",
|
|
148
361
|
"type": "text",
|
|
@@ -182,7 +395,22 @@
|
|
|
182
395
|
}
|
|
183
396
|
},
|
|
184
397
|
"indexes": {},
|
|
185
|
-
"foreignKeys": {
|
|
398
|
+
"foreignKeys": {
|
|
399
|
+
"document_category_parent_id_document_category_id_fk": {
|
|
400
|
+
"name": "document_category_parent_id_document_category_id_fk",
|
|
401
|
+
"tableFrom": "document_category",
|
|
402
|
+
"tableTo": "document_category",
|
|
403
|
+
"schemaTo": "document_management",
|
|
404
|
+
"columnsFrom": [
|
|
405
|
+
"parent_id"
|
|
406
|
+
],
|
|
407
|
+
"columnsTo": [
|
|
408
|
+
"id"
|
|
409
|
+
],
|
|
410
|
+
"onDelete": "no action",
|
|
411
|
+
"onUpdate": "no action"
|
|
412
|
+
}
|
|
413
|
+
},
|
|
186
414
|
"compositePrimaryKeys": {},
|
|
187
415
|
"uniqueConstraints": {
|
|
188
416
|
"document_category_label_unique": {
|
|
@@ -208,6 +436,12 @@
|
|
|
208
436
|
"notNull": true,
|
|
209
437
|
"default": "gen_random_uuid()"
|
|
210
438
|
},
|
|
439
|
+
"parent_id": {
|
|
440
|
+
"name": "parent_id",
|
|
441
|
+
"type": "uuid",
|
|
442
|
+
"primaryKey": false,
|
|
443
|
+
"notNull": false
|
|
444
|
+
},
|
|
211
445
|
"revision": {
|
|
212
446
|
"name": "revision",
|
|
213
447
|
"type": "integer",
|
|
@@ -241,15 +475,30 @@
|
|
|
241
475
|
}
|
|
242
476
|
},
|
|
243
477
|
"indexes": {},
|
|
244
|
-
"foreignKeys": {
|
|
478
|
+
"foreignKeys": {
|
|
479
|
+
"document_collection_parent_id_document_collection_id_fk": {
|
|
480
|
+
"name": "document_collection_parent_id_document_collection_id_fk",
|
|
481
|
+
"tableFrom": "document_collection",
|
|
482
|
+
"tableTo": "document_collection",
|
|
483
|
+
"schemaTo": "document_management",
|
|
484
|
+
"columnsFrom": [
|
|
485
|
+
"parent_id"
|
|
486
|
+
],
|
|
487
|
+
"columnsTo": [
|
|
488
|
+
"id"
|
|
489
|
+
],
|
|
490
|
+
"onDelete": "no action",
|
|
491
|
+
"onUpdate": "no action"
|
|
492
|
+
}
|
|
493
|
+
},
|
|
245
494
|
"compositePrimaryKeys": {},
|
|
246
495
|
"uniqueConstraints": {},
|
|
247
496
|
"policies": {},
|
|
248
497
|
"checkConstraints": {},
|
|
249
498
|
"isRLSEnabled": false
|
|
250
499
|
},
|
|
251
|
-
"document_management.
|
|
252
|
-
"name": "
|
|
500
|
+
"document_management.document_collection_assignment": {
|
|
501
|
+
"name": "document_collection_assignment",
|
|
253
502
|
"schema": "document_management",
|
|
254
503
|
"columns": {
|
|
255
504
|
"id": {
|
|
@@ -311,9 +560,9 @@
|
|
|
311
560
|
},
|
|
312
561
|
"indexes": {},
|
|
313
562
|
"foreignKeys": {
|
|
314
|
-
"
|
|
315
|
-
"name": "
|
|
316
|
-
"tableFrom": "
|
|
563
|
+
"document_collection_assignment_collection_id_document_collection_id_fk": {
|
|
564
|
+
"name": "document_collection_assignment_collection_id_document_collection_id_fk",
|
|
565
|
+
"tableFrom": "document_collection_assignment",
|
|
317
566
|
"tableTo": "document_collection",
|
|
318
567
|
"schemaTo": "document_management",
|
|
319
568
|
"columnsFrom": [
|
|
@@ -325,9 +574,9 @@
|
|
|
325
574
|
"onDelete": "no action",
|
|
326
575
|
"onUpdate": "no action"
|
|
327
576
|
},
|
|
328
|
-
"
|
|
329
|
-
"name": "
|
|
330
|
-
"tableFrom": "
|
|
577
|
+
"document_collection_assignment_document_id_document_id_fk": {
|
|
578
|
+
"name": "document_collection_assignment_document_id_document_id_fk",
|
|
579
|
+
"tableFrom": "document_collection_assignment",
|
|
331
580
|
"tableTo": "document",
|
|
332
581
|
"schemaTo": "document_management",
|
|
333
582
|
"columnsFrom": [
|
|
@@ -342,8 +591,8 @@
|
|
|
342
591
|
},
|
|
343
592
|
"compositePrimaryKeys": {},
|
|
344
593
|
"uniqueConstraints": {
|
|
345
|
-
"
|
|
346
|
-
"name": "
|
|
594
|
+
"document_collection_assignment_collection_id_document_id_unique": {
|
|
595
|
+
"name": "document_collection_assignment_collection_id_document_id_unique",
|
|
347
596
|
"nullsNotDistinct": false,
|
|
348
597
|
"columns": [
|
|
349
598
|
"collection_id",
|
|
@@ -513,6 +762,12 @@
|
|
|
513
762
|
"notNull": true,
|
|
514
763
|
"default": "gen_random_uuid()"
|
|
515
764
|
},
|
|
765
|
+
"document_id": {
|
|
766
|
+
"name": "document_id",
|
|
767
|
+
"type": "uuid",
|
|
768
|
+
"primaryKey": false,
|
|
769
|
+
"notNull": true
|
|
770
|
+
},
|
|
516
771
|
"property_id": {
|
|
517
772
|
"name": "property_id",
|
|
518
773
|
"type": "uuid",
|
|
@@ -549,12 +804,6 @@
|
|
|
549
804
|
"primaryKey": false,
|
|
550
805
|
"notNull": false
|
|
551
806
|
},
|
|
552
|
-
"document_id": {
|
|
553
|
-
"name": "document_id",
|
|
554
|
-
"type": "uuid",
|
|
555
|
-
"primaryKey": false,
|
|
556
|
-
"notNull": true
|
|
557
|
-
},
|
|
558
807
|
"revision": {
|
|
559
808
|
"name": "revision",
|
|
560
809
|
"type": "integer",
|
|
@@ -589,13 +838,13 @@
|
|
|
589
838
|
},
|
|
590
839
|
"indexes": {},
|
|
591
840
|
"foreignKeys": {
|
|
592
|
-
"
|
|
593
|
-
"name": "
|
|
841
|
+
"document_property_value_document_id_document_id_fk": {
|
|
842
|
+
"name": "document_property_value_document_id_document_id_fk",
|
|
594
843
|
"tableFrom": "document_property_value",
|
|
595
|
-
"tableTo": "
|
|
844
|
+
"tableTo": "document",
|
|
596
845
|
"schemaTo": "document_management",
|
|
597
846
|
"columnsFrom": [
|
|
598
|
-
"
|
|
847
|
+
"document_id"
|
|
599
848
|
],
|
|
600
849
|
"columnsTo": [
|
|
601
850
|
"id"
|
|
@@ -603,13 +852,13 @@
|
|
|
603
852
|
"onDelete": "no action",
|
|
604
853
|
"onUpdate": "no action"
|
|
605
854
|
},
|
|
606
|
-
"
|
|
607
|
-
"name": "
|
|
855
|
+
"document_property_value_property_id_document_property_id_fk": {
|
|
856
|
+
"name": "document_property_value_property_id_document_property_id_fk",
|
|
608
857
|
"tableFrom": "document_property_value",
|
|
609
|
-
"tableTo": "
|
|
858
|
+
"tableTo": "document_property",
|
|
610
859
|
"schemaTo": "document_management",
|
|
611
860
|
"columnsFrom": [
|
|
612
|
-
"
|
|
861
|
+
"property_id"
|
|
613
862
|
],
|
|
614
863
|
"columnsTo": [
|
|
615
864
|
"id"
|
|
@@ -655,11 +904,11 @@
|
|
|
655
904
|
"primaryKey": false,
|
|
656
905
|
"notNull": false
|
|
657
906
|
},
|
|
658
|
-
"
|
|
659
|
-
"name": "
|
|
660
|
-
"type": "
|
|
907
|
+
"document_id": {
|
|
908
|
+
"name": "document_id",
|
|
909
|
+
"type": "uuid",
|
|
661
910
|
"primaryKey": false,
|
|
662
|
-
"notNull":
|
|
911
|
+
"notNull": false
|
|
663
912
|
},
|
|
664
913
|
"comment": {
|
|
665
914
|
"name": "comment",
|
|
@@ -667,9 +916,10 @@
|
|
|
667
916
|
"primaryKey": false,
|
|
668
917
|
"notNull": false
|
|
669
918
|
},
|
|
670
|
-
"
|
|
671
|
-
"name": "
|
|
672
|
-
"type": "
|
|
919
|
+
"state": {
|
|
920
|
+
"name": "state",
|
|
921
|
+
"type": "document_request_state",
|
|
922
|
+
"typeSchema": "document_management",
|
|
673
923
|
"primaryKey": false,
|
|
674
924
|
"notNull": true
|
|
675
925
|
},
|
|
@@ -705,7 +955,23 @@
|
|
|
705
955
|
"default": "'{}'::jsonb"
|
|
706
956
|
}
|
|
707
957
|
},
|
|
708
|
-
"indexes": {
|
|
958
|
+
"indexes": {
|
|
959
|
+
"document_request_state_idx": {
|
|
960
|
+
"name": "document_request_state_idx",
|
|
961
|
+
"columns": [
|
|
962
|
+
{
|
|
963
|
+
"expression": "state",
|
|
964
|
+
"isExpression": false,
|
|
965
|
+
"asc": true,
|
|
966
|
+
"nulls": "last"
|
|
967
|
+
}
|
|
968
|
+
],
|
|
969
|
+
"isUnique": false,
|
|
970
|
+
"concurrently": false,
|
|
971
|
+
"method": "btree",
|
|
972
|
+
"with": {}
|
|
973
|
+
}
|
|
974
|
+
},
|
|
709
975
|
"foreignKeys": {
|
|
710
976
|
"document_request_type_id_document_type_id_fk": {
|
|
711
977
|
"name": "document_request_type_id_document_type_id_fk",
|
|
@@ -720,16 +986,38 @@
|
|
|
720
986
|
],
|
|
721
987
|
"onDelete": "no action",
|
|
722
988
|
"onUpdate": "no action"
|
|
723
|
-
}
|
|
724
|
-
|
|
989
|
+
},
|
|
990
|
+
"document_request_document_id_document_id_fk": {
|
|
991
|
+
"name": "document_request_document_id_document_id_fk",
|
|
992
|
+
"tableFrom": "document_request",
|
|
993
|
+
"tableTo": "document",
|
|
994
|
+
"schemaTo": "document_management",
|
|
995
|
+
"columnsFrom": [
|
|
996
|
+
"document_id"
|
|
997
|
+
],
|
|
998
|
+
"columnsTo": [
|
|
999
|
+
"id"
|
|
1000
|
+
],
|
|
1001
|
+
"onDelete": "no action",
|
|
1002
|
+
"onUpdate": "no action"
|
|
1003
|
+
}
|
|
1004
|
+
},
|
|
725
1005
|
"compositePrimaryKeys": {},
|
|
726
|
-
"uniqueConstraints": {
|
|
1006
|
+
"uniqueConstraints": {
|
|
1007
|
+
"document_request_document_id_unique": {
|
|
1008
|
+
"name": "document_request_document_id_unique",
|
|
1009
|
+
"nullsNotDistinct": false,
|
|
1010
|
+
"columns": [
|
|
1011
|
+
"document_id"
|
|
1012
|
+
]
|
|
1013
|
+
}
|
|
1014
|
+
},
|
|
727
1015
|
"policies": {},
|
|
728
1016
|
"checkConstraints": {},
|
|
729
1017
|
"isRLSEnabled": false
|
|
730
1018
|
},
|
|
731
|
-
"document_management.
|
|
732
|
-
"name": "
|
|
1019
|
+
"document_management.document_request_collection_assignment": {
|
|
1020
|
+
"name": "document_request_collection_assignment",
|
|
733
1021
|
"schema": "document_management",
|
|
734
1022
|
"columns": {
|
|
735
1023
|
"id": {
|
|
@@ -739,64 +1027,16 @@
|
|
|
739
1027
|
"notNull": true,
|
|
740
1028
|
"default": "gen_random_uuid()"
|
|
741
1029
|
},
|
|
742
|
-
"
|
|
743
|
-
"name": "
|
|
1030
|
+
"request_id": {
|
|
1031
|
+
"name": "request_id",
|
|
744
1032
|
"type": "uuid",
|
|
745
1033
|
"primaryKey": false,
|
|
746
1034
|
"notNull": true
|
|
747
1035
|
},
|
|
748
|
-
"
|
|
749
|
-
"name": "
|
|
750
|
-
"type": "uuid",
|
|
751
|
-
"primaryKey": false,
|
|
752
|
-
"notNull": false
|
|
753
|
-
},
|
|
754
|
-
"type_id": {
|
|
755
|
-
"name": "type_id",
|
|
1036
|
+
"collection_id": {
|
|
1037
|
+
"name": "collection_id",
|
|
756
1038
|
"type": "uuid",
|
|
757
1039
|
"primaryKey": false,
|
|
758
|
-
"notNull": false
|
|
759
|
-
},
|
|
760
|
-
"title": {
|
|
761
|
-
"name": "title",
|
|
762
|
-
"type": "text",
|
|
763
|
-
"primaryKey": false,
|
|
764
|
-
"notNull": false
|
|
765
|
-
},
|
|
766
|
-
"subtitle": {
|
|
767
|
-
"name": "subtitle",
|
|
768
|
-
"type": "text",
|
|
769
|
-
"primaryKey": false,
|
|
770
|
-
"notNull": false
|
|
771
|
-
},
|
|
772
|
-
"pages": {
|
|
773
|
-
"name": "pages",
|
|
774
|
-
"type": "integer",
|
|
775
|
-
"primaryKey": false,
|
|
776
|
-
"notNull": false
|
|
777
|
-
},
|
|
778
|
-
"date": {
|
|
779
|
-
"name": "date",
|
|
780
|
-
"type": "date",
|
|
781
|
-
"primaryKey": false,
|
|
782
|
-
"notNull": false
|
|
783
|
-
},
|
|
784
|
-
"summary": {
|
|
785
|
-
"name": "summary",
|
|
786
|
-
"type": "text",
|
|
787
|
-
"primaryKey": false,
|
|
788
|
-
"notNull": false
|
|
789
|
-
},
|
|
790
|
-
"tags": {
|
|
791
|
-
"name": "tags",
|
|
792
|
-
"type": "text[]",
|
|
793
|
-
"primaryKey": false,
|
|
794
|
-
"notNull": false
|
|
795
|
-
},
|
|
796
|
-
"assignment_tries": {
|
|
797
|
-
"name": "assignment_tries",
|
|
798
|
-
"type": "integer",
|
|
799
|
-
"primaryKey": false,
|
|
800
1040
|
"notNull": true
|
|
801
1041
|
},
|
|
802
1042
|
"revision": {
|
|
@@ -833,27 +1073,13 @@
|
|
|
833
1073
|
},
|
|
834
1074
|
"indexes": {},
|
|
835
1075
|
"foreignKeys": {
|
|
836
|
-
"
|
|
837
|
-
"name": "
|
|
838
|
-
"tableFrom": "
|
|
839
|
-
"tableTo": "
|
|
840
|
-
"schemaTo": "document_management",
|
|
841
|
-
"columnsFrom": [
|
|
842
|
-
"file_id"
|
|
843
|
-
],
|
|
844
|
-
"columnsTo": [
|
|
845
|
-
"id"
|
|
846
|
-
],
|
|
847
|
-
"onDelete": "no action",
|
|
848
|
-
"onUpdate": "no action"
|
|
849
|
-
},
|
|
850
|
-
"document_request_assignment_task_assigned_request_file_id_document_request_file_id_fk": {
|
|
851
|
-
"name": "document_request_assignment_task_assigned_request_file_id_document_request_file_id_fk",
|
|
852
|
-
"tableFrom": "document_request_assignment_task",
|
|
853
|
-
"tableTo": "document_request_file",
|
|
1076
|
+
"document_request_collection_assignment_request_id_document_request_id_fk": {
|
|
1077
|
+
"name": "document_request_collection_assignment_request_id_document_request_id_fk",
|
|
1078
|
+
"tableFrom": "document_request_collection_assignment",
|
|
1079
|
+
"tableTo": "document_request",
|
|
854
1080
|
"schemaTo": "document_management",
|
|
855
1081
|
"columnsFrom": [
|
|
856
|
-
"
|
|
1082
|
+
"request_id"
|
|
857
1083
|
],
|
|
858
1084
|
"columnsTo": [
|
|
859
1085
|
"id"
|
|
@@ -861,13 +1087,13 @@
|
|
|
861
1087
|
"onDelete": "no action",
|
|
862
1088
|
"onUpdate": "no action"
|
|
863
1089
|
},
|
|
864
|
-
"
|
|
865
|
-
"name": "
|
|
866
|
-
"tableFrom": "
|
|
867
|
-
"tableTo": "
|
|
1090
|
+
"document_request_collection_assignment_collection_id_document_collection_id_fk": {
|
|
1091
|
+
"name": "document_request_collection_assignment_collection_id_document_collection_id_fk",
|
|
1092
|
+
"tableFrom": "document_request_collection_assignment",
|
|
1093
|
+
"tableTo": "document_collection",
|
|
868
1094
|
"schemaTo": "document_management",
|
|
869
1095
|
"columnsFrom": [
|
|
870
|
-
"
|
|
1096
|
+
"collection_id"
|
|
871
1097
|
],
|
|
872
1098
|
"columnsTo": [
|
|
873
1099
|
"id"
|
|
@@ -878,11 +1104,12 @@
|
|
|
878
1104
|
},
|
|
879
1105
|
"compositePrimaryKeys": {},
|
|
880
1106
|
"uniqueConstraints": {
|
|
881
|
-
"
|
|
882
|
-
"name": "
|
|
1107
|
+
"document_request_collection_assignment_request_id_collection_id_unique": {
|
|
1108
|
+
"name": "document_request_collection_assignment_request_id_collection_id_unique",
|
|
883
1109
|
"nullsNotDistinct": false,
|
|
884
1110
|
"columns": [
|
|
885
|
-
"
|
|
1111
|
+
"request_id",
|
|
1112
|
+
"collection_id"
|
|
886
1113
|
]
|
|
887
1114
|
}
|
|
888
1115
|
},
|
|
@@ -890,8 +1117,8 @@
|
|
|
890
1117
|
"checkConstraints": {},
|
|
891
1118
|
"isRLSEnabled": false
|
|
892
1119
|
},
|
|
893
|
-
"document_management.
|
|
894
|
-
"name": "
|
|
1120
|
+
"document_management.document_request_submission": {
|
|
1121
|
+
"name": "document_request_submission",
|
|
895
1122
|
"schema": "document_management",
|
|
896
1123
|
"columns": {
|
|
897
1124
|
"id": {
|
|
@@ -901,14 +1128,14 @@
|
|
|
901
1128
|
"notNull": true,
|
|
902
1129
|
"default": "gen_random_uuid()"
|
|
903
1130
|
},
|
|
904
|
-
"
|
|
905
|
-
"name": "
|
|
1131
|
+
"request_id": {
|
|
1132
|
+
"name": "request_id",
|
|
906
1133
|
"type": "uuid",
|
|
907
1134
|
"primaryKey": false,
|
|
908
1135
|
"notNull": true
|
|
909
1136
|
},
|
|
910
|
-
"
|
|
911
|
-
"name": "
|
|
1137
|
+
"document_id": {
|
|
1138
|
+
"name": "document_id",
|
|
912
1139
|
"type": "uuid",
|
|
913
1140
|
"primaryKey": false,
|
|
914
1141
|
"notNull": true
|
|
@@ -947,13 +1174,13 @@
|
|
|
947
1174
|
},
|
|
948
1175
|
"indexes": {},
|
|
949
1176
|
"foreignKeys": {
|
|
950
|
-
"
|
|
951
|
-
"name": "
|
|
952
|
-
"tableFrom": "
|
|
953
|
-
"tableTo": "
|
|
1177
|
+
"document_request_submission_request_id_document_request_id_fk": {
|
|
1178
|
+
"name": "document_request_submission_request_id_document_request_id_fk",
|
|
1179
|
+
"tableFrom": "document_request_submission",
|
|
1180
|
+
"tableTo": "document_request",
|
|
954
1181
|
"schemaTo": "document_management",
|
|
955
1182
|
"columnsFrom": [
|
|
956
|
-
"
|
|
1183
|
+
"request_id"
|
|
957
1184
|
],
|
|
958
1185
|
"columnsTo": [
|
|
959
1186
|
"id"
|
|
@@ -961,13 +1188,13 @@
|
|
|
961
1188
|
"onDelete": "no action",
|
|
962
1189
|
"onUpdate": "no action"
|
|
963
1190
|
},
|
|
964
|
-
"
|
|
965
|
-
"name": "
|
|
966
|
-
"tableFrom": "
|
|
967
|
-
"tableTo": "
|
|
1191
|
+
"document_request_submission_document_id_document_id_fk": {
|
|
1192
|
+
"name": "document_request_submission_document_id_document_id_fk",
|
|
1193
|
+
"tableFrom": "document_request_submission",
|
|
1194
|
+
"tableTo": "document",
|
|
968
1195
|
"schemaTo": "document_management",
|
|
969
1196
|
"columnsFrom": [
|
|
970
|
-
"
|
|
1197
|
+
"document_id"
|
|
971
1198
|
],
|
|
972
1199
|
"columnsTo": [
|
|
973
1200
|
"id"
|
|
@@ -978,12 +1205,12 @@
|
|
|
978
1205
|
},
|
|
979
1206
|
"compositePrimaryKeys": {},
|
|
980
1207
|
"uniqueConstraints": {
|
|
981
|
-
"
|
|
982
|
-
"name": "
|
|
1208
|
+
"document_request_submission_request_id_document_id_unique": {
|
|
1209
|
+
"name": "document_request_submission_request_id_document_id_unique",
|
|
983
1210
|
"nullsNotDistinct": false,
|
|
984
1211
|
"columns": [
|
|
985
|
-
"
|
|
986
|
-
"
|
|
1212
|
+
"request_id",
|
|
1213
|
+
"document_id"
|
|
987
1214
|
]
|
|
988
1215
|
}
|
|
989
1216
|
},
|
|
@@ -991,8 +1218,8 @@
|
|
|
991
1218
|
"checkConstraints": {},
|
|
992
1219
|
"isRLSEnabled": false
|
|
993
1220
|
},
|
|
994
|
-
"document_management.
|
|
995
|
-
"name": "
|
|
1221
|
+
"document_management.document_request_template": {
|
|
1222
|
+
"name": "document_request_template",
|
|
996
1223
|
"schema": "document_management",
|
|
997
1224
|
"columns": {
|
|
998
1225
|
"id": {
|
|
@@ -1002,48 +1229,24 @@
|
|
|
1002
1229
|
"notNull": true,
|
|
1003
1230
|
"default": "gen_random_uuid()"
|
|
1004
1231
|
},
|
|
1005
|
-
"
|
|
1006
|
-
"name": "
|
|
1232
|
+
"requests_template_id": {
|
|
1233
|
+
"name": "requests_template_id",
|
|
1007
1234
|
"type": "uuid",
|
|
1008
1235
|
"primaryKey": false,
|
|
1009
1236
|
"notNull": true
|
|
1010
1237
|
},
|
|
1011
|
-
"
|
|
1012
|
-
"name": "
|
|
1013
|
-
"type": "
|
|
1014
|
-
"primaryKey": false,
|
|
1015
|
-
"notNull": false
|
|
1016
|
-
},
|
|
1017
|
-
"integer": {
|
|
1018
|
-
"name": "integer",
|
|
1019
|
-
"type": "integer",
|
|
1020
|
-
"primaryKey": false,
|
|
1021
|
-
"notNull": false
|
|
1022
|
-
},
|
|
1023
|
-
"decimal": {
|
|
1024
|
-
"name": "decimal",
|
|
1025
|
-
"type": "double precision",
|
|
1026
|
-
"primaryKey": false,
|
|
1027
|
-
"notNull": false
|
|
1028
|
-
},
|
|
1029
|
-
"boolean": {
|
|
1030
|
-
"name": "boolean",
|
|
1031
|
-
"type": "boolean",
|
|
1238
|
+
"type_id": {
|
|
1239
|
+
"name": "type_id",
|
|
1240
|
+
"type": "uuid",
|
|
1032
1241
|
"primaryKey": false,
|
|
1033
|
-
"notNull":
|
|
1242
|
+
"notNull": true
|
|
1034
1243
|
},
|
|
1035
|
-
"
|
|
1036
|
-
"name": "
|
|
1037
|
-
"type": "
|
|
1244
|
+
"comment": {
|
|
1245
|
+
"name": "comment",
|
|
1246
|
+
"type": "text",
|
|
1038
1247
|
"primaryKey": false,
|
|
1039
1248
|
"notNull": false
|
|
1040
1249
|
},
|
|
1041
|
-
"request_assignment_task_id": {
|
|
1042
|
-
"name": "request_assignment_task_id",
|
|
1043
|
-
"type": "uuid",
|
|
1044
|
-
"primaryKey": false,
|
|
1045
|
-
"notNull": true
|
|
1046
|
-
},
|
|
1047
1250
|
"revision": {
|
|
1048
1251
|
"name": "revision",
|
|
1049
1252
|
"type": "integer",
|
|
@@ -1078,13 +1281,13 @@
|
|
|
1078
1281
|
},
|
|
1079
1282
|
"indexes": {},
|
|
1080
1283
|
"foreignKeys": {
|
|
1081
|
-
"
|
|
1082
|
-
"name": "
|
|
1083
|
-
"tableFrom": "
|
|
1084
|
-
"tableTo": "
|
|
1284
|
+
"document_request_template_requests_template_id_document_requests_template_id_fk": {
|
|
1285
|
+
"name": "document_request_template_requests_template_id_document_requests_template_id_fk",
|
|
1286
|
+
"tableFrom": "document_request_template",
|
|
1287
|
+
"tableTo": "document_requests_template",
|
|
1085
1288
|
"schemaTo": "document_management",
|
|
1086
1289
|
"columnsFrom": [
|
|
1087
|
-
"
|
|
1290
|
+
"requests_template_id"
|
|
1088
1291
|
],
|
|
1089
1292
|
"columnsTo": [
|
|
1090
1293
|
"id"
|
|
@@ -1092,13 +1295,13 @@
|
|
|
1092
1295
|
"onDelete": "no action",
|
|
1093
1296
|
"onUpdate": "no action"
|
|
1094
1297
|
},
|
|
1095
|
-
"
|
|
1096
|
-
"name": "
|
|
1097
|
-
"tableFrom": "
|
|
1098
|
-
"tableTo": "
|
|
1298
|
+
"document_request_template_type_id_document_type_id_fk": {
|
|
1299
|
+
"name": "document_request_template_type_id_document_type_id_fk",
|
|
1300
|
+
"tableFrom": "document_request_template",
|
|
1301
|
+
"tableTo": "document_type",
|
|
1099
1302
|
"schemaTo": "document_management",
|
|
1100
1303
|
"columnsFrom": [
|
|
1101
|
-
"
|
|
1304
|
+
"type_id"
|
|
1102
1305
|
],
|
|
1103
1306
|
"columnsTo": [
|
|
1104
1307
|
"id"
|
|
@@ -1108,27 +1311,84 @@
|
|
|
1108
1311
|
}
|
|
1109
1312
|
},
|
|
1110
1313
|
"compositePrimaryKeys": {},
|
|
1314
|
+
"uniqueConstraints": {},
|
|
1315
|
+
"policies": {},
|
|
1316
|
+
"checkConstraints": {},
|
|
1317
|
+
"isRLSEnabled": false
|
|
1318
|
+
},
|
|
1319
|
+
"document_management.document_requests_template": {
|
|
1320
|
+
"name": "document_requests_template",
|
|
1321
|
+
"schema": "document_management",
|
|
1322
|
+
"columns": {
|
|
1323
|
+
"id": {
|
|
1324
|
+
"name": "id",
|
|
1325
|
+
"type": "uuid",
|
|
1326
|
+
"primaryKey": true,
|
|
1327
|
+
"notNull": true,
|
|
1328
|
+
"default": "gen_random_uuid()"
|
|
1329
|
+
},
|
|
1330
|
+
"label": {
|
|
1331
|
+
"name": "label",
|
|
1332
|
+
"type": "text",
|
|
1333
|
+
"primaryKey": false,
|
|
1334
|
+
"notNull": true
|
|
1335
|
+
},
|
|
1336
|
+
"description": {
|
|
1337
|
+
"name": "description",
|
|
1338
|
+
"type": "text",
|
|
1339
|
+
"primaryKey": false,
|
|
1340
|
+
"notNull": false
|
|
1341
|
+
},
|
|
1342
|
+
"revision": {
|
|
1343
|
+
"name": "revision",
|
|
1344
|
+
"type": "integer",
|
|
1345
|
+
"primaryKey": false,
|
|
1346
|
+
"notNull": true
|
|
1347
|
+
},
|
|
1348
|
+
"revision_timestamp": {
|
|
1349
|
+
"name": "revision_timestamp",
|
|
1350
|
+
"type": "timestamp with time zone",
|
|
1351
|
+
"primaryKey": false,
|
|
1352
|
+
"notNull": true
|
|
1353
|
+
},
|
|
1354
|
+
"create_timestamp": {
|
|
1355
|
+
"name": "create_timestamp",
|
|
1356
|
+
"type": "timestamp with time zone",
|
|
1357
|
+
"primaryKey": false,
|
|
1358
|
+
"notNull": true
|
|
1359
|
+
},
|
|
1360
|
+
"delete_timestamp": {
|
|
1361
|
+
"name": "delete_timestamp",
|
|
1362
|
+
"type": "timestamp with time zone",
|
|
1363
|
+
"primaryKey": false,
|
|
1364
|
+
"notNull": false
|
|
1365
|
+
},
|
|
1366
|
+
"attributes": {
|
|
1367
|
+
"name": "attributes",
|
|
1368
|
+
"type": "jsonb",
|
|
1369
|
+
"primaryKey": false,
|
|
1370
|
+
"notNull": true,
|
|
1371
|
+
"default": "'{}'::jsonb"
|
|
1372
|
+
}
|
|
1373
|
+
},
|
|
1374
|
+
"indexes": {},
|
|
1375
|
+
"foreignKeys": {},
|
|
1376
|
+
"compositePrimaryKeys": {},
|
|
1111
1377
|
"uniqueConstraints": {
|
|
1112
|
-
"
|
|
1113
|
-
"name": "
|
|
1378
|
+
"document_requests_template_label_unique": {
|
|
1379
|
+
"name": "document_requests_template_label_unique",
|
|
1114
1380
|
"nullsNotDistinct": false,
|
|
1115
1381
|
"columns": [
|
|
1116
|
-
"
|
|
1117
|
-
"property_id"
|
|
1382
|
+
"label"
|
|
1118
1383
|
]
|
|
1119
1384
|
}
|
|
1120
1385
|
},
|
|
1121
1386
|
"policies": {},
|
|
1122
|
-
"checkConstraints": {
|
|
1123
|
-
"only_one_value": {
|
|
1124
|
-
"name": "only_one_value",
|
|
1125
|
-
"value": "num_nonnulls(\"document_management\".\"document_request_assignment_task_property_value\".\"text\", \"document_management\".\"document_request_assignment_task_property_value\".\"integer\", \"document_management\".\"document_request_assignment_task_property_value\".\"decimal\", \"document_management\".\"document_request_assignment_task_property_value\".\"boolean\", \"document_management\".\"document_request_assignment_task_property_value\".\"date\") = 1"
|
|
1126
|
-
}
|
|
1127
|
-
},
|
|
1387
|
+
"checkConstraints": {},
|
|
1128
1388
|
"isRLSEnabled": false
|
|
1129
1389
|
},
|
|
1130
|
-
"document_management.
|
|
1131
|
-
"name": "
|
|
1390
|
+
"document_management.document_type": {
|
|
1391
|
+
"name": "document_type",
|
|
1132
1392
|
"schema": "document_management",
|
|
1133
1393
|
"columns": {
|
|
1134
1394
|
"id": {
|
|
@@ -1138,15 +1398,15 @@
|
|
|
1138
1398
|
"notNull": true,
|
|
1139
1399
|
"default": "gen_random_uuid()"
|
|
1140
1400
|
},
|
|
1141
|
-
"
|
|
1142
|
-
"name": "
|
|
1401
|
+
"category_id": {
|
|
1402
|
+
"name": "category_id",
|
|
1143
1403
|
"type": "uuid",
|
|
1144
1404
|
"primaryKey": false,
|
|
1145
1405
|
"notNull": true
|
|
1146
1406
|
},
|
|
1147
|
-
"
|
|
1148
|
-
"name": "
|
|
1149
|
-
"type": "
|
|
1407
|
+
"label": {
|
|
1408
|
+
"name": "label",
|
|
1409
|
+
"type": "text",
|
|
1150
1410
|
"primaryKey": false,
|
|
1151
1411
|
"notNull": true
|
|
1152
1412
|
},
|
|
@@ -1184,27 +1444,13 @@
|
|
|
1184
1444
|
},
|
|
1185
1445
|
"indexes": {},
|
|
1186
1446
|
"foreignKeys": {
|
|
1187
|
-
"
|
|
1188
|
-
"name": "
|
|
1189
|
-
"tableFrom": "
|
|
1190
|
-
"tableTo": "
|
|
1191
|
-
"schemaTo": "document_management",
|
|
1192
|
-
"columnsFrom": [
|
|
1193
|
-
"request_id"
|
|
1194
|
-
],
|
|
1195
|
-
"columnsTo": [
|
|
1196
|
-
"id"
|
|
1197
|
-
],
|
|
1198
|
-
"onDelete": "no action",
|
|
1199
|
-
"onUpdate": "no action"
|
|
1200
|
-
},
|
|
1201
|
-
"document_request_collection_collection_id_document_collection_id_fk": {
|
|
1202
|
-
"name": "document_request_collection_collection_id_document_collection_id_fk",
|
|
1203
|
-
"tableFrom": "document_request_collection",
|
|
1204
|
-
"tableTo": "document_collection",
|
|
1447
|
+
"document_type_category_id_document_category_id_fk": {
|
|
1448
|
+
"name": "document_type_category_id_document_category_id_fk",
|
|
1449
|
+
"tableFrom": "document_type",
|
|
1450
|
+
"tableTo": "document_category",
|
|
1205
1451
|
"schemaTo": "document_management",
|
|
1206
1452
|
"columnsFrom": [
|
|
1207
|
-
"
|
|
1453
|
+
"category_id"
|
|
1208
1454
|
],
|
|
1209
1455
|
"columnsTo": [
|
|
1210
1456
|
"id"
|
|
@@ -1215,12 +1461,12 @@
|
|
|
1215
1461
|
},
|
|
1216
1462
|
"compositePrimaryKeys": {},
|
|
1217
1463
|
"uniqueConstraints": {
|
|
1218
|
-
"
|
|
1219
|
-
"name": "
|
|
1464
|
+
"document_type_category_id_label_unique": {
|
|
1465
|
+
"name": "document_type_category_id_label_unique",
|
|
1220
1466
|
"nullsNotDistinct": false,
|
|
1221
1467
|
"columns": [
|
|
1222
|
-
"
|
|
1223
|
-
"
|
|
1468
|
+
"category_id",
|
|
1469
|
+
"label"
|
|
1224
1470
|
]
|
|
1225
1471
|
}
|
|
1226
1472
|
},
|
|
@@ -1228,8 +1474,8 @@
|
|
|
1228
1474
|
"checkConstraints": {},
|
|
1229
1475
|
"isRLSEnabled": false
|
|
1230
1476
|
},
|
|
1231
|
-
"document_management.
|
|
1232
|
-
"name": "
|
|
1477
|
+
"document_management.document_type_property": {
|
|
1478
|
+
"name": "document_type_property",
|
|
1233
1479
|
"schema": "document_management",
|
|
1234
1480
|
"columns": {
|
|
1235
1481
|
"id": {
|
|
@@ -1239,78 +1485,18 @@
|
|
|
1239
1485
|
"notNull": true,
|
|
1240
1486
|
"default": "gen_random_uuid()"
|
|
1241
1487
|
},
|
|
1242
|
-
"
|
|
1243
|
-
"name": "
|
|
1488
|
+
"type_id": {
|
|
1489
|
+
"name": "type_id",
|
|
1244
1490
|
"type": "uuid",
|
|
1245
1491
|
"primaryKey": false,
|
|
1246
1492
|
"notNull": true
|
|
1247
1493
|
},
|
|
1248
|
-
"
|
|
1249
|
-
"name": "
|
|
1494
|
+
"property_id": {
|
|
1495
|
+
"name": "property_id",
|
|
1250
1496
|
"type": "uuid",
|
|
1251
1497
|
"primaryKey": false,
|
|
1252
1498
|
"notNull": true
|
|
1253
1499
|
},
|
|
1254
|
-
"title": {
|
|
1255
|
-
"name": "title",
|
|
1256
|
-
"type": "text",
|
|
1257
|
-
"primaryKey": false,
|
|
1258
|
-
"notNull": false
|
|
1259
|
-
},
|
|
1260
|
-
"subtitle": {
|
|
1261
|
-
"name": "subtitle",
|
|
1262
|
-
"type": "text",
|
|
1263
|
-
"primaryKey": false,
|
|
1264
|
-
"notNull": false
|
|
1265
|
-
},
|
|
1266
|
-
"pages": {
|
|
1267
|
-
"name": "pages",
|
|
1268
|
-
"type": "integer",
|
|
1269
|
-
"primaryKey": false,
|
|
1270
|
-
"notNull": false
|
|
1271
|
-
},
|
|
1272
|
-
"date": {
|
|
1273
|
-
"name": "date",
|
|
1274
|
-
"type": "date",
|
|
1275
|
-
"primaryKey": false,
|
|
1276
|
-
"notNull": false
|
|
1277
|
-
},
|
|
1278
|
-
"summary": {
|
|
1279
|
-
"name": "summary",
|
|
1280
|
-
"type": "text",
|
|
1281
|
-
"primaryKey": false,
|
|
1282
|
-
"notNull": false
|
|
1283
|
-
},
|
|
1284
|
-
"tags": {
|
|
1285
|
-
"name": "tags",
|
|
1286
|
-
"type": "text[]",
|
|
1287
|
-
"primaryKey": false,
|
|
1288
|
-
"notNull": false
|
|
1289
|
-
},
|
|
1290
|
-
"created_document_id": {
|
|
1291
|
-
"name": "created_document_id",
|
|
1292
|
-
"type": "uuid",
|
|
1293
|
-
"primaryKey": false,
|
|
1294
|
-
"notNull": false
|
|
1295
|
-
},
|
|
1296
|
-
"approval": {
|
|
1297
|
-
"name": "approval",
|
|
1298
|
-
"type": "boolean",
|
|
1299
|
-
"primaryKey": false,
|
|
1300
|
-
"notNull": false
|
|
1301
|
-
},
|
|
1302
|
-
"approval_comment": {
|
|
1303
|
-
"name": "approval_comment",
|
|
1304
|
-
"type": "text",
|
|
1305
|
-
"primaryKey": false,
|
|
1306
|
-
"notNull": false
|
|
1307
|
-
},
|
|
1308
|
-
"approval_timestamp": {
|
|
1309
|
-
"name": "approval_timestamp",
|
|
1310
|
-
"type": "timestamp with time zone",
|
|
1311
|
-
"primaryKey": false,
|
|
1312
|
-
"notNull": false
|
|
1313
|
-
},
|
|
1314
1500
|
"revision": {
|
|
1315
1501
|
"name": "revision",
|
|
1316
1502
|
"type": "integer",
|
|
@@ -1345,27 +1531,13 @@
|
|
|
1345
1531
|
},
|
|
1346
1532
|
"indexes": {},
|
|
1347
1533
|
"foreignKeys": {
|
|
1348
|
-
"
|
|
1349
|
-
"name": "
|
|
1350
|
-
"tableFrom": "
|
|
1351
|
-
"tableTo": "
|
|
1352
|
-
"schemaTo": "document_management",
|
|
1353
|
-
"columnsFrom": [
|
|
1354
|
-
"request_id"
|
|
1355
|
-
],
|
|
1356
|
-
"columnsTo": [
|
|
1357
|
-
"id"
|
|
1358
|
-
],
|
|
1359
|
-
"onDelete": "no action",
|
|
1360
|
-
"onUpdate": "no action"
|
|
1361
|
-
},
|
|
1362
|
-
"document_request_file_file_id_document_file_id_fk": {
|
|
1363
|
-
"name": "document_request_file_file_id_document_file_id_fk",
|
|
1364
|
-
"tableFrom": "document_request_file",
|
|
1365
|
-
"tableTo": "document_file",
|
|
1534
|
+
"document_type_property_type_id_document_type_id_fk": {
|
|
1535
|
+
"name": "document_type_property_type_id_document_type_id_fk",
|
|
1536
|
+
"tableFrom": "document_type_property",
|
|
1537
|
+
"tableTo": "document_type",
|
|
1366
1538
|
"schemaTo": "document_management",
|
|
1367
1539
|
"columnsFrom": [
|
|
1368
|
-
"
|
|
1540
|
+
"type_id"
|
|
1369
1541
|
],
|
|
1370
1542
|
"columnsTo": [
|
|
1371
1543
|
"id"
|
|
@@ -1373,13 +1545,13 @@
|
|
|
1373
1545
|
"onDelete": "no action",
|
|
1374
1546
|
"onUpdate": "no action"
|
|
1375
1547
|
},
|
|
1376
|
-
"
|
|
1377
|
-
"name": "
|
|
1378
|
-
"tableFrom": "
|
|
1379
|
-
"tableTo": "
|
|
1548
|
+
"document_type_property_property_id_document_property_id_fk": {
|
|
1549
|
+
"name": "document_type_property_property_id_document_property_id_fk",
|
|
1550
|
+
"tableFrom": "document_type_property",
|
|
1551
|
+
"tableTo": "document_property",
|
|
1380
1552
|
"schemaTo": "document_management",
|
|
1381
1553
|
"columnsFrom": [
|
|
1382
|
-
"
|
|
1554
|
+
"property_id"
|
|
1383
1555
|
],
|
|
1384
1556
|
"columnsTo": [
|
|
1385
1557
|
"id"
|
|
@@ -1389,60 +1561,39 @@
|
|
|
1389
1561
|
}
|
|
1390
1562
|
},
|
|
1391
1563
|
"compositePrimaryKeys": {},
|
|
1392
|
-
"uniqueConstraints": {
|
|
1564
|
+
"uniqueConstraints": {
|
|
1565
|
+
"document_type_property_type_id_property_id_unique": {
|
|
1566
|
+
"name": "document_type_property_type_id_property_id_unique",
|
|
1567
|
+
"nullsNotDistinct": false,
|
|
1568
|
+
"columns": [
|
|
1569
|
+
"type_id",
|
|
1570
|
+
"property_id"
|
|
1571
|
+
]
|
|
1572
|
+
}
|
|
1573
|
+
},
|
|
1393
1574
|
"policies": {},
|
|
1394
1575
|
"checkConstraints": {},
|
|
1395
1576
|
"isRLSEnabled": false
|
|
1396
1577
|
},
|
|
1397
|
-
"document_management.
|
|
1398
|
-
"name": "
|
|
1578
|
+
"document_management.document_type_validation": {
|
|
1579
|
+
"name": "document_type_validation",
|
|
1399
1580
|
"schema": "document_management",
|
|
1400
1581
|
"columns": {
|
|
1401
1582
|
"id": {
|
|
1402
1583
|
"name": "id",
|
|
1403
1584
|
"type": "uuid",
|
|
1404
|
-
"primaryKey": true,
|
|
1405
|
-
"notNull": true,
|
|
1406
|
-
"default": "gen_random_uuid()"
|
|
1407
|
-
},
|
|
1408
|
-
"property_id": {
|
|
1409
|
-
"name": "property_id",
|
|
1410
|
-
"type": "uuid",
|
|
1411
|
-
"primaryKey": false,
|
|
1412
|
-
"notNull": true
|
|
1413
|
-
},
|
|
1414
|
-
"text": {
|
|
1415
|
-
"name": "text",
|
|
1416
|
-
"type": "text",
|
|
1417
|
-
"primaryKey": false,
|
|
1418
|
-
"notNull": false
|
|
1419
|
-
},
|
|
1420
|
-
"integer": {
|
|
1421
|
-
"name": "integer",
|
|
1422
|
-
"type": "integer",
|
|
1423
|
-
"primaryKey": false,
|
|
1424
|
-
"notNull": false
|
|
1425
|
-
},
|
|
1426
|
-
"decimal": {
|
|
1427
|
-
"name": "decimal",
|
|
1428
|
-
"type": "double precision",
|
|
1429
|
-
"primaryKey": false,
|
|
1430
|
-
"notNull": false
|
|
1431
|
-
},
|
|
1432
|
-
"boolean": {
|
|
1433
|
-
"name": "boolean",
|
|
1434
|
-
"type": "boolean",
|
|
1435
|
-
"primaryKey": false,
|
|
1436
|
-
"notNull": false
|
|
1585
|
+
"primaryKey": true,
|
|
1586
|
+
"notNull": true,
|
|
1587
|
+
"default": "gen_random_uuid()"
|
|
1437
1588
|
},
|
|
1438
|
-
"
|
|
1439
|
-
"name": "
|
|
1440
|
-
"type": "
|
|
1589
|
+
"type_id": {
|
|
1590
|
+
"name": "type_id",
|
|
1591
|
+
"type": "uuid",
|
|
1441
1592
|
"primaryKey": false,
|
|
1442
|
-
"notNull":
|
|
1593
|
+
"notNull": true
|
|
1443
1594
|
},
|
|
1444
|
-
"
|
|
1445
|
-
"name": "
|
|
1595
|
+
"validation_id": {
|
|
1596
|
+
"name": "validation_id",
|
|
1446
1597
|
"type": "uuid",
|
|
1447
1598
|
"primaryKey": false,
|
|
1448
1599
|
"notNull": true
|
|
@@ -1481,13 +1632,13 @@
|
|
|
1481
1632
|
},
|
|
1482
1633
|
"indexes": {},
|
|
1483
1634
|
"foreignKeys": {
|
|
1484
|
-
"
|
|
1485
|
-
"name": "
|
|
1486
|
-
"tableFrom": "
|
|
1487
|
-
"tableTo": "
|
|
1635
|
+
"document_type_validation_type_id_document_type_id_fk": {
|
|
1636
|
+
"name": "document_type_validation_type_id_document_type_id_fk",
|
|
1637
|
+
"tableFrom": "document_type_validation",
|
|
1638
|
+
"tableTo": "document_type",
|
|
1488
1639
|
"schemaTo": "document_management",
|
|
1489
1640
|
"columnsFrom": [
|
|
1490
|
-
"
|
|
1641
|
+
"type_id"
|
|
1491
1642
|
],
|
|
1492
1643
|
"columnsTo": [
|
|
1493
1644
|
"id"
|
|
@@ -1495,13 +1646,13 @@
|
|
|
1495
1646
|
"onDelete": "no action",
|
|
1496
1647
|
"onUpdate": "no action"
|
|
1497
1648
|
},
|
|
1498
|
-
"
|
|
1499
|
-
"name": "
|
|
1500
|
-
"tableFrom": "
|
|
1501
|
-
"tableTo": "
|
|
1649
|
+
"document_type_validation_validation_id_document_validation_definition_id_fk": {
|
|
1650
|
+
"name": "document_type_validation_validation_id_document_validation_definition_id_fk",
|
|
1651
|
+
"tableFrom": "document_type_validation",
|
|
1652
|
+
"tableTo": "document_validation_definition",
|
|
1502
1653
|
"schemaTo": "document_management",
|
|
1503
1654
|
"columnsFrom": [
|
|
1504
|
-
"
|
|
1655
|
+
"validation_id"
|
|
1505
1656
|
],
|
|
1506
1657
|
"columnsTo": [
|
|
1507
1658
|
"id"
|
|
@@ -1512,26 +1663,21 @@
|
|
|
1512
1663
|
},
|
|
1513
1664
|
"compositePrimaryKeys": {},
|
|
1514
1665
|
"uniqueConstraints": {
|
|
1515
|
-
"
|
|
1516
|
-
"name": "
|
|
1666
|
+
"document_type_validation_type_id_validation_id_unique": {
|
|
1667
|
+
"name": "document_type_validation_type_id_validation_id_unique",
|
|
1517
1668
|
"nullsNotDistinct": false,
|
|
1518
1669
|
"columns": [
|
|
1519
|
-
"
|
|
1520
|
-
"
|
|
1670
|
+
"type_id",
|
|
1671
|
+
"validation_id"
|
|
1521
1672
|
]
|
|
1522
1673
|
}
|
|
1523
1674
|
},
|
|
1524
1675
|
"policies": {},
|
|
1525
|
-
"checkConstraints": {
|
|
1526
|
-
"only_one_value": {
|
|
1527
|
-
"name": "only_one_value",
|
|
1528
|
-
"value": "num_nonnulls(\"document_management\".\"document_request_file_property_value\".\"text\", \"document_management\".\"document_request_file_property_value\".\"integer\", \"document_management\".\"document_request_file_property_value\".\"decimal\", \"document_management\".\"document_request_file_property_value\".\"boolean\", \"document_management\".\"document_request_file_property_value\".\"date\") = 1"
|
|
1529
|
-
}
|
|
1530
|
-
},
|
|
1676
|
+
"checkConstraints": {},
|
|
1531
1677
|
"isRLSEnabled": false
|
|
1532
1678
|
},
|
|
1533
|
-
"document_management.
|
|
1534
|
-
"name": "
|
|
1679
|
+
"document_management.document_validation_definition": {
|
|
1680
|
+
"name": "document_validation_definition",
|
|
1535
1681
|
"schema": "document_management",
|
|
1536
1682
|
"columns": {
|
|
1537
1683
|
"id": {
|
|
@@ -1541,30 +1687,30 @@
|
|
|
1541
1687
|
"notNull": true,
|
|
1542
1688
|
"default": "gen_random_uuid()"
|
|
1543
1689
|
},
|
|
1544
|
-
"
|
|
1545
|
-
"name": "
|
|
1546
|
-
"type": "
|
|
1690
|
+
"identifier": {
|
|
1691
|
+
"name": "identifier",
|
|
1692
|
+
"type": "text",
|
|
1547
1693
|
"primaryKey": false,
|
|
1548
1694
|
"notNull": true
|
|
1549
1695
|
},
|
|
1550
|
-
"
|
|
1551
|
-
"name": "
|
|
1552
|
-
"type": "
|
|
1553
|
-
"primaryKey": false,
|
|
1554
|
-
"notNull": false
|
|
1555
|
-
},
|
|
1556
|
-
"required_files_count": {
|
|
1557
|
-
"name": "required_files_count",
|
|
1558
|
-
"type": "integer",
|
|
1696
|
+
"label": {
|
|
1697
|
+
"name": "label",
|
|
1698
|
+
"type": "text",
|
|
1559
1699
|
"primaryKey": false,
|
|
1560
1700
|
"notNull": true
|
|
1561
1701
|
},
|
|
1562
|
-
"
|
|
1563
|
-
"name": "
|
|
1702
|
+
"description": {
|
|
1703
|
+
"name": "description",
|
|
1564
1704
|
"type": "text",
|
|
1565
1705
|
"primaryKey": false,
|
|
1566
1706
|
"notNull": false
|
|
1567
1707
|
},
|
|
1708
|
+
"configuration": {
|
|
1709
|
+
"name": "configuration",
|
|
1710
|
+
"type": "jsonb",
|
|
1711
|
+
"primaryKey": false,
|
|
1712
|
+
"notNull": true
|
|
1713
|
+
},
|
|
1568
1714
|
"revision": {
|
|
1569
1715
|
"name": "revision",
|
|
1570
1716
|
"type": "integer",
|
|
@@ -1598,44 +1744,15 @@
|
|
|
1598
1744
|
}
|
|
1599
1745
|
},
|
|
1600
1746
|
"indexes": {},
|
|
1601
|
-
"foreignKeys": {
|
|
1602
|
-
"document_request_template_requests_template_id_document_requests_template_id_fk": {
|
|
1603
|
-
"name": "document_request_template_requests_template_id_document_requests_template_id_fk",
|
|
1604
|
-
"tableFrom": "document_request_template",
|
|
1605
|
-
"tableTo": "document_requests_template",
|
|
1606
|
-
"schemaTo": "document_management",
|
|
1607
|
-
"columnsFrom": [
|
|
1608
|
-
"requests_template_id"
|
|
1609
|
-
],
|
|
1610
|
-
"columnsTo": [
|
|
1611
|
-
"id"
|
|
1612
|
-
],
|
|
1613
|
-
"onDelete": "no action",
|
|
1614
|
-
"onUpdate": "no action"
|
|
1615
|
-
},
|
|
1616
|
-
"document_request_template_type_id_document_type_id_fk": {
|
|
1617
|
-
"name": "document_request_template_type_id_document_type_id_fk",
|
|
1618
|
-
"tableFrom": "document_request_template",
|
|
1619
|
-
"tableTo": "document_type",
|
|
1620
|
-
"schemaTo": "document_management",
|
|
1621
|
-
"columnsFrom": [
|
|
1622
|
-
"type_id"
|
|
1623
|
-
],
|
|
1624
|
-
"columnsTo": [
|
|
1625
|
-
"id"
|
|
1626
|
-
],
|
|
1627
|
-
"onDelete": "no action",
|
|
1628
|
-
"onUpdate": "no action"
|
|
1629
|
-
}
|
|
1630
|
-
},
|
|
1747
|
+
"foreignKeys": {},
|
|
1631
1748
|
"compositePrimaryKeys": {},
|
|
1632
1749
|
"uniqueConstraints": {},
|
|
1633
1750
|
"policies": {},
|
|
1634
1751
|
"checkConstraints": {},
|
|
1635
1752
|
"isRLSEnabled": false
|
|
1636
1753
|
},
|
|
1637
|
-
"document_management.
|
|
1638
|
-
"name": "
|
|
1754
|
+
"document_management.document_validation_execution": {
|
|
1755
|
+
"name": "document_validation_execution",
|
|
1639
1756
|
"schema": "document_management",
|
|
1640
1757
|
"columns": {
|
|
1641
1758
|
"id": {
|
|
@@ -1645,18 +1762,50 @@
|
|
|
1645
1762
|
"notNull": true,
|
|
1646
1763
|
"default": "gen_random_uuid()"
|
|
1647
1764
|
},
|
|
1648
|
-
"
|
|
1649
|
-
"name": "
|
|
1650
|
-
"type": "
|
|
1765
|
+
"workflow_id": {
|
|
1766
|
+
"name": "workflow_id",
|
|
1767
|
+
"type": "uuid",
|
|
1651
1768
|
"primaryKey": false,
|
|
1652
1769
|
"notNull": true
|
|
1653
1770
|
},
|
|
1654
|
-
"
|
|
1655
|
-
"name": "
|
|
1771
|
+
"definition_id": {
|
|
1772
|
+
"name": "definition_id",
|
|
1773
|
+
"type": "uuid",
|
|
1774
|
+
"primaryKey": false,
|
|
1775
|
+
"notNull": true
|
|
1776
|
+
},
|
|
1777
|
+
"state": {
|
|
1778
|
+
"name": "state",
|
|
1779
|
+
"type": "document_validation_execution_state",
|
|
1780
|
+
"typeSchema": "document_management",
|
|
1781
|
+
"primaryKey": false,
|
|
1782
|
+
"notNull": true
|
|
1783
|
+
},
|
|
1784
|
+
"result_status": {
|
|
1785
|
+
"name": "result_status",
|
|
1786
|
+
"type": "document_validation_result_status",
|
|
1787
|
+
"typeSchema": "document_management",
|
|
1788
|
+
"primaryKey": false,
|
|
1789
|
+
"notNull": false
|
|
1790
|
+
},
|
|
1791
|
+
"result_message": {
|
|
1792
|
+
"name": "result_message",
|
|
1656
1793
|
"type": "text",
|
|
1657
1794
|
"primaryKey": false,
|
|
1658
1795
|
"notNull": false
|
|
1659
1796
|
},
|
|
1797
|
+
"started_at": {
|
|
1798
|
+
"name": "started_at",
|
|
1799
|
+
"type": "timestamp with time zone",
|
|
1800
|
+
"primaryKey": false,
|
|
1801
|
+
"notNull": false
|
|
1802
|
+
},
|
|
1803
|
+
"completed_at": {
|
|
1804
|
+
"name": "completed_at",
|
|
1805
|
+
"type": "timestamp with time zone",
|
|
1806
|
+
"primaryKey": false,
|
|
1807
|
+
"notNull": false
|
|
1808
|
+
},
|
|
1660
1809
|
"revision": {
|
|
1661
1810
|
"name": "revision",
|
|
1662
1811
|
"type": "integer",
|
|
@@ -1690,14 +1839,44 @@
|
|
|
1690
1839
|
}
|
|
1691
1840
|
},
|
|
1692
1841
|
"indexes": {},
|
|
1693
|
-
"foreignKeys": {
|
|
1842
|
+
"foreignKeys": {
|
|
1843
|
+
"document_validation_execution_workflow_id_document_workflow_id_fk": {
|
|
1844
|
+
"name": "document_validation_execution_workflow_id_document_workflow_id_fk",
|
|
1845
|
+
"tableFrom": "document_validation_execution",
|
|
1846
|
+
"tableTo": "document_workflow",
|
|
1847
|
+
"schemaTo": "document_management",
|
|
1848
|
+
"columnsFrom": [
|
|
1849
|
+
"workflow_id"
|
|
1850
|
+
],
|
|
1851
|
+
"columnsTo": [
|
|
1852
|
+
"id"
|
|
1853
|
+
],
|
|
1854
|
+
"onDelete": "no action",
|
|
1855
|
+
"onUpdate": "no action"
|
|
1856
|
+
},
|
|
1857
|
+
"document_validation_execution_definition_id_document_validation_definition_id_fk": {
|
|
1858
|
+
"name": "document_validation_execution_definition_id_document_validation_definition_id_fk",
|
|
1859
|
+
"tableFrom": "document_validation_execution",
|
|
1860
|
+
"tableTo": "document_validation_definition",
|
|
1861
|
+
"schemaTo": "document_management",
|
|
1862
|
+
"columnsFrom": [
|
|
1863
|
+
"definition_id"
|
|
1864
|
+
],
|
|
1865
|
+
"columnsTo": [
|
|
1866
|
+
"id"
|
|
1867
|
+
],
|
|
1868
|
+
"onDelete": "no action",
|
|
1869
|
+
"onUpdate": "no action"
|
|
1870
|
+
}
|
|
1871
|
+
},
|
|
1694
1872
|
"compositePrimaryKeys": {},
|
|
1695
1873
|
"uniqueConstraints": {
|
|
1696
|
-
"
|
|
1697
|
-
"name": "
|
|
1874
|
+
"document_validation_execution_workflow_id_definition_id_unique": {
|
|
1875
|
+
"name": "document_validation_execution_workflow_id_definition_id_unique",
|
|
1698
1876
|
"nullsNotDistinct": false,
|
|
1699
1877
|
"columns": [
|
|
1700
|
-
"
|
|
1878
|
+
"workflow_id",
|
|
1879
|
+
"definition_id"
|
|
1701
1880
|
]
|
|
1702
1881
|
}
|
|
1703
1882
|
},
|
|
@@ -1705,8 +1884,8 @@
|
|
|
1705
1884
|
"checkConstraints": {},
|
|
1706
1885
|
"isRLSEnabled": false
|
|
1707
1886
|
},
|
|
1708
|
-
"document_management.
|
|
1709
|
-
"name": "
|
|
1887
|
+
"document_management.document_validation_execution_related_document": {
|
|
1888
|
+
"name": "document_validation_execution_related_document",
|
|
1710
1889
|
"schema": "document_management",
|
|
1711
1890
|
"columns": {
|
|
1712
1891
|
"id": {
|
|
@@ -1716,21 +1895,15 @@
|
|
|
1716
1895
|
"notNull": true,
|
|
1717
1896
|
"default": "gen_random_uuid()"
|
|
1718
1897
|
},
|
|
1719
|
-
"
|
|
1720
|
-
"name": "
|
|
1898
|
+
"execution_id": {
|
|
1899
|
+
"name": "execution_id",
|
|
1721
1900
|
"type": "uuid",
|
|
1722
1901
|
"primaryKey": false,
|
|
1723
1902
|
"notNull": true
|
|
1724
1903
|
},
|
|
1725
|
-
"
|
|
1726
|
-
"name": "
|
|
1727
|
-
"type": "
|
|
1728
|
-
"primaryKey": false,
|
|
1729
|
-
"notNull": false
|
|
1730
|
-
},
|
|
1731
|
-
"label": {
|
|
1732
|
-
"name": "label",
|
|
1733
|
-
"type": "text",
|
|
1904
|
+
"document_id": {
|
|
1905
|
+
"name": "document_id",
|
|
1906
|
+
"type": "uuid",
|
|
1734
1907
|
"primaryKey": false,
|
|
1735
1908
|
"notNull": true
|
|
1736
1909
|
},
|
|
@@ -1768,13 +1941,27 @@
|
|
|
1768
1941
|
},
|
|
1769
1942
|
"indexes": {},
|
|
1770
1943
|
"foreignKeys": {
|
|
1771
|
-
"
|
|
1772
|
-
"name": "
|
|
1773
|
-
"tableFrom": "
|
|
1774
|
-
"tableTo": "
|
|
1944
|
+
"document_validation_execution_related_document_execution_id_document_validation_execution_id_fk": {
|
|
1945
|
+
"name": "document_validation_execution_related_document_execution_id_document_validation_execution_id_fk",
|
|
1946
|
+
"tableFrom": "document_validation_execution_related_document",
|
|
1947
|
+
"tableTo": "document_validation_execution",
|
|
1775
1948
|
"schemaTo": "document_management",
|
|
1776
1949
|
"columnsFrom": [
|
|
1777
|
-
"
|
|
1950
|
+
"execution_id"
|
|
1951
|
+
],
|
|
1952
|
+
"columnsTo": [
|
|
1953
|
+
"id"
|
|
1954
|
+
],
|
|
1955
|
+
"onDelete": "no action",
|
|
1956
|
+
"onUpdate": "no action"
|
|
1957
|
+
},
|
|
1958
|
+
"document_validation_execution_related_document_document_id_document_id_fk": {
|
|
1959
|
+
"name": "document_validation_execution_related_document_document_id_document_id_fk",
|
|
1960
|
+
"tableFrom": "document_validation_execution_related_document",
|
|
1961
|
+
"tableTo": "document",
|
|
1962
|
+
"schemaTo": "document_management",
|
|
1963
|
+
"columnsFrom": [
|
|
1964
|
+
"document_id"
|
|
1778
1965
|
],
|
|
1779
1966
|
"columnsTo": [
|
|
1780
1967
|
"id"
|
|
@@ -1785,12 +1972,12 @@
|
|
|
1785
1972
|
},
|
|
1786
1973
|
"compositePrimaryKeys": {},
|
|
1787
1974
|
"uniqueConstraints": {
|
|
1788
|
-
"
|
|
1789
|
-
"name": "
|
|
1975
|
+
"dverd_execution_id_document_id_unique": {
|
|
1976
|
+
"name": "dverd_execution_id_document_id_unique",
|
|
1790
1977
|
"nullsNotDistinct": false,
|
|
1791
1978
|
"columns": [
|
|
1792
|
-
"
|
|
1793
|
-
"
|
|
1979
|
+
"execution_id",
|
|
1980
|
+
"document_id"
|
|
1794
1981
|
]
|
|
1795
1982
|
}
|
|
1796
1983
|
},
|
|
@@ -1798,8 +1985,8 @@
|
|
|
1798
1985
|
"checkConstraints": {},
|
|
1799
1986
|
"isRLSEnabled": false
|
|
1800
1987
|
},
|
|
1801
|
-
"document_management.
|
|
1802
|
-
"name": "
|
|
1988
|
+
"document_management.document_workflow": {
|
|
1989
|
+
"name": "document_workflow",
|
|
1803
1990
|
"schema": "document_management",
|
|
1804
1991
|
"columns": {
|
|
1805
1992
|
"id": {
|
|
@@ -1809,18 +1996,39 @@
|
|
|
1809
1996
|
"notNull": true,
|
|
1810
1997
|
"default": "gen_random_uuid()"
|
|
1811
1998
|
},
|
|
1812
|
-
"
|
|
1813
|
-
"name": "
|
|
1999
|
+
"document_id": {
|
|
2000
|
+
"name": "document_id",
|
|
1814
2001
|
"type": "uuid",
|
|
1815
2002
|
"primaryKey": false,
|
|
1816
2003
|
"notNull": true
|
|
1817
2004
|
},
|
|
1818
|
-
"
|
|
1819
|
-
"name": "
|
|
1820
|
-
"type": "
|
|
2005
|
+
"step": {
|
|
2006
|
+
"name": "step",
|
|
2007
|
+
"type": "document_workflow_step",
|
|
2008
|
+
"typeSchema": "document_management",
|
|
2009
|
+
"primaryKey": false,
|
|
2010
|
+
"notNull": true
|
|
2011
|
+
},
|
|
2012
|
+
"state": {
|
|
2013
|
+
"name": "state",
|
|
2014
|
+
"type": "document_workflow_state",
|
|
2015
|
+
"typeSchema": "document_management",
|
|
1821
2016
|
"primaryKey": false,
|
|
1822
2017
|
"notNull": true
|
|
1823
2018
|
},
|
|
2019
|
+
"fail_reason": {
|
|
2020
|
+
"name": "fail_reason",
|
|
2021
|
+
"type": "document_workflow_fail_reason",
|
|
2022
|
+
"typeSchema": "document_management",
|
|
2023
|
+
"primaryKey": false,
|
|
2024
|
+
"notNull": false
|
|
2025
|
+
},
|
|
2026
|
+
"complete_user_id": {
|
|
2027
|
+
"name": "complete_user_id",
|
|
2028
|
+
"type": "uuid",
|
|
2029
|
+
"primaryKey": false,
|
|
2030
|
+
"notNull": false
|
|
2031
|
+
},
|
|
1824
2032
|
"revision": {
|
|
1825
2033
|
"name": "revision",
|
|
1826
2034
|
"type": "integer",
|
|
@@ -1853,29 +2061,32 @@
|
|
|
1853
2061
|
"default": "'{}'::jsonb"
|
|
1854
2062
|
}
|
|
1855
2063
|
},
|
|
1856
|
-
"indexes": {
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
"
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
"columnsTo": [
|
|
1867
|
-
"id"
|
|
2064
|
+
"indexes": {
|
|
2065
|
+
"document_workflow_document_id_idx": {
|
|
2066
|
+
"name": "document_workflow_document_id_idx",
|
|
2067
|
+
"columns": [
|
|
2068
|
+
{
|
|
2069
|
+
"expression": "document_id",
|
|
2070
|
+
"isExpression": false,
|
|
2071
|
+
"asc": true,
|
|
2072
|
+
"nulls": "last"
|
|
2073
|
+
}
|
|
1868
2074
|
],
|
|
1869
|
-
"
|
|
1870
|
-
"
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
"
|
|
1874
|
-
|
|
1875
|
-
|
|
2075
|
+
"isUnique": true,
|
|
2076
|
+
"where": "\"document_management\".\"document_workflow\".\"state\" <> 'completed'",
|
|
2077
|
+
"concurrently": false,
|
|
2078
|
+
"method": "btree",
|
|
2079
|
+
"with": {}
|
|
2080
|
+
}
|
|
2081
|
+
},
|
|
2082
|
+
"foreignKeys": {
|
|
2083
|
+
"document_workflow_document_id_document_id_fk": {
|
|
2084
|
+
"name": "document_workflow_document_id_document_id_fk",
|
|
2085
|
+
"tableFrom": "document_workflow",
|
|
2086
|
+
"tableTo": "document",
|
|
1876
2087
|
"schemaTo": "document_management",
|
|
1877
2088
|
"columnsFrom": [
|
|
1878
|
-
"
|
|
2089
|
+
"document_id"
|
|
1879
2090
|
],
|
|
1880
2091
|
"columnsTo": [
|
|
1881
2092
|
"id"
|
|
@@ -1885,22 +2096,30 @@
|
|
|
1885
2096
|
}
|
|
1886
2097
|
},
|
|
1887
2098
|
"compositePrimaryKeys": {},
|
|
1888
|
-
"uniqueConstraints": {
|
|
1889
|
-
"document_type_property_type_id_property_id_unique": {
|
|
1890
|
-
"name": "document_type_property_type_id_property_id_unique",
|
|
1891
|
-
"nullsNotDistinct": false,
|
|
1892
|
-
"columns": [
|
|
1893
|
-
"type_id",
|
|
1894
|
-
"property_id"
|
|
1895
|
-
]
|
|
1896
|
-
}
|
|
1897
|
-
},
|
|
2099
|
+
"uniqueConstraints": {},
|
|
1898
2100
|
"policies": {},
|
|
1899
2101
|
"checkConstraints": {},
|
|
1900
2102
|
"isRLSEnabled": false
|
|
1901
2103
|
}
|
|
1902
2104
|
},
|
|
1903
2105
|
"enums": {
|
|
2106
|
+
"document_management.document_approval": {
|
|
2107
|
+
"name": "document_approval",
|
|
2108
|
+
"schema": "document_management",
|
|
2109
|
+
"values": [
|
|
2110
|
+
"pending",
|
|
2111
|
+
"approved",
|
|
2112
|
+
"rejected"
|
|
2113
|
+
]
|
|
2114
|
+
},
|
|
2115
|
+
"document_management.document_assignment_target": {
|
|
2116
|
+
"name": "document_assignment_target",
|
|
2117
|
+
"schema": "document_management",
|
|
2118
|
+
"values": [
|
|
2119
|
+
"collection",
|
|
2120
|
+
"request"
|
|
2121
|
+
]
|
|
2122
|
+
},
|
|
1904
2123
|
"document_management.document_property_data_type": {
|
|
1905
2124
|
"name": "document_property_data_type",
|
|
1906
2125
|
"schema": "document_management",
|
|
@@ -1911,6 +2130,63 @@
|
|
|
1911
2130
|
"boolean",
|
|
1912
2131
|
"date"
|
|
1913
2132
|
]
|
|
2133
|
+
},
|
|
2134
|
+
"document_management.document_request_state": {
|
|
2135
|
+
"name": "document_request_state",
|
|
2136
|
+
"schema": "document_management",
|
|
2137
|
+
"values": [
|
|
2138
|
+
"open",
|
|
2139
|
+
"fulfilled",
|
|
2140
|
+
"closed"
|
|
2141
|
+
]
|
|
2142
|
+
},
|
|
2143
|
+
"document_management.document_validation_execution_state": {
|
|
2144
|
+
"name": "document_validation_execution_state",
|
|
2145
|
+
"schema": "document_management",
|
|
2146
|
+
"values": [
|
|
2147
|
+
"pending",
|
|
2148
|
+
"running",
|
|
2149
|
+
"completed",
|
|
2150
|
+
"error"
|
|
2151
|
+
]
|
|
2152
|
+
},
|
|
2153
|
+
"document_management.document_validation_result_status": {
|
|
2154
|
+
"name": "document_validation_result_status",
|
|
2155
|
+
"schema": "document_management",
|
|
2156
|
+
"values": [
|
|
2157
|
+
"passed",
|
|
2158
|
+
"failed",
|
|
2159
|
+
"warning"
|
|
2160
|
+
]
|
|
2161
|
+
},
|
|
2162
|
+
"document_management.document_workflow_fail_reason": {
|
|
2163
|
+
"name": "document_workflow_fail_reason",
|
|
2164
|
+
"schema": "document_management",
|
|
2165
|
+
"values": [
|
|
2166
|
+
"no-suitable-collection",
|
|
2167
|
+
"no-suitable-request"
|
|
2168
|
+
]
|
|
2169
|
+
},
|
|
2170
|
+
"document_management.document_workflow_state": {
|
|
2171
|
+
"name": "document_workflow_state",
|
|
2172
|
+
"schema": "document_management",
|
|
2173
|
+
"values": [
|
|
2174
|
+
"pending",
|
|
2175
|
+
"running",
|
|
2176
|
+
"completed",
|
|
2177
|
+
"error",
|
|
2178
|
+
"failed"
|
|
2179
|
+
]
|
|
2180
|
+
},
|
|
2181
|
+
"document_management.document_workflow_step": {
|
|
2182
|
+
"name": "document_workflow_step",
|
|
2183
|
+
"schema": "document_management",
|
|
2184
|
+
"values": [
|
|
2185
|
+
"classification",
|
|
2186
|
+
"extraction",
|
|
2187
|
+
"assignment",
|
|
2188
|
+
"validation"
|
|
2189
|
+
]
|
|
1914
2190
|
}
|
|
1915
2191
|
},
|
|
1916
2192
|
"schemas": {},
|