{
    "model": "\\Ignite\\Course\\Entities\\CourseCompletion",
    "provides": {
        "offers": {
            "Course": "Ignite\\Course\\Domain\\Activity\\Form\\Offer\\CourseCompletion"
        },
        "rules": {
            "CourseDefault": "Ignite\\Course\\Domain\\Activity\\Rules\\CourseDefault"
        }
    },
    "statuses": {
        "states": {
            "pending": {
                "name": "pending",
                "type": "initial",
                "color": "yellow",
                "icon": "question"
            },
            "declined": {
                "name": "declined",
                "type": "final",
                "color": "red",
                "icon": "minus"
            },
            "approved": {
                "name": "approved",
                "type": "normal",
                "color": "green",
                "icon": "check"
            }
        },
        "transitions": {
            "pending_to_pending": {
                "from": ["pending"],
                "to": "pending"
            },
            "pending_to_declined": {
                "from": ["pending"],
                "to": "declined"
            },
            "pending_to_approved": {
                "from": ["pending"],
                "to": "approved"
            },
            "approved_to_approved": {
                "from": ["approved"],
                "to": "approved"
            },
            "declined_to_declined": {
                "from": ["declined"],
                "to": "declined"
            }
        }
    },
    "fields": [
        {
            "table": "activity_course_completion",
            "frontend_type": "text",
            "backend_type": "string",
            "label": "Course Name",
            "label_alias": "Course Name",
            "label_show": true,
            "orderable": true,
            "searchable": true,
            "exportable": true,
            "sortable": true,
            "visible": true,
            "name": "course_name",
            "rules": [
                "required"
            ],
            "attr": {
                "readonly": true
            }
        },
        {
            "table": "activity_course_completion",
            "frontend_type": "text",
            "backend_type": "string",
            "label": "Locale",
            "label_alias": "Locale",
            "label_show": true,
            "orderable": true,
            "searchable": true,
            "exportable": true,
            "sortable": true,
            "visible": true,
            "name": "locale",
            "attr": {
                "readonly": true
            }
        },
        {
            "table": "activity_course_completion",
            "frontend_type": "text",
            "backend_type": "string",
            "name": "score",
            "label": "Score",
            "label_show": true,
            "orderable": true,
            "searchable": true,
            "exportable": true,
            "sortable": true,
            "visible": true,
            "rules": [],
            "attr": {
                "readonly": true
            }
        }
    ]
}