{
    "fields": {
        "name": {
            "type": "varchar",
            "maxLength": 100
        },
        "roles": {
            "type": "linkMultiple",
            "tooltip": true
        },
        "positionList": {
            "type": "array",
            "tooltip": true
        },
        "userRole": {
            "type": "varchar",
            "notStorable": true,
            "disabled": true
        },
        "createdAt": {
            "type": "datetime",
            "readOnly": true
        }
    },
    "links": {
        "users": {
            "type": "hasMany",
            "entity": "User",
            "foreign": "teams"
        },
        "roles": {
            "type": "hasMany",
            "entity": "Role",
            "foreign": "teams"
        }
    },
    "collection": {
        "sortBy": "name",
        "asc": true
    }
}
