@redocly/revel-reef 0.130.0-next.1 → 0.130.0-next.3

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 (67) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/dist/bin.js +1 -1
  3. package/dist/cli/eject/resolveEjectParams.js +1 -1
  4. package/dist/cli/stats/collectors/openapi.d.ts +3 -0
  5. package/dist/cli/stats/collectors/openapi.js +1 -0
  6. package/dist/cli/stats/index.d.ts +7 -0
  7. package/dist/cli/stats/index.js +1 -0
  8. package/dist/cli/stats/options.d.ts +3 -0
  9. package/dist/cli/stats/options.js +1 -0
  10. package/dist/cli/telemetry/index.d.ts +1 -1
  11. package/dist/cli/telemetry/index.js +1 -1
  12. package/dist/client/app/Sidebar/Sidebar.js +1 -1
  13. package/dist/server/fs/cache.js +1 -1
  14. package/dist/server/plugins/catalog-entities/database/catalog-entities-service.d.ts +2 -2
  15. package/dist/server/plugins/catalog-entities/database/catalog-entities-service.js +1 -1
  16. package/dist/server/plugins/catalog-entities/database/mappers/create-entity-attributes-db-record.d.ts +8 -0
  17. package/dist/server/plugins/catalog-entities/database/mappers/create-entity-attributes-db-record.js +1 -0
  18. package/dist/server/plugins/catalog-entities/database/mappers/create-entity-read-model.js +1 -1
  19. package/dist/server/plugins/catalog-entities/database/mappers/map-entity-relation-row.js +1 -1
  20. package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-bff-repository.d.ts +2 -2
  21. package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-bff-repository.js +14 -14
  22. package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-read-repository.d.ts +2 -2
  23. package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-read-repository.js +5 -3
  24. package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-repository.d.ts +2 -2
  25. package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-repository.js +1 -1
  26. package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-write-repository.d.ts +2 -1
  27. package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-write-repository.js +1 -1
  28. package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-relations-repository.js +1 -1
  29. package/dist/server/plugins/catalog-entities/database/repositories/remote/catalog-entities-remote-repository.js +1 -1
  30. package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/arazzo-entities-extractor.js +1 -1
  31. package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/asyncapi-entities-extractor.js +1 -1
  32. package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/base.d.ts +4 -3
  33. package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/base.js +1 -1
  34. package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/graphql-entities-extractor.js +2 -2
  35. package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/openapi-entities-extractor.d.ts +1 -1
  36. package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/openapi-entities-extractor.js +1 -1
  37. package/dist/server/plugins/catalog-entities/get-server-props.js +1 -1
  38. package/dist/server/plugins/catalog-entities/plugin.js +1 -1
  39. package/dist/server/plugins/catalog-entities/schemas/database-schemas.d.ts +3 -0
  40. package/dist/server/plugins/catalog-entities/schemas/database-schemas.js +1 -1
  41. package/dist/server/plugins/catalog-entities/schemas/dto-schemas.d.ts +12 -0
  42. package/dist/server/plugins/catalog-entities/schemas/dto-schemas.js +1 -1
  43. package/dist/server/plugins/catalog-entities/schemas/read-model-schemas.d.ts +1 -0
  44. package/dist/server/plugins/catalog-entities/types/extractors.d.ts +4 -4
  45. package/dist/server/plugins/config-parser/loaders/content-slugs-loader.js +1 -1
  46. package/dist/server/plugins/default-theme/index.js +1 -1
  47. package/dist/server/plugins/openapi-docs/index.js +1 -1
  48. package/dist/server/plugins/search/ai-indexer/prepare-ai-search-documents.js +1 -1
  49. package/dist/server/plugins/search/documents/search-documents.js +1 -1
  50. package/dist/server/plugins/sso/index.js +1 -1
  51. package/dist/server/providers/database/databases/catalog-sqlite/migrations/0005_catalog-relations-constraint-fix.sql +2 -0
  52. package/dist/server/providers/database/databases/catalog-sqlite/migrations/0006_add-catalog-entitities-attributes-table.sql +11 -0
  53. package/dist/server/providers/database/databases/catalog-sqlite/migrations/meta/0005_snapshot.json +393 -0
  54. package/dist/server/providers/database/databases/catalog-sqlite/migrations/meta/0006_snapshot.json +458 -0
  55. package/dist/server/providers/database/databases/catalog-sqlite/migrations/meta/_journal.json +14 -0
  56. package/dist/server/providers/database/databases/catalog-sqlite/schemas/entities-attributes-table.d.ts +143 -0
  57. package/dist/server/providers/database/databases/catalog-sqlite/schemas/entities-attributes-table.js +1 -0
  58. package/dist/server/providers/database/databases/catalog-sqlite/schemas/entities-relations-table.js +1 -1
  59. package/dist/server/providers/database/databases/sqld-sqlite/migrations/0007_catalog-relations-constraint-fix.sql +2 -0
  60. package/dist/server/providers/database/databases/sqld-sqlite/migrations/0008_add-catalog-entitities-attributes-table.sql +11 -0
  61. package/dist/server/providers/database/databases/sqld-sqlite/migrations/meta/0007_snapshot.json +833 -0
  62. package/dist/server/providers/database/databases/sqld-sqlite/migrations/meta/0008_snapshot.json +898 -0
  63. package/dist/server/providers/database/databases/sqld-sqlite/migrations/meta/_journal.json +14 -0
  64. package/dist/server/utils/rbac.d.ts +11 -7
  65. package/dist/server/utils/rbac.js +1 -1
  66. package/dist/server/web-server/routes/catalog/bff-catalog.js +1 -1
  67. package/package.json +7 -7
@@ -0,0 +1,898 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "61e68696-8d19-45f8-9fcf-e4a8b6a8f5e8",
5
+ "prevId": "231f919e-47d9-4b0e-bfc3-badbf072d4ac",
6
+ "tables": {
7
+ "kv": {
8
+ "name": "kv",
9
+ "columns": {
10
+ "encoded_key": {
11
+ "name": "encoded_key",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "value": {
18
+ "name": "value",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "expires_at": {
25
+ "name": "expires_at",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": false,
29
+ "autoincrement": false
30
+ },
31
+ "created_at": {
32
+ "name": "created_at",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": true,
36
+ "autoincrement": false
37
+ },
38
+ "updated_at": {
39
+ "name": "updated_at",
40
+ "type": "text",
41
+ "primaryKey": false,
42
+ "notNull": true,
43
+ "autoincrement": false
44
+ }
45
+ },
46
+ "indexes": {
47
+ "idx_kv_encoded_key": {
48
+ "name": "idx_kv_encoded_key",
49
+ "columns": ["encoded_key"],
50
+ "isUnique": false
51
+ },
52
+ "idx_kv_expires_at": {
53
+ "name": "idx_kv_expires_at",
54
+ "columns": ["expires_at"],
55
+ "isUnique": false
56
+ },
57
+ "idx_kv_encoded_key_expires_at": {
58
+ "name": "idx_kv_encoded_key_expires_at",
59
+ "columns": ["encoded_key", "expires_at"],
60
+ "isUnique": false
61
+ }
62
+ },
63
+ "foreignKeys": {},
64
+ "compositePrimaryKeys": {},
65
+ "uniqueConstraints": {},
66
+ "checkConstraints": {}
67
+ },
68
+ "scorecards_evaluation_runs": {
69
+ "name": "scorecards_evaluation_runs",
70
+ "columns": {
71
+ "id": {
72
+ "name": "id",
73
+ "type": "text",
74
+ "primaryKey": true,
75
+ "notNull": true,
76
+ "autoincrement": false
77
+ },
78
+ "config_id": {
79
+ "name": "config_id",
80
+ "type": "text",
81
+ "primaryKey": false,
82
+ "notNull": true,
83
+ "autoincrement": false
84
+ },
85
+ "evaluated_at": {
86
+ "name": "evaluated_at",
87
+ "type": "integer",
88
+ "primaryKey": false,
89
+ "notNull": true,
90
+ "autoincrement": false
91
+ },
92
+ "entities_checked": {
93
+ "name": "entities_checked",
94
+ "type": "integer",
95
+ "primaryKey": false,
96
+ "notNull": true,
97
+ "autoincrement": false
98
+ },
99
+ "entities_changed": {
100
+ "name": "entities_changed",
101
+ "type": "integer",
102
+ "primaryKey": false,
103
+ "notNull": true,
104
+ "autoincrement": false
105
+ },
106
+ "duration_ms": {
107
+ "name": "duration_ms",
108
+ "type": "integer",
109
+ "primaryKey": false,
110
+ "notNull": false,
111
+ "autoincrement": false
112
+ },
113
+ "status": {
114
+ "name": "status",
115
+ "type": "text",
116
+ "primaryKey": false,
117
+ "notNull": true,
118
+ "autoincrement": false
119
+ },
120
+ "error_message": {
121
+ "name": "error_message",
122
+ "type": "text",
123
+ "primaryKey": false,
124
+ "notNull": false,
125
+ "autoincrement": false
126
+ },
127
+ "entity_id": {
128
+ "name": "entity_id",
129
+ "type": "text",
130
+ "primaryKey": false,
131
+ "notNull": false,
132
+ "autoincrement": false
133
+ }
134
+ },
135
+ "indexes": {
136
+ "idx_runs_config_time": {
137
+ "name": "idx_runs_config_time",
138
+ "columns": ["config_id", "evaluated_at"],
139
+ "isUnique": false
140
+ }
141
+ },
142
+ "foreignKeys": {},
143
+ "compositePrimaryKeys": {},
144
+ "uniqueConstraints": {},
145
+ "checkConstraints": {}
146
+ },
147
+ "scorecards_level_results": {
148
+ "name": "scorecards_level_results",
149
+ "columns": {
150
+ "id": {
151
+ "name": "id",
152
+ "type": "text",
153
+ "primaryKey": true,
154
+ "notNull": true,
155
+ "autoincrement": false
156
+ },
157
+ "result_id": {
158
+ "name": "result_id",
159
+ "type": "text",
160
+ "primaryKey": false,
161
+ "notNull": true,
162
+ "autoincrement": false
163
+ },
164
+ "level_name": {
165
+ "name": "level_name",
166
+ "type": "text",
167
+ "primaryKey": false,
168
+ "notNull": true,
169
+ "autoincrement": false
170
+ },
171
+ "score": {
172
+ "name": "score",
173
+ "type": "integer",
174
+ "primaryKey": false,
175
+ "notNull": true,
176
+ "autoincrement": false
177
+ },
178
+ "passed_rules": {
179
+ "name": "passed_rules",
180
+ "type": "integer",
181
+ "primaryKey": false,
182
+ "notNull": true,
183
+ "autoincrement": false
184
+ },
185
+ "failed_rules": {
186
+ "name": "failed_rules",
187
+ "type": "integer",
188
+ "primaryKey": false,
189
+ "notNull": true,
190
+ "autoincrement": false
191
+ },
192
+ "total_rules": {
193
+ "name": "total_rules",
194
+ "type": "integer",
195
+ "primaryKey": false,
196
+ "notNull": true,
197
+ "autoincrement": false
198
+ },
199
+ "rule_summary": {
200
+ "name": "rule_summary",
201
+ "type": "text",
202
+ "primaryKey": false,
203
+ "notNull": false,
204
+ "autoincrement": false
205
+ }
206
+ },
207
+ "indexes": {
208
+ "idx_level_results_result": {
209
+ "name": "idx_level_results_result",
210
+ "columns": ["result_id"],
211
+ "isUnique": false
212
+ },
213
+ "idx_level_results_level": {
214
+ "name": "idx_level_results_level",
215
+ "columns": ["level_name"],
216
+ "isUnique": false
217
+ },
218
+ "idx_level_results_result_level": {
219
+ "name": "idx_level_results_result_level",
220
+ "columns": ["result_id", "level_name"],
221
+ "isUnique": false
222
+ }
223
+ },
224
+ "foreignKeys": {},
225
+ "compositePrimaryKeys": {},
226
+ "uniqueConstraints": {},
227
+ "checkConstraints": {}
228
+ },
229
+ "scorecards_levels_rules_results": {
230
+ "name": "scorecards_levels_rules_results",
231
+ "columns": {
232
+ "id": {
233
+ "name": "id",
234
+ "type": "text",
235
+ "primaryKey": true,
236
+ "notNull": true,
237
+ "autoincrement": false
238
+ },
239
+ "level_score_id": {
240
+ "name": "level_score_id",
241
+ "type": "text",
242
+ "primaryKey": false,
243
+ "notNull": true,
244
+ "autoincrement": false
245
+ },
246
+ "rule_id": {
247
+ "name": "rule_id",
248
+ "type": "text",
249
+ "primaryKey": false,
250
+ "notNull": true,
251
+ "autoincrement": false
252
+ }
253
+ },
254
+ "indexes": {
255
+ "idx_rule_problems_level_score_rule": {
256
+ "name": "idx_rule_problems_level_score_rule",
257
+ "columns": ["level_score_id", "rule_id"],
258
+ "isUnique": true
259
+ },
260
+ "idx_rule_problems_level_score": {
261
+ "name": "idx_rule_problems_level_score",
262
+ "columns": ["level_score_id"],
263
+ "isUnique": false
264
+ },
265
+ "idx_rule_problems_rule": {
266
+ "name": "idx_rule_problems_rule",
267
+ "columns": ["rule_id"],
268
+ "isUnique": false
269
+ }
270
+ },
271
+ "foreignKeys": {},
272
+ "compositePrimaryKeys": {},
273
+ "uniqueConstraints": {},
274
+ "checkConstraints": {}
275
+ },
276
+ "scorecards_results": {
277
+ "name": "scorecards_results",
278
+ "columns": {
279
+ "id": {
280
+ "name": "id",
281
+ "type": "text",
282
+ "primaryKey": true,
283
+ "notNull": true,
284
+ "autoincrement": false
285
+ },
286
+ "entity_id": {
287
+ "name": "entity_id",
288
+ "type": "text",
289
+ "primaryKey": false,
290
+ "notNull": true,
291
+ "autoincrement": false
292
+ },
293
+ "config_id": {
294
+ "name": "config_id",
295
+ "type": "text",
296
+ "primaryKey": false,
297
+ "notNull": true,
298
+ "autoincrement": false
299
+ },
300
+ "created_at": {
301
+ "name": "created_at",
302
+ "type": "integer",
303
+ "primaryKey": false,
304
+ "notNull": true,
305
+ "autoincrement": false
306
+ },
307
+ "evaluated_at": {
308
+ "name": "evaluated_at",
309
+ "type": "integer",
310
+ "primaryKey": false,
311
+ "notNull": true,
312
+ "autoincrement": false
313
+ },
314
+ "final_score": {
315
+ "name": "final_score",
316
+ "type": "integer",
317
+ "primaryKey": false,
318
+ "notNull": true,
319
+ "autoincrement": false
320
+ },
321
+ "final_level": {
322
+ "name": "final_level",
323
+ "type": "text",
324
+ "primaryKey": false,
325
+ "notNull": false,
326
+ "autoincrement": false
327
+ },
328
+ "evaluated_rules": {
329
+ "name": "evaluated_rules",
330
+ "type": "text",
331
+ "primaryKey": false,
332
+ "notNull": true,
333
+ "autoincrement": false
334
+ },
335
+ "rules_config_hash": {
336
+ "name": "rules_config_hash",
337
+ "type": "text",
338
+ "primaryKey": false,
339
+ "notNull": true,
340
+ "autoincrement": false
341
+ },
342
+ "entity_version": {
343
+ "name": "entity_version",
344
+ "type": "text",
345
+ "primaryKey": false,
346
+ "notNull": true,
347
+ "autoincrement": false
348
+ },
349
+ "entity_revision": {
350
+ "name": "entity_revision",
351
+ "type": "text",
352
+ "primaryKey": false,
353
+ "notNull": false,
354
+ "autoincrement": false
355
+ }
356
+ },
357
+ "indexes": {
358
+ "idx_results_lookup": {
359
+ "name": "idx_results_lookup",
360
+ "columns": ["entity_id", "config_id", "created_at"],
361
+ "isUnique": true
362
+ },
363
+ "idx_results_config_time": {
364
+ "name": "idx_results_config_time",
365
+ "columns": ["config_id", "created_at"],
366
+ "isUnique": false
367
+ },
368
+ "idx_results_entity": {
369
+ "name": "idx_results_entity",
370
+ "columns": ["entity_id", "created_at"],
371
+ "isUnique": false
372
+ },
373
+ "idx_results_config_entity_time": {
374
+ "name": "idx_results_config_entity_time",
375
+ "columns": ["config_id", "entity_id", "created_at"],
376
+ "isUnique": false
377
+ }
378
+ },
379
+ "foreignKeys": {},
380
+ "compositePrimaryKeys": {},
381
+ "uniqueConstraints": {},
382
+ "checkConstraints": {}
383
+ },
384
+ "scorecards_rule_results": {
385
+ "name": "scorecards_rule_results",
386
+ "columns": {
387
+ "id": {
388
+ "name": "id",
389
+ "type": "text",
390
+ "primaryKey": true,
391
+ "notNull": true,
392
+ "autoincrement": false
393
+ },
394
+ "rule_name": {
395
+ "name": "rule_name",
396
+ "type": "text",
397
+ "primaryKey": false,
398
+ "notNull": true,
399
+ "autoincrement": false
400
+ },
401
+ "problems_hash": {
402
+ "name": "problems_hash",
403
+ "type": "text",
404
+ "primaryKey": false,
405
+ "notNull": true,
406
+ "autoincrement": false
407
+ },
408
+ "state": {
409
+ "name": "state",
410
+ "type": "text",
411
+ "primaryKey": false,
412
+ "notNull": true,
413
+ "autoincrement": false
414
+ },
415
+ "problems": {
416
+ "name": "problems",
417
+ "type": "text",
418
+ "primaryKey": false,
419
+ "notNull": false,
420
+ "autoincrement": false
421
+ },
422
+ "first_seen_at": {
423
+ "name": "first_seen_at",
424
+ "type": "integer",
425
+ "primaryKey": false,
426
+ "notNull": true,
427
+ "autoincrement": false
428
+ }
429
+ },
430
+ "indexes": {
431
+ "idx_rules_name_hash": {
432
+ "name": "idx_rules_name_hash",
433
+ "columns": ["rule_name", "problems_hash"],
434
+ "isUnique": true
435
+ },
436
+ "idx_rules_state": {
437
+ "name": "idx_rules_state",
438
+ "columns": ["state"],
439
+ "isUnique": false
440
+ }
441
+ },
442
+ "foreignKeys": {},
443
+ "compositePrimaryKeys": {},
444
+ "uniqueConstraints": {},
445
+ "checkConstraints": {}
446
+ },
447
+ "entities_attributes": {
448
+ "name": "entities_attributes",
449
+ "columns": {
450
+ "id": {
451
+ "name": "id",
452
+ "type": "text",
453
+ "primaryKey": true,
454
+ "notNull": true,
455
+ "autoincrement": false
456
+ },
457
+ "organization_id": {
458
+ "name": "organization_id",
459
+ "type": "text",
460
+ "primaryKey": false,
461
+ "notNull": true,
462
+ "autoincrement": false
463
+ },
464
+ "project_id": {
465
+ "name": "project_id",
466
+ "type": "text",
467
+ "primaryKey": false,
468
+ "notNull": true,
469
+ "autoincrement": false
470
+ },
471
+ "entity_key": {
472
+ "name": "entity_key",
473
+ "type": "text",
474
+ "primaryKey": false,
475
+ "notNull": true,
476
+ "autoincrement": false
477
+ },
478
+ "rbac_teams": {
479
+ "name": "rbac_teams",
480
+ "type": "text",
481
+ "primaryKey": false,
482
+ "notNull": false,
483
+ "autoincrement": false
484
+ },
485
+ "created_at": {
486
+ "name": "created_at",
487
+ "type": "text",
488
+ "primaryKey": false,
489
+ "notNull": true,
490
+ "autoincrement": false
491
+ },
492
+ "updated_at": {
493
+ "name": "updated_at",
494
+ "type": "text",
495
+ "primaryKey": false,
496
+ "notNull": true,
497
+ "autoincrement": false
498
+ }
499
+ },
500
+ "indexes": {
501
+ "idx_entities_attributes_key": {
502
+ "name": "idx_entities_attributes_key",
503
+ "columns": ["entity_key"],
504
+ "isUnique": true
505
+ }
506
+ },
507
+ "foreignKeys": {},
508
+ "compositePrimaryKeys": {},
509
+ "uniqueConstraints": {},
510
+ "checkConstraints": {}
511
+ },
512
+ "entities_relations": {
513
+ "name": "entities_relations",
514
+ "columns": {
515
+ "id": {
516
+ "name": "id",
517
+ "type": "text",
518
+ "primaryKey": true,
519
+ "notNull": true,
520
+ "autoincrement": false
521
+ },
522
+ "organization_id": {
523
+ "name": "organization_id",
524
+ "type": "text",
525
+ "primaryKey": false,
526
+ "notNull": true,
527
+ "autoincrement": false
528
+ },
529
+ "project_id": {
530
+ "name": "project_id",
531
+ "type": "text",
532
+ "primaryKey": false,
533
+ "notNull": true,
534
+ "autoincrement": false
535
+ },
536
+ "source_key": {
537
+ "name": "source_key",
538
+ "type": "text",
539
+ "primaryKey": false,
540
+ "notNull": true,
541
+ "autoincrement": false
542
+ },
543
+ "source_version": {
544
+ "name": "source_version",
545
+ "type": "text",
546
+ "primaryKey": false,
547
+ "notNull": true,
548
+ "autoincrement": false,
549
+ "default": "''"
550
+ },
551
+ "source_revision": {
552
+ "name": "source_revision",
553
+ "type": "text",
554
+ "primaryKey": false,
555
+ "notNull": true,
556
+ "autoincrement": false,
557
+ "default": "''"
558
+ },
559
+ "source_to_target_relation": {
560
+ "name": "source_to_target_relation",
561
+ "type": "text",
562
+ "primaryKey": false,
563
+ "notNull": true,
564
+ "autoincrement": false
565
+ },
566
+ "target_key": {
567
+ "name": "target_key",
568
+ "type": "text",
569
+ "primaryKey": false,
570
+ "notNull": true,
571
+ "autoincrement": false
572
+ },
573
+ "target_version": {
574
+ "name": "target_version",
575
+ "type": "text",
576
+ "primaryKey": false,
577
+ "notNull": true,
578
+ "autoincrement": false,
579
+ "default": "''"
580
+ },
581
+ "target_revision": {
582
+ "name": "target_revision",
583
+ "type": "text",
584
+ "primaryKey": false,
585
+ "notNull": true,
586
+ "autoincrement": false,
587
+ "default": "''"
588
+ },
589
+ "target_to_source_relation": {
590
+ "name": "target_to_source_relation",
591
+ "type": "text",
592
+ "primaryKey": false,
593
+ "notNull": true,
594
+ "autoincrement": false
595
+ },
596
+ "source_file": {
597
+ "name": "source_file",
598
+ "type": "text",
599
+ "primaryKey": false,
600
+ "notNull": false,
601
+ "autoincrement": false
602
+ },
603
+ "file_hash": {
604
+ "name": "file_hash",
605
+ "type": "text",
606
+ "primaryKey": false,
607
+ "notNull": false,
608
+ "autoincrement": false
609
+ },
610
+ "is_deleted": {
611
+ "name": "is_deleted",
612
+ "type": "integer",
613
+ "primaryKey": false,
614
+ "notNull": false,
615
+ "autoincrement": false,
616
+ "default": false
617
+ },
618
+ "created_at": {
619
+ "name": "created_at",
620
+ "type": "text",
621
+ "primaryKey": false,
622
+ "notNull": true,
623
+ "autoincrement": false
624
+ },
625
+ "updated_at": {
626
+ "name": "updated_at",
627
+ "type": "text",
628
+ "primaryKey": false,
629
+ "notNull": true,
630
+ "autoincrement": false
631
+ }
632
+ },
633
+ "indexes": {
634
+ "idx_entities_relations_source_key": {
635
+ "name": "idx_entities_relations_source_key",
636
+ "columns": ["source_key", "is_deleted"],
637
+ "isUnique": false
638
+ },
639
+ "idx_entities_relations_target_key": {
640
+ "name": "idx_entities_relations_target_key",
641
+ "columns": ["target_key", "is_deleted"],
642
+ "isUnique": false
643
+ },
644
+ "idx_entities_relations_source_target": {
645
+ "name": "idx_entities_relations_source_target",
646
+ "columns": ["source_to_target_relation"],
647
+ "isUnique": false
648
+ },
649
+ "idx_entities_relations_target_source": {
650
+ "name": "idx_entities_relations_target_source",
651
+ "columns": ["target_to_source_relation"],
652
+ "isUnique": false
653
+ },
654
+ "idx_entities_relations_unique": {
655
+ "name": "idx_entities_relations_unique",
656
+ "columns": [
657
+ "source_key",
658
+ "target_key",
659
+ "source_version",
660
+ "target_version",
661
+ "source_revision",
662
+ "target_revision",
663
+ "source_to_target_relation"
664
+ ],
665
+ "isUnique": true
666
+ }
667
+ },
668
+ "foreignKeys": {},
669
+ "compositePrimaryKeys": {},
670
+ "uniqueConstraints": {},
671
+ "checkConstraints": {}
672
+ },
673
+ "entities": {
674
+ "name": "entities",
675
+ "columns": {
676
+ "id": {
677
+ "name": "id",
678
+ "type": "text",
679
+ "primaryKey": true,
680
+ "notNull": true,
681
+ "autoincrement": false
682
+ },
683
+ "organization_id": {
684
+ "name": "organization_id",
685
+ "type": "text",
686
+ "primaryKey": false,
687
+ "notNull": true,
688
+ "autoincrement": false
689
+ },
690
+ "project_id": {
691
+ "name": "project_id",
692
+ "type": "text",
693
+ "primaryKey": false,
694
+ "notNull": true,
695
+ "autoincrement": false
696
+ },
697
+ "key": {
698
+ "name": "key",
699
+ "type": "text",
700
+ "primaryKey": false,
701
+ "notNull": true,
702
+ "autoincrement": false
703
+ },
704
+ "type": {
705
+ "name": "type",
706
+ "type": "text",
707
+ "primaryKey": false,
708
+ "notNull": true,
709
+ "autoincrement": false
710
+ },
711
+ "title": {
712
+ "name": "title",
713
+ "type": "text",
714
+ "primaryKey": false,
715
+ "notNull": true,
716
+ "autoincrement": false
717
+ },
718
+ "summary": {
719
+ "name": "summary",
720
+ "type": "text",
721
+ "primaryKey": false,
722
+ "notNull": false,
723
+ "autoincrement": false
724
+ },
725
+ "tags": {
726
+ "name": "tags",
727
+ "type": "text",
728
+ "primaryKey": false,
729
+ "notNull": false,
730
+ "autoincrement": false
731
+ },
732
+ "metadata": {
733
+ "name": "metadata",
734
+ "type": "text",
735
+ "primaryKey": false,
736
+ "notNull": false,
737
+ "autoincrement": false
738
+ },
739
+ "git": {
740
+ "name": "git",
741
+ "type": "text",
742
+ "primaryKey": false,
743
+ "notNull": false,
744
+ "autoincrement": false
745
+ },
746
+ "contact": {
747
+ "name": "contact",
748
+ "type": "text",
749
+ "primaryKey": false,
750
+ "notNull": false,
751
+ "autoincrement": false
752
+ },
753
+ "links": {
754
+ "name": "links",
755
+ "type": "text",
756
+ "primaryKey": false,
757
+ "notNull": false,
758
+ "autoincrement": false
759
+ },
760
+ "created_at": {
761
+ "name": "created_at",
762
+ "type": "text",
763
+ "primaryKey": false,
764
+ "notNull": true,
765
+ "autoincrement": false
766
+ },
767
+ "updated_at": {
768
+ "name": "updated_at",
769
+ "type": "text",
770
+ "primaryKey": false,
771
+ "notNull": true,
772
+ "autoincrement": false
773
+ },
774
+ "source": {
775
+ "name": "source",
776
+ "type": "text",
777
+ "primaryKey": false,
778
+ "notNull": false,
779
+ "autoincrement": false,
780
+ "default": "'file'"
781
+ },
782
+ "source_file": {
783
+ "name": "source_file",
784
+ "type": "text",
785
+ "primaryKey": false,
786
+ "notNull": false,
787
+ "autoincrement": false
788
+ },
789
+ "file_hash": {
790
+ "name": "file_hash",
791
+ "type": "text",
792
+ "primaryKey": false,
793
+ "notNull": false,
794
+ "autoincrement": false
795
+ },
796
+ "version": {
797
+ "name": "version",
798
+ "type": "text",
799
+ "primaryKey": false,
800
+ "notNull": true,
801
+ "autoincrement": false,
802
+ "default": "'not_specified_version'"
803
+ },
804
+ "revision": {
805
+ "name": "revision",
806
+ "type": "text",
807
+ "primaryKey": false,
808
+ "notNull": true,
809
+ "autoincrement": false
810
+ },
811
+ "hash": {
812
+ "name": "hash",
813
+ "type": "text",
814
+ "primaryKey": false,
815
+ "notNull": false,
816
+ "autoincrement": false
817
+ },
818
+ "is_current": {
819
+ "name": "is_current",
820
+ "type": "integer",
821
+ "primaryKey": false,
822
+ "notNull": false,
823
+ "autoincrement": false,
824
+ "default": true
825
+ },
826
+ "is_default_version": {
827
+ "name": "is_default_version",
828
+ "type": "integer",
829
+ "primaryKey": false,
830
+ "notNull": false,
831
+ "autoincrement": false,
832
+ "default": false
833
+ },
834
+ "is_deleted": {
835
+ "name": "is_deleted",
836
+ "type": "integer",
837
+ "primaryKey": false,
838
+ "notNull": false,
839
+ "autoincrement": false,
840
+ "default": false
841
+ },
842
+ "scorecards_status": {
843
+ "name": "scorecards_status",
844
+ "type": "text",
845
+ "primaryKey": false,
846
+ "notNull": false,
847
+ "autoincrement": false
848
+ }
849
+ },
850
+ "indexes": {
851
+ "idx_entities_type": {
852
+ "name": "idx_entities_type",
853
+ "columns": ["type"],
854
+ "isUnique": false
855
+ },
856
+ "idx_entities_hash": {
857
+ "name": "idx_entities_hash",
858
+ "columns": ["hash"],
859
+ "isUnique": false
860
+ },
861
+ "idx_entities_key_source_created_at": {
862
+ "name": "idx_entities_key_source_created_at",
863
+ "columns": ["key", "created_at"],
864
+ "isUnique": false
865
+ },
866
+ "idx_entities_key_source_is_current": {
867
+ "name": "idx_entities_key_source_is_current",
868
+ "columns": ["key", "is_current", "is_deleted"],
869
+ "isUnique": false
870
+ },
871
+ "idx_entities_key_source_is_default": {
872
+ "name": "idx_entities_key_source_is_default",
873
+ "columns": ["key", "is_default_version"],
874
+ "isUnique": false
875
+ },
876
+ "idx_entities_key_source": {
877
+ "name": "idx_entities_key_source",
878
+ "columns": ["key", "source", "revision", "version"],
879
+ "isUnique": true
880
+ }
881
+ },
882
+ "foreignKeys": {},
883
+ "compositePrimaryKeys": {},
884
+ "uniqueConstraints": {},
885
+ "checkConstraints": {}
886
+ }
887
+ },
888
+ "views": {},
889
+ "enums": {},
890
+ "_meta": {
891
+ "schemas": {},
892
+ "tables": {},
893
+ "columns": {}
894
+ },
895
+ "internal": {
896
+ "indexes": {}
897
+ }
898
+ }