{
    "fields": {
        "name": {
            "type": "varchar",
            "required": true
        },
        "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": true,
            "view": "views/fields/assigned-user"
        },
        "teams": {
            "type": "linkMultiple",
            "view": "views/fields/teams"
        },
        "testAddress": {
            "type": "address"
        },
        "testArray": {
            "type": "array",
            "storeArrayValues": true,
            "options": [
                "op1",
                "op2"
            ]
        },
        "testBoolean": {
            "notNull": true,
            "type": "bool"
        },
        "testCurrency": {
            "type": "currency"
        },
        "testDate": {
            "notNull": false,
            "type": "date"
        },
        "testDateTime": {
            "notNull": false,
            "type": "datetime",
            "minuteStep": 30
        },
        "testFile": {
            "type": "file",
            "sourceList": [],
            "accept": []
        },
        "testFloat": {
            "notNull": false,
            "type": "float"
        },
        "testInteger": {
            "type": "int"
        },
        "testText": {
            "type": "text",
            "rowsMin": 2,
            "cutHeight": 200
        },
        "testVarchar": {
            "type": "varchar",
            "maxLength": 100,
            "options": []
        }
    },
    "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
        },
        "testFile": {
            "type": "belongsTo",
            "entity": "Attachment",
            "skipOrmDefs": true,
            "disabled": true
        }
    },
    "collection": {
        "orderBy": "createdAt",
        "order": "desc"
    },
    "indexes": {
        "name": {
            "columns": [
                "name",
                "deleted"
            ]
        },
        "assignedUser": {
            "columns": [
                "assignedUserId",
                "deleted"
            ]
        }
    }
}
