CDM/schemaDocuments/Sustainability/CloudforSustainabilityWater.../Facility.cdm.json

304 строки
11 KiB
JSON

{
"jsonSchemaSemanticVersion": "1.1.0",
"imports": [
{
"corpusPath": "cdm:/core/cdsConcepts.cdm.json"
},
{
"corpusPath": "WaterBasin.cdm.json"
},
{
"corpusPath": "WaterRiskIndex.cdm.json"
}
],
"definitions": [
{
"entityName": "Facility",
"extendsEntity": "CdmEntity",
"displayName": "Facility",
"description": "Base-level location to attribute activity data. May contain multiple buildings and organizational units.",
"sourceName": "msdyn_facility",
"exhibitsTraits": [
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Base-level location to attribute activity data. May contain multiple buildings and organizational units."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Facility"
]
]
}
}
]
},
{
"traitReference": "is.CDM.entityVersion",
"arguments": [
{
"name": "versionNumber",
"value": "1.0"
}
]
}
],
"hasAttributes": [
{
"attributeGroupReference": {
"attributeGroupName": "attributesAddedAtThisScope",
"members": [
{
"name": "facilityId",
"sourceName": "msdyn_facilityid",
"sourceOrdering": 1,
"description": "Unique identifier for entity instances.",
"displayName": "Facility",
"isNullable": false,
"purpose": "identifiedBy",
"dataType": "entityId",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "systemrequired"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Unique identifier for entity instances."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Facility"
]
]
}
}
]
},
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"msdyn_facilityid"
]
}
]
},
{
"name": "waterbasin",
"sourceName": "msdyn_waterbasin",
"sourceOrdering": 47,
"description": "Stores the details of the basin from which water is drawn by the facility.",
"displayName": "Water basin",
"isNullable": true,
"purpose": "hasA",
"dataType": "entityId",
"entity": {
"source": "WaterBasin",
"operations": [
{
"$type": "replaceAsForeignKey",
"condition": "referenceOnly",
"reference": "waterbasinId",
"replaceWith": {
"name": "waterbasin",
"dataType": "entityId",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Stores the details of the basin from which water is drawn by the facility."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Water basin"
]
]
}
}
]
},
{
"traitReference": "is.CDS.lookup",
"arguments": [
{
"name": "style",
"value": "single"
}
]
}
]
}
}
]
}
},
{
"name": "waterriskindex",
"sourceName": "msdyn_waterriskindex",
"sourceOrdering": 48,
"description": "Describes the overall water risk index of the facility.",
"displayName": "Water risk index",
"isNullable": true,
"purpose": "hasA",
"dataType": "entityId",
"entity": {
"source": "WaterRiskIndex",
"operations": [
{
"$type": "replaceAsForeignKey",
"condition": "referenceOnly",
"reference": "waterriskindexId",
"replaceWith": {
"name": "waterriskindex",
"dataType": "entityId",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Describes the overall water risk index of the facility."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Water risk index"
]
]
}
}
]
},
{
"traitReference": "is.CDS.lookup",
"arguments": [
{
"name": "style",
"value": "single"
}
]
}
]
}
}
]
}
}
],
"exhibitsTraits": [
{
"traitReference": "is.CDM.attributeGroup",
"arguments": [
{
"entityReference": {
"entityShape": "attributeGroupSet",
"constantValues": [
[
"/Sustainability/CloudforSustainabilityWaterDataModel/Facility.cdm.json/Facility/hasAttributes/attributesAddedAtThisScope"
]
]
}
}
]
}
]
}
}
]
}
],
"documentVersion": "1.0"
}