{
    "success": true,
    "message": "System Check zakończony powodzeniem",
    "data": {
        "module": "system_check",
        "system_status": "ok",
        "database": {
            "status": "ok",
            "name": "agent_miromax_db",
            "tables_count": 10,
            "required_tables_count": 10,
            "missing_tables": [],
            "records": {
                "users": 1,
                "user_profiles": 1,
                "user_settings": 1,
                "lessons": 1,
                "history_items": 3,
                "vocabulary_items": 3,
                "knowledge_notes": 1,
                "learning_plans": 1,
                "coach_checkins": 1,
                "sessions": 1
            },
            "demo_user": {
                "id": 1,
                "name": "Użytkownik demo",
                "email": "demo@agent-miromax.com",
                "role": "user",
                "status": "active"
            }
        },
        "checks": {
            "core_api": {
                "ok": true,
                "ok_count": 3,
                "total": 3
            },
            "demo_api": {
                "ok": true,
                "ok_count": 9,
                "total": 9
            },
            "auth_api": {
                "ok": true,
                "ok_count": 3,
                "total": 3
            },
            "database_api": {
                "ok": true,
                "ok_count": 10,
                "total": 10
            }
        },
        "endpoint_results": {
            "core_api": {
                "status": {
                    "url": "https:\/\/api.agent-miromax.com\/status.php",
                    "ok": true,
                    "http_status": 200,
                    "duration_ms": 73,
                    "json_success": true,
                    "module": null,
                    "message": "API działa poprawnie"
                },
                "modules": {
                    "url": "https:\/\/api.agent-miromax.com\/modules.php",
                    "ok": true,
                    "http_status": 200,
                    "duration_ms": 57,
                    "json_success": true,
                    "module": null,
                    "message": "Lista modułów pobrana poprawnie"
                },
                "app_info": {
                    "url": "https:\/\/api.agent-miromax.com\/app-info.php",
                    "ok": true,
                    "http_status": 200,
                    "duration_ms": 62,
                    "json_success": true,
                    "module": null,
                    "message": "Informacje o aplikacji pobrane poprawnie"
                }
            },
            "demo_api": {
                "avatar_demo": {
                    "url": "https:\/\/api.agent-miromax.com\/avatar-demo.php",
                    "ok": true,
                    "http_status": 200,
                    "duration_ms": 55,
                    "json_success": true,
                    "module": null,
                    "message": "Odpowiedź demo Avatara"
                },
                "coach_demo": {
                    "url": "https:\/\/api.agent-miromax.com\/coach-demo.php",
                    "ok": true,
                    "http_status": 200,
                    "duration_ms": 55,
                    "json_success": true,
                    "module": "coach",
                    "message": "Odpowiedź demo Coacha pobrana poprawnie"
                },
                "education_demo": {
                    "url": "https:\/\/api.agent-miromax.com\/education-demo.php",
                    "ok": true,
                    "http_status": 200,
                    "duration_ms": 52,
                    "json_success": true,
                    "module": "education",
                    "message": "Odpowiedź demo Asystenta edukacyjnego pobrana poprawnie"
                },
                "knowledge_demo": {
                    "url": "https:\/\/api.agent-miromax.com\/knowledge-demo.php",
                    "ok": true,
                    "http_status": 200,
                    "duration_ms": 53,
                    "json_success": true,
                    "module": "knowledge",
                    "message": "Odpowiedź demo Bazy wiedzy pobrana poprawnie"
                },
                "learning_plan_demo": {
                    "url": "https:\/\/api.agent-miromax.com\/learning-plan-demo.php",
                    "ok": true,
                    "http_status": 200,
                    "duration_ms": 52,
                    "json_success": true,
                    "module": "learning_plan",
                    "message": "Odpowiedź demo Planu nauki pobrana poprawnie"
                },
                "history_demo": {
                    "url": "https:\/\/api.agent-miromax.com\/history-demo.php",
                    "ok": true,
                    "http_status": 200,
                    "duration_ms": 51,
                    "json_success": true,
                    "module": "history",
                    "message": "Historia demo pobrana poprawnie"
                },
                "vocabulary_demo": {
                    "url": "https:\/\/api.agent-miromax.com\/vocabulary-demo.php",
                    "ok": true,
                    "http_status": 200,
                    "duration_ms": 51,
                    "json_success": true,
                    "module": "vocabulary",
                    "message": "Lista słówek demo pobrana poprawnie"
                },
                "profile_demo": {
                    "url": "https:\/\/api.agent-miromax.com\/profile-demo.php",
                    "ok": true,
                    "http_status": 200,
                    "duration_ms": 50,
                    "json_success": true,
                    "module": "profile",
                    "message": "Profil demo pobrany poprawnie"
                },
                "settings_demo": {
                    "url": "https:\/\/api.agent-miromax.com\/settings-demo.php",
                    "ok": true,
                    "http_status": 200,
                    "duration_ms": 48,
                    "json_success": true,
                    "module": "settings",
                    "message": "Ustawienia demo pobrane poprawnie"
                }
            },
            "auth_api": {
                "auth_demo": {
                    "url": "https:\/\/api.agent-miromax.com\/auth-demo.php",
                    "ok": true,
                    "http_status": 200,
                    "duration_ms": 50,
                    "json_success": true,
                    "module": "auth",
                    "message": "Status autoryzacji demo pobrany poprawnie"
                },
                "login_demo": {
                    "url": "https:\/\/api.agent-miromax.com\/login-demo.php",
                    "ok": true,
                    "http_status": 200,
                    "duration_ms": 52,
                    "json_success": true,
                    "module": "login",
                    "message": "Logowanie demo zakończone powodzeniem"
                },
                "register_demo": {
                    "url": "https:\/\/api.agent-miromax.com\/register-demo.php",
                    "ok": true,
                    "http_status": 200,
                    "duration_ms": 51,
                    "json_success": true,
                    "module": "register",
                    "message": "Rejestracja demo zakończona powodzeniem"
                }
            },
            "database_api": {
                "db_test": {
                    "url": "https:\/\/api.agent-miromax.com\/db-test.php",
                    "ok": true,
                    "http_status": 200,
                    "duration_ms": 54,
                    "json_success": true,
                    "module": "database",
                    "message": "Test bazy danych zakończony powodzeniem"
                },
                "database_status": {
                    "url": "https:\/\/api.agent-miromax.com\/database-status.php",
                    "ok": true,
                    "http_status": 200,
                    "duration_ms": 55,
                    "json_success": true,
                    "module": "database_status",
                    "message": "Status bazy danych pobrany poprawnie"
                },
                "profile_db": {
                    "url": "https:\/\/api.agent-miromax.com\/profile-db.php",
                    "ok": true,
                    "http_status": 200,
                    "duration_ms": 54,
                    "json_success": true,
                    "module": "profile_db",
                    "message": "Profil użytkownika pobrany z bazy danych"
                },
                "settings_db": {
                    "url": "https:\/\/api.agent-miromax.com\/settings-db.php",
                    "ok": true,
                    "http_status": 200,
                    "duration_ms": 53,
                    "json_success": true,
                    "module": "settings_db",
                    "message": "Ustawienia użytkownika pobrane z bazy danych"
                },
                "vocabulary_db": {
                    "url": "https:\/\/api.agent-miromax.com\/vocabulary-db.php",
                    "ok": true,
                    "http_status": 200,
                    "duration_ms": 53,
                    "json_success": true,
                    "module": "vocabulary_db",
                    "message": "Słówka użytkownika pobrane z bazy danych"
                },
                "knowledge_db": {
                    "url": "https:\/\/api.agent-miromax.com\/knowledge-db.php",
                    "ok": true,
                    "http_status": 200,
                    "duration_ms": 51,
                    "json_success": true,
                    "module": "knowledge_db",
                    "message": "Notatki użytkownika pobrane z bazy danych"
                },
                "history_db": {
                    "url": "https:\/\/api.agent-miromax.com\/history-db.php",
                    "ok": true,
                    "http_status": 200,
                    "duration_ms": 52,
                    "json_success": true,
                    "module": "history_db",
                    "message": "Historia użytkownika pobrana z bazy danych"
                },
                "learning_plan_db": {
                    "url": "https:\/\/api.agent-miromax.com\/learning-plan-db.php",
                    "ok": true,
                    "http_status": 200,
                    "duration_ms": 52,
                    "json_success": true,
                    "module": "learning_plan_db",
                    "message": "Plan nauki użytkownika pobrany z bazy danych"
                },
                "coach_db": {
                    "url": "https:\/\/api.agent-miromax.com\/coach-db.php",
                    "ok": true,
                    "http_status": 200,
                    "duration_ms": 55,
                    "json_success": true,
                    "module": "coach_db",
                    "message": "Check-in Coach AI pobrany z bazy danych"
                },
                "lessons_db": {
                    "url": "https:\/\/api.agent-miromax.com\/lessons-db.php",
                    "ok": true,
                    "http_status": 200,
                    "duration_ms": 53,
                    "json_success": true,
                    "module": "lessons_db",
                    "message": "Lekcje użytkownika pobrane z bazy danych"
                }
            }
        },
        "frontend_pages": {
            "home": "https:\/\/app.agent-miromax.com",
            "api_test": "https:\/\/app.agent-miromax.com\/api-test.html",
            "login": "https:\/\/app.agent-miromax.com\/login.html",
            "register": "https:\/\/app.agent-miromax.com\/register.html",
            "profile": "https:\/\/app.agent-miromax.com\/profile.html",
            "settings": "https:\/\/app.agent-miromax.com\/settings.html",
            "vocabulary": "https:\/\/app.agent-miromax.com\/vocabulary.html",
            "knowledge": "https:\/\/app.agent-miromax.com\/knowledge.html",
            "history": "https:\/\/app.agent-miromax.com\/history.html",
            "learning_plan": "https:\/\/app.agent-miromax.com\/learning-plan.html",
            "coach": "https:\/\/app.agent-miromax.com\/coach.html",
            "education": "https:\/\/app.agent-miromax.com\/education.html"
        },
        "errors": [],
        "warnings": [],
        "summary": {
            "active_modules": 9,
            "core_endpoints": 3,
            "demo_endpoints": 9,
            "auth_endpoints": 3,
            "db_endpoints": 10,
            "database_tables": 10,
            "frontend_pages": 12
        },
        "recommendation": "System działa poprawnie. Komunikacja między API, bazą danych i widokami aplikacji jest poprawna.",
        "next_step": "Kontynuuj przełączanie kolejnych widoków aplikacji na endpointy DB."
    }
}