CDM/schemaDocuments/Marketing/EventManagement/SponsorableArticle.1.0.cdm....

1090 строки
38 KiB
JSON
Исходник Постоянная ссылка Обычный вид История

{
"jsonSchemaSemanticVersion": "1.0.0",
"imports": [
{
"corpusPath": "_allImports.1.0.cdm.json"
}
],
"definitions": [
{
"entityName": "SponsorableArticle",
"extendsEntity": "CdsStandard",
"exhibitsTraits": [
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Sponsorable Article"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"An item or a group of items that can be sponsored"
]
]
}
}
]
},
{
"traitReference": "is.CDM.entityVersion",
"arguments": [
{
"name": "versionNumber",
"value": "1.0"
}
]
}
],
"hasAttributes": [
{
"attributeGroupReference": {
"attributeGroupName": "attributesAddedAtThisScope",
"members": [
{
"name": "exchangeRate",
"purpose": "hasA",
"dataType": "decimal",
"appliedTraits": [
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"ExchangeRate"
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "minimumValue",
"value": "1E-10"
},
{
"name": "maximumValue",
"value": "100000000000"
}
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Exchange rate"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Exchange rate between the base currency and the currency associated with the entity"
]
]
}
}
]
}
],
"isNullable": true,
"sourceName": "exchangerate",
"displayName": "Exchange rate",
"description": "Exchange rate between the base currency and the currency associated with the entity",
"maximumValue": "100000000000",
"minimumValue": "1E-10"
},
{
"name": "costPerUnit",
"purpose": "hasA",
"dataType": "currency",
"appliedTraits": [
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"msevtmgt_CostPerUnit"
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "minimumValue",
"value": "0"
},
{
"name": "maximumValue",
"value": "922337203685477"
}
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "required"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Cost per unit"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
""
]
]
}
}
]
}
],
"sourceName": "msevtmgt_costperunit",
"displayName": "Cost per unit",
"description": "",
"maximumValue": "922337203685477",
"minimumValue": "0"
},
{
"name": "costPerUnitBase",
"purpose": "hasA",
"dataType": "currency",
"appliedTraits": [
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"msevtmgt_costperunit_Base"
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "minimumValue",
"value": "0"
},
{
"name": "maximumValue",
"value": "922337203685477"
}
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Cost per unit (base)"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Value of the cost per unit (in the base currency)"
]
]
}
}
]
}
],
"isNullable": true,
"sourceName": "msevtmgt_costperunit_base",
"displayName": "Cost per unit (base)",
"description": "Value of the cost per unit (in the base currency)",
"maximumValue": "922337203685477",
"minimumValue": "0"
},
{
"name": "description",
"purpose": "hasA",
"dataType": "string",
"appliedTraits": [
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"msevtmgt_Description"
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumLength",
"value": "2000"
}
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Description"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
""
]
]
}
}
]
}
],
"isNullable": true,
"sourceName": "msevtmgt_description",
"displayName": "Description",
"description": "",
"maximumLength": 2000
},
{
"entity": {
"entityReference": "Sponsorship",
"appliedTraits": [
{
"traitReference": "is.identifiedBy",
"arguments": [
"Sponsorship/(resolvedAttributes)/sponsorshipId"
]
}
]
},
"name": "eventSponsorship",
"resolutionGuidance": {
"renameFormat": "{m}",
"entityByReference": {
"allowReference": true,
"foreignKeyAttribute": {
"explanation": "Unique identifier of 'Sponsorship'.",
"name": "eventSponsorshipId",
"purpose": "hasA",
"dataType": "entityId",
"appliedTraits": [
{
"traitReference": "is.CDS.lookup",
"arguments": [
{
"name": "style",
"value": "single"
}
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "required"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Event sponsorship"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
""
]
]
}
}
]
},
"is.linkedEntity.identifier"
],
"sourceName": "msevtmgt_eventsponsorship",
"displayName": "Event sponsorship",
"description": ""
}
}
}
},
{
"name": "name",
"purpose": "hasA",
"dataType": "name",
"appliedTraits": [
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"msevtmgt_Name"
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumLength",
"value": "100"
}
]
},
{
"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": 100
},
{
"name": "numberOfUnits",
"purpose": "hasA",
"dataType": "integer",
"appliedTraits": [
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"msevtmgt_NumberOfUnits"
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "minimumValue",
"value": "0"
},
{
"name": "maximumValue",
"value": "2147483647"
}
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "required"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Number of units"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
""
]
]
}
}
]
}
],
"sourceName": "msevtmgt_numberofunits",
"displayName": "Number of units",
"description": "",
"maximumValue": "2147483647",
"minimumValue": "0"
},
{
"name": "sponsorableArticleId",
"purpose": "identifiedBy",
"dataType": "entityId",
"appliedTraits": [
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"msevtmgt_SponsorableArticleId"
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "systemrequired"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Sponsorable article"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Unique identifier for entity instances"
]
]
}
}
]
}
],
"sourceName": "msevtmgt_sponsorablearticleid",
"displayName": "Sponsorable article",
"description": "Unique identifier for entity instances"
},
{
"name": "totalCost",
"purpose": "hasA",
"dataType": "currency",
"appliedTraits": [
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"msevtmgt_totalcost"
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "minimumValue",
"value": "-922337203685477"
},
{
"name": "maximumValue",
"value": "922337203685477"
}
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Total cost"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
""
]
]
}
}
]
}
],
"isNullable": true,
"sourceName": "msevtmgt_totalcost",
"displayName": "Total cost",
"description": "",
"maximumValue": "922337203685477",
"minimumValue": "-922337203685477"
},
{
"name": "totalCostBase",
"purpose": "hasA",
"dataType": "currency",
"appliedTraits": [
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"msevtmgt_totalcost_Base"
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "minimumValue",
"value": "-922337203685477"
},
{
"name": "maximumValue",
"value": "922337203685477"
}
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Total cost (base)"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Value of the total cost (in the base currency)"
]
]
}
}
]
}
],
"isNullable": true,
"sourceName": "msevtmgt_totalcost_base",
"displayName": "Total cost (base)",
"description": "Value of the total cost (in the base currency)",
"maximumValue": "922337203685477",
"minimumValue": "-922337203685477"
},
{
"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 sponsorable article"
]
]
}
}
]
}
],
"sourceName": "statecode",
"displayName": "Status",
"description": "Status of the sponsorable article",
"resolutionGuidance": {
"addSupportingAttribute": {
"explanation": "This attribute 'stateCode_display' is added to the 'SponsorableArticle' 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"
]
},
{
"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 sponsorable article"
]
]
}
}
]
}
],
"isNullable": true,
"sourceName": "statuscode",
"displayName": "Status reason",
"description": "Reason for the status of the sponsorable article",
"resolutionGuidance": {
"addSupportingAttribute": {
"explanation": "This attribute 'statusCode_display' is added to the 'SponsorableArticle' 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
}
}
},
{
"entity": {
"entityReference": "Currency",
"appliedTraits": [
{
"traitReference": "is.identifiedBy",
"arguments": [
"Currency/(resolvedAttributes)/transactionCurrencyId"
]
}
]
},
"name": "transactionCurrency",
"resolutionGuidance": {
"renameFormat": "{m}",
"entityByReference": {
"allowReference": true,
"foreignKeyAttribute": {
"explanation": "Unique identifier of 'Currency'.",
"name": "transactionCurrencyId",
"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",
"Currency"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Unique identifier of the currency associated with the entity"
]
]
}
}
]
},
"is.linkedEntity.identifier"
],
"isNullable": true,
"sourceName": "transactioncurrencyid",
"displayName": "Currency",
"description": "Unique identifier of the currency associated with the entity"
}
}
}
}
],
"exhibitsTraits": [
{
"traitReference": "is.CDM.attributeGroup",
"arguments": [
{
"entityReference": {
"entityShape": "attributeGroupSet",
"constantValues": [
[
"/Marketing/EventManagement/SponsorableArticle.1.0.cdm.json/SponsorableArticle/hasAttributes/attributesAddedAtThisScope"
]
]
}
}
]
}
]
}
}
],
"sourceName": "msevtmgt_SponsorableArticle",
"displayName": "Sponsorable Article",
"description": "An item or a group of items that can be sponsored"
}
],
"documentVersion": "1.0"
}