0017-ExternalIdentifiers_model.json 3.36 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
{
  "enumDefs": [
    {
      "name": "KeyPattern",
      "description":"Key Pattern indicates the way that the key is being used",
      "typeVersion": "1.0",
      "elementDefs": [
        {
          "ordinal": 0,
          "value": "LOCAL_KEY"
        },
        {
          "ordinal": 1,
          "value": "RECYCLED_KEY"
        },
        {
          "ordinal": 2,
          "value": "NATURAL_KEY",
          "description": "A natural key (also known as business key) is a type of unique key, found in relational model database design, that is formed of attributes that already exist in the real world."
        },
        {
          "ordinal": 4,
          "value": "MIRROR_KEY"
        },
        {
          "ordinal": 5,
          "value": "AGGREGATE_KEY"
        },
        {
          "ordinal": 6,
          "value": "CALLERS_KEY"
        },
        {
          "ordinal": 7,
          "value": "STABLE_KEY"
        },
        {
          "ordinal": 99,
          "value": "OTHER"
        }
      ]
    }
  ],
  "structDefs": [],
  "classificationDefs": [],
  "entityDefs": [
    {
      "name": "ExternalId",
      "description":"External Identifiers are identifiers for a Referenceable that are used in external systems.",
      "superTypes": [
        "Referenceable"
      ],
      "typeVersion": "1.0",
      "attributeDefs": [
        {
          "name": "identifier",
          "typeName": "string",
          "cardinality": "SINGLE",
          "isIndexable": true,
          "isOptional": true,
          "isUnique": false
        },
        {
          "name": "keyPattern",
65
          "typeName": "KeyPattern",
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
          "cardinality": "SINGLE",
          "isIndexable": true,
          "isOptional": true,
          "isUnique": false
        }
      ]
    }
  ],
  "relationshipDefs": [
    {
      "name": "ExternalIdentifierLink",
      "description":"External Identifier Link relates external identifiers to elements they are also known as.",
      "typeVersion": "1.0",
      "endDef1": {
        "name": "resource",
        "type": "ExternalId",
        "cardinality": "SINGLE"
      },
      "endDef2": {
        "name": "alsoKnownAs",
        "type": "Referenceable",
        "cardinality": "SET"
      },
      "relationshipCategory": "ASSOCIATION",
      "attributeDefs": [
        {
          "name": "description",
          "typeName": "string",
          "cardinality": "SINGLE",
          "isIndexable": true,
          "isOptional": true
        },
        {
          "name": "usage",
          "typeName": "string",
          "cardinality": "SINGLE",
          "isIndexable": true,
          "isOptional": true
        },
        {
          "name": "source",
          "typeName": "string",
          "cardinality": "SINGLE",
          "isIndexable": true,
          "isOptional": true
        }
      ]
    },
    {
      "name": "ExternalIdentifierScope",
      "typeVersion": "1.0",
      "endDef1": {
        "name": "scopedTo",
        "type": "ExternalId",
        "cardinality": "SET"
      },
      "endDef2": {
        "name": "managedResources",
        "type": "Referenceable",
        "cardinality": "SET"
      },
      "relationshipCategory": "ASSOCIATION",
      "attributeDefs": [
        {
          "name": "description",
          "typeName": "string",
          "cardinality": "SINGLE",
          "isIndexable": true,
          "isOptional": true
        }
      ]
    }
  ]
}