CDM/schemaDocuments/Marketing/EventManagement/Bucket.cdm.json

549 строки
19 KiB
JSON

{
"jsonSchemaSemanticVersion": "1.0.0",
"imports": [
{
"corpusPath": "_allImports.cdm.json"
}
],
"definitions": [
{
"entityName": "Bucket",
"extendsEntity": "CdsStandard",
"exhibitsTraits": [
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Bucket"
]
]
}
}
]
},
{
"traitReference": "is.CDM.entityVersion",
"arguments": [
{
"name": "versionNumber",
"value": "1.1"
}
]
}
],
"hasAttributes": [
{
"attributeGroupReference": {
"attributeGroupName": "attributesAddedAtThisScope",
"members": [
{
"name": "bucketId",
"purpose": "identifiedBy",
"dataType": "entityId",
"appliedTraits": [
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"msevtmgt_bucketId"
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "systemrequired"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Bucket"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Unique identifier for entity instances"
]
]
}
}
]
}
],
"sourceName": "msevtmgt_bucketid",
"displayName": "Bucket",
"description": "Unique identifier for entity instances"
},
{
"name": "name",
"purpose": "hasA",
"dataType": "name",
"appliedTraits": [
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"msevtmgt_name"
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumLength",
"value": "4000"
}
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "required"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Name"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"The name of the custom entity"
]
]
}
}
]
}
],
"sourceName": "msevtmgt_name",
"displayName": "Name",
"description": "The name of the custom entity",
"maximumLength": 4000
},
{
"entity": {
"entityReference": "Bucket",
"appliedTraits": [
{
"traitReference": "is.identifiedBy",
"arguments": [
"Bucket/(resolvedAttributes)/bucketId"
]
}
]
},
"name": "parent",
"resolutionGuidance": {
"renameFormat": "{m}",
"entityByReference": {
"allowReference": true,
"foreignKeyAttribute": {
"explanation": "Unique identifier of 'Bucket'.",
"name": "parentId",
"purpose": "hasA",
"dataType": "entityId",
"appliedTraits": [
{
"traitReference": "is.CDS.lookup",
"arguments": [
{
"name": "style",
"value": "single"
}
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Parent"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
""
]
]
}
}
]
},
"is.linkedEntity.identifier"
],
"isNullable": true,
"sourceName": "msevtmgt_parent",
"displayName": "Parent",
"description": ""
}
}
}
},
{
"name": "value",
"purpose": "hasA",
"dataType": "string",
"appliedTraits": [
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"msevtmgt_value"
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumLength",
"value": "1048576"
}
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Value"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
""
]
]
}
}
]
}
],
"isNullable": true,
"sourceName": "msevtmgt_value",
"displayName": "Value",
"description": "",
"maximumLength": 1048576
},
{
"name": "stateCode",
"purpose": "representsStateWith",
"dataType": {
"dataTypeReference": "listLookup",
"appliedTraits": [
{
"traitReference": "does.haveDefault",
"arguments": [
{
"entityReference": {
"explanation": "The constantValues below correspond to the attributes of the 'listLookupValues' entityShape which are: {languageTag, displayText, attributeValue, displayOrder}",
"entityShape": "listLookupValues",
"constantValues": [
[
"en",
"Active",
"0",
"0"
],
[
"en",
"Inactive",
"1",
"1"
]
]
}
}
]
}
]
},
"appliedTraits": [
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"statecode"
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "systemrequired"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Status"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Status of the bucket"
]
]
}
}
]
}
],
"sourceName": "statecode",
"displayName": "Status",
"description": "Status of the bucket",
"resolutionGuidance": {
"addSupportingAttribute": {
"explanation": "This attribute 'stateCode_display' is added to the 'Bucket' entity to provide the localized display text for the value of the listLookup attribute 'stateCode'",
"name": "stateCode_display",
"purpose": "hasA",
"dataType": "localizedDisplayText",
"isReadOnly": true
}
}
},
{
"name": "statusCode",
"purpose": {
"purposeReference": "representsCorrelatedStatusWith",
"appliedTraits": [
{
"traitReference": "is.correlatedWith",
"arguments": [
"stateCode"
]
}
]
},
"dataType": {
"dataTypeReference": "listLookup",
"appliedTraits": [
{
"traitReference": "does.haveDefault",
"arguments": [
{
"entityReference": {
"explanation": "The constantValues below correspond to the attributes of the 'listLookupCorrelatedValues' entityShape which are: {languageTag, displayText, attributeValue, displayOrder, correlatedValue}",
"entityShape": "listLookupCorrelatedValues",
"constantValues": [
[
"en",
"Active",
"1",
"0",
"0"
],
[
"en",
"Inactive",
"2",
"1",
"1"
]
]
}
}
]
}
]
},
"appliedTraits": [
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"statuscode"
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Status reason"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Reason for the status of the bucket"
]
]
}
}
]
}
],
"isNullable": true,
"sourceName": "statuscode",
"displayName": "Status reason",
"description": "Reason for the status of the bucket",
"resolutionGuidance": {
"addSupportingAttribute": {
"explanation": "This attribute 'statusCode_display' is added to the 'Bucket' entity to provide the localized display text for the value of the listLookup attribute 'statusCode'",
"name": "statusCode_display",
"purpose": "hasA",
"dataType": "localizedDisplayText",
"isReadOnly": true,
"isNullable": true
}
}
}
],
"exhibitsTraits": [
{
"traitReference": "is.CDM.attributeGroup",
"arguments": [
{
"entityReference": {
"entityShape": "attributeGroupSet",
"constantValues": [
[
"/Marketing/EventManagement/Bucket.cdm.json/Bucket/hasAttributes/attributesAddedAtThisScope"
]
]
}
}
]
}
]
}
}
],
"sourceName": "msevtmgt_bucket",
"displayName": "Bucket"
}
],
"documentVersion": "1.1"
}