{
    "fields": {
        "name": {
            "type": "varchar",
            "required": true,
            "trim": true
        },
        "description": {
            "type": "text"
        },
        "category": {
            "type": "link",
            "view": "views/fields/link-category-tree"
        },
        "targetType": {
            "type": "enum",
            "required": true,
            "view": "advanced:views/bpmn-flowchart/fields/entity-type",
            "readOnlyAfterCreate": true
        },
        "data": {
            "type": "jsonObject",
            "audited": true
        },
        "flowchart": {
            "type": "base",
            "view": "advanced:views/bpmn-flowchart/fields/flowchart",
            "notStorable": true,
            "exportDisabled": true,
            "importDisabled": true
        },
        "elementsDataHash": {
            "type": "jsonObject",
            "utility": true,
            "readOnly": true,
            "exportDisabled": true,
            "importDisabled": true
        },
        "isActive": {
            "type": "bool",
            "default": true,
            "audited": true
        },
        "hasNoneStartEvent": {
            "type": "bool",
            "utility": true,
            "readOnly": true,
            "exportDisabled": true,
            "importDisabled": true
        },
        "eventStartIdList": {
            "type": "jsonArray",
            "utility": true,
            "readOnly": true
        },
        "eventStartAllIdList": {
            "type": "jsonArray",
            "utility": true,
            "readOnly": true
        },
        "assignedUser": {
            "type": "link",
            "view": "views/fields/assigned-user"
        },
        "teams": {
            "type": "linkMultiple",
            "view": "views/fields/teams"
        },
        "createdAt": {
            "type": "datetime",
            "readOnly": true
        },
        "modifiedAt": {
            "type": "datetime",
            "readOnly": true
        },
        "createdBy": {
            "type": "link",
            "readOnly": true
        },
        "modifiedBy": {
            "type": "link",
            "readOnly": true
        }
    },
    "links": {
        "processes": {
            "type": "hasMany",
            "entity": "BpmnProcess",
            "foreign": "flowchart"
        },
        "startWorkflows": {
            "type": "hasMany",
            "entity": "Workflow",
            "foreign": "flowchart",
            "utility": true,
            "layoutRelationshipsDisabled": true
        },
        "category": {
            "type": "belongsTo",
            "foreign": "flowcharts",
            "entity": "BpmnFlowchartCategory"
        },
        "assignedUser": {
            "type": "belongsTo",
            "entity": "User"
        },
        "teams": {
            "type": "hasMany",
            "entity": "Team",
            "relationName": "entityTeam",
            "layoutRelationshipsDisabled": true
        },
        "createdBy": {
            "type": "belongsTo",
            "entity": "User"
        },
        "modifiedBy": {
            "type": "belongsTo",
            "entity": "User"
        }
    },
    "collection": {
        "orderBy": "createdAt",
        "order": "desc"
    },
    "targetTypeListToIgnore": [
        "ProductBrand",
        "QuoteItem",
        "OpportunityItem",
        "SalesOrderItem",
        "InvoiceItem"
    ]
}
