{
    "fields": {
        "name": {
            "type": "varchar",
            "required": true
        },
        "job": {
            "type": "varchar",
            "required": true,
            "view": "views/scheduled-job/fields/job"
        },
        "status": {
            "type": "enum",
            "options": ["Active", "Inactive"]
        },
        "scheduling": {
            "type": "varchar",
            "required": true,
            "view": "views/scheduled-job/fields/scheduling",
            "default": "*/10 * * * *",
            "tooltip": true
        },
        "lastRun": {
            "type": "datetime",
            "readOnly": true
        },
        "createdAt": {
            "type": "datetime",
            "readOnly": true
        },
        "modifiedAt": {
            "type": "datetime",
            "readOnly": true
        },
        "createdBy": {
            "type": "link",
            "readOnly": true
        },
        "modifiedBy": {
            "type": "link",
            "readOnly": true
        }
    },
    "links": {
        "createdBy": {
            "type": "belongsTo",
            "entity": "User"
        },
        "modifiedBy": {
            "type": "belongsTo",
            "entity": "User"
        },
        "log": {
            "type": "hasMany",
            "entity": "ScheduledJobLogRecord",
            "foreign": "scheduledJob"
        }
    },
    "collection": {
        "sortBy": "name",
        "asc": true
    }
}
