{
    "created_at": "2026-07-28T14:01:55+05:00",
    "database": "southcity_sch",
    "tables": {
        "migrations": {
            "exists": true,
            "create_sql": "CREATE TABLE `migrations` (\n  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,\n  `migration` varchar(255) NOT NULL,\n  `batch` int(11) NOT NULL,\n  PRIMARY KEY (`id`)\n) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci",
            "rows": [
                {
                    "id": 1,
                    "migration": "0001_01_01_000001_create_cache_table",
                    "batch": 1
                },
                {
                    "id": 2,
                    "migration": "0001_01_01_000002_create_jobs_table",
                    "batch": 1
                },
                {
                    "id": 3,
                    "migration": "2026_05_19_200252_create_permission_tables",
                    "batch": 1
                },
                {
                    "id": 4,
                    "migration": "2026_05_19_200252_create_personal_access_tokens_table",
                    "batch": 1
                },
                {
                    "id": 5,
                    "migration": "2026_05_19_202231_create_sessions_table",
                    "batch": 1
                },
                {
                    "id": 6,
                    "migration": "2026_05_20_000001_create_users_table",
                    "batch": 1
                },
                {
                    "id": 7,
                    "migration": "2026_05_20_000002_create_departments_table",
                    "batch": 1
                },
                {
                    "id": 8,
                    "migration": "2026_05_20_000003_create_specialities_table",
                    "batch": 1
                },
                {
                    "id": 9,
                    "migration": "2026_05_20_000004_create_consultants_table",
                    "batch": 1
                },
                {
                    "id": 10,
                    "migration": "2026_05_20_000005_create_consultant_fees_table",
                    "batch": 1
                },
                {
                    "id": 11,
                    "migration": "2026_05_20_000006_create_consultant_schedules_table",
                    "batch": 1
                },
                {
                    "id": 12,
                    "migration": "2026_05_20_000007_create_appointments_table",
                    "batch": 1
                },
                {
                    "id": 13,
                    "migration": "2026_05_20_000008_create_otp_verifications_table",
                    "batch": 1
                },
                {
                    "id": 14,
                    "migration": "2026_05_20_000009_create_audit_logs_table",
                    "batch": 1
                },
                {
                    "id": 15,
                    "migration": "2026_05_20_000010_create_system_settings_table",
                    "batch": 1
                },
                {
                    "id": 16,
                    "migration": "2026_06_08_000001_create_pharmacy_categories_table",
                    "batch": 1
                },
                {
                    "id": 17,
                    "migration": "2026_06_08_000002_create_pharmacy_products_table",
                    "batch": 1
                },
                {
                    "id": 18,
                    "migration": "2026_06_08_000003_create_pharmacy_delivery_methods_table",
                    "batch": 1
                },
                {
                    "id": 19,
                    "migration": "2026_06_08_000004_create_pharmacy_payment_methods_table",
                    "batch": 1
                },
                {
                    "id": 20,
                    "migration": "2026_06_08_000004b_create_pharmacy_offers_table",
                    "batch": 1
                },
                {
                    "id": 21,
                    "migration": "2026_06_08_000005_create_pharmacy_orders_table",
                    "batch": 1
                },
                {
                    "id": 22,
                    "migration": "2026_06_08_000006_create_pharmacy_order_items_table",
                    "batch": 1
                },
                {
                    "id": 23,
                    "migration": "2026_06_08_000007_create_pharmacy_prescriptions_table",
                    "batch": 1
                },
                {
                    "id": 24,
                    "migration": "2026_06_08_000008_create_pharmacy_offer_usages_table",
                    "batch": 1
                },
                {
                    "id": 25,
                    "migration": "2026_06_08_000009_add_max_cart_qty_and_payment_flags",
                    "batch": 1
                },
                {
                    "id": 26,
                    "migration": "2026_06_09_000001_create_pharmacy_promo_banners_table",
                    "batch": 1
                },
                {
                    "id": 27,
                    "migration": "2026_06_09_000002_create_pharmacy_homepage_sections_table",
                    "batch": 1
                },
                {
                    "id": 28,
                    "migration": "2026_06_09_000003_add_unit_label_to_pharmacy_products_table",
                    "batch": 1
                },
                {
                    "id": 29,
                    "migration": "2026_07_02_000001_create_diagnostic_requests_tables",
                    "batch": 2
                },
                {
                    "id": 30,
                    "migration": "2026_07_02_000002_add_medicine_code_to_pharmacy_order_items",
                    "batch": 2
                }
            ]
        },
        "users": {
            "exists": true,
            "create_sql": "CREATE TABLE `users` (\n  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,\n  `uuid` char(36) NOT NULL,\n  `name` varchar(150) NOT NULL,\n  `email` varchar(150) DEFAULT NULL,\n  `phone` varchar(20) DEFAULT NULL,\n  `password` varchar(255) NOT NULL,\n  `mr_number` varchar(30) DEFAULT NULL,\n  `date_of_birth` date DEFAULT NULL,\n  `gender` enum('male','female','other') DEFAULT NULL,\n  `address` text DEFAULT NULL,\n  `cnic` varchar(20) DEFAULT NULL,\n  `is_active` tinyint(1) NOT NULL DEFAULT 1,\n  `last_login_at` timestamp NULL DEFAULT NULL,\n  `email_verified_at` timestamp NULL DEFAULT NULL,\n  `remember_token` varchar(100) DEFAULT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL,\n  `deleted_at` timestamp NULL DEFAULT NULL,\n  PRIMARY KEY (`id`),\n  UNIQUE KEY `users_uuid_unique` (`uuid`),\n  UNIQUE KEY `users_email_unique` (`email`),\n  UNIQUE KEY `users_phone_unique` (`phone`),\n  UNIQUE KEY `users_mr_number_unique` (`mr_number`)\n) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci",
            "rows": [
                {
                    "id": 1,
                    "uuid": "bb9e5345-c0e3-4f63-bb37-f23db91a9587",
                    "name": "Super Admin",
                    "email": "admin@southcityhospital.pk",
                    "phone": null,
                    "password": "$2y$12$U.51semiixrotE/a9IdzfexKDe6uGnFzzeAyIYBUn6li6sJH7lw8u",
                    "mr_number": null,
                    "date_of_birth": null,
                    "gender": null,
                    "address": null,
                    "cnic": null,
                    "is_active": 1,
                    "last_login_at": null,
                    "email_verified_at": null,
                    "remember_token": null,
                    "created_at": "2026-06-11 06:22:10",
                    "updated_at": "2026-06-11 06:22:10",
                    "deleted_at": null
                },
                {
                    "id": 2,
                    "uuid": "e642808e-0dbc-41ae-b26f-28fc9e79db37",
                    "name": "Hospital Manager",
                    "email": "manager@southcityhospital.pk",
                    "phone": null,
                    "password": "$2y$12$eNoFFf9pj43ndUbEpgBEA.49W4RKSm4xlgigEoTPy/WIE1l8o1uQ2",
                    "mr_number": null,
                    "date_of_birth": null,
                    "gender": null,
                    "address": null,
                    "cnic": null,
                    "is_active": 1,
                    "last_login_at": null,
                    "email_verified_at": null,
                    "remember_token": null,
                    "created_at": "2026-06-11 06:22:10",
                    "updated_at": "2026-06-11 06:22:10",
                    "deleted_at": null
                },
                {
                    "id": 3,
                    "uuid": "d60a29c1-c998-4ebb-98be-7c55d1a11635",
                    "name": "OPD Reception",
                    "email": "reception@southcityhospital.pk",
                    "phone": "03000000001",
                    "password": "$2y$12$5zYu5SmWbB12ZUQjPp8cHe3jCjA.HIp8Yg32a7Q1Ju2d02T/74ag2",
                    "mr_number": null,
                    "date_of_birth": null,
                    "gender": null,
                    "address": null,
                    "cnic": null,
                    "is_active": 1,
                    "last_login_at": null,
                    "email_verified_at": null,
                    "remember_token": null,
                    "created_at": "2026-06-11 06:22:10",
                    "updated_at": "2026-06-11 06:22:10",
                    "deleted_at": null
                },
                {
                    "id": 4,
                    "uuid": "e2b6be89-d8be-4ed5-b9e8-2de3625ea888",
                    "name": "MR IMRAN HASHMI",
                    "email": "hertz.media@gmail.com",
                    "phone": "03009238580",
                    "password": "$2y$12$vlOJxxfoR9O3gQbXscaIL.CGSOjt2whazzg1JgXpzmkLhnLHS37Cq",
                    "mr_number": "2019/003062",
                    "date_of_birth": "1983-02-19",
                    "gender": "male",
                    "address": null,
                    "cnic": null,
                    "is_active": 1,
                    "last_login_at": "2026-06-11 15:07:11",
                    "email_verified_at": null,
                    "remember_token": null,
                    "created_at": "2026-06-11 12:03:21",
                    "updated_at": "2026-06-11 15:07:11",
                    "deleted_at": null
                },
                {
                    "id": 5,
                    "uuid": "7f41869a-c196-4770-8ab8-fed55880f373",
                    "name": "SYED KASHIF ALI JAFRI (CORPORATE JLI EMP # 1632)",
                    "email": "test@gmail.com",
                    "phone": "03333318049",
                    "password": "$2y$12$xVIj8j4ExZiYF3w05suK3.gqQrIzJ9wzRC91kEq/prHwgMDRp02Au",
                    "mr_number": "085539",
                    "date_of_birth": "1984-03-17",
                    "gender": "male",
                    "address": null,
                    "cnic": null,
                    "is_active": 1,
                    "last_login_at": "2026-06-11 12:25:31",
                    "email_verified_at": null,
                    "remember_token": null,
                    "created_at": "2026-06-11 12:03:48",
                    "updated_at": "2026-06-11 12:25:31",
                    "deleted_at": null
                },
                {
                    "id": 6,
                    "uuid": "936ec109-e159-4560-b682-2e5df727f0d4",
                    "name": "RIZWANA AGHA",
                    "email": "testing@sch.com.pk",
                    "phone": "03009231546",
                    "password": "$2y$12$r4LyZZpflqHQy4Ck/qAaOuAa.OrRJ34g9d6BhCYX50IiUmv8vfWeO",
                    "mr_number": "2022/010587",
                    "date_of_birth": "1976-01-01",
                    "gender": "female",
                    "address": null,
                    "cnic": null,
                    "is_active": 1,
                    "last_login_at": "2026-06-11 14:28:24",
                    "email_verified_at": null,
                    "remember_token": null,
                    "created_at": "2026-06-11 14:26:34",
                    "updated_at": "2026-06-11 14:28:24",
                    "deleted_at": null
                },
                {
                    "id": 7,
                    "uuid": "7e3982ba-d609-4422-b7de-a7b282eb6899",
                    "name": "Mr.Humair A.Noor",
                    "email": "humair@test.com",
                    "phone": "03468202076",
                    "password": "$2y$12$NGH7BCotP2USAGYlPEAVde04pJFb8u3HcWUdhkKrM6R.FjnkwBpsy",
                    "mr_number": "083469",
                    "date_of_birth": "1979-02-19",
                    "gender": "male",
                    "address": null,
                    "cnic": null,
                    "is_active": 1,
                    "last_login_at": null,
                    "email_verified_at": null,
                    "remember_token": null,
                    "created_at": "2026-06-11 14:48:40",
                    "updated_at": "2026-06-11 14:48:40",
                    "deleted_at": null
                },
                {
                    "id": 8,
                    "uuid": "43c224d8-c5ad-4487-bec8-01db06e530ef",
                    "name": "IRHA ATHER",
                    "email": "test@test.com",
                    "phone": "03213058662",
                    "password": "$2y$12$UVh0Fa/jLmhig6yYPNSXQ.xxQ5.3Fn5jh7za60OaC/Jbj7Pnsvt.2",
                    "mr_number": "2024/011506",
                    "date_of_birth": "2024-05-05",
                    "gender": "female",
                    "address": null,
                    "cnic": null,
                    "is_active": 1,
                    "last_login_at": "2026-06-23 13:57:19",
                    "email_verified_at": null,
                    "remember_token": null,
                    "created_at": "2026-06-12 16:59:29",
                    "updated_at": "2026-06-23 13:57:19",
                    "deleted_at": null
                },
                {
                    "id": 9,
                    "uuid": "faa92af4-a4b3-4920-8c88-574d56cc07c3",
                    "name": "API Demo Patient",
                    "email": "hospital-api-demo@sch.example",
                    "phone": "03000009991",
                    "password": "$2y$12$RD3qn6hqFX7i3mbSCj7soeMm85hsm7htAsCQYeG1J1U9E8iQnSkZ2",
                    "mr_number": "MR-DEMO-1001",
                    "date_of_birth": null,
                    "gender": "male",
                    "address": null,
                    "cnic": null,
                    "is_active": 1,
                    "last_login_at": null,
                    "email_verified_at": null,
                    "remember_token": null,
                    "created_at": "2026-07-02 15:30:17",
                    "updated_at": "2026-07-02 15:30:17",
                    "deleted_at": null
                }
            ]
        },
        "radiology_requests": {
            "exists": true,
            "create_sql": "CREATE TABLE `radiology_requests` (\n  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,\n  `request_number` varchar(255) NOT NULL,\n  `patient_id` bigint(20) unsigned NOT NULL,\n  `requested_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL,\n  PRIMARY KEY (`id`),\n  UNIQUE KEY `radiology_requests_request_number_unique` (`request_number`),\n  KEY `radiology_requests_patient_id_foreign` (`patient_id`),\n  KEY `radiology_requests_requested_at_index` (`requested_at`),\n  CONSTRAINT `radiology_requests_patient_id_foreign` FOREIGN KEY (`patient_id`) REFERENCES `users` (`id`) ON DELETE CASCADE\n) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci",
            "rows": [
                {
                    "id": 1,
                    "request_number": "RAD-DEMO-20260702-001",
                    "patient_id": 9,
                    "requested_at": "2026-07-02 15:00:17",
                    "created_at": "2026-07-02 15:30:17",
                    "updated_at": "2026-07-02 15:30:17"
                }
            ]
        },
        "radiology_request_items": {
            "exists": true,
            "create_sql": "CREATE TABLE `radiology_request_items` (\n  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,\n  `radiology_request_id` bigint(20) unsigned NOT NULL,\n  `test_name` varchar(255) NOT NULL,\n  `test_code` varchar(80) NOT NULL,\n  `created_at` timestamp NULL DEFAULT NULL,\n  `updated_at` timestamp NULL DEFAULT NULL,\n  PRIMARY KEY (`id`),\n  KEY `radiology_request_items_radiology_request_id_foreign` (`radiology_request_id`),\n  CONSTRAINT `radiology_request_items_radiology_request_id_foreign` FOREIGN KEY (`radiology_request_id`) REFERENCES `radiology_requests` (`id`) ON DELETE CASCADE\n) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci",
            "rows": [
                {
                    "id": 1,
                    "radiology_request_id": 1,
                    "test_name": "Chest X-Ray",
                    "test_code": "XR-CHEST",
                    "created_at": "2026-07-02 15:30:17",
                    "updated_at": "2026-07-02 15:30:17"
                },
                {
                    "id": 2,
                    "radiology_request_id": 1,
                    "test_name": "Ultrasound Abdomen",
                    "test_code": "US-ABDOMEN",
                    "created_at": "2026-07-02 15:30:17",
                    "updated_at": "2026-07-02 15:30:17"
                }
            ]
        },
        "radiology_categories": {
            "exists": false
        },
        "radiology_services": {
            "exists": false
        }
    }
}