From 769ce01c28230d387f31a62b3864cdde6eff5112 Mon Sep 17 00:00:00 2001 From: yevhenii-moroziuk Date: Wed, 16 Apr 2025 20:56:58 +0300 Subject: [PATCH] HCK-10812: Refine Alternate keys in other RDMS targets --- central_pane/style.json | 16 ++ .../entity_level/entityLevelConfig.json | 7 + .../field_level/fieldLevelConfig.json | 234 ++++++++++++++++++ 3 files changed, 257 insertions(+) diff --git a/central_pane/style.json b/central_pane/style.json index 65f099fc..02401687 100644 --- a/central_pane/style.json +++ b/central_pane/style.json @@ -3,5 +3,21 @@ "erd": { "width": 300 } + }, + "field": { + "erd": [ + "keys", + "type", + "indexes", + { + "value": "AK", + "orderingNumbersBy": ["uniqueKey", "compositeUniqueKey"], + "dependency": { + "key": "alternateKey", + "value": true + }, + "width": 16 + } + ] } } diff --git a/properties_pane/entity_level/entityLevelConfig.json b/properties_pane/entity_level/entityLevelConfig.json index 77ad45df..aa17914b 100644 --- a/properties_pane/entity_level/entityLevelConfig.json +++ b/properties_pane/entity_level/entityLevelConfig.json @@ -973,6 +973,13 @@ making sure that you maintain a proper JSON format. "template": "collectiontree", "isCompositeKey": true, "abbr": " " + }, + { + "propertyName": "Alternate key", + "propertyKeyword": "alternateKey", + "propertyTooltip": "", + "propertyType": "checkbox", + "setFieldPropertyBy": "compositeUniqueKey" } ] } diff --git a/properties_pane/field_level/fieldLevelConfig.json b/properties_pane/field_level/fieldLevelConfig.json index 3768d88a..63117830 100644 --- a/properties_pane/field_level/fieldLevelConfig.json +++ b/properties_pane/field_level/fieldLevelConfig.json @@ -1585,6 +1585,32 @@ making sure that you maintain a proper JSON format. } ] }, + { + "propertyName": "Alternate Key", + "propertyKeyword": "alternateKey", + "defaultValue": false, + "enableForReference": true, + "propertyType": "checkbox", + "dependency": { + "type": "or", + "values": [ + { + "key": "unique", + "value": true + }, + { + "key": "compositeUniqueKey", + "value": true + } + ] + }, + "disabledOnCondition": [ + { + "key": "compositeUniqueKey", + "value": true + } + ] + }, { "fieldKeyword": "foreignCollection", "dependency": { @@ -3413,6 +3439,32 @@ making sure that you maintain a proper JSON format. } ] }, + { + "propertyName": "Alternate Key", + "propertyKeyword": "alternateKey", + "defaultValue": false, + "enableForReference": true, + "propertyType": "checkbox", + "dependency": { + "type": "or", + "values": [ + { + "key": "unique", + "value": true + }, + { + "key": "compositeUniqueKey", + "value": true + } + ] + }, + "disabledOnCondition": [ + { + "key": "compositeUniqueKey", + "value": true + } + ] + }, { "fieldKeyword": "foreignCollection", "dependency": { @@ -5299,6 +5351,32 @@ making sure that you maintain a proper JSON format. } ] }, + { + "propertyName": "Alternate Key", + "propertyKeyword": "alternateKey", + "defaultValue": false, + "enableForReference": true, + "propertyType": "checkbox", + "dependency": { + "type": "or", + "values": [ + { + "key": "unique", + "value": true + }, + { + "key": "compositeUniqueKey", + "value": true + } + ] + }, + "disabledOnCondition": [ + { + "key": "compositeUniqueKey", + "value": true + } + ] + }, { "fieldKeyword": "pattern", "dependency": { @@ -6457,6 +6535,32 @@ making sure that you maintain a proper JSON format. "addTimestampButton": true, "propertyType": "details", "template": "textarea" + }, + { + "propertyName": "Alternate Key", + "propertyKeyword": "alternateKey", + "defaultValue": false, + "enableForReference": true, + "propertyType": "checkbox", + "dependency": { + "type": "or", + "values": [ + { + "key": "unique", + "value": true + }, + { + "key": "compositeUniqueKey", + "value": true + } + ] + }, + "disabledOnCondition": [ + { + "key": "compositeUniqueKey", + "value": true + } + ] } ], "json": [ @@ -7125,6 +7229,32 @@ making sure that you maintain a proper JSON format. ] } }, + { + "propertyName": "Alternate Key", + "propertyKeyword": "alternateKey", + "defaultValue": false, + "enableForReference": true, + "propertyType": "checkbox", + "dependency": { + "type": "or", + "values": [ + { + "key": "unique", + "value": true + }, + { + "key": "compositeUniqueKey", + "value": true + } + ] + }, + "disabledOnCondition": [ + { + "key": "compositeUniqueKey", + "value": true + } + ] + }, { "propertyName": "Default", "propertyKeyword": "default", @@ -8659,6 +8789,32 @@ making sure that you maintain a proper JSON format. } ] }, + { + "propertyName": "Alternate Key", + "propertyKeyword": "alternateKey", + "defaultValue": false, + "enableForReference": true, + "propertyType": "checkbox", + "dependency": { + "type": "or", + "values": [ + { + "key": "unique", + "value": true + }, + { + "key": "compositeUniqueKey", + "value": true + } + ] + }, + "disabledOnCondition": [ + { + "key": "compositeUniqueKey", + "value": true + } + ] + }, { "propertyName": "JSON key", "propertyKeyword": "name", @@ -9936,6 +10092,32 @@ making sure that you maintain a proper JSON format. } ] }, + { + "propertyName": "Alternate Key", + "propertyKeyword": "alternateKey", + "defaultValue": false, + "enableForReference": true, + "propertyType": "checkbox", + "dependency": { + "type": "or", + "values": [ + { + "key": "unique", + "value": true + }, + { + "key": "compositeUniqueKey", + "value": true + } + ] + }, + "disabledOnCondition": [ + { + "key": "compositeUniqueKey", + "value": true + } + ] + }, { "fieldKeyword": "foreignCollection", "dependency": { @@ -11836,6 +12018,32 @@ making sure that you maintain a proper JSON format. "propertyType": "details", "template": "textarea" }, + { + "propertyName": "Alternate Key", + "propertyKeyword": "alternateKey", + "defaultValue": false, + "enableForReference": true, + "propertyType": "checkbox", + "dependency": { + "type": "or", + "values": [ + { + "key": "unique", + "value": true + }, + { + "key": "compositeUniqueKey", + "value": true + } + ] + }, + "disabledOnCondition": [ + { + "key": "compositeUniqueKey", + "value": true + } + ] + }, "minProperties", "maxProperties" ], @@ -12516,6 +12724,32 @@ making sure that you maintain a proper JSON format. "addTimestampButton": true, "propertyType": "details", "template": "textarea" + }, + { + "propertyName": "Alternate Key", + "propertyKeyword": "alternateKey", + "defaultValue": false, + "enableForReference": true, + "propertyType": "checkbox", + "dependency": { + "type": "or", + "values": [ + { + "key": "unique", + "value": true + }, + { + "key": "compositeUniqueKey", + "value": true + } + ] + }, + "disabledOnCondition": [ + { + "key": "compositeUniqueKey", + "value": true + } + ] } ], "joinSubquery": [