{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "__tags": [
        "rest",
        "mongodb",
        "selList"
    ],
    "__version": 1,
    "description": "A region is some kind of a logical group that could be set for some entries. It allows 'vertical' restrictions of object visibility",
    "id": "http://schlothauer.de/schemas/shared/tenant.json",
    "properties": {
        "active": {
            "__tags": [
                "notNull",
                "defaultTrue"
            ],
            "type": "boolean"
        },
        "comment": {
            "description": "Comment to that tab",
            "type": "string"
        },
        "created": {
            "_format": "datetime",
            "type": "string"
        },
        "group": {
            "description": "Short text that describes the tag",
            "type": "string"
        },
        "guid": {
            "__tags": [
                "notDisplayed",
                "notNull"
            ],
            "_format": "uuid",
            "type": "string"
        },
        "locked": {
            "__tags": [
                "notNull",
                "defaultFalse"
            ],
            "description": "entry is needed and should not be deleted",
            "type": "boolean"
        },
        "name": {
            "__tags": [
                "notNull",
                "unique"
            ],
            "description": "Name of the tag",
            "type": "string"
        },
        "tenantId": {
            "__ref": "./tenant.json",
            "__tags": [
                "notDisplayed"
            ],
            "_format": "uuid",
            "description": "what is the related domain",
            "type": "string"
        }
    },
    "required": [
        "guid",
        "text"
    ],
    "type": "object"
}