{
    "enumDefs": [
        {
            "name":        "pii_type",
            "category":    "ENUM",
            "elementDefs": [
                { "ordinal": 1, "value": "ccn" },
                { "ordinal": 2, "value": "ssn" },
                { "ordinal": 3, "value": "mrn" }
            ]
        }
    ],

    "structDefs": [
        {
            "name":          "point_2d",
            "category":      "STRUCT",
            "attributeDefs": [
                {
                    "name":     "x",
                    "typeName": "int",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional": false,
                    "isUnique": false
                },
                {
                    "name":     "y",
                    "typeName": "int",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional": false,
                    "isUnique": false
                }
            ]
        }
    ],

    "classificationDefs": [
        {
            "name":       "PII",
            "category":   "CLASSIFICATION",
            "superTypes": [],
            "attributeDefs": [
                {
                    "name":        "type",
                    "typeName":    "pii_type",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional":  true,
                    "isUnique":    false
                }
			]
        },
        {
            "name":       "FINANCE_PII",
            "category":   "CLASSIFICATION",
            "superTypes": [ "PII" ],
            "attributeDefs": [
                {
                    "name":        "notes",
                    "typeName":    "string",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional":  true,
                    "isUnique":    false
                }
			]
        },
        {
            "name":       "VENDOR_PII",
            "category":   "CLASSIFICATION",
            "superTypes": [ "PII" ],
            "attributeDefs": [
                {
                    "name":        "notes",
                    "typeName":    "string",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional":  true,
                    "isUnique":    false
                }
			]
        }
    ],

    "entityDefs": [
        {
            "name":          "Employee",
            "category":      "ENTITY",
            "superTypes":    [ "Referenceable" ],
            "attributeDefs": [
                {
                    "name":        "name",
                    "typeName":    "string",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional":  false,
                    "isUnique":    false
                },
                {
                    "name":        "createTime",
                    "typeName":    "date",
                    "cardinality": "SINGLE",
                    "isIndexable": true,
                    "isOptional":  false,
                    "isUnique":    false
                },
                {
                    "name":        "createdBy",
                    "typeName":    "string",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional":  false,
                    "isUnique":    false
                },
                {
                    "name":        "updateTime",
                    "typeName":    "date",
                    "cardinality": "SINGLE",
                    "isIndexable": true,
                    "isOptional":  false,
                    "isUnique":    false
                },
                {
                    "name":         "updatedBy",
                    "typeName":     "string",
                    "cardinality": "SINGLE",
                    "isIndexable": false,
                    "isOptional":  false,
                    "isUnique":    false
                }
            ]
        }
    ]
}
