@redocly/revel-reef 0.130.0-next.0 → 0.130.0-next.2

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 (35) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/bin.js +1 -1
  3. package/dist/cli/stats/collectors/openapi.d.ts +3 -0
  4. package/dist/cli/stats/collectors/openapi.js +1 -0
  5. package/dist/cli/stats/index.d.ts +7 -0
  6. package/dist/cli/stats/index.js +1 -0
  7. package/dist/cli/stats/options.d.ts +3 -0
  8. package/dist/cli/stats/options.js +1 -0
  9. package/dist/cli/telemetry/index.d.ts +1 -1
  10. package/dist/cli/telemetry/index.js +1 -1
  11. package/dist/client/app/Sidebar/Sidebar.js +1 -1
  12. package/dist/server/fs/cache.js +1 -1
  13. package/dist/server/plugins/asyncapi-docs/get-server-props.js +1 -1
  14. package/dist/server/plugins/asyncapi-docs/index.js +1 -1
  15. package/dist/server/plugins/catalog-entities/database/mappers/map-entity-relation-row.js +1 -1
  16. package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-read-repository.js +5 -3
  17. package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-write-repository.js +1 -1
  18. package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-relations-repository.js +1 -1
  19. package/dist/server/plugins/catalog-entities/database/repositories/remote/catalog-entities-remote-repository.js +1 -1
  20. package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/base.js +1 -1
  21. package/dist/server/plugins/markdown/compiler.d.ts +1 -0
  22. package/dist/server/plugins/markdown/compiler.js +1 -1
  23. package/dist/server/plugins/openapi-docs/get-server-props.js +1 -1
  24. package/dist/server/plugins/openapi-docs/index.js +1 -1
  25. package/dist/server/providers/database/databases/catalog-sqlite/migrations/0005_catalog-relations-constraint-fix.sql +2 -0
  26. package/dist/server/providers/database/databases/catalog-sqlite/migrations/meta/0005_snapshot.json +393 -0
  27. package/dist/server/providers/database/databases/catalog-sqlite/migrations/meta/_journal.json +7 -0
  28. package/dist/server/providers/database/databases/catalog-sqlite/schemas/entities-relations-table.js +1 -1
  29. package/dist/server/providers/database/databases/sqld-sqlite/migrations/0007_catalog-relations-constraint-fix.sql +2 -0
  30. package/dist/server/providers/database/databases/sqld-sqlite/migrations/meta/0007_snapshot.json +833 -0
  31. package/dist/server/providers/database/databases/sqld-sqlite/migrations/meta/_journal.json +7 -0
  32. package/dist/server/store.d.ts +6 -2
  33. package/dist/server/store.js +1 -1
  34. package/dist/server/types/plugins/common.d.ts +1 -0
  35. package/package.json +6 -6
@@ -0,0 +1,833 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "231f919e-47d9-4b0e-bfc3-badbf072d4ac",
5
+ "prevId": "5e2096a5-8ac8-446b-ae89-a750cb978876",
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_relations": {
448
+ "name": "entities_relations",
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
+ "source_key": {
472
+ "name": "source_key",
473
+ "type": "text",
474
+ "primaryKey": false,
475
+ "notNull": true,
476
+ "autoincrement": false
477
+ },
478
+ "source_version": {
479
+ "name": "source_version",
480
+ "type": "text",
481
+ "primaryKey": false,
482
+ "notNull": true,
483
+ "autoincrement": false,
484
+ "default": "''"
485
+ },
486
+ "source_revision": {
487
+ "name": "source_revision",
488
+ "type": "text",
489
+ "primaryKey": false,
490
+ "notNull": true,
491
+ "autoincrement": false,
492
+ "default": "''"
493
+ },
494
+ "source_to_target_relation": {
495
+ "name": "source_to_target_relation",
496
+ "type": "text",
497
+ "primaryKey": false,
498
+ "notNull": true,
499
+ "autoincrement": false
500
+ },
501
+ "target_key": {
502
+ "name": "target_key",
503
+ "type": "text",
504
+ "primaryKey": false,
505
+ "notNull": true,
506
+ "autoincrement": false
507
+ },
508
+ "target_version": {
509
+ "name": "target_version",
510
+ "type": "text",
511
+ "primaryKey": false,
512
+ "notNull": true,
513
+ "autoincrement": false,
514
+ "default": "''"
515
+ },
516
+ "target_revision": {
517
+ "name": "target_revision",
518
+ "type": "text",
519
+ "primaryKey": false,
520
+ "notNull": true,
521
+ "autoincrement": false,
522
+ "default": "''"
523
+ },
524
+ "target_to_source_relation": {
525
+ "name": "target_to_source_relation",
526
+ "type": "text",
527
+ "primaryKey": false,
528
+ "notNull": true,
529
+ "autoincrement": false
530
+ },
531
+ "source_file": {
532
+ "name": "source_file",
533
+ "type": "text",
534
+ "primaryKey": false,
535
+ "notNull": false,
536
+ "autoincrement": false
537
+ },
538
+ "file_hash": {
539
+ "name": "file_hash",
540
+ "type": "text",
541
+ "primaryKey": false,
542
+ "notNull": false,
543
+ "autoincrement": false
544
+ },
545
+ "is_deleted": {
546
+ "name": "is_deleted",
547
+ "type": "integer",
548
+ "primaryKey": false,
549
+ "notNull": false,
550
+ "autoincrement": false,
551
+ "default": false
552
+ },
553
+ "created_at": {
554
+ "name": "created_at",
555
+ "type": "text",
556
+ "primaryKey": false,
557
+ "notNull": true,
558
+ "autoincrement": false
559
+ },
560
+ "updated_at": {
561
+ "name": "updated_at",
562
+ "type": "text",
563
+ "primaryKey": false,
564
+ "notNull": true,
565
+ "autoincrement": false
566
+ }
567
+ },
568
+ "indexes": {
569
+ "idx_entities_relations_source_key": {
570
+ "name": "idx_entities_relations_source_key",
571
+ "columns": ["source_key", "is_deleted"],
572
+ "isUnique": false
573
+ },
574
+ "idx_entities_relations_target_key": {
575
+ "name": "idx_entities_relations_target_key",
576
+ "columns": ["target_key", "is_deleted"],
577
+ "isUnique": false
578
+ },
579
+ "idx_entities_relations_source_target": {
580
+ "name": "idx_entities_relations_source_target",
581
+ "columns": ["source_to_target_relation"],
582
+ "isUnique": false
583
+ },
584
+ "idx_entities_relations_target_source": {
585
+ "name": "idx_entities_relations_target_source",
586
+ "columns": ["target_to_source_relation"],
587
+ "isUnique": false
588
+ },
589
+ "idx_entities_relations_unique": {
590
+ "name": "idx_entities_relations_unique",
591
+ "columns": [
592
+ "source_key",
593
+ "target_key",
594
+ "source_version",
595
+ "target_version",
596
+ "source_revision",
597
+ "target_revision",
598
+ "source_to_target_relation"
599
+ ],
600
+ "isUnique": true
601
+ }
602
+ },
603
+ "foreignKeys": {},
604
+ "compositePrimaryKeys": {},
605
+ "uniqueConstraints": {},
606
+ "checkConstraints": {}
607
+ },
608
+ "entities": {
609
+ "name": "entities",
610
+ "columns": {
611
+ "id": {
612
+ "name": "id",
613
+ "type": "text",
614
+ "primaryKey": true,
615
+ "notNull": true,
616
+ "autoincrement": false
617
+ },
618
+ "organization_id": {
619
+ "name": "organization_id",
620
+ "type": "text",
621
+ "primaryKey": false,
622
+ "notNull": true,
623
+ "autoincrement": false
624
+ },
625
+ "project_id": {
626
+ "name": "project_id",
627
+ "type": "text",
628
+ "primaryKey": false,
629
+ "notNull": true,
630
+ "autoincrement": false
631
+ },
632
+ "key": {
633
+ "name": "key",
634
+ "type": "text",
635
+ "primaryKey": false,
636
+ "notNull": true,
637
+ "autoincrement": false
638
+ },
639
+ "type": {
640
+ "name": "type",
641
+ "type": "text",
642
+ "primaryKey": false,
643
+ "notNull": true,
644
+ "autoincrement": false
645
+ },
646
+ "title": {
647
+ "name": "title",
648
+ "type": "text",
649
+ "primaryKey": false,
650
+ "notNull": true,
651
+ "autoincrement": false
652
+ },
653
+ "summary": {
654
+ "name": "summary",
655
+ "type": "text",
656
+ "primaryKey": false,
657
+ "notNull": false,
658
+ "autoincrement": false
659
+ },
660
+ "tags": {
661
+ "name": "tags",
662
+ "type": "text",
663
+ "primaryKey": false,
664
+ "notNull": false,
665
+ "autoincrement": false
666
+ },
667
+ "metadata": {
668
+ "name": "metadata",
669
+ "type": "text",
670
+ "primaryKey": false,
671
+ "notNull": false,
672
+ "autoincrement": false
673
+ },
674
+ "git": {
675
+ "name": "git",
676
+ "type": "text",
677
+ "primaryKey": false,
678
+ "notNull": false,
679
+ "autoincrement": false
680
+ },
681
+ "contact": {
682
+ "name": "contact",
683
+ "type": "text",
684
+ "primaryKey": false,
685
+ "notNull": false,
686
+ "autoincrement": false
687
+ },
688
+ "links": {
689
+ "name": "links",
690
+ "type": "text",
691
+ "primaryKey": false,
692
+ "notNull": false,
693
+ "autoincrement": false
694
+ },
695
+ "created_at": {
696
+ "name": "created_at",
697
+ "type": "text",
698
+ "primaryKey": false,
699
+ "notNull": true,
700
+ "autoincrement": false
701
+ },
702
+ "updated_at": {
703
+ "name": "updated_at",
704
+ "type": "text",
705
+ "primaryKey": false,
706
+ "notNull": true,
707
+ "autoincrement": false
708
+ },
709
+ "source": {
710
+ "name": "source",
711
+ "type": "text",
712
+ "primaryKey": false,
713
+ "notNull": false,
714
+ "autoincrement": false,
715
+ "default": "'file'"
716
+ },
717
+ "source_file": {
718
+ "name": "source_file",
719
+ "type": "text",
720
+ "primaryKey": false,
721
+ "notNull": false,
722
+ "autoincrement": false
723
+ },
724
+ "file_hash": {
725
+ "name": "file_hash",
726
+ "type": "text",
727
+ "primaryKey": false,
728
+ "notNull": false,
729
+ "autoincrement": false
730
+ },
731
+ "version": {
732
+ "name": "version",
733
+ "type": "text",
734
+ "primaryKey": false,
735
+ "notNull": true,
736
+ "autoincrement": false,
737
+ "default": "'not_specified_version'"
738
+ },
739
+ "revision": {
740
+ "name": "revision",
741
+ "type": "text",
742
+ "primaryKey": false,
743
+ "notNull": true,
744
+ "autoincrement": false
745
+ },
746
+ "hash": {
747
+ "name": "hash",
748
+ "type": "text",
749
+ "primaryKey": false,
750
+ "notNull": false,
751
+ "autoincrement": false
752
+ },
753
+ "is_current": {
754
+ "name": "is_current",
755
+ "type": "integer",
756
+ "primaryKey": false,
757
+ "notNull": false,
758
+ "autoincrement": false,
759
+ "default": true
760
+ },
761
+ "is_default_version": {
762
+ "name": "is_default_version",
763
+ "type": "integer",
764
+ "primaryKey": false,
765
+ "notNull": false,
766
+ "autoincrement": false,
767
+ "default": false
768
+ },
769
+ "is_deleted": {
770
+ "name": "is_deleted",
771
+ "type": "integer",
772
+ "primaryKey": false,
773
+ "notNull": false,
774
+ "autoincrement": false,
775
+ "default": false
776
+ },
777
+ "scorecards_status": {
778
+ "name": "scorecards_status",
779
+ "type": "text",
780
+ "primaryKey": false,
781
+ "notNull": false,
782
+ "autoincrement": false
783
+ }
784
+ },
785
+ "indexes": {
786
+ "idx_entities_type": {
787
+ "name": "idx_entities_type",
788
+ "columns": ["type"],
789
+ "isUnique": false
790
+ },
791
+ "idx_entities_hash": {
792
+ "name": "idx_entities_hash",
793
+ "columns": ["hash"],
794
+ "isUnique": false
795
+ },
796
+ "idx_entities_key_source_created_at": {
797
+ "name": "idx_entities_key_source_created_at",
798
+ "columns": ["key", "created_at"],
799
+ "isUnique": false
800
+ },
801
+ "idx_entities_key_source_is_current": {
802
+ "name": "idx_entities_key_source_is_current",
803
+ "columns": ["key", "is_current", "is_deleted"],
804
+ "isUnique": false
805
+ },
806
+ "idx_entities_key_source_is_default": {
807
+ "name": "idx_entities_key_source_is_default",
808
+ "columns": ["key", "is_default_version"],
809
+ "isUnique": false
810
+ },
811
+ "idx_entities_key_source": {
812
+ "name": "idx_entities_key_source",
813
+ "columns": ["key", "source", "revision", "version"],
814
+ "isUnique": true
815
+ }
816
+ },
817
+ "foreignKeys": {},
818
+ "compositePrimaryKeys": {},
819
+ "uniqueConstraints": {},
820
+ "checkConstraints": {}
821
+ }
822
+ },
823
+ "views": {},
824
+ "enums": {},
825
+ "_meta": {
826
+ "schemas": {},
827
+ "tables": {},
828
+ "columns": {}
829
+ },
830
+ "internal": {
831
+ "indexes": {}
832
+ }
833
+ }