@tstdl/base 0.91.50 → 0.91.52

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