{
    "fields": {
        "name": {
            "type": "varchar",
            "required": true,
            "pattern": "$noBadCharacters"
        },
        "description": {
            "type": "text"
        },
        "createdAt": {
            "type": "datetime",
            "readOnly": true
        },
        "modifiedAt": {
            "type": "datetime",
            "readOnly": true
        },
        "createdBy": {
            "type": "link",
            "readOnly": true,
            "view": "views/fields/user"
        },
        "modifiedBy": {
            "type": "link",
            "readOnly": true,
            "view": "views/fields/user"
        },
        "assignedUser": {
            "type": "link",
            "required": false,
            "view": "views/fields/assigned-user"
        },
        "teams": {
            "type": "linkMultiple",
            "view": "views/fields/teams"
        },
        "objektAdresse": {
            "type": "address",
            "viewMap": true,
            "tooltip": true,
            "isCustom": true
        },
        "checkinSystem": {
            "type": "enum",
            "options": [
                "Schlüsselbox",
                "Nuki",
                "Manuell"
            ],
            "style": {
                "Schlüsselbox": null,
                "Nuki": null,
                "Manuell": null
            },
            "default": "Schlüsselbox",
            "tooltip": true,
            "maxLength": 100,
            "isCustom": true
        },
        "baujahr": {
            "type": "int",
            "tooltip": true,
            "isCustom": true
        },
        "genehmigungsstatusZweckentfremdung": {
            "type": "multiEnum",
            "storeArrayValues": true,
            "default": [],
            "options": [
                "Angefragt",
                "Genehmigt",
                "Verweigert"
            ],
            "style": {
                "Angefragt": null,
                "Genehmigt": null,
                "Verweigert": null
            },
            "tooltip": true,
            "isCustom": true
        },
        "zweckentfremdungGeklrt": {
            "notNull": true,
            "type": "bool",
            "tooltip": true,
            "isCustom": true
        },
        "genehmigungsrisiko": {
            "type": "varchar",
            "maxLength": 255,
            "options": [],
            "tooltip": true,
            "isCustom": true
        },
        "brandschutzGeprft": {
            "notNull": true,
            "type": "bool",
            "tooltip": true,
            "isCustom": true
        },
        "brandschutzOK": {
            "notNull": true,
            "type": "bool",
            "tooltip": true,
            "isCustom": true
        },
        "capexBudget": {
            "type": "currency",
            "tooltip": true,
            "isCustom": true
        },
        "capexSchtzung": {
            "type": "currency",
            "tooltip": true,
            "isCustom": true
        },
        "revPARLift": {
            "notNull": false,
            "type": "float",
            "tooltip": true,
            "isCustom": true
        }
    },
    "links": {
        "createdBy": {
            "type": "belongsTo",
            "entity": "User"
        },
        "modifiedBy": {
            "type": "belongsTo",
            "entity": "User"
        },
        "assignedUser": {
            "type": "belongsTo",
            "entity": "User"
        },
        "teams": {
            "type": "hasMany",
            "entity": "Team",
            "relationName": "entityTeam",
            "layoutRelationshipsDisabled": true
        }
    },
    "collection": {
        "orderBy": "createdAt",
        "order": "desc"
    },
    "indexes": {
        "name": {
            "columns": [
                "name",
                "deleted"
            ]
        },
        "assignedUser": {
            "columns": [
                "assignedUserId",
                "deleted"
            ]
        },
        "createdAt": {
            "columns": [
                "createdAt"
            ]
        },
        "createdAtId": {
            "unique": true,
            "columns": [
                "createdAt",
                "id"
            ]
        }
    }
}
