CDM/schemaDocuments/Marketing/EventManagement/EventPurchasePass.1.0.cdm.json

662 строки
24 KiB
JSON

{
"jsonSchemaSemanticVersion": "1.0.0",
"imports": [
{
"corpusPath": "_allImports.1.0.cdm.json"
}
],
"definitions": [
{
"entityName": "EventPurchasePass",
"extendsEntity": "CdsStandard",
"exhibitsTraits": [
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Event Purchase Pass"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Passes included in the purchase"
]
]
}
}
]
},
{
"traitReference": "is.CDM.entityVersion",
"arguments": [
{
"name": "versionNumber",
"value": "1.0"
}
]
}
],
"hasAttributes": [
{
"attributeGroupReference": {
"attributeGroupName": "attributesAddedAtThisScope",
"members": [
{
"entity": {
"entityReference": "EventPurchaseAttendee",
"appliedTraits": [
{
"traitReference": "is.identifiedBy",
"arguments": [
"EventPurchaseAttendee/(resolvedAttributes)/eventPurchaseAttendeeId"
]
}
]
},
"name": "attendee",
"resolutionGuidance": {
"renameFormat": "{m}",
"entityByReference": {
"allowReference": true,
"foreignKeyAttribute": {
"explanation": "Unique identifier of 'EventPurchaseAttendee'.",
"name": "attendeeId",
"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",
"Attendee"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"The attendee, passes are meant for"
]
]
}
}
]
},
"is.linkedEntity.identifier"
],
"sourceName": "msevtmgt_attendeeid",
"displayName": "Attendee",
"description": "The attendee, passes are meant for"
}
}
}
},
{
"entity": {
"entityReference": "AttendeePass",
"appliedTraits": [
{
"traitReference": "is.identifiedBy",
"arguments": [
"AttendeePass/(resolvedAttributes)/attendeePassId"
]
}
]
},
"name": "attendeePass",
"resolutionGuidance": {
"renameFormat": "{m}",
"entityByReference": {
"allowReference": true,
"foreignKeyAttribute": {
"explanation": "Unique identifier of 'AttendeePass'.",
"name": "attendeePassId",
"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",
"Attendee pass"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Unique identifier for the attendee pass associated with the event purchase pass"
]
]
}
}
]
},
"is.linkedEntity.identifier"
],
"isNullable": true,
"sourceName": "msevtmgt_attendeepassid",
"displayName": "Attendee pass",
"description": "Unique identifier for the attendee pass associated with the event purchase pass"
}
}
}
},
{
"name": "eventPurchasePassId",
"purpose": "identifiedBy",
"dataType": "entityId",
"appliedTraits": [
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"msevtmgt_eventpurchasepassId"
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "systemrequired"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Event purchase pass"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Unique identifier for entity instances"
]
]
}
}
]
}
],
"sourceName": "msevtmgt_eventpurchasepassid",
"displayName": "Event purchase pass",
"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": "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
},
{
"entity": {
"entityReference": "Pass",
"appliedTraits": [
{
"traitReference": "is.identifiedBy",
"arguments": [
"Pass/(resolvedAttributes)/passId"
]
}
]
},
"name": "pass",
"resolutionGuidance": {
"renameFormat": "{m}",
"entityByReference": {
"allowReference": true,
"foreignKeyAttribute": {
"explanation": "Unique identifier of 'Pass'.",
"name": "passId",
"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",
"Pass"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"The purchased pass"
]
]
}
}
]
},
"is.linkedEntity.identifier"
],
"sourceName": "msevtmgt_passid",
"displayName": "Pass",
"description": "The purchased pass"
}
}
}
},
{
"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 event purchase pass"
]
]
}
}
]
}
],
"sourceName": "statecode",
"displayName": "Status",
"description": "Status of the event purchase pass",
"resolutionGuidance": {
"addSupportingAttribute": {
"explanation": "This attribute 'stateCode_display' is added to the 'EventPurchasePass' 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 event purchase pass"
]
]
}
}
]
}
],
"isNullable": true,
"sourceName": "statuscode",
"displayName": "Status reason",
"description": "Reason for the status of the event purchase pass",
"resolutionGuidance": {
"addSupportingAttribute": {
"explanation": "This attribute 'statusCode_display' is added to the 'EventPurchasePass' 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/EventPurchasePass.1.0.cdm.json/EventPurchasePass/hasAttributes/attributesAddedAtThisScope"
]
]
}
}
]
}
]
}
}
],
"sourceName": "msevtmgt_eventpurchasepass",
"displayName": "Event Purchase Pass",
"description": "Passes included in the purchase"
}
],
"documentVersion": "1.0"
}