зеркало из https://github.com/microsoft/CDM.git
1245 строки
44 KiB
JSON
1245 строки
44 KiB
JSON
{
|
|
"jsonSchemaSemanticVersion": "1.1.0",
|
|
"imports": [
|
|
{
|
|
"corpusPath": "cdm:/core/cdsConcepts.cdm.json"
|
|
},
|
|
{
|
|
"corpusPath": "Facility.cdm.json"
|
|
},
|
|
{
|
|
"corpusPath": "/Sustainability/CloudforSustainabilitySharedDataModel/OrganizationalUnit.cdm.json"
|
|
},
|
|
{
|
|
"corpusPath": "/Sustainability/CloudforSustainabilitySharedDataModel/Unit.cdm.json"
|
|
}
|
|
],
|
|
"definitions": [
|
|
{
|
|
"entityName": "StoredWater",
|
|
"extendsEntity": "CdmEntity",
|
|
"displayName": "Stored water",
|
|
"description": "The entity stores data related to the water stored within a facility.",
|
|
"sourceName": "msdyn_storedwater",
|
|
"exhibitsTraits": [
|
|
{
|
|
"traitReference": "is.localized.describedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"The entity stores data related to the water stored within a facility."
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.displayedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Stored water"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.CDM.entityVersion",
|
|
"arguments": [
|
|
{
|
|
"name": "versionNumber",
|
|
"value": "1.0"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"hasAttributes": [
|
|
{
|
|
"attributeGroupReference": {
|
|
"attributeGroupName": "attributesAddedAtThisScope",
|
|
"members": [
|
|
{
|
|
"name": "storedwaterId",
|
|
"sourceName": "msdyn_storedwaterid",
|
|
"sourceOrdering": 1,
|
|
"description": "Unique identifier for entity instances",
|
|
"displayName": "Stored water",
|
|
"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",
|
|
"Stored water"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.CDS.sourceNamed",
|
|
"arguments": [
|
|
"msdyn_storedwaterid"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "TTLInSeconds",
|
|
"sourceName": "ttlinseconds",
|
|
"sourceOrdering": 2,
|
|
"description": "Time to live in seconds.",
|
|
"displayName": "Time to live",
|
|
"isNullable": true,
|
|
"purpose": "hasA",
|
|
"dataType": "integer",
|
|
"maximumValue": "2147483647",
|
|
"minimumValue": "1",
|
|
"appliedTraits": [
|
|
{
|
|
"traitReference": "is.requiredAtLevel",
|
|
"arguments": [
|
|
{
|
|
"name": "level",
|
|
"value": "none"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.describedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Time to live in seconds."
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.displayedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Time to live"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.constrained",
|
|
"arguments": [
|
|
{
|
|
"name": "maximumValue",
|
|
"value": "2147483647"
|
|
},
|
|
{
|
|
"name": "minimumValue",
|
|
"value": "1"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "partitionId",
|
|
"sourceName": "partitionid",
|
|
"sourceOrdering": 3,
|
|
"description": "Logical partition id. A logical partition consists of a set of records with same partition id.",
|
|
"displayName": "Partition Id",
|
|
"isNullable": true,
|
|
"purpose": "hasA",
|
|
"dataType": "string",
|
|
"maximumLength": "100",
|
|
"appliedTraits": [
|
|
{
|
|
"traitReference": "is.requiredAtLevel",
|
|
"arguments": [
|
|
{
|
|
"name": "level",
|
|
"value": "none"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.describedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Logical partition id. A logical partition consists of a set of records with same partition id."
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.displayedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Partition Id"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.constrained",
|
|
"arguments": [
|
|
{
|
|
"name": "maximumLength",
|
|
"value": "100"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "createdOn",
|
|
"sourceName": "createdon",
|
|
"sourceOrdering": 4,
|
|
"description": "Date and time when the record was created.",
|
|
"displayName": "Created On",
|
|
"isNullable": true,
|
|
"purpose": "hasA",
|
|
"dataType": "dateTime",
|
|
"appliedTraits": [
|
|
{
|
|
"traitReference": "is.requiredAtLevel",
|
|
"arguments": [
|
|
{
|
|
"name": "level",
|
|
"value": "none"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.describedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Date and time when the record was created."
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.displayedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Created On"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "modifiedOn",
|
|
"sourceName": "modifiedon",
|
|
"sourceOrdering": 6,
|
|
"description": "Date and time when the record was modified.",
|
|
"displayName": "Modified On",
|
|
"isNullable": true,
|
|
"purpose": "hasA",
|
|
"dataType": "dateTime",
|
|
"appliedTraits": [
|
|
{
|
|
"traitReference": "is.requiredAtLevel",
|
|
"arguments": [
|
|
{
|
|
"name": "level",
|
|
"value": "none"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.describedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Date and time when the record was modified."
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.displayedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Modified On"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "importSequenceNumber",
|
|
"sourceName": "importsequencenumber",
|
|
"sourceOrdering": 28,
|
|
"description": "Sequence number of the import that created this record.",
|
|
"displayName": "Import Sequence Number",
|
|
"isNullable": true,
|
|
"purpose": "hasA",
|
|
"dataType": "integer",
|
|
"maximumValue": "2147483647",
|
|
"minimumValue": "-2147483648",
|
|
"appliedTraits": [
|
|
{
|
|
"traitReference": "is.requiredAtLevel",
|
|
"arguments": [
|
|
{
|
|
"name": "level",
|
|
"value": "none"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.describedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Sequence number of the import that created this record."
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.displayedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Import Sequence Number"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.constrained",
|
|
"arguments": [
|
|
{
|
|
"name": "maximumValue",
|
|
"value": "2147483647"
|
|
},
|
|
{
|
|
"name": "minimumValue",
|
|
"value": "-2147483648"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "overriddenCreatedOn",
|
|
"sourceName": "overriddencreatedon",
|
|
"sourceOrdering": 29,
|
|
"description": "Date and time that the record was migrated.",
|
|
"displayName": "Record Created On",
|
|
"isNullable": true,
|
|
"purpose": "hasA",
|
|
"dataType": "date",
|
|
"appliedTraits": [
|
|
{
|
|
"traitReference": "is.requiredAtLevel",
|
|
"arguments": [
|
|
{
|
|
"name": "level",
|
|
"value": "none"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.describedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Date and time that the record was migrated."
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.displayedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Record Created On"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "name",
|
|
"sourceName": "msdyn_name",
|
|
"sourceOrdering": 30,
|
|
"description": "The name of the custom entity.",
|
|
"displayName": "Name",
|
|
"isNullable": true,
|
|
"purpose": "hasA",
|
|
"dataType": "string",
|
|
"maximumLength": "100",
|
|
"appliedTraits": [
|
|
{
|
|
"traitReference": "is.requiredAtLevel",
|
|
"arguments": [
|
|
{
|
|
"name": "level",
|
|
"value": "applicationrequired"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.describedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"The name of the custom entity."
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.displayedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Name"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.constrained",
|
|
"arguments": [
|
|
{
|
|
"name": "maximumLength",
|
|
"value": "100"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "actualstorage",
|
|
"sourceName": "msdyn_actualstorage",
|
|
"sourceOrdering": 31,
|
|
"description": "Field to store the actual stored water quantity measurement value.",
|
|
"displayName": "Actual storage",
|
|
"isNullable": true,
|
|
"purpose": "hasA",
|
|
"dataType": "decimal",
|
|
"maximumValue": "2147483647",
|
|
"minimumValue": "-2147483648",
|
|
"appliedTraits": [
|
|
{
|
|
"traitReference": "is.requiredAtLevel",
|
|
"arguments": [
|
|
{
|
|
"name": "level",
|
|
"value": "applicationrequired"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.describedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Field to store the actual stored water quantity measurement value."
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.displayedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Actual storage"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.constrained",
|
|
"arguments": [
|
|
{
|
|
"name": "maximumValue",
|
|
"value": "2147483647"
|
|
},
|
|
{
|
|
"name": "minimumValue",
|
|
"value": "-2147483648"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "description",
|
|
"sourceName": "msdyn_description",
|
|
"sourceOrdering": 32,
|
|
"description": "Optional field to describe the entity.",
|
|
"displayName": "Description",
|
|
"isNullable": true,
|
|
"purpose": "hasA",
|
|
"dataType": "string",
|
|
"maximumLength": "100",
|
|
"appliedTraits": [
|
|
{
|
|
"traitReference": "is.requiredAtLevel",
|
|
"arguments": [
|
|
{
|
|
"name": "level",
|
|
"value": "none"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.describedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Optional field to describe the entity."
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.displayedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Description"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.constrained",
|
|
"arguments": [
|
|
{
|
|
"name": "maximumLength",
|
|
"value": "100"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "facility",
|
|
"sourceName": "msdyn_facility",
|
|
"sourceOrdering": 33,
|
|
"description": "Field to store the facility information associated with the stored water quantity measurement.",
|
|
"displayName": "Facility",
|
|
"isNullable": true,
|
|
"purpose": "hasA",
|
|
"dataType": "entityId",
|
|
"entity": {
|
|
"source": "Facility",
|
|
"operations": [
|
|
{
|
|
"$type": "replaceAsForeignKey",
|
|
"condition": "referenceOnly",
|
|
"reference": "facilityId",
|
|
"replaceWith": {
|
|
"name": "facility",
|
|
"dataType": "entityId",
|
|
"appliedTraits": [
|
|
{
|
|
"traitReference": "is.requiredAtLevel",
|
|
"arguments": [
|
|
{
|
|
"name": "level",
|
|
"value": "applicationrequired"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.describedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Field to store the facility information associated with the stored water quantity measurement."
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.displayedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Facility"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.CDS.lookup",
|
|
"arguments": [
|
|
{
|
|
"name": "style",
|
|
"value": "single"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "measurementdate",
|
|
"sourceName": "msdyn_measurementdate",
|
|
"sourceOrdering": 34,
|
|
"description": "Field to store the date and time at which the stored water quantity was measured.",
|
|
"displayName": "Measurement date",
|
|
"isNullable": true,
|
|
"purpose": "hasA",
|
|
"dataType": "dateTime",
|
|
"appliedTraits": [
|
|
{
|
|
"traitReference": "is.requiredAtLevel",
|
|
"arguments": [
|
|
{
|
|
"name": "level",
|
|
"value": "applicationrequired"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.describedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Field to store the date and time at which the stored water quantity was measured."
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.displayedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Measurement date"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "organizationalunit",
|
|
"sourceName": "msdyn_organizationalunit",
|
|
"sourceOrdering": 35,
|
|
"description": "Optional field to store the organizational unit associated with the stored water quantity measurement.",
|
|
"displayName": "Organizational unit",
|
|
"isNullable": true,
|
|
"purpose": "hasA",
|
|
"dataType": "entityId",
|
|
"entity": {
|
|
"source": "OrganizationalUnit",
|
|
"operations": [
|
|
{
|
|
"$type": "replaceAsForeignKey",
|
|
"condition": "referenceOnly",
|
|
"reference": "sustainabilityorganizationalunitId",
|
|
"replaceWith": {
|
|
"name": "organizationalunit",
|
|
"dataType": "entityId",
|
|
"appliedTraits": [
|
|
{
|
|
"traitReference": "is.requiredAtLevel",
|
|
"arguments": [
|
|
{
|
|
"name": "level",
|
|
"value": "none"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.describedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Optional field to store the organizational unit associated with the stored water quantity measurement."
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.displayedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Organizational unit"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.CDS.lookup",
|
|
"arguments": [
|
|
{
|
|
"name": "style",
|
|
"value": "single"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "origincorrelationid",
|
|
"sourceName": "msdyn_origincorrelationid",
|
|
"sourceOrdering": 36,
|
|
"description": "Optional field to store alternate key for the entity.",
|
|
"displayName": "Origin correlation ID",
|
|
"isNullable": true,
|
|
"purpose": "hasA",
|
|
"dataType": "string",
|
|
"maximumLength": "100",
|
|
"appliedTraits": [
|
|
{
|
|
"traitReference": "is.requiredAtLevel",
|
|
"arguments": [
|
|
{
|
|
"name": "level",
|
|
"value": "none"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.describedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Optional field to store alternate key for the entity."
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.displayedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Origin correlation ID"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.constrained",
|
|
"arguments": [
|
|
{
|
|
"name": "maximumLength",
|
|
"value": "100"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "storagecontainerid",
|
|
"sourceName": "msdyn_storagecontainerid",
|
|
"sourceOrdering": 37,
|
|
"description": "Optional field to store unique identifier for a storage container.",
|
|
"displayName": "Storage container ID",
|
|
"isNullable": true,
|
|
"purpose": "hasA",
|
|
"dataType": "string",
|
|
"maximumLength": "100",
|
|
"appliedTraits": [
|
|
{
|
|
"traitReference": "is.requiredAtLevel",
|
|
"arguments": [
|
|
{
|
|
"name": "level",
|
|
"value": "none"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.describedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Optional field to store unique identifier for a storage container."
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.displayedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Storage container ID"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.constrained",
|
|
"arguments": [
|
|
{
|
|
"name": "maximumLength",
|
|
"value": "100"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "storagecontainertype",
|
|
"sourceName": "msdyn_storagecontainertype",
|
|
"sourceOrdering": 38,
|
|
"description": "Optional field to classify a storage container as belonging to a type.",
|
|
"displayName": "Storage container type",
|
|
"isNullable": true,
|
|
"purpose": "hasA",
|
|
"dataType": "string",
|
|
"maximumLength": "100",
|
|
"appliedTraits": [
|
|
{
|
|
"traitReference": "is.requiredAtLevel",
|
|
"arguments": [
|
|
{
|
|
"name": "level",
|
|
"value": "none"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.describedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Optional field to classify a storage container as belonging to a type."
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.displayedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Storage container type"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.constrained",
|
|
"arguments": [
|
|
{
|
|
"name": "maximumLength",
|
|
"value": "100"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "totalstorage",
|
|
"sourceName": "msdyn_totalstorage",
|
|
"sourceOrdering": 39,
|
|
"description": "Optional field to store the maximum possible storage quantity within the storage container.",
|
|
"displayName": "Total storage",
|
|
"isNullable": true,
|
|
"purpose": "hasA",
|
|
"dataType": "decimal",
|
|
"maximumValue": "2147483647",
|
|
"minimumValue": "-2147483648",
|
|
"appliedTraits": [
|
|
{
|
|
"traitReference": "is.requiredAtLevel",
|
|
"arguments": [
|
|
{
|
|
"name": "level",
|
|
"value": "none"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.describedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Optional field to store the maximum possible storage quantity within the storage container."
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.displayedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Total storage"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.constrained",
|
|
"arguments": [
|
|
{
|
|
"name": "maximumValue",
|
|
"value": "2147483647"
|
|
},
|
|
{
|
|
"name": "minimumValue",
|
|
"value": "-2147483648"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "unit",
|
|
"sourceName": "msdyn_unit",
|
|
"sourceOrdering": 40,
|
|
"description": "Field to store the unit of measurement for the water quantity values.",
|
|
"displayName": "Unit",
|
|
"isNullable": true,
|
|
"purpose": "hasA",
|
|
"dataType": "entityId",
|
|
"entity": {
|
|
"source": "Unit",
|
|
"operations": [
|
|
{
|
|
"$type": "replaceAsForeignKey",
|
|
"condition": "referenceOnly",
|
|
"reference": "unitId",
|
|
"replaceWith": {
|
|
"name": "unit",
|
|
"dataType": "entityId",
|
|
"appliedTraits": [
|
|
{
|
|
"traitReference": "is.requiredAtLevel",
|
|
"arguments": [
|
|
{
|
|
"name": "level",
|
|
"value": "applicationrequired"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.describedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Field to store the unit of measurement for the water quantity values."
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.displayedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Unit"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.CDS.lookup",
|
|
"arguments": [
|
|
{
|
|
"name": "style",
|
|
"value": "single"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"exhibitsTraits": [
|
|
{
|
|
"traitReference": "is.CDM.attributeGroup",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "attributeGroupSet",
|
|
"constantValues": [
|
|
[
|
|
"/Sustainability/CloudforSustainabilityWaterDataModel/StoredWater.cdm.json/StoredWater/hasAttributes/attributesAddedAtThisScope"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"documentVersion": "1.0"
|
|
} |