INSERT INTO `ltu_phrases` (`id`, `uuid`, `translation_id`, `translation_file_id`, `phrase_id`, `key`, `group`, `value`, `status`, `parameters`, `note`, `created_at`, `updated_at`) VALUES
(27056, '9f34b222-7fb0-4a5a-a59f-b44f507fb838', 9, 3, 2706, 'lunch_break.break_update', 'messages', '成功更新午餐休息。', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27057, '9f34b222-85ce-4f33-9225-e69d864821b0', 9, 3, 2707, 'lunch_break.add_break', 'messages', '添加午餐休息', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27058, '9f34b222-8c04-4930-a13f-a61bedeb91ac', 9, 3, 2708, 'lunch_break.edit_break', 'messages', '编辑午餐休息', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27059, '9f34b222-9244-4b29-8fc9-6c8c3d220d19', 9, 3, 2709, 'lunch_break.break_already_is_exist', 'messages', '午餐休息已经存在。', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27060, '9f34b222-984f-4af1-9525-c6450879ecf9', 9, 3, 2710, 'lunch_break.break_time_greater_than_zero', 'messages', '休息时间必须大于零。', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27061, '9f34b222-9e6c-4657-abdb-bb2810d1d70e', 9, 3, 2711, 'lunch_break.break_to_time_greater_than_zero', 'messages', '休息结束时间必须大于零。', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27062, '9f34b222-a467-4b34-814d-381c7e3065fe', 9, 3, 2712, 'lunch_break.break_to_time_greater_than_from_time', 'messages', '休息结束时间必须大于休息开始时间。', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27063, '9f34b222-aa8f-4449-b678-ee9dd9399771', 9, 3, 2713, 'lunch_break.every_day', 'messages', '每天', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27064, '9f34b222-b0e2-484c-86d2-f5e8de04405a', 9, 3, 2714, 'lunch_break.single_day', 'messages', '单日', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27065, '9f34b222-b712-4f76-b146-203d50f43858', 9, 3, 2715, 'lunch_break.date_required', 'messages', '日期字段为必填项.', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27066, '9f34b222-bd4a-44d4-93dc-3e778fd29f8b', 9, 3, 2716, 'lunch_break.ipd_timeline', 'messages', 'IPD 时间表', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27067, '9f34b222-c340-469c-8f6c-dcb2ddb64a42', 9, 3, 2717, 'lunch_break.professional_details', 'messages', '专业详情', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27068, '9f34b222-c95f-4319-a9f3-ee37dc409e62', 9, 3, 2718, 'lunch_break.get_direction', 'messages', '得到指引', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27069, '9f34b222-cf84-4664-abc8-f15ffc5c4871', 9, 3, 2719, 'lunch_break.filters', 'messages', '过滤器', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27070, '9f34b222-d72e-4ba7-bcdf-521fde4b0126', 9, 3, 2720, 'lunch_break.smart_card_template_saved', 'messages', '智能患者卡模板已成功保存。', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27071, '9f34b222-dd85-416c-b67b-5bcb0c5dbb02', 9, 3, 2721, 'lunch_break.smart_card_template_update', 'messages', '智能患者卡模板更新成功。', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27072, '9f34b222-e39e-47b9-809c-c2974798c79e', 9, 3, 2722, 'lunch_break.smart_card_saved', 'messages', '智能患者卡已成功保存。', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27073, '9f34b222-e9dd-4eb7-ab19-d54ce6770cf1', 9, 3, 2723, 'lunch_break.smart_patient_card_template', 'messages', '智能病人卡模板', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27074, '9f34b222-efee-453e-96d6-fc9771ead013', 9, 3, 2724, 'lunch_break.new_smart_patient_card_template', 'messages', '新的智能患者卡模板', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27075, '9f34b222-f638-4d50-99cc-50b701a5411c', 9, 3, 2725, 'lunch_break.edit_smart_patient_card_template', 'messages', '编辑智能患者卡模板', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27076, '9f34b222-fc6d-420e-b1d4-06b8ab528157', 9, 3, 2726, 'lunch_break.template_name', 'messages', '模板名称', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27077, '9f34b223-02d1-477c-86b1-b7b70b2cf995', 9, 3, 2727, 'lunch_break.header_color', 'messages', '标题颜色', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27078, '9f34b223-08e9-4a7a-8090-5f9de2f5a203', 9, 3, 2728, 'lunch_break.show_email', 'messages', '显示电子邮件', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27079, '9f34b223-0f2e-4db7-a80a-3e1ea9916379', 9, 3, 2729, 'lunch_break.show_phone', 'messages', '显示电话', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27080, '9f34b223-15ab-4501-82ca-3401370c9abe', 9, 3, 2730, 'lunch_break.show_dob', 'messages', '显示出生日期', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27081, '9f34b223-1ecc-4550-9f6e-51b80fc07b12', 9, 3, 2731, 'lunch_break.show_blood_group', 'messages', '显示血型', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27082, '9f34b223-2609-4b80-8607-6d09e37b8b52', 9, 3, 2732, 'lunch_break.show_address', 'messages', '显示地址', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27083, '9f34b223-2cbf-4f06-8ea9-977135f54a98', 9, 3, 2733, 'lunch_break.show_patient_unique_id', 'messages', '显示患者唯一 ID', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27084, '9f34b223-3328-4873-9d24-5bfaea27b586', 9, 3, 2735, 'lunch_break.id', 'messages', 'ID', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27085, '9f34b223-3982-4968-b3a7-dfb34d8fa6e0', 9, 3, 2736, 'lunch_break.generate_smart_patient_card', 'messages', '生成智能患者卡', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27086, '9f34b223-4054-45cd-ab10-d4d80997af49', 9, 3, 2737, 'lunch_break.for_all_patient', 'messages', '对于所有患者', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27087, '9f34b223-46a3-4b38-946e-e0b807b5b811', 9, 3, 2738, 'lunch_break.only_one_patient', 'messages', '只有一名患者', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27088, '9f34b223-4cea-4d47-b5af-4b11f74ed34c', 9, 3, 2739, 'lunch_break.remaining_patient', 'messages', '剩余病人', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27089, '9f34b223-538c-4cad-bd9b-feb99ef7d690', 9, 3, 2740, 'lunch_break.generate_smart_patient_cards', 'messages', '生成智能患者卡', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27090, '9f34b223-59c9-413f-90ae-c48167ea62c5', 9, 3, 2741, 'lunch_break.card_template', 'messages', '智能病人卡模板', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27091, '9f34b223-6066-4bf5-9c9d-ee072dec7b0a', 9, 3, 2742, 'lunch_break.smart_patient_card', 'messages', '智能病人卡', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27092, '9f34b223-66a5-446c-a34e-b2aaaa50da5e', 9, 3, 2743, 'lunch_break.template_required', 'messages', '模板名称字段是必需的。', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27093, '9f34b223-6d0c-49ea-9271-1531a0174c8e', 9, 3, 2744, 'lunch_break.patient_required', 'messages', '需要患者字段。', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27094, '9f34b223-739a-4492-86a5-6f078c1d8baf', 9, 3, 2745, 'lunch_break.qr_code_not_found', 'messages', '未找到二维码。', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27095, '9f34b223-7a14-4db9-b33b-acc251324507', 9, 3, 2746, 'lunch_break.dob', 'messages', '出生日期', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27096, '9f34b223-808c-431b-861c-99d234bbe52a', 9, 3, 2748, 'lunch_break.appointment_exist_time', 'messages', '此时已存在预约。', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27097, '9f34b223-86c8-4e4c-a945-8be5fe03e84e', 9, 3, 2749, 'lunch_break.appointment_exist_date', 'messages', '该日期已存在预约。', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27098, '9f34b223-8d18-4a63-9a33-36ba4b1539ba', 9, 3, 2752, 'lunch_break.patient_unique_id', 'messages', '患者唯一 ID', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27099, '9f34b223-9369-4ced-8137-cf4d053d2e00', 9, 3, 2753, 'lunch_break.patient_smart_cards', 'messages', '患者智能卡', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27100, '9f34b223-99dd-4a72-a18b-2d6648d0f7bd', 9, 3, 2754, 'lunch_break.select_template', 'messages', '选择模板', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27101, '9f34b223-a07e-4822-91d3-101626a41a5f', 9, 3, 2755, 'lunch_break.print_discharge_slip', 'messages', '打印放电单', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27102, '9f34b223-a6fc-465d-8f85-77655691cdd2', 9, 3, 2756, 'lunch_break.discharge_slip', 'messages', '卸料单', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27103, '9f34b223-ad5c-4ec1-8ef3-f6fa9a2343fd', 9, 3, 2757, 'lunch_break.bed_charge', 'messages', '床位费', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27104, '9f34b223-b3a8-4766-9937-8832d691ff95', 9, 3, 2747, 'lunch_break.reset_filter', 'messages', '重置过滤器', 'active', NULL, NULL, '2025-06-21 00:49:17', '2025-06-21 00:49:17'),
(27105, '9f34b223-b9cd-4ab1-8b91-82b867468aed', 9, 3, 2758, 'lunch_break.discharge', 'messages', '出院', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27106, '9f34b223-bfe8-45c8-a927-1fb44338bb2d', 9, 3, 2759, 'lunch_break.not_dischared', 'messages', '未出院', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27107, '9f34b223-c62a-42da-82a5-8487763c8f19', 9, 3, 2760, 'lunch_break.diagnosis_success', 'messages', '诊断报告状态已成功更新。', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27108, '9f34b223-cc90-4067-b146-217bdebcb8cb', 9, 3, 2761, 'lunch_break.case_exist', 'messages', '患者案例已存在。', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27109, '9f34b223-d2e7-4f51-9c05-cb635a65180c', 9, 3, 2762, 'lunch_break.payment_request_send', 'messages', '付款请求发送成功。', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27110, '9f34b223-d94e-452e-a544-afb5adac2984', 9, 3, 2764, 'lunch_break.todays_appointments', 'messages', '今天的约会', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27111, '9f34b223-dfd7-4408-a854-22c1735704d0', 9, 3, 2765, 'lunch_break.total_meetings', 'messages', '会议总数', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27112, '9f34b223-e60a-435f-bbb0-c98337e10011', 9, 3, 2766, 'lunch_break.ipd_due_amount', 'messages', '内窥镜检查 应付金额', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27113, '9f34b223-ec2a-4665-8f02-0e5f2b353bf3', 9, 3, 2767, 'lunch_break.recent_appointments', 'messages', '最近的约会', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27114, '9f34b223-f28f-4dd1-b578-7e86364b03fa', 9, 3, 2734, 'lunch_break.show_insurance', 'messages', '显示保险', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27115, '9f34b223-f8ec-43e4-8225-233bd49bf50c', 9, 3, 2750, 'lunch_break.are_u_sure', 'messages', '你确定吗？', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27116, '9f34b223-ff39-4c33-9fd7-a522ad557fe9', 9, 3, 2751, 'lunch_break.u_want_to_complete_this_payment', 'messages', '您想完成这笔付款！', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27117, '9f34b224-0597-43d3-b9eb-8a4cbe69a17f', 9, 3, 2763, 'lunch_break.select_payment_mode', 'messages', '选择付款方式', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27118, '9f34b224-0bd3-4f47-a7ae-b27ac9072f95', 9, 3, 2768, 'custom_field.manual_instruction', 'messages', '手动说明', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27119, '9f34b224-1237-4279-89f4-1c2ad37dec82', 9, 3, 2769, 'custom_field.custom_field', 'messages', '自定义字段', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27120, '9f34b224-189e-4462-9bed-e3edd5ee7a8b', 9, 3, 2770, 'custom_field.add_custom_field', 'messages', '添加自定义字段', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27121, '9f34b224-1f12-49df-852a-b857ce32617c', 9, 3, 2771, 'custom_field.edit_custom_field', 'messages', '编辑自定义字段', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27122, '9f34b224-253d-4381-a17f-3d30e6fa9ca7', 9, 3, 2772, 'custom_field.module_name', 'messages', '模块名称', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27123, '9f34b224-2b73-44e9-8ff7-f5893ceba824', 9, 3, 2773, 'custom_field.field_type', 'messages', '字段类型', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27124, '9f34b224-31af-402b-8a9d-f94107d6e4af', 9, 3, 2774, 'custom_field.field_name', 'messages', '字段名称', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27125, '9f34b224-380a-47c0-a432-c78a7d14e809', 9, 3, 2775, 'custom_field.grid', 'messages', '网格', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27126, '9f34b224-3e5d-4bf4-a1ef-2201a3fec3dd', 9, 3, 2776, 'custom_field.value', 'messages', '数值', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27127, '9f34b224-44e9-46e3-93ac-1f9cd77c4c95', 9, 3, 2777, 'custom_field.seperated_by_comma', 'messages', '用逗号分隔', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27128, '9f34b224-4b4c-4373-ad29-5f1a82c3c8db', 9, 3, 2778, 'custom_field.is_reqired', 'messages', '是否必填', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27129, '9f34b224-51a4-4ac4-a0de-91380293a2c9', 9, 3, 2779, 'custom_field.input', 'messages', '输入', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27130, '9f34b224-57cd-4a5f-8435-0a4086f6ee09', 9, 3, 2780, 'custom_field.textarea', 'messages', '文本框', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27131, '9f34b224-5e12-438a-ae01-2a75c36928fb', 9, 3, 2781, 'custom_field.checkbox', 'messages', '复选框', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27132, '9f34b224-6566-46b7-a53b-15a202036a61', 9, 3, 2782, 'custom_field.number', 'messages', '数字', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27133, '9f34b224-6bbd-4e0d-92d8-79721af8ea84', 9, 3, 2783, 'custom_field.dropdown', 'messages', '下拉框', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27134, '9f34b224-7202-4846-8173-78a2f6d308e7', 9, 3, 2784, 'custom_field.multi_select', 'messages', '多选', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27135, '9f34b224-783a-40c3-ae61-e3e9ceaeb93c', 9, 3, 2785, 'custom_field.date', 'messages', '日期', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27136, '9f34b224-7e94-42f2-a39c-f584689c6b76', 9, 3, 2786, 'custom_field.date_time', 'messages', '约会时间', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27137, '9f34b224-84bb-4668-b389-afc64846816d', 9, 3, 2787, 'custom_field.appointment', 'messages', '约会', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27138, '9f34b224-8afa-4651-8bd2-b4a37b9ea801', 9, 3, 2788, 'custom_field.ipd_patient', 'messages', '住院患者', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27139, '9f34b224-9146-4059-8fc1-d12fc7da1ec6', 9, 3, 2789, 'custom_field.opd_patient', 'messages', '门诊患者', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27140, '9f34b224-97c0-4d7e-8c41-6626b7a254cf', 9, 3, 2790, 'custom_field.patient', 'messages', '患者', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27141, '9f34b224-9e5b-4cd5-9f4a-46183f08a131', 9, 3, 2791, 'custom_field.value_must_be_greter_then', 'messages', '值必须大于1', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27142, '9f34b224-a4e2-43df-91b1-9f8a94ab8695', 9, 3, 2792, 'custom_field.select_module', 'messages', '选择模块', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27143, '9f34b224-ab2d-4631-bd92-708e0a145cf8', 9, 3, 2793, 'custom_field.select_field_type', 'messages', '选择字段类型', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27144, '9f34b224-b16e-49e3-9b06-73800243e671', 9, 3, 2795, 'custom_field.toggle', 'messages', '切换', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27145, '9f34b224-b7dd-4676-be76-1b1d27a4b397', 9, 3, 2796, 'custom_field.text', 'messages', '课文', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27146, '9f34b224-be8d-41da-bf53-4612f73b795e', 9, 3, 2797, 'custom_field.grid_tooltip', 'messages', '（引导列，例如 6）- 最大值为 12', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27147, '9f34b224-c52b-49f0-97e0-6abb20a93b4f', 9, 3, 2794, 'custom_field.value_field_required', 'messages', '需要值字段。', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27148, '9f34b224-cc31-4207-b2df-69998642ba6e', 9, 3, 2798, 'custom_field.diagnosis_success', 'messages', '诊断报告状态成功更新。', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27149, '9f34b224-d30e-44da-93c2-f6ed53fec31a', 9, 3, 2799, 'custom_field.case_exist', 'messages', 'IPD患者已经存在。', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27150, '9f34b224-d956-4e53-953e-1db10dd8e519', 9, 3, 2800, 'custom_field.payment_request_send', 'messages', '付款请求成功发送。', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27151, '9f34b224-dfa0-467a-8c9c-e26a7594cc81', 9, 3, 2801, 'phonepe.phonepe', 'messages', '電話Pe', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27152, '9f34b224-e600-4789-88e3-4e89cfe867cf', 9, 3, 2802, 'phonepe.phonepe_merchant_id', 'messages', 'Phonepe 商家 ID', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27153, '9f34b224-ec3e-454e-b5b9-43780aed6e92', 9, 3, 2803, 'phonepe.phonepe_merchant_user_id', 'messages', 'Phonepe 商家用戶 ID', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27154, '9f34b224-f294-49b7-9dee-6e4b224cb574', 9, 3, 2804, 'phonepe.phonepe_env', 'messages', '電話環境', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27155, '9f34b224-f8ee-46b4-b3a4-284a9679b24e', 9, 3, 2805, 'phonepe.phonepe_salt_key', 'messages', 'Phonepe 鹽鍵', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27156, '9f34b224-ffbc-4d2e-b444-7aa6e24af336', 9, 3, 2806, 'phonepe.phonepe_salt_index', 'messages', 'Phonepe鹽指數', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27157, '9f34b225-05f4-418b-a19f-b67fd42e6d9e', 9, 3, 2807, 'phonepe.phonepe_merchant_transaction_id', 'messages', 'Phonepe 商家交易 ID', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27158, '9f34b225-0f23-4117-9e72-50066c509407', 9, 3, 2808, 'phonepe.currency_allowed', 'messages', '僅允許使用 INR 貨幣', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27159, '9f34b225-158e-454a-b60c-9a812e90eb0b', 9, 3, 2809, 'flutterwave.flutterwave', 'messages', '顫振波', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27160, '9f34b225-1bb4-45a0-8293-f7cc00e05f60', 9, 3, 2810, 'flutterwave.set_flutterwave_credential', 'messages', '請設定您的 flutterwave 憑證。', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27161, '9f34b225-221c-4183-9e21-593b2177cec4', 9, 3, 2811, 'flutterwave.currency_allowed', 'messages', '僅限 GBP、CAD、XAF、CLP、COP、EGP、EUR、GHS、GNF、KES、MWK、MAD 、允許使用“NGN、RWF、SLL、STD、ZAR、TZS、UGX、USD、XOF、ZMW 貨幣。', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27162, '9f34b225-284a-4489-a2ed-289b7c56fcaf', 9, 3, 2812, 'flutterwave.flutterwave_public_key', 'messages', 'FlutterWave 公鑰', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27163, '9f34b225-2e93-4725-ac09-5ac77748db63', 9, 3, 2813, 'flutterwave.flutterwave_secret_key', 'messages', 'FlutterWave 金鑰', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27164, '9f34b225-34f8-4753-abf3-853284ec1e09', 9, 3, 2814, 'google_meet.connect_calendar', 'messages', '連接您的Google日曆', 'active', NULL, NULL, '2025-06-21 00:49:18', '2025-06-21 00:49:18'),
(27165, '9f34b225-3b36-4714-9d95-f3b3b10f870e', 9, 3, 2815, 'google_meet.connect_google_meet', 'messages', '连接 Google 日历', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27166, '9f34b225-418c-499c-92ea-386eac2f4b98', 9, 3, 2816, 'google_meet.disconnect_google_calendar', 'messages', '中斷您的 Google 日曆', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27167, '9f34b225-47d3-42f7-a475-2e9ce3f895bf', 9, 3, 2817, 'google_meet.sync_google_calendar', 'messages', '同步您的Google日曆', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27168, '9f34b225-4e3a-427b-a360-51653ff8578e', 9, 3, 2818, 'google_meet.validate_json_file', 'messages', '請設定您的 Google 日曆憑證 json 文件', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27169, '9f34b225-54cd-4d99-a972-e6c22d5821fb', 9, 3, 2819, 'google_meet.google_calendar_connect', 'messages', '谷歌日曆連線成功', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27170, '9f34b225-5b8f-41a8-8db8-85fb8b360e1a', 9, 3, 2820, 'google_meet.google_calendar_add', 'messages', '日曆新增成功', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27171, '9f34b225-628c-46a9-985d-797822cb822d', 9, 3, 2821, 'google_meet.google_calendar_update', 'messages', 'Google 日曆更新成功。', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27172, '9f34b225-6900-45e0-814e-83abe5072905', 9, 3, 2822, 'google_meet.disconnect_or_reconnect', 'messages', '請中斷並重新連接您的 Google 日曆', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27173, '9f34b225-6f5a-4b36-9578-faeb71134511', 9, 3, 2823, 'google_meet.google_calendar_disconnect', 'messages', 'Google 日曆已斷開連接', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27174, '9f34b225-75b2-4cb0-9a27-703cabf3d4a7', 9, 3, 2824, 'google_meet.select_google_calendar', 'messages', '選擇要在其中建立活動的日曆（來自 Google 日曆）', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27175, '9f34b225-7bea-4076-a01d-60396805bdb9', 9, 3, 2825, 'google_meet.platform_type', 'messages', '平台類型', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27176, '9f34b225-8236-4d18-9460-531aa6c8c425', 9, 3, 2826, 'google_meet.opd_prescription', 'messages', 'OPD处方', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27177, '9f34b225-8871-4f2d-8bc4-37c6d4e957bc', 9, 3, 2827, 'google_meet.google_json_file', 'messages', '谷歌 JSON 文件', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27178, '9f34b225-8eca-43e2-9ae1-5d62f1a19a05', 9, 3, 2828, 'google_meet.upload_json_file', 'messages', '请上传您的 Google 日历凭据 JSON 文件。', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27179, '9f34b225-9508-4580-a9ec-37175b735431', 9, 3, 2829, 'google_meet.upload_file', 'messages', '请上传 JSON 文件。', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27180, '9f34b225-9b5d-496c-a804-574b5401f317', 9, 3, 2830, 'google_meet.invalid_json_format', 'messages', '输入格式无效。请上传 JSON 格式文件。', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27181, '9f34b225-a1bf-4d0a-ac01-584c528f3f43', 9, 3, 2831, 'google_meet.json_file_saved_successfully', 'messages', 'Google 日历 JSON 文件已成功保存。', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27182, '9f34b225-a801-48e8-baaa-bd3ac6e18159', 9, 3, 2832, 'google_meet.upload_again_json_file', 'messages', 'Google JSON 文件不存在。请再次上传 JSON 文件。', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27183, '9f34b225-ae46-483c-9d37-0e6be5787a3d', 9, 3, 2833, 'schedule_weekday.Monday', 'messages', '周一', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27184, '9f34b225-b49f-46e5-952f-76cac4f25408', 9, 3, 2834, 'schedule_weekday.Tuesday', 'messages', '周二', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27185, '9f34b225-baf7-4ba9-a1ab-608c6d6f8c0e', 9, 3, 2835, 'schedule_weekday.Wednesday', 'messages', '周三', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27186, '9f34b225-c15b-4738-a64b-080c7da1de0a', 9, 3, 2836, 'schedule_weekday.Thursday', 'messages', '周四', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27187, '9f34b225-c7c0-475f-be88-fb108e0752f8', 9, 3, 2837, 'schedule_weekday.Friday', 'messages', '星期五', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27188, '9f34b225-cdfb-41d8-89eb-cef46bb44736', 9, 3, 2838, 'schedule_weekday.Saturday', 'messages', '周六', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27189, '9f34b225-d442-481c-9537-67d1cdb9881e', 9, 3, 2839, 'schedule_weekday.Sunday', 'messages', '星期日', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27190, '9f34b225-da9b-4eb4-af17-96b969b65112', 9, 3, 2840, 'hospital_schedule_weekday.MON', 'messages', '星期一', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27191, '9f34b225-e11a-435c-8d9c-f964b5324292', 9, 3, 2841, 'hospital_schedule_weekday.TUE', 'messages', '周二', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27192, '9f34b225-e757-4d51-b6af-9105e5fe349e', 9, 3, 2842, 'hospital_schedule_weekday.WED', 'messages', '星期三', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27193, '9f34b225-edb2-4f3d-9bd7-e883be960e38', 9, 3, 2843, 'hospital_schedule_weekday.THU', 'messages', '周四', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27194, '9f34b225-f549-4606-b023-f52dc603e00a', 9, 3, 2844, 'hospital_schedule_weekday.FRI', 'messages', '周五', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27195, '9f34b225-fb76-4bca-8f22-fed4598a4e3d', 9, 3, 2845, 'hospital_schedule_weekday.SAT', 'messages', '坐', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27196, '9f34b226-01ec-4e4e-9e9b-ffd35d8da3d7', 9, 3, 2846, 'hospital_schedule_weekday.SUN', 'messages', '太阳', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27197, '9f34b226-082e-4fe6-a585-12387d0c6bab', 9, 3, 2847, 'open_ai.open_ai', 'messages', '开放人工智能', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27198, '9f34b226-0e6a-4dde-8b0b-9e6c1f6b6f7b', 9, 3, 2848, 'open_ai.provide_prompt', 'messages', '请提供身体信息以供提示。', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27199, '9f34b226-14f0-4555-9952-a77ab6882399', 9, 3, 2849, 'open_ai.open_ai_key_not_found', 'messages', '未找到 OpenAI API 密钥。', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27200, '9f34b226-1b0f-4fd7-ab7e-33aa693ac3da', 9, 3, 2850, 'open_ai.repsonse_retrive_successfully', 'messages', '响应已成功检索。', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27201, '9f34b226-2174-479d-b6b5-989f2fb9f608', 9, 3, 2851, 'open_ai.open_ai_key', 'messages', '打开AI钥匙', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27202, '9f34b226-2805-4919-ad7a-2572529183ea', 9, 3, 2852, 'open_ai.suggest_medicines', 'messages', '建议药物', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27203, '9f34b226-2ea1-448d-a730-d8c345e30c85', 9, 3, 2853, 'open_ai.suggested_medicines', 'messages', '建议药物', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27204, '9f34b226-3501-4a28-b220-9844e7c12924', 9, 3, 2856, 'fields.the', 'messages', '这', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27205, '9f34b226-3b3a-4ad1-8a68-878e08095244', 9, 3, 2857, 'fields.required', 'messages', '字段为必填项。', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27206, '9f34b226-4196-4273-8ce4-2099051ed375', 9, 3, 2858, 'fields.unique', 'messages', '该电子邮件已被占用。', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27207, '9f34b226-47bd-4813-b192-29bdc66d2fb0', 9, 3, 2859, 'fields.min_char', 'messages', '密码必须至少为 8 个字符。', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27208, '9f34b226-4e1d-46db-8219-fdef6929a301', 9, 3, 2860, 'fields.confirm', 'messages', '确认密码确认不匹配。', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27209, '9f34b226-528e-48a7-a216-509ce5a9cf2f', 9, 3, 366, 'available_slots', 'messages', '可用的插槽', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27210, '9f34b226-570c-4177-99f4-9fbfb3da0807', 9, 3, 407, 'hospital_count', 'messages', '医院计数', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27211, '9f34b226-5c6c-4161-8b07-6ee26478c5a8', 9, 3, 1684, 'front_services.new_service', 'messages', '新服务', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27212, '9f34b226-61d1-4c0e-8876-ed17df5c14f2', 9, 3, 1685, 'front_services.edit_service', 'messages', '编辑服务', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27213, '9f34b226-682f-4f13-98c6-87e2bafe68cf', 9, 3, 2854, 'plan_frequency.1', 'messages', '每月', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27214, '9f34b226-6e67-4130-bce0-05362ef58213', 9, 3, 2855, 'plan_frequency.2', 'messages', '每年', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27215, '9f34b226-7239-4730-ac98-6fcbb403f10a', 9, 6, NULL, 'previous', 'pagination', '&laquo; 以前', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27216, '9f34b226-7668-49b8-9cfa-d86426b19591', 9, 6, NULL, 'next', 'pagination', '下一个 &raquo;', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27217, '9f34b226-7a49-4930-aa6d-07cd140d6e53', 9, 7, NULL, 'reset', 'passwords', '您的密码已重置！', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27218, '9f34b226-7e9f-4a69-a06d-c6982de6b78c', 9, 7, NULL, 'sent', 'passwords', '我们已经通过电子邮件发送了您的密码重置链接！', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27219, '9f34b226-8318-492b-9c6a-68c25fd3b064', 9, 7, NULL, 'throttled', 'passwords', '请等待，然后重试。', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27220, '9f34b226-8787-464e-8b17-9da6c96f4464', 9, 7, NULL, 'token', 'passwords', '此密码重置令牌无效。', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27221, '9f34b226-8dcc-4167-bcc2-be92c90d62a4', 9, 7, NULL, 'user', 'passwords', '我们找不到使用该电子邮件地址的用户。', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27222, '9f34b226-9428-46ec-8f6a-639aaa4558ad', 9, 4, 2862, 'accepted', 'validation', '：attribute必须被接受。', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27223, '9f34b226-9a91-4beb-b3f3-eb443bffcb78', 9, 4, 2863, 'active_url', 'validation', '：attribute不是有效的URL。', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27224, '9f34b226-a104-4cce-88ec-ef62dc13bc5a', 9, 4, 2864, 'after', 'validation', '：attribute必须是：date之后的日期。', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27225, '9f34b226-a72d-4691-81cb-abc73279aed3', 9, 4, 2865, 'after_or_equal', 'validation', '：attribute必须是等于或小于：date的日期。', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27226, '9f34b226-ad89-471f-b35f-5d24e3a863dc', 9, 4, 2866, 'alpha', 'validation', '：attribute只能包含字母。', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27227, '9f34b226-b3d2-4b2b-bc8e-f7726021643d', 9, 4, 2867, 'alpha_dash', 'validation', '：attribute只能包含字母，数字，破折号和下划线。', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27228, '9f34b226-ba64-420d-af49-1fa22d53b677', 9, 4, 2868, 'alpha_num', 'validation', '：attribute只能包含字母和数字。', 'active', NULL, NULL, '2025-06-21 00:49:19', '2025-06-21 00:49:19'),
(27229, '9f34b226-c1d3-4af6-8d19-00871a983734', 9, 4, 2869, 'array', 'validation', '：attribute必须是一个数组。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27230, '9f34b226-c8a1-49d1-84d0-1b2ede6a8904', 9, 4, 2870, 'before', 'validation', '：attribute必须是：date之前的日期。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27231, '9f34b226-cf23-4706-89a6-c8e33aafb571', 9, 4, 2871, 'before_or_equal', 'validation', '：attribute必须是：date之前或等于的日期。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27232, '9f34b226-d564-4b00-a9e5-81962cdbc88c', 9, 4, 2872, 'between.numeric', 'validation', '：attribute必须介于：min和：max之间。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27233, '9f34b226-dbf2-4b4c-80da-3bb212a52820', 9, 4, 2873, 'between.file', 'validation', '：attribute必须介于：min和：max千字节之间。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27234, '9f34b226-e263-44ad-9126-5125cfdd4eda', 9, 4, 2874, 'between.string', 'validation', '：attribute必须介于：min和：max之间。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27235, '9f34b226-e90e-4fb7-b403-7f4c572aacc8', 9, 4, 2875, 'between.array', 'validation', '：attribute必须在：min和：max之间。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27236, '9f34b226-ef44-4b90-aa91-507a5ae9b862', 9, 4, NULL, 'boolean', 'validation', '：attribute字段必须为true或false。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27237, '9f34b226-f599-4aa2-bbfa-fb64a5c8eb4b', 9, 4, 2876, 'confirmed', 'validation', '：attribute确认不匹配。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27238, '9f34b226-fbe3-4431-ad40-74edb7f33367', 9, 4, 2877, 'date', 'validation', '：attribute不是有效日期。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27239, '9f34b227-021f-4164-bbc4-85823a514dc9', 9, 4, 2878, 'date_equals', 'validation', '：attribute必须是等于：date的日期。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27240, '9f34b227-0890-4194-894d-bd7892f4aa0e', 9, 4, 2879, 'date_format', 'validation', '：attribute与格式：format不匹配。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27241, '9f34b227-0ee6-476e-8239-98c82e5de559', 9, 4, 2880, 'different', 'validation', '：attribute和：other必须不同。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27242, '9f34b227-150a-4d86-8666-f2653621a22a', 9, 4, 2881, 'digits', 'validation', '：attribute必须为：digits位数。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27243, '9f34b227-1b9c-43f6-bd65-cc1c7258dc94', 9, 4, 2882, 'digits_between', 'validation', '：attribute必须介于：min和：max数字之间。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27244, '9f34b227-22af-4819-8be1-1ed8dbd801ee', 9, 4, 2883, 'dimensions', 'validation', '：attribute的图片尺寸无效。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27245, '9f34b227-2984-4a66-90c0-1327fa01315f', 9, 4, NULL, 'distinct', 'validation', '：attribute字段具有重复值。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27246, '9f34b227-3000-41a8-9aa6-3406beaa9d5c', 9, 4, 2884, 'email', 'validation', '：attribute必须是有效的电子邮件地址。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27247, '9f34b227-3669-40a5-a244-dd72e52b691f', 9, 4, 2885, 'ends_with', 'validation', '：attribute必须以下列之一结尾：: values。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27248, '9f34b227-3ca9-43d3-ab58-b656cb595d05', 9, 4, NULL, 'exists', 'validation', '所选的：attribute无效。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27249, '9f34b227-435c-42a4-af45-f0746f6b0c2a', 9, 4, 2886, 'file', 'validation', '：attribute必须是一个文件。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27250, '9f34b227-49bb-4eac-b6a4-62264bc2d068', 9, 4, NULL, 'filled', 'validation', '：attribute字段必须有一个值。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27251, '9f34b227-5003-4f4c-b5ef-1aec99691a6d', 9, 4, 2887, 'gt.numeric', 'validation', '：attribute必须大于：value。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27252, '9f34b227-563c-4ce4-9a19-682444487035', 9, 4, 2888, 'gt.file', 'validation', '：attribute必须大于：value千字节。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27253, '9f34b227-5ca5-4001-8b25-6196b2639935', 9, 4, 2889, 'gt.string', 'validation', '：attribute必须大于：value字符。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27254, '9f34b227-6300-4712-baf7-1d70e759242f', 9, 4, 2890, 'gt.array', 'validation', '：attribute必须包含多个：value项目。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27255, '9f34b227-6c34-4101-b029-477e36ae2c7f', 9, 4, 2891, 'gte.numeric', 'validation', '：attribute必须大于或等于：value。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27256, '9f34b227-72a1-4783-aaba-685a8fac8443', 9, 4, 2892, 'gte.file', 'validation', '：attribute必须大于或等于：value千字节。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27257, '9f34b227-78d6-428b-aadd-e214985d645c', 9, 4, 2893, 'gte.string', 'validation', '：attribute必须大于或等于：value字符。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27258, '9f34b227-8054-4b1b-aa27-c6df91cea4a8', 9, 4, 2894, 'gte.array', 'validation', '：attribute必须具有：value项或更多。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27259, '9f34b227-871c-4b51-951b-ea4ce4b87fc8', 9, 4, 2895, 'image', 'validation', '：attribute必须是图像。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27260, '9f34b227-8d6d-428f-aa81-d81a90e1b5b6', 9, 4, NULL, 'in', 'validation', '所选的：attribute无效。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27261, '9f34b227-93f9-4ac2-9e9c-f47bd18d1c28', 9, 4, 2896, 'in_array', 'validation', '：attribute字段在：other中不存在。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27262, '9f34b227-9a4f-40ee-b5e6-fae527c37c07', 9, 4, 2897, 'integer', 'validation', '：attribute必须为整数。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27263, '9f34b227-a0cd-431b-9b2a-e951910d8683', 9, 4, 2898, 'ip', 'validation', '：attribute必须是有效的IP地址。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27264, '9f34b227-a9bb-443c-8e1f-69f0c67faad9', 9, 4, 2899, 'ipv4', 'validation', '：attribute必须是有效的IPv4地址。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27265, '9f34b227-b058-414e-8c7f-a023b3b9caf9', 9, 4, 2900, 'ipv6', 'validation', '：attribute必须是有效的IPv6地址。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27266, '9f34b227-b70d-4b9d-a9d4-a5e585be83fe', 9, 4, 2901, 'json', 'validation', '：attribute必须是有效的JSON字符串。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27267, '9f34b227-bd69-4f0a-a11d-418385412a2d', 9, 4, 2902, 'lt.numeric', 'validation', '：attribute必须小于：value。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27268, '9f34b227-c41b-4348-97b0-a5368b9c66e2', 9, 4, 2903, 'lt.file', 'validation', '：attribute必须小于：value千字节。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27269, '9f34b227-ca8b-4c54-8b99-4b91a5bd4b7b', 9, 4, 2904, 'lt.string', 'validation', '：attribute必须小于：value字符。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27270, '9f34b227-d103-4ccb-87cd-086bcff9d773', 9, 4, 2905, 'lt.array', 'validation', '：attribute必须少于：value个项目。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27271, '9f34b227-d760-47f3-8391-ec066db95247', 9, 4, 2906, 'lte.numeric', 'validation', '：attribute必须小于或等于：value。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27272, '9f34b227-ddb6-402d-8588-8ccfc17f5505', 9, 4, 2907, 'lte.file', 'validation', '：attribute必须小于或等于：value千字节。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27273, '9f34b227-e423-49f2-9060-565278a70080', 9, 4, 2908, 'lte.string', 'validation', '：attribute必须小于或等于：value字符。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27274, '9f34b227-eaad-4cf1-86ee-d7934201c993', 9, 4, 2909, 'lte.array', 'validation', '：attribute不得超过：value个项目。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27275, '9f34b227-f1cf-4b3b-a36a-291df187e1ad', 9, 4, 2910, 'max.numeric', 'validation', '：attribute不得大于：max。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27276, '9f34b227-f845-4cb5-80b5-7bf83c429770', 9, 4, 2911, 'max.file', 'validation', '：attribute不得大于：max千字节。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27277, '9f34b227-feb1-4253-a3fd-be43e9eb1615', 9, 4, 2912, 'max.string', 'validation', '：attribute不得大于：max个字符。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27278, '9f34b228-05c8-45c1-8b93-7720ee8f4646', 9, 4, 2913, 'max.array', 'validation', '：attribute不能超过：max个项目。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27279, '9f34b228-0d78-46f8-81d8-ab328bd4e81e', 9, 4, 2914, 'mimes', 'validation', '：attribute必须是类型：：values的文件。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27280, '9f34b228-140c-43af-b744-42521e33cbe2', 9, 4, 2915, 'mimetypes', 'validation', '：attribute必须是类型：：values的文件。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27281, '9f34b228-1a66-4160-a57a-178a5584d0eb', 9, 4, 2916, 'min.numeric', 'validation', '：attribute必须至少为：min。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27282, '9f34b228-20c3-427f-84cc-1ece5e184442', 9, 4, 2917, 'min.file', 'validation', '：attribute必须至少为：min千字节。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27283, '9f34b228-2775-444f-b542-059727cf452d', 9, 4, 2918, 'min.string', 'validation', '：attribute必须至少为：min个字符。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27284, '9f34b228-2edd-4abc-a2ed-da9aac21d964', 9, 4, 2919, 'min.array', 'validation', '：attribute必须至少包含：min个项目。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27285, '9f34b228-3574-4191-9abc-1f880bab6e7b', 9, 4, NULL, 'not_in', 'validation', '所选的：attribute无效。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27286, '9f34b228-3c11-4a18-b936-0c14c9bf36f3', 9, 4, 2921, 'not_regex', 'validation', '所选的：attribute无效。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27287, '9f34b228-42a6-44a7-aa3d-19bf800f8fbe', 9, 4, 2922, 'numeric', 'validation', '：attribute必须为数字。', 'active', NULL, NULL, '2025-06-21 00:49:20', '2025-06-21 00:49:20'),
(27288, '9f34b228-4953-48dc-bd42-370b08100de6', 9, 4, 2923, 'password', 'validation', '密码错误。', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27289, '9f34b228-4ff3-4863-8ba7-b8c677d56326', 9, 4, NULL, 'present', 'validation', '：attribute字段必须存在。', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27290, '9f34b228-5686-495e-8386-0e51b737800e', 9, 4, 2924, 'regex', 'validation', '：attribute格式无效。', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27291, '9f34b228-5d29-4183-b2de-60759bbe29f1', 9, 4, NULL, 'required', 'validation', '：attribute字段是必填字段。', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27292, '9f34b228-639c-4c6c-84ae-fc695fd2add3', 9, 4, NULL, 'required_if', 'validation', '当：other是：value时，：attribute字段是必需的。', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27293, '9f34b228-6a9a-4f0d-b84c-6f360b4a3bad', 9, 4, NULL, 'required_unless', 'validation', '除非：other位于：values中，否则：attribute字段是必填字段。', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27294, '9f34b228-72ea-4475-b283-2938cfad5251', 9, 4, NULL, 'required_with', 'validation', '如果存在：values，则：attribute字段是必需的。', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27295, '9f34b228-7a7b-498f-91e3-0cb0ae0749b8', 9, 4, NULL, 'required_with_all', 'validation', '存在：values时，：attribute字段是必需的。', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27296, '9f34b228-80d9-426e-95b7-8b2762b89716', 9, 4, NULL, 'required_without', 'validation', '当：values不存在时，：attribute字段是必需的。', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27297, '9f34b228-8758-4408-a20d-c9a458de7ef8', 9, 4, NULL, 'required_without_all', 'validation', '当：values不存在时，：attribute字段是必需的。', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27298, '9f34b228-8fb4-4193-8aac-bef918e1c5cf', 9, 4, 2925, 'same', 'validation', '：attribute和：other必须匹配。', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27299, '9f34b228-983a-4c77-ad41-430538b6389e', 9, 4, 2926, 'size.numeric', 'validation', '：attribute必须为：size。', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27300, '9f34b228-a36f-4460-8699-60570575dca1', 9, 4, 2927, 'size.file', 'validation', '：attribute必须为：size千字节。', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27301, '9f34b228-aa07-4119-bcc6-594a5f28b632', 9, 4, 2928, 'size.string', 'validation', '：attribute必须为：size字符。', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27302, '9f34b228-b0e4-4a24-bae0-fce120551db9', 9, 4, 2929, 'size.array', 'validation', '：attribute必须包含：size项。', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27303, '9f34b228-b7be-44fd-b37c-7d198b51361f', 9, 4, 2930, 'starts_with', 'validation', '：attribute必须以下列之一开头：：values。', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27304, '9f34b228-bf03-4d8a-9bdc-48237c18c859', 9, 4, 2931, 'string', 'validation', '：attribute必须为字符串。', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27305, '9f34b228-c58f-41cb-92de-dcd002113258', 9, 4, 2932, 'timezone', 'validation', '：attribute必须是有效区域。', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27306, '9f34b228-cbd3-4375-9e80-f4c1857eb956', 9, 4, NULL, 'unique', 'validation', '：attribute已经被使用。', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27307, '9f34b228-d223-4f49-9d31-a603ab0b47ad', 9, 4, NULL, 'uploaded', 'validation', '：attribute上传失败。', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27308, '9f34b228-d8bc-4a37-80ac-528ab1e313cc', 9, 4, 2933, 'url', 'validation', '：attribute格式无效。', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27309, '9f34b228-df0a-46b4-9509-d1ce1a6d6076', 9, 4, 2934, 'uuid', 'validation', '：attribute必须是有效的UUID。', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27310, '9f34b228-e597-4cbf-9ad3-eb7188fabe6a', 9, 4, 2935, 'is_unique', 'validation', ':attribute已有人带走了。', 'active', '[\"attribute\"]', NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27311, '9f34b228-ebd6-456a-b951-51a811a80ef7', 9, 4, NULL, 'custom.attribute-name.rule-name', 'validation', '自定义消息', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27312, '9f34b228-f24e-4428-b18c-d7f35450f2b3', 9, 4, 2936, 'custom.doctor_id.unique', 'validation', '医生的名字已经被使用。', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27313, '9f34b228-f88d-4bdb-9697-0bd88fe7eea5', 9, 4, 2920, 'multiple_of', 'validation', ':attribute 必须是 :value 的倍数。', 'active', '[\"attribute\", \"value\"]', NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27314, '9f34b228-ff08-464d-a7df-3006baadb75b', 9, 5, 2937, 'departments', 'web', '部门', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27315, '9f34b229-056f-41a8-b892-1df0924da783', 9, 5, 2938, 'backend_features', 'web', '后端功能', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27316, '9f34b229-0bb7-4d86-b83c-27f210bbbe8f', 9, 5, 2939, 'testimonials', 'web', '感言', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27317, '9f34b229-1217-4e09-ab37-57af91754ea9', 9, 5, 2940, 'login', 'web', '登录', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27318, '9f34b229-1892-4f0d-a553-36f6c7ab3e8c', 9, 5, 2941, 'register', 'web', '登记', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27319, '9f34b229-1ee8-4dc0-9bf2-de9c845a32b4', 9, 5, 2942, 'start_using_InfyHMS_now', 'web', '立即开始使用InfyHMS。', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27320, '9f34b229-2571-496d-a29f-6e12f1d0355c', 9, 5, 2943, 'get_started', 'web', '开始使用', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27321, '9f34b229-2ca1-4891-b536-c1186d514934', 9, 5, 2944, 'welcome_to', 'web', '欢迎来到', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27322, '9f34b229-3478-4738-bbc3-d92eabf5d97a', 9, 5, 2945, 'infyhms', 'web', 'InfyHMS', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27323, '9f34b229-3b1c-4af8-b89e-05f4675080da', 9, 5, 2946, 'manage_your_hospital_day_to_day_operations_digitally_with_ease_and_effortlessly', 'web', '轻松，轻松地以数字方式管理医院的日常运营。', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27324, '9f34b229-41dd-4e34-9558-4f54869f334f', 9, 5, 2947, 'buy_now', 'web', '立即购买', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27325, '9f34b229-4854-4819-b3b7-1151ee47449a', 9, 5, 2948, 'home', 'web', '家', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27326, '9f34b229-4edd-4b90-bd2a-6dc405890c70', 9, 5, 2949, 'about_us', 'web', '关于我们', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27327, '9f34b229-5541-4958-804e-faf7d1b891e7', 9, 5, 2950, 'features.features', 'web', '特征', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27328, '9f34b229-5b95-4c90-a71f-dd4c68c8f39a', 9, 5, 2951, 'features.emergency_services', 'web', '紧急服务', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27329, '9f34b229-6214-4fa5-8fb1-caa5a39fe9c4', 9, 5, 2952, 'features.qualified_doctors', 'web', '合格医生', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27330, '9f34b229-689a-4614-9e3c-c97078c5067c', 9, 5, 2953, 'features.outdoors_checkup', 'web', '户外检查', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27331, '9f34b229-6f20-4625-80a5-47d2c0f7bb7a', 9, 5, 2954, 'features.hours_services', 'web', '24小时服务', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21');
INSERT INTO `ltu_phrases` (`id`, `uuid`, `translation_id`, `translation_file_id`, `phrase_id`, `key`, `group`, `value`, `status`, `parameters`, `note`, `created_at`, `updated_at`) VALUES
(27332, '9f34b229-758b-4790-ad1d-60a3e7ec046c', 9, 5, 2955, 'features.we_are_providing_advanced_emergency_services_We_have_well-equipped_emergency_and_trauma_center_with_facilities', 'web', '我们提供先进的紧急服务。 我们有配备完善的急救和创伤中心。', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27333, '9f34b229-7c1d-47ef-a225-ef7b0972595e', 9, 5, 2956, 'features.our_team_of_pathologists_microbiologists_and_clinical_laboratory_scientists_are_always_ready_to_help_you_with_your_laboratory_needs', 'web', '我们的病理学家，微生物学家和临床实验室科学家团队随时准备帮助您满足实验室需求。', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27334, '9f34b229-8281-472d-a46c-e575133d5a7b', 9, 5, 2957, 'features.our_doctors_are_always_ready_for_outdoor_checkup_in_an_emergency_we_have_different_types_of_charges_as_per_checkup', 'web', '我们的医生随时准备在紧急情况下进行户外检查。 我们根据检查收取不同的费用。', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27335, '9f34b229-88ec-4d68-ae6f-a89f15c1c29e', 9, 5, 2958, 'features.our_clinic_provides_extensive_medical_support_and_healthcare_services_24/7', 'web', '我们的诊所24/7全天候提供广泛的医疗支持和保健服务。', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27336, '9f34b229-8fab-40a2-a122-a3f819ed6083', 9, 5, 2959, 'backend_feature.dashboard', 'web', '仪表板', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27337, '9f34b229-9651-4368-a8c1-b009ff9f6282', 9, 5, 2960, 'backend_feature.change_password', 'web', '更改密码', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27338, '9f34b229-9ced-4221-9d3c-e114f42f57b0', 9, 5, 2961, 'backend_feature.change_language', 'web', '改变语言', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27339, '9f34b229-a37f-424e-84bd-9dc589c818bb', 9, 5, 2962, 'backend_feature.invoice_listing', 'web', '发票清单', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27340, '9f34b229-a9ed-4340-94be-859e337a0359', 9, 5, 2963, 'backend_feature.create_invoice', 'web', '创建发票', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27341, '9f34b229-b054-4060-b32e-4e04adcc2c05', 9, 5, 2964, 'backend_feature.create_bill', 'web', '创建账单', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27342, '9f34b229-b6ba-4f09-a8d4-3cf2f48902ac', 9, 5, 2965, 'backend_feature.appointments', 'web', '预约时间', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27343, '9f34b229-bd41-4f1c-8b02-491d94e622a1', 9, 5, 2966, 'backend_feature.bed_listing', 'web', '床单', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27344, '9f34b229-c39e-424b-b4e8-70cde2099adf', 9, 5, 2967, 'backend_feature.bed_details', 'web', '床详情', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27345, '9f34b229-ca5e-4893-a863-a47059839129', 9, 5, 2968, 'backend_feature.bed_allotment', 'web', '床额分配', 'active', NULL, NULL, '2025-06-21 00:49:21', '2025-06-21 00:49:21'),
(27346, '9f34b229-d0d0-4b28-af97-daa62839f751', 9, 5, 2969, 'backend_feature.document', 'web', '文档', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27347, '9f34b229-d72b-44de-b1d9-cb3f51f78fee', 9, 5, 2970, 'backend_feature.add_ambulance', 'web', '添加救护车', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27348, '9f34b229-dd9a-4171-b5a2-e953bd7b06b9', 9, 5, 2971, 'backend_feature.create_insurance', 'web', '建立保险', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27349, '9f34b229-e417-4c00-9833-54d17f9e0a60', 9, 5, 2972, 'backend_feature.create_doctor', 'web', '创建医生', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27350, '9f34b229-eae3-4c39-9bf9-8ffc0c9f7c30', 9, 5, 2973, 'backend_feature.create_medicine', 'web', '创造医学', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27351, '9f34b229-f250-407e-b3f3-2a344721d84d', 9, 5, 2974, 'backend_feature.add_employee_payroll_details', 'web', '添加员工工资明细', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27352, '9f34b229-f921-49e0-8954-cc0a6dc69eb5', 9, 5, 2975, 'backend_feature.employee_payroll_details', 'web', '员工工资明细', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27353, '9f34b229-ffa8-48df-b764-fd5332fcb8a7', 9, 5, 2976, 'backend_feature.payment_reports', 'web', '付款报告', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27354, '9f34b22a-062d-44a3-8e4f-d29ea7554d0c', 9, 5, 2977, 'backend_feature.enquiry_listing', 'web', '查询清单', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27355, '9f34b22a-0d2c-427f-b00c-1b76239761ba', 9, 5, 2978, 'backend_feature.patient_admission_listing', 'web', '病人入院清单', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27356, '9f34b22a-13fc-4af7-9ef1-c3c339c6b9e7', 9, 5, 2979, 'backend_feature.doctor_schedules', 'web', '医生时间表', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27357, '9f34b22a-1aa6-45a6-8deb-c03bb2e7d231', 9, 5, 2980, 'backend_feature.birth_report_listing', 'web', '出生报告清单', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27358, '9f34b22a-214c-40b1-87a9-a64194430638', 9, 5, 2981, 'backend_feature.email_service', 'web', '电邮服务', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27359, '9f34b22a-27f1-47dc-9eee-de8486151dd6', 9, 5, 2982, 'backend_feature.settings', 'web', '设定值', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27360, '9f34b22a-2ee7-435d-b336-25a3686d4806', 9, 5, 2983, 'miscellaneous_facilities.miscellaneous_facilities_of_infyhms', 'web', '其他杂项设施', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27361, '9f34b22a-359e-40a9-ad1b-8dd480d47eae', 9, 5, 2984, 'miscellaneous_facilities.host_in_your_Own_secure_server', 'web', '在您自己的安全服务器中托管。', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27362, '9f34b22a-3f4c-4df3-89cb-866bad4a3f35', 9, 5, 2985, 'miscellaneous_facilities.no_monthly_or_yearly_fees', 'web', '无月费或年费。', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27363, '9f34b22a-45f1-4f4f-aead-da3e7f1f4a96', 9, 5, 2986, 'miscellaneous_facilities.customer_support', 'web', '24 / 7客户支持', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27364, '9f34b22a-4cb6-4d8a-9dc7-e1ea33a2ca34', 9, 5, 2987, 'miscellaneous_facilities.multi_language_system', 'web', '多语言系统', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27365, '9f34b22a-540d-466a-914a-ef707514e59e', 9, 5, 2988, 'miscellaneous_facilities.admin_and_customer_has_separate_ui_and_login', 'web', '管理员和客户具有独立的用户界面和登录名', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27366, '9f34b22a-5af2-427d-a360-fd03f1eb1ac7', 9, 5, 2989, 'miscellaneous_facilities.email_and_sms_gateway_adding_for_marketing', 'web', '为营销添加的电子邮件和Sms网关', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27367, '9f34b22a-615f-4741-a337-0a332eae9884', 9, 5, 2990, 'miscellaneous_facilities.complete_hospital_management_solution', 'web', '完整的医院管理解决方案', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27368, '9f34b22a-6800-4d93-a19e-5d17c2e2679a', 9, 5, 2991, 'miscellaneous_facilities.prescription_management_system', 'web', '处方管理系统', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27369, '9f34b22a-6f03-4a4d-a70b-30b35a24954a', 9, 5, 2992, 'miscellaneous_facilities.doctor_management_system', 'web', '医生管理系统', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27370, '9f34b22a-75c2-4118-96ff-cf34fde4ab2c', 9, 5, 2993, 'miscellaneous_facilities.insurance_management_system', 'web', '保险管理系统', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27371, '9f34b22a-7c63-45a7-a28c-bccc1ccec212', 9, 5, 2994, 'miscellaneous_facilities.billing_management_system', 'web', '计费管理系统', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27372, '9f34b22a-82e5-4f9f-aed5-fe1e1c80e772', 9, 5, 2995, 'miscellaneous_facilities.role_based_permission_setup_system', 'web', '基于角色的权限设置系统', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27373, '9f34b22a-899d-47b6-b8ce-5009661ed9b0', 9, 5, 2996, 'miscellaneous_facilities.multiple_email_and_sms_gateway_added', 'web', '已添加多个电子邮件和SMS网关', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27374, '9f34b22a-90a4-435e-9359-2ec17164790b', 9, 5, 2997, 'miscellaneous_facilities.human_resource_system', 'web', '人力资源系统', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27375, '9f34b22a-9791-4bd7-a090-9bde40887d97', 9, 5, 2998, 'miscellaneous_facilities.complete_Bed_management_system', 'web', '完整床管理系统', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27376, '9f34b22a-9e8b-431d-a5db-60b9868dd2f3', 9, 5, 2999, 'miscellaneous_facilities.medication_and_visits_system', 'web', '药物和访问系统', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27377, '9f34b22a-a51f-42b0-ac1d-acfef3cc5f6e', 9, 5, 3000, 'miscellaneous_facilities.case_manager_management_system', 'web', '案例管理器管理系统', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27378, '9f34b22a-abf5-48c4-a289-209ff6eb605d', 9, 5, 3001, 'miscellaneous_facilities.patient_separate_login_and_appointment_system', 'web', '患者独立登录和预约系统', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27379, '9f34b22a-b282-4129-adea-4df7b0e12830', 9, 5, 3002, 'miscellaneous_facilities.hospital_enquiry_system', 'web', '医院查询系统', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27380, '9f34b22a-b950-4800-b78b-b0beb6e62687', 9, 5, 3003, 'miscellaneous_facilities.parmacy_management_system', 'web', '药房管理系统', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27381, '9f34b22a-bfe1-4d42-99e4-332a07ef86fe', 9, 5, 3004, 'miscellaneous_facilities.appointment_management_system', 'web', '约会管理系统', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27382, '9f34b22a-c64c-431e-8c9d-8327d201d6ff', 9, 5, 3005, 'miscellaneous_facilities.investigation_reports', 'web', '调查报告', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27383, '9f34b22a-ccc8-45e6-b540-f15437ef4d42', 9, 5, 3006, 'footer.follow_us', 'web', '关注我们', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27384, '9f34b22a-d45b-4fea-b430-664d7c2d4d3b', 9, 5, 3007, 'footer.twitter', 'web', 'Twitter', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27385, '9f34b22a-db1c-45d5-9fb6-07680af71a7f', 9, 5, 3008, 'footer.facebook', 'web', 'Facebook', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27386, '9f34b22a-e1bb-4151-9471-55c308f00d7d', 9, 5, 3009, 'footer.linkedin', 'web', 'Linkedin', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27387, '9f34b22a-e85c-4a20-9b29-1a3c55963103', 9, 5, 3010, 'footer.github', 'web', 'Github', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27388, '9f34b22a-eee1-4382-901f-fd41060e2728', 9, 5, 3011, 'footer.made_with_by_infyOm_technologies', 'web', '由InfyOm Technologies制造', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27389, '9f34b22a-f565-4fea-a0f5-f4cae17e7bca', 9, 5, 3012, 'footer.we_are_group', 'web', '我们是一群富有创意的书呆子，为Web＆Mobile制作了很棒的东西。 我们只是喜欢\n                 为开源技术做出贡献。 我们始终尝试构建有助于开发人员\n                 节省时间。 因此他们可以花更多的时间与朋友和家人在一起。', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27390, '9f34b22a-fbfb-47b1-b3be-b639d17ba3f1', 9, 5, 3013, 'footer.copyright', 'web', '版权', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27391, '9f34b22b-027c-45f8-926b-1e9d4f072c2d', 9, 5, 3014, 'footer.all_rights_reserved', 'web', '保留所有权利', 'active', NULL, NULL, '2025-06-21 00:49:22', '2025-06-21 00:49:22'),
(27392, '9f34b240-8687-4596-aeb3-d46f24018b16', 9, 3, 2861, 'translation', 'messages', NULL, 'active', NULL, NULL, '2025-06-21 00:49:36', '2025-06-21 00:49:36');

-- --------------------------------------------------------

--
-- Table structure for table `ltu_translations`
--

CREATE TABLE `ltu_translations` (
  `id` bigint UNSIGNED NOT NULL,
  `language_id` bigint UNSIGNED NOT NULL,
  `source` tinyint(1) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ltu_translations`
--

INSERT INTO `ltu_translations` (`id`, `language_id`, `source`, `created_at`, `updated_at`) VALUES
(1, 26, 1, '2025-06-21 00:42:30', '2025-06-21 00:42:30'),
(2, 4, 0, '2025-06-21 00:42:47', '2025-06-21 00:42:47'),
(3, 33, 0, '2025-06-21 00:43:33', '2025-06-21 00:43:33'),
(4, 88, 0, '2025-06-21 00:44:39', '2025-06-21 00:44:39'),
(5, 30, 0, '2025-06-21 00:45:27', '2025-06-21 00:45:27'),
(6, 74, 0, '2025-06-21 00:46:16', '2025-06-21 00:46:16'),
(7, 78, 0, '2025-06-21 00:47:06', '2025-06-21 00:47:06'),
(8, 96, 0, '2025-06-21 00:47:57', '2025-06-21 00:47:57'),
(9, 18, 0, '2025-06-21 00:48:47', '2025-06-21 00:48:47');

-- --------------------------------------------------------

--
-- Table structure for table `ltu_translation_files`
--

CREATE TABLE `ltu_translation_files` (
  `id` bigint UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `extension` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `is_root` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ltu_translation_files`
--

INSERT INTO `ltu_translation_files` (`id`, `name`, `extension`, `is_root`) VALUES
(1, 'auth', 'php', 0),
(2, 'js', 'php', 0),
(3, 'messages', 'php', 0),
(4, 'validation', 'php', 0),
(5, 'web', 'php', 0),
(6, 'pagination', 'php', 0),
(7, 'passwords', 'php', 0);

-- --------------------------------------------------------

--
-- Table structure for table `lunch_breaks`
--

CREATE TABLE `lunch_breaks` (
  `id` bigint UNSIGNED NOT NULL,
  `doctor_id` bigint UNSIGNED NOT NULL,
  `break_from` time NOT NULL,
  `break_to` time NOT NULL,
  `every_day` tinyint(1) DEFAULT NULL,
  `date` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `mails`
--

CREATE TABLE `mails` (
  `id` bigint UNSIGNED NOT NULL,
  `to` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `subject` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `message` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `attachments` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `media`
--

CREATE TABLE `media` (
  `id` bigint UNSIGNED NOT NULL,
  `model_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `model_id` bigint UNSIGNED NOT NULL,
  `collection_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `file_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `mime_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `disk` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `size` bigint UNSIGNED NOT NULL,
  `manipulations` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `custom_properties` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `responsive_images` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `order_column` int UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `conversions_disk` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `uuid` char(36) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `generated_conversions` text COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `media`
--

INSERT INTO `media` (`id`, `model_type`, `model_id`, `collection_name`, `name`, `file_name`, `mime_type`, `disk`, `size`, `manipulations`, `custom_properties`, `responsive_images`, `order_column`, `created_at`, `updated_at`, `conversions_disk`, `uuid`, `generated_conversions`) VALUES
(1, 'App\\Models\\SuperAdminSetting', 31, 'super_admin_settings', 'hms-saas-logo', 'hms-saas-logo.png', 'image/png', 'public', 2349, '[]', '[]', '[]', 1, '2025-06-21 00:42:23', '2025-06-21 00:42:23', 'public', 'b45c0962-31da-4725-bd80-42c7635db9ec', '[]'),
(2, 'App\\Models\\SuperAdminSetting', 32, 'super_admin_settings', 'hms-saas-favicon', 'hms-saas-favicon.ico', 'image/vnd.microsoft.icon', 'public', 4958, '[]', '[]', '[]', 1, '2025-06-21 00:42:23', '2025-06-21 00:42:23', 'public', '29474c72-8eb2-4d91-83a4-10df83e5892c', '[]'),
(3, 'App\\Models\\SectionOne', 1, 'section_one', 'section_one', 'section_one.png', 'image/png', 'public', 265302, '[]', '[]', '[]', 1, '2025-06-21 00:42:23', '2025-06-21 00:42:23', 'public', 'd47d2744-5005-40b0-bb20-9b839df25c12', '[]'),
(4, 'App\\Models\\SectionTwo', 1, 'section_two_card_one_image', 'appointment_schedule', 'appointment_schedule.png', 'image/png', 'public', 80890, '[]', '[]', '[]', 1, '2025-06-21 00:42:23', '2025-06-21 00:42:23', 'public', 'fb4cd75f-7514-4f98-85d1-0baed79d9ef7', '[]'),
(5, 'App\\Models\\SectionTwo', 1, 'section_two_card_two_image', 'ipd_manage', 'ipd_manage.png', 'image/png', 'public', 152136, '[]', '[]', '[]', 2, '2025-06-21 00:42:23', '2025-06-21 00:42:23', 'public', 'e059ba51-b0d7-429e-96c8-ed24fc26c7fb', '[]'),
(6, 'App\\Models\\SectionTwo', 1, 'section_two_card_third_image', 'opd_manage', 'opd_manage.png', 'image/png', 'public', 143712, '[]', '[]', '[]', 3, '2025-06-21 00:42:23', '2025-06-21 00:42:23', 'public', '6421fc91-ccc9-4447-9df9-71c7b9564746', '[]'),
(7, 'App\\Models\\SectionThree', 1, 'section_three', 'section_three_sass', 'section_three_sass.png', 'image/png', 'public', 26353, '[]', '[]', '[]', 1, '2025-06-21 00:42:23', '2025-06-21 00:42:23', 'public', 'd9a6e9c7-bdc3-40fb-b1ea-caac07592bb5', '[]'),
(8, 'App\\Models\\SectionFour', 1, 'section_four_card_one_path', 'bulit_seo', 'bulit_seo.png', 'image/png', 'public', 2257, '[]', '[]', '[]', 1, '2025-06-21 00:42:23', '2025-06-21 00:42:23', 'public', 'c941bd2a-e344-4bdd-854e-e9905a850dc7', '[]'),
(9, 'App\\Models\\SectionFour', 1, 'section_four_card_two_path', 'hospital_profile', 'hospital_profile.png', 'image/png', 'public', 1182, '[]', '[]', '[]', 2, '2025-06-21 00:42:23', '2025-06-21 00:42:23', 'public', '60976207-8dbe-4445-987e-73564e3e3814', '[]'),
(10, 'App\\Models\\SectionFour', 1, 'section_four_card_three_path', 'online_appointment', 'online_appointment.png', 'image/png', 'public', 1625, '[]', '[]', '[]', 3, '2025-06-21 00:42:23', '2025-06-21 00:42:23', 'public', '83778aee-0f8f-4edf-bcb0-3329fc0f1e7f', '[]'),
(11, 'App\\Models\\SectionFour', 1, 'section_four_card_four_path', 'articles', 'articles.png', 'image/png', 'public', 744, '[]', '[]', '[]', 4, '2025-06-21 00:42:23', '2025-06-21 00:42:23', 'public', '5ae8bc48-a4ef-4736-9b45-007286792344', '[]'),
(12, 'App\\Models\\SectionFour', 1, 'section_four_card_five_path', 'easy_to_use', 'easy_to_use.png', 'image/png', 'public', 1489, '[]', '[]', '[]', 5, '2025-06-21 00:42:23', '2025-06-21 00:42:23', 'public', '9c41543f-6cf5-471b-9163-67215a493e32', '[]'),
(13, 'App\\Models\\SectionFour', 1, 'section_four_card_six_path', 'support', 'support.jpeg', 'image/jpeg', 'public', 7572, '[]', '[]', '[]', 6, '2025-06-21 00:42:23', '2025-06-21 00:42:23', 'public', '945f8a9f-636d-4a93-ab15-e1524ac29d63', '[]'),
(14, 'App\\Models\\SectionFive', 1, 'section_five_main_img_path', '07', '07.png', 'image/png', 'public', 61097, '[]', '[]', '[]', 1, '2025-06-21 00:42:23', '2025-06-21 00:42:23', 'public', '0d9e73b7-69cb-4c8a-ac4a-8eda7f816397', '[]'),
(15, 'App\\Models\\SectionFive', 1, 'section_five_card_one_path', 'card_img_url_one', 'card_img_url_one.png', 'image/png', 'public', 1629, '[]', '[]', '[]', 2, '2025-06-21 00:42:23', '2025-06-21 00:42:23', 'public', '9d0dd96b-fc23-43e3-8d2d-72631ce61ffd', '[]'),
(16, 'App\\Models\\SectionFive', 1, 'section_five_card_two_path', 'card_img_url_two', 'card_img_url_two.png', 'image/png', 'public', 1567, '[]', '[]', '[]', 3, '2025-06-21 00:42:23', '2025-06-21 00:42:23', 'public', 'ef912a6d-2554-4be3-83c1-a7c4014845fb', '[]'),
(17, 'App\\Models\\SectionFive', 1, 'section_five_card_three_path', 'card_img_url_three', 'card_img_url_three.png', 'image/png', 'public', 1510, '[]', '[]', '[]', 4, '2025-06-21 00:42:23', '2025-06-21 00:42:23', 'public', '8ac6b8f8-695a-4ce8-a8d0-63b8d29cf2e0', '[]'),
(18, 'App\\Models\\SectionFive', 1, 'section_five_card_four_path', 'card_imf_url_four', 'card_imf_url_four.png', 'image/png', 'public', 1967, '[]', '[]', '[]', 5, '2025-06-21 00:42:23', '2025-06-21 00:42:23', 'public', '3bd2448a-13db-4dd1-9832-92d79e03509f', '[]'),
(19, 'App\\Models\\LandingAboutUs', 1, 'landing_about_us_card_img_one', 'about_us', 'about_us.png', 'image/png', 'public', 312, '[]', '[]', '[]', 1, '2025-06-21 00:42:23', '2025-06-21 00:42:23', 'public', '66201e12-3898-4ff7-aed4-c08e22b0b434', '[]'),
(20, 'App\\Models\\LandingAboutUs', 1, 'landing_about_us_card_img_two', 'check-circle-regular', 'check-circle-regular.svg', 'image/svg+xml', 'public', 741, '[]', '[]', '[]', 2, '2025-06-21 00:42:23', '2025-06-21 00:42:23', 'public', '91b73324-5446-40ea-a41e-6e087d488415', '[]'),
(21, 'App\\Models\\LandingAboutUs', 1, 'landing_about_us_card_img_three', 'credit-card-solid', 'credit-card-solid.svg', 'image/svg+xml', 'public', 561, '[]', '[]', '[]', 3, '2025-06-21 00:42:23', '2025-06-21 00:42:23', 'public', 'f06121b3-b744-4319-8b36-989d396da643', '[]'),
(22, 'App\\Models\\LandingAboutUs', 1, 'landing_about_us_main_img_one', '12', '12.png', 'image/png', 'public', 27209, '[]', '[]', '[]', 4, '2025-06-21 00:42:23', '2025-06-21 00:42:23', 'public', '1a43e02e-081d-44d8-9742-aa343fd5a01b', '[]'),
(23, 'App\\Models\\LandingAboutUs', 1, 'landing_about_us_main_img_two', '14', '14.png', 'image/png', 'public', 49699, '[]', '[]', '[]', 5, '2025-06-21 00:42:23', '2025-06-21 00:42:23', 'public', '0422f8f8-7974-43b0-b14a-4687dc872233', '[]'),
(24, 'App\\Models\\ServiceSlider', 1, 'service_slider', 'treatment', 'treatment.png', 'image/png', 'public', 1820, '[]', '[]', '[]', 1, '2025-06-21 00:42:23', '2025-06-21 00:42:23', 'public', '887d022a-29ee-4e8f-b90f-c0af64476d1a', '[]'),
(25, 'App\\Models\\ServiceSlider', 2, 'service_slider', 'diagnostics', 'diagnostics.png', 'image/png', 'public', 2964, '[]', '[]', '[]', 1, '2025-06-21 00:42:23', '2025-06-21 00:42:23', 'public', '36f70bcf-910d-4d91-a5a7-4677f952a044', '[]'),
(26, 'App\\Models\\ServiceSlider', 3, 'service_slider', 'emergency', 'emergency.png', 'image/png', 'public', 1959, '[]', '[]', '[]', 1, '2025-06-21 00:42:23', '2025-06-21 00:42:23', 'public', '86e5d71c-a007-4440-b15a-e9aec60fd259', '[]'),
(27, 'App\\Models\\ServiceSlider', 4, 'service_slider', 'qualified_doctors', 'qualified_doctors.png', 'image/png', 'public', 2039, '[]', '[]', '[]', 1, '2025-06-21 00:42:23', '2025-06-21 00:42:23', 'public', 'cef66b7c-b3fc-472c-84e3-061bcc02431b', '[]'),
(28, 'App\\Models\\ServiceSlider', 5, 'service_slider', 'anasthesia', 'anasthesia.jpeg', 'image/jpeg', 'public', 14197, '[]', '[]', '[]', 1, '2025-06-21 00:42:23', '2025-06-21 00:42:23', 'public', '4198e08d-f3a7-4594-b941-8ef5f3a17311', '[]'),
(29, 'App\\Models\\ServiceSlider', 6, 'service_slider', 'injection', 'injection.png', 'image/png', 'public', 2230, '[]', '[]', '[]', 1, '2025-06-21 00:42:23', '2025-06-21 00:42:23', 'public', '8ce13084-092c-4696-89c3-577c5889500d', '[]'),
(30, 'App\\Models\\ServiceSlider', 7, 'service_slider', 'slider_img_seven', 'slider_img_seven.png', 'image/png', 'public', 3154, '[]', '[]', '[]', 1, '2025-06-21 00:42:23', '2025-06-21 00:42:23', 'public', 'cef043af-feac-4909-8be2-7c513818fc56', '[]'),
(31, 'App\\Models\\AdminTestimonial', 1, 'testimonials', 'thomas-james', 'thomas-james.png', 'image/png', 'public', 120110, '[]', '[]', '[]', 1, '2025-06-21 00:42:23', '2025-06-21 00:42:23', 'public', '3c8a31a0-ccb5-420c-b078-3cc0c92f645b', '[]'),
(32, 'App\\Models\\AdminTestimonial', 2, 'testimonials', 'thomas-james', 'thomas-james.png', 'image/png', 'public', 120110, '[]', '[]', '[]', 1, '2025-06-21 00:42:23', '2025-06-21 00:42:23', 'public', '87303f7a-e886-47aa-b22e-209b08681874', '[]'),
(33, 'App\\Models\\AdminTestimonial', 3, 'testimonials', 'thomas-james', 'thomas-james.png', 'image/png', 'public', 120110, '[]', '[]', '[]', 1, '2025-06-21 00:42:23', '2025-06-21 00:42:23', 'public', '505be4d7-3571-4c5d-8b1c-790abdc5b857', '[]');

-- --------------------------------------------------------

--
-- Table structure for table `medicines`
--

CREATE TABLE `medicines` (
  `id` int UNSIGNED NOT NULL,
  `category_id` int UNSIGNED DEFAULT NULL,
  `brand_id` int UNSIGNED DEFAULT NULL,
  `name` varchar(160) COLLATE utf8mb4_unicode_ci NOT NULL,
  `selling_price` double NOT NULL,
  `buying_price` double NOT NULL,
  `quantity` int NOT NULL,
  `available_quantity` int NOT NULL,
  `salt_composition` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` text COLLATE utf8mb4_unicode_ci,
  `side_effects` text COLLATE utf8mb4_unicode_ci,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `medicine_bills`
--

CREATE TABLE `medicine_bills` (
  `id` bigint UNSIGNED NOT NULL,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `bill_number` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `patient_id` int UNSIGNED NOT NULL,
  `doctor_id` int UNSIGNED DEFAULT NULL,
  `model_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `model_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `discount` double NOT NULL,
  `net_amount` double NOT NULL,
  `total` double NOT NULL,
  `tax_amount` double NOT NULL,
  `payment_status` int NOT NULL,
  `payment_type` int NOT NULL,
  `note` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `bill_date` datetime NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `migrations`
--

CREATE TABLE `migrations` (
  `id` int UNSIGNED NOT NULL,
  `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `batch` int NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `migrations`
--

INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '0001_01_01_000001_create_cache_table', 1),
(2, '2014_09_15_000010_create_tenants_table', 1),
(3, '2014_09_15_000020_create_domains_table', 1),
(4, '2014_10_12_000000_create_users_table', 1),
(5, '2014_10_12_063910_create_users_tenant_table', 1),
(6, '2014_10_12_100000_create_password_resets_table', 1),
(7, '2019_08_19_000000_create_failed_jobs_table', 1),
(8, '2020_02_06_031618_create_categories_table', 1),
(9, '2020_02_12_053840_create_doctor_departments_table', 1),
(10, '2020_02_12_053932_create_departments_table', 1),
(11, '2020_02_13_042835_create_brands_table', 1),
(12, '2020_02_13_053840_create_doctors_table', 1),
(13, '2020_02_13_054103_create_patients_table', 1),
(14, '2020_02_13_094724_create_bills_table', 1),
(15, '2020_02_13_095024_create_medicines_table', 1),
(16, '2020_02_13_095125_create_bill_items_table', 1),
(17, '2020_02_13_111857_create_nurses_table', 1),
(18, '2020_02_13_125601_create_addresses_table', 1),
(19, '2020_02_13_141104_create_media_table', 1),
(20, '2020_02_14_051650_create_lab_technicians_table', 1),
(21, '2020_02_14_055353_create_appointments_table', 1),
(22, '2020_02_14_091441_create_receptionists_table', 1),
(23, '2020_02_14_093246_create_pharmacists_table', 1),
(24, '2020_02_17_053450_create_accountants_table', 1),
(25, '2020_02_17_080856_create_bed_types_table', 1),
(26, '2020_02_17_092326_create_blood_banks_table', 1),
(27, '2020_02_17_105627_create_beds_table', 1),
(28, '2020_02_17_110620_create_blood_donors_table', 1),
(29, '2020_02_17_135716_create_permission_tables', 1),
(30, '2020_02_18_042327_create_notice_boards_table', 1),
(31, '2020_02_18_042442_create_document_types_table', 1),
(32, '2020_02_18_060222_create_patient_cases_table', 1),
(33, '2020_02_18_060223_create_operation_reports_table', 1),
(34, '2020_02_18_064953_create_bed_assigns_table', 1),
(35, '2020_02_18_092202_create_documents_table', 1),
(36, '2020_02_18_094758_create_birth_reports_table', 1),
(37, '2020_02_18_111020_create_death_reports_table', 1),
(38, '2020_02_19_080336_create_employee_payrolls_table', 1),
(39, '2020_02_19_134502_create_settings_table', 1),
(40, '2020_02_21_090236_create_investigation_reports_table', 1),
(41, '2020_02_21_095439_create_accounts_table', 1),
(42, '2020_02_22_070658_create_payments_table', 1),
(43, '2020_02_22_090112_create_insurances_table', 1),
(44, '2020_02_22_091537_create_insurance_disease_table', 1),
(45, '2020_02_24_055136_create_invoices_table', 1),
(46, '2020_02_24_055518_create_schedules_table', 1),
(47, '2020_02_24_055702_create_invoice_items_table', 1),
(48, '2020_02_25_105042_create_services_table', 1),
(49, '2020_02_25_131030_create_packages_table', 1),
(50, '2020_02_25_131108_create_package_services_table', 1),
(51, '2020_02_27_120948_create_patient_admissions_table', 1),
(52, '2020_02_28_031410_create_case_handlers_table', 1),
(53, '2020_03_02_043813_create_advanced_payments_table', 1),
(54, '2020_03_02_065845_add_patient_admission_id_to_bills', 1),
(55, '2020_03_03_062243_add_patient_id_to_bills', 1),
(56, '2020_03_03_113334_create_schedule_day_table', 1),
(57, '2020_03_26_052336_create_ambulances_table', 1),
(58, '2020_03_26_081157_create_mails_table', 1),
(59, '2020_03_27_061641_create_enquiries_table', 1),
(60, '2020_03_27_063148_create_ambulance_calls_table', 1),
(61, '2020_03_31_122219_create_prescriptions_table', 1),
(62, '2020_04_11_052629_create_charge_categories_table', 1),
(63, '2020_04_11_053929_create_pathology_categories_table', 1),
(64, '2020_04_11_070859_create_radiology_categories_table', 1),
(65, '2020_04_11_090903_create_charges_table', 1),
(66, '2020_04_13_050643_create_radiology_tests_table', 1),
(67, '2020_04_14_093339_create_pathology_tests_table', 1),
(68, '2020_04_24_111205_create_doctor_opd_charge_table', 1),
(69, '2020_04_28_094118_create_expenses_table', 1),
(70, '2020_05_01_055137_create_incomes_table', 1),
(71, '2020_05_11_083050_add_notes_documents_table', 1),
(72, '2020_05_12_075825_create_sms_table', 1),
(73, '2020_06_22_071531_add_index_to_accounts_table', 1),
(74, '2020_06_22_071943_add_index_to_doctor_opd_charges_table', 1),
(75, '2020_06_22_072921_add_index_to_bed_assigns_table', 1),
(76, '2020_06_22_073042_add_index_to_medicines_table', 1),
(77, '2020_06_22_073457_add_index_to_employee_payrolls_table', 1),
(78, '2020_06_22_074937_add_index_to_notice_boards_table', 1),
(79, '2020_06_22_075222_add_index_to_blood_donors_table', 1),
(80, '2020_06_22_075359_add_index_to_packages_table', 1),
(81, '2020_06_22_075506_add_index_to_bed_types_table', 1),
(82, '2020_06_22_075725_add_index_to_services_table', 1),
(83, '2020_06_22_080944_add_index_to_invoices_table', 1),
(84, '2020_06_22_081601_add_index_to_payments_table', 1),
(85, '2020_06_22_081802_add_index_to_advanced_payments_table', 1),
(86, '2020_06_22_081909_add_index_to_bills_table', 1),
(87, '2020_06_22_082548_add_index_to_beds_table', 1),
(88, '2020_06_22_082942_add_index_to_blood_banks_table', 1),
(89, '2020_06_22_083511_add_index_to_users_table', 1),
(90, '2020_06_22_084750_add_index_to_patient_cases_table', 1),
(91, '2020_06_22_084912_add_index_to_patient_admissions_table', 1),
(92, '2020_06_22_085036_add_index_to_document_types_table', 1),
(93, '2020_06_22_085128_add_index_to_insurances_table', 1),
(94, '2020_06_22_085317_add_index_to_ambulances_table', 1),
(95, '2020_06_22_090509_add_index_to_ambulance_calls_table', 1),
(96, '2020_06_22_091253_add_index_to_doctor_departments_table', 1),
(97, '2020_06_22_091455_add_index_to_appointments_table', 1),
(98, '2020_06_22_091617_add_index_to_birth_reports_table', 1),
(99, '2020_06_22_091632_add_index_to_death_reports_table', 1),
(100, '2020_06_22_091651_add_index_to_investigation_reports_table', 1),
(101, '2020_06_22_091828_add_index_to_operation_reports_table', 1),
(102, '2020_06_22_092018_add_index_to_categories_table', 1),
(103, '2020_06_22_092149_add_index_to_brands_table', 1),
(104, '2020_06_22_092324_add_index_to_pathology_tests_table', 1),
(105, '2020_06_22_092338_add_index_to_pathology_categories_table', 1),
(106, '2020_06_22_092347_add_index_to_radiology_tests_table', 1),
(107, '2020_06_22_092357_add_index_to_radiology_categories_table', 1),
(108, '2020_06_22_092651_add_index_to_expenses_table', 1),
(109, '2020_06_22_092702_add_index_to_incomes_table', 1),
(110, '2020_06_22_092855_add_index_to_charges_table', 1),
(111, '2020_06_22_092905_add_index_to_charge_categories_table', 1),
(112, '2020_06_22_093234_add_index_to_enquiries_table', 1),
(113, '2020_06_24_044648_create_diagnosis_categories_table', 1),
(114, '2020_06_25_080242_create_patient_diagnosis_tests_table', 1),
(115, '2020_06_26_054352_create_patient_diagnosis_properties_table', 1),
(116, '2020_07_15_044653_remove_serial_visibility_from_schedules_table', 1),
(117, '2020_07_15_121336_change_ambulances_table_column', 1),
(118, '2020_07_22_052934_change_bed_assigns_table_column', 1),
(119, '2020_07_29_095430_change_invoice_items_table_column', 1),
(120, '2020_08_26_081235_create_item_categories_table', 1),
(121, '2020_08_26_101134_create_items_table', 1),
(122, '2020_08_26_125032_create_item_stocks_table', 1),
(123, '2020_08_27_141547_create_issued_items_table', 1),
(124, '2020_09_08_064222_create_ipd_patient_departments_table', 1),
(125, '2020_09_08_114627_create_ipd_diagnoses_table', 1),
(126, '2020_09_09_065624_create_ipd_consultant_registers_table', 1),
(127, '2020_09_09_135505_create_ipd_charges_table', 1),
(128, '2020_09_10_112306_create_ipd_prescriptions_table', 1),
(129, '2020_09_10_114203_create_ipd_prescription_items_table', 1),
(130, '2020_09_11_045308_create_modules_table', 1),
(131, '2020_09_12_050715_create_ipd_payments_table', 1),
(132, '2020_09_12_071821_create_ipd_timelines_table', 1),
(133, '2020_09_12_103003_create_ipd_bills_table', 1),
(134, '2020_09_14_083759_create_opd_patient_departments_table', 1),
(135, '2020_09_14_144731_add_ipd_patient_department_id_to_bed_assigns_table', 1),
(136, '2020_09_15_064044_create_transactions_table', 1),
(137, '2020_09_16_103204_create_opd_diagnoses_table', 1),
(138, '2020_09_16_114031_create_opd_timelines_table', 1),
(139, '2020_09_23_045100_change_patient_diagnosis_properties_table', 1),
(140, '2020_09_24_053229_add_ipd_bill_column_in_ipd_patient_departments_table', 1),
(141, '2020_10_09_085838_create_call_logs_table', 1),
(142, '2020_10_12_125133_create_visitors_table', 1),
(143, '2020_10_14_044134_create_postals_table', 1),
(144, '2020_10_30_043500_add_route_in_modules_table', 1),
(145, '2020_10_31_062448_add_complete_in_appointments_table', 1),
(146, '2020_11_02_050736_create_testimonials_table', 1),
(147, '2020_11_07_121633_add_region_code_in_sms_table', 1),
(148, '2020_11_19_093810_create_blood_donations_table', 1),
(149, '2020_11_20_113830_create_blood_issues_table', 1),
(150, '2020_11_24_131253_create_notifications_table', 1),
(151, '2020_12_28_131351_create_live_consultations_table', 1),
(152, '2020_12_31_062506_create_live_meetings_table', 1),
(153, '2020_12_31_091242_create_live_meetings_candidates_table', 1),
(154, '2021_01_05_100425_create_user_zoom_credential_table', 1),
(155, '2021_01_06_105407_add_metting_id_to_live_meetings_table', 1),
(156, '2021_02_23_065200_create_vaccinations_table', 1),
(157, '2021_02_23_065252_create_vaccinated_patients_table', 1),
(158, '2021_04_05_085646_create_front_settings_table', 1),
(159, '2021_05_10_000000_add_uuid_to_failed_jobs_table', 1),
(160, '2021_05_29_103036_add_conversions_disk_column_in_media_table', 1),
(161, '2021_06_07_104022_change_patient_foreign_key_type_in_appointments_table', 1),
(162, '2021_06_08_073918_change_department_foreign_key_in_appointments_table', 1),
(163, '2021_06_21_082754_update_amount_datatype_in_bills_table', 1),
(164, '2021_06_21_082845_update_amount_datatype_in_bill_items_table', 1),
(165, '2021_11_11_061443_create_front_services_table', 1),
(166, '2021_11_12_100750_create_hospital_schedules_table', 1),
(167, '2021_11_12_105805_add_social_details_in_users_table', 1),
(168, '2021_11_20_071507_create_subscription_plans_table', 1),
(169, '2021_11_23_090824_create_subscriptions_table', 1),
(170, '2021_11_24_102200_create_section_ones_table', 1),
(171, '2021_11_25_102200_create_section_twos_table', 1),
(172, '2021_11_26_085330_create_super_admin_settings_table', 1),
(173, '2021_11_26_102200_create_section_threes_table', 1),
(174, '2021_11_26_102202_create_section_fours_table', 1),
(175, '2021_11_26_102203_create_section_fives_table', 1),
(176, '2021_11_26_131611_create_subscribes_table', 1),
(177, '2021_11_26_131613_create_landing_about_us_table', 1),
(178, '2021_11_26_131615_create_super_admin_enquiries_table', 1),
(179, '2021_11_30_043411_create_service_sliders_table', 1),
(180, '2021_11_30_132704_create_admin_testimonials_table', 1),
(181, '2021_12_01_094113_create_faqs_table', 1),
(182, '2021_12_08_084047_create_features_table', 1),
(183, '2021_12_08_105802_create_feature_subscriptionplan_table', 1),
(184, '2022_01_24_065736_change_domain_field_in_domains_table', 1),
(185, '2022_01_24_065936_change_route_field_in_features_table', 1),
(186, '2022_02_22_072906_add_theme_mode_to_users_table', 1),
(187, '2022_03_26_051413_change_transaction_id_in_transactions', 1),
(188, '2022_03_28_092201_add_is_manual_payment_in_transactions', 1),
(189, '2022_04_09_063627_change_doctor_foreign_in_operation_reports_table', 1),
(190, '2022_05_12_103141_change_length_email_in_password_resets', 1),
(191, '2022_05_12_103950_change_length_name_in_accounts', 1),
(192, '2022_05_12_104835_change_length_name_in_medicines', 1),
(193, '2022_05_12_105027_change_length_name_in_packages', 1),
(194, '2022_05_12_105131_change_length_title_in_bed_types', 1),
(195, '2022_05_12_105228_change_length_name_in_services', 1),
(196, '2022_05_12_105423_change_length_first_name_in_users', 1),
(197, '2022_05_12_105529_change_length_name_in_document_types', 1),
(198, '2022_05_12_105616_change_length_name_in_insurances', 1),
(199, '2022_05_12_105820_change_length_vehicle_number_in_ambulances', 1),
(200, '2022_05_12_110013_change_length_title_in_doctor_departments', 1),
(201, '2022_05_12_110054_change_length_name_in_categories', 1),
(202, '2022_05_12_110121_change_length_name_in_brands', 1),
(203, '2022_05_12_110159_change_length_test_name_in_pathology_tests', 1),
(204, '2022_05_12_110234_change_length_name_in_pathology_categories', 1),
(205, '2022_05_12_110310_change_length_test_name_in_radiology_tests', 1),
(206, '2022_05_12_110359_change_length_name_in_radiology_categories', 1),
(207, '2022_05_12_110441_change_length_code_in_charges', 1),
(208, '2022_05_12_110518_change_length_name_in_charge_categories', 1),
(209, '2022_05_12_110625_change_length_name_in_diagnosis_categories', 1),
(210, '2022_05_12_111216_change_length_status_transaction_id_in_transactions', 1),
(211, '2022_05_12_111540_change_length_name_in_features', 1),
(212, '2022_05_16_111533_add_default_length_in_table', 1),
(213, '2022_07_27_115635_add_sms_limit_to_subscription_plans_table', 1),
(214, '2022_07_28_070949_add_sms_limit_to_subscriptions_table', 1),
(215, '2022_08_01_163441_create_add_prescription_fields_table', 1),
(216, '2022_08_02_164201_create_prescriptions_medicines_table', 1),
(217, '2022_08_26_225039_change_charge_standard_charge_column', 1),
(218, '2022_08_29_114641_change_field_in_blood_issues', 1),
(219, '2022_08_31_183659_add_city_field_in_user_table', 1),
(220, '2022_08_31_185620_create_hospital_type_table', 1),
(221, '2022_09_06_185142_add_foreign_key_at_hospital_type', 1),
(222, '2022_09_20_044627_run_default_country_code_seeder', 1),
(223, '2022_10_08_174423_create_currency_settings_table', 1),
(224, '2022_10_10_175359_create_default_currency_seeder_migration', 1),
(225, '2022_10_14_071405_super_admin_currency_settings', 1),
(226, '2022_10_15_035849_super_admin_currency_seeder_migration', 1),
(227, '2022_10_17_095822_add_default_field_seeder', 1),
(228, '2022_11_04_180329_remove_unique_constraint_from_item_category', 1),
(229, '2023_01_31_125406_change_datatype_meta_field_to_transactions_table', 1),
(230, '2023_02_09_042947_change_datatype_price_field_to_subscription_plans_table', 1),
(231, '2023_04_10_082532_seed_default_currency_setting_seeder', 1),
(232, '2023_06_17_043439_super_admin_google_recaptcha_setting', 1),
(233, '2023_06_26_070547_create_used_medicines_table', 1),
(234, '2023_06_26_094015_add_quantity_field_in_medicines_table', 1),
(235, '2023_06_27_093345_create_purchase_medicine_table', 1),
(236, '2023_06_27_105310_create_purchased_medicines_table', 1),
(237, '2023_07_05_044449_create_medicine_bill_table', 1),
(238, '2023_07_05_054627_create_sale_medicines_table', 1),
(239, '2023_07_06_093935_add_dose_interval_field_in_prescription_table', 1),
(240, '2023_07_12_130339_add_dose_interval_field_in_ipd_prescription_items_table', 1),
(241, '2023_07_26_060713_change_price_precision_medicine_bill_table', 1),
(242, '2023_08_17_000000_rename_password_resets_table', 1),
(243, '2023_08_24_064315_create_zoom_o_auth_credentials_table', 1),
(244, '2023_08_29_100628_add_charge_id_in_radiology_tests_table', 1),
(245, '2023_09_30_060447_create_pathology_units_table', 1),
(246, '2023_09_30_065818_create_pathology_parameters_table', 1),
(247, '2023_10_04_113522_create_pathology_parameter_items_table', 1),
(248, '2023_10_09_112844_create_doctor_holidays_table', 1),
(249, '2023_10_09_113239_create_lunch_breaks_table', 1),
(250, '2023_10_26_044303_create_smart_patient_cards_table', 1),
(251, '2023_10_27_092821_add_template_id_to_patients_table', 1),
(252, '2023_10_30_100313_add_patient_unique_id_to_patients_table', 1),
(253, '2023_11_02_090934_add_description_field_to_doctors_table', 1),
(254, '2023_11_20_060736_add_default_language_field_to_settings', 1),
(255, '2023_11_23_064532_add_report_generated_to_opd_diagnosis_table', 1),
(256, '2023_11_24_105520_add_status_in_bills_table', 1),
(257, '2023_11_27_111203_create_bill_transactions_table', 1),
(258, '2023_12_14_074029_add_notes_field_to_transactions_table', 1),
(259, '2023_12_22_105204_add_discharge_field_to_ipd_patient_departments_table', 1),
(260, '2023_12_28_083507_create_custom_fields_table', 1),
(261, '2023_12_28_085923_add_custom_field_to_appointments_table', 1),
(262, '2023_12_28_090429_add_custom_field_to_ipd_patient_departments_table', 1),
(263, '2023_12_28_090546_add_custom_field_to_opd_patient_departments_table', 1),
(264, '2023_12_28_091156_add_custom_field_to_patients_table', 1),
(265, '2024_01_04_090911_add_region_code_to_users_table', 1),
(266, '2024_01_05_100018_create_ipd_patient_department_seeder_table', 1),
(267, '2024_01_25_040328_change_token_filed_in_password_reset_tokens_table', 1),
(268, '2024_01_26_073439_add_appointment_charge_field_to_doctors_table', 1),
(269, '2024_01_29_125535_create_appointment_transactions_table', 1),
(270, '2024_02_01_064646_add_payment_status_in_appointments_table', 1),
(271, '2024_02_05_102546_update_default_bed_status_seeder', 1),
(272, '2024_02_08_125631_create_google_calendar_integrations_table', 1),
(273, '2024_02_09_035534_create_google_calendar_lists_table', 1),
(274, '2024_02_12_052500_create_event_google_calendars_table', 1),
(275, '2024_02_12_092046_add_column_in_live_consultations_table', 1),
(276, '2024_02_13_064535_create_user_google_event_schedules_table', 1),
(277, '2024_02_20_083631_add_manual_instruction_in_setting_seeder', 1),
(278, '2024_02_26_090956_add_patient_id_to_pathology_tests_table', 1),
(279, '2024_02_28_101005_create_setting_table_payment_getaway_field_seeder_table', 1),
(280, '2024_03_01_110117_create_opd_prescriptions_table', 1),
(281, '2024_03_06_051455_create_opd_prescription_items_table', 1),
(282, '2024_03_26_054916_add_payment_status_field_in_purchase_medicine_table', 1),
(283, '2024_04_01_044115_create_super_admin_flutterwave_credential_seeder_table', 1),
(284, '2024_05_15_121235_change_custom_field_to_patients_table', 1),
(285, '2024_05_15_121352_change_custom_field_to_appointments_table', 1),
(286, '2024_05_15_121400_change_custom_field_to_ipd_patient_departments_table', 1),
(287, '2024_05_15_121406_change_custom_field_to_opd_patient_departments_table', 1),
(288, '2024_05_20_055209_change_expiry_date_field_type_in_sale_medicines_table', 1),
(289, '2024_05_30_070256_add_google_json_file_path_field_to_doctors_table', 1),
(290, '2024_05_31_061137_change_price_datatype_in_bill_items', 1),
(291, '2024_05_31_064037_change_amount_datatype_in_bill_transactions', 1),
(292, '2024_05_31_064251_change_charge_datatype_in_beds', 1),
(293, '2024_05_31_071230_change_standard_charge_datatype_in_charges', 1),
(294, '2024_05_31_101858_change_standard_charge_datatype_in_pathology_tests_table', 1),
(295, '2024_05_31_102407_change_standard_charge_datatype_in_radiology_tests_table', 1),
(296, '2024_05_31_103537_change_rate_datatype_in_services_table', 1),
(297, '2024_06_01_035510_change_standard_and_applied_charge_datatype_in_ipd_charges', 1),
(298, '2024_06_01_040041_change_amount_datatype_in_ipd_payments', 1),
(299, '2024_06_01_042014_change_amount_datatype_in_ipd_bills', 1),
(300, '2024_07_24_114525_change_appointment_charge_datatype_in_doctors_table', 1),
(301, '2024_09_23_112650_create_job_batches_table', 1),
(302, '2024_09_23_115933_create_exports_table', 1),
(303, '2024_09_23_120205_create_jobs_table', 1),
(304, '2024_12_16_105500_create_sessions_table', 1),
(305, '2025_01_06_075058_modify_hospital_name_nullable_in_users_table', 1),
(306, '2025_01_16_125952_add_patient_id_to_radiology_tests_table', 1),
(307, '2025_02_07_140538_add_is_hidden_to_modules_table', 1),
(308, '2025_02_11_091416_change_price_data_type_in_subscriptions_table', 1),
(309, '2025_02_12_144635_modify_paypal_model_key_to_super_admin_settings_table', 1),
(310, '2025_03_10_074819_update_smart_patient_cards_table', 1),
(311, '2025_03_28_035116_change_datatype_amount_field_to_transactions_table', 1),
(312, '2025_04_01_063248_create_patient_queues_table', 1),
(313, '2025_05_20_044247_create_odontograms_table', 1),
(314, '2025_05_21_091922_seed_new_default_module_seeder', 1),
(315, '2025_06_04_044917_seed_odontogram_seeder', 1),
(316, '2025_06_10_120723_add_two_factor_columns_to_users_table', 1),
(317, '2025_06_10_120739_add_two_factor_type_column_to_users_table', 1),
(318, '2025_06_11_045239_add_themes_settings_to_users_table', 1),
(319, '2025_06_13_124320_create_languages_table', 1),
(320, '2025_06_13_124321_create_translations_table', 1),
(321, '2025_06_13_124322_create_translation_files_table', 1),
(322, '2025_06_13_124323_create_phrases_table', 1),
(323, '2025_06_13_124324_create_contributors_table', 1),
(324, '2025_06_13_124326_create_invites_table', 1),
(325, '2025_06_13_124327_add_is_root_to_translation_files_table', 1),
(326, '2025_06_16_092840_import_transaction_files_table', 1);

-- --------------------------------------------------------

--
-- Table structure for table `model_has_permissions`
--

CREATE TABLE `model_has_permissions` (
  `permission_id` bigint UNSIGNED NOT NULL,
  `model_type` varchar(160) COLLATE utf8mb4_unicode_ci NOT NULL,
  `model_id` bigint UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `model_has_roles`
--

CREATE TABLE `model_has_roles` (
  `role_id` bigint UNSIGNED NOT NULL,
  `model_type` varchar(160) COLLATE utf8mb4_unicode_ci NOT NULL,
  `model_id` bigint UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `model_has_roles`
--

INSERT INTO `model_has_roles` (`role_id`, `model_type`, `model_id`) VALUES
(10, 'App\\Models\\User', 1);

-- --------------------------------------------------------

--
-- Table structure for table `modules`
--

CREATE TABLE `modules` (
  `id` bigint UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_hidden` tinyint(1) NOT NULL DEFAULT '0',
  `route` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `modules`
--

INSERT INTO `modules` (`id`, `name`, `is_active`, `is_hidden`, `route`, `tenant_id`, `created_at`, `updated_at`) VALUES
(1, 'Odontograms', 1, 0, 'odontograms.index', NULL, '2025-06-21 00:42:22', '2025-06-21 00:42:22'),
(2, 'Patients', 1, 0, 'patients.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(3, 'Doctors', 1, 0, 'doctors.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(4, 'Accountants', 1, 0, 'accountants.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(5, 'Medicines', 1, 0, 'medicines.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(6, 'Nurses', 1, 0, 'nurses.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(7, 'Receptionists', 1, 0, 'receptionists.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(8, 'Lab Technicians', 1, 0, 'lab-technicians.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(9, 'Pharmacists', 1, 0, 'pharmacists.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(10, 'Birth Reports', 1, 0, 'birth-reports.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(11, 'Death Reports', 1, 0, 'death-reports.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(12, 'Investigation Reports', 1, 0, 'investigation-reports.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(13, 'Operation Reports', 1, 0, 'operation-reports.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(14, 'Income', 1, 0, 'incomes.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(15, 'Expense', 1, 0, 'expenses.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(16, 'SMS', 1, 0, 'sms.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(17, 'IPD Patients', 1, 0, 'ipd.patient.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(18, 'OPD Patients', 1, 0, 'opd.patient.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(19, 'Accounts', 1, 0, 'accounts.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(20, 'Employee Payrolls', 1, 0, 'employee-payrolls.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(21, 'Invoices', 1, 0, 'invoices.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(22, 'Payments', 1, 0, 'payments.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(23, 'Payment Reports', 1, 0, 'payment.reports', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(24, 'Advance Payments', 1, 0, 'advanced-payments.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(25, 'Bills', 1, 0, 'bills.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(26, 'Bed Types', 1, 0, 'bed-types.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(27, 'Beds', 1, 0, 'beds.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(28, 'Bed Assigns', 1, 0, 'bed-assigns.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(29, 'Blood Banks', 1, 0, 'blood-banks.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(30, 'Blood Donors', 1, 0, 'blood-donors.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(31, 'Documents', 1, 0, 'documents.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(32, 'Document Types', 1, 0, 'document-types.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(33, 'Services', 1, 0, 'services.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(34, 'Insurances', 1, 0, 'insurances.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(35, 'Packages', 1, 0, 'packages.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(36, 'Ambulances', 1, 0, 'ambulances.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(37, 'Ambulances Calls', 1, 0, 'ambulance-calls.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(38, 'Appointments', 1, 0, 'appointments.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(39, 'Call Logs', 1, 0, 'call_logs.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(40, 'Visitors', 1, 0, 'visitors.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(41, 'Postal Receive', 1, 0, 'receives.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(42, 'Postal Dispatch', 1, 0, 'dispatches.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(43, 'Notice Boards', 1, 0, 'noticeboard', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(44, 'Mail', 1, 0, 'mail', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(45, 'Enquires', 1, 0, 'enquiries', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(46, 'Charge Categories', 1, 0, 'charge-categories.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(47, 'Charges', 1, 0, 'charges.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(48, 'Doctor OPD Charges', 1, 0, 'doctor-opd-charges.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(49, 'Items Categories', 1, 0, 'item-categories.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(50, 'Items', 1, 0, 'items.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(51, 'Item Stocks', 1, 0, 'item.stock.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(52, 'Issued Items', 1, 0, 'issued.item.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(53, 'Diagnosis Categories', 1, 0, 'diagnosis.category.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(54, 'Diagnosis Tests', 1, 0, 'patient.diagnosis.test.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(55, 'Pathology Categories', 1, 0, 'pathology.category.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(56, 'Pathology Tests', 1, 0, 'pathology.test.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(57, 'Radiology Categories', 1, 0, 'radiology.category.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(58, 'Radiology Tests', 1, 0, 'radiology.test.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(59, 'Medicine Categories', 1, 0, 'categories.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(60, 'Medicine Brands', 1, 0, 'brands.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(61, 'Doctor Departments', 1, 0, 'doctor-departments.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(62, 'Schedules', 1, 0, 'schedules.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(63, 'Prescriptions', 1, 0, 'prescriptions.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(64, 'Cases', 1, 0, 'patient-cases.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(65, 'Case Handlers', 1, 0, 'case-handlers.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(66, 'Patient Admissions', 1, 0, 'patient-admissions.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(67, 'My Payrolls', 1, 0, 'payroll', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(68, 'Patient Cases', 1, 0, 'patients.cases', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(69, 'Testimonial', 1, 0, 'testimonials.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(70, 'Blood Donations', 1, 0, 'blood-donations.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(71, 'Blood Issues', 1, 0, 'blood-issues.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(72, 'Live Consultations', 1, 0, 'live.consultation.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(73, 'Live Meetings', 1, 0, 'live.meeting.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(74, 'Vaccinated Patients', 1, 0, 'vaccinated-patients.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(75, 'Vaccinations', 1, 0, 'vaccinations.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(76, 'Purchased Medicine', 1, 0, 'medicine-purchase.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(77, 'Pathology Units', 1, 0, 'pathology.unit.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(78, 'Pathology Parameters', 1, 0, 'pathology.parameter.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(79, 'Vaccinations', 1, 0, 'vaccinations.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(80, 'Vaccinated Patients', 1, 0, 'vaccinated-patients.index', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23');

-- --------------------------------------------------------

--
-- Table structure for table `notice_boards`
--

CREATE TABLE `notice_boards` (
  `id` int UNSIGNED NOT NULL,
  `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` text COLLATE utf8mb4_unicode_ci,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `notifications`
--

CREATE TABLE `notifications` (
  `id` int UNSIGNED NOT NULL,
  `type` int NOT NULL,
  `notification_for` int NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `text` text COLLATE utf8mb4_unicode_ci,
  `meta` text COLLATE utf8mb4_unicode_ci,
  `read_at` timestamp NULL DEFAULT NULL,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `nurses`
--

CREATE TABLE `nurses` (
  `id` int UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `odontograms`
--

CREATE TABLE `odontograms` (
  `id` bigint UNSIGNED NOT NULL,
  `odontogram` json DEFAULT NULL,
  `patient_id` int UNSIGNED NOT NULL,
  `doctor_id` bigint UNSIGNED NOT NULL,
  `description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `opd_diagnoses`
--

CREATE TABLE `opd_diagnoses` (
  `id` int UNSIGNED NOT NULL,
  `opd_patient_department_id` int UNSIGNED NOT NULL,
  `report_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `report_date` datetime NOT NULL,
  `description` text COLLATE utf8mb4_unicode_ci,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `report_generated` tinyint(1) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `opd_patient_departments`
--

CREATE TABLE `opd_patient_departments` (
  `id` int UNSIGNED NOT NULL,
  `patient_id` int UNSIGNED NOT NULL,
  `opd_number` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `height` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `weight` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `bp` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `symptoms` text COLLATE utf8mb4_unicode_ci,
  `notes` text COLLATE utf8mb4_unicode_ci,
  `appointment_date` datetime NOT NULL,
  `case_id` int UNSIGNED DEFAULT NULL,
  `is_old_patient` tinyint(1) DEFAULT '0',
  `doctor_id` bigint UNSIGNED DEFAULT NULL,
  `standard_charge` double NOT NULL,
  `payment_mode` tinyint NOT NULL,
  `custom_field` longtext COLLATE utf8mb4_unicode_ci,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `opd_prescriptions`
--

CREATE TABLE `opd_prescriptions` (
  `id` bigint UNSIGNED NOT NULL,
  `opd_patient_department_id` int UNSIGNED NOT NULL,
  `header_note` text COLLATE utf8mb4_unicode_ci,
  `footer_note` text COLLATE utf8mb4_unicode_ci,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `opd_prescription_items`
--

CREATE TABLE `opd_prescription_items` (
  `id` bigint UNSIGNED NOT NULL,
  `opd_prescription_id` bigint UNSIGNED NOT NULL,
  `category_id` int UNSIGNED NOT NULL,
  `medicine_id` int UNSIGNED NOT NULL,
  `dosage` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `dose_interval` int NOT NULL,
  `day` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `time` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `instruction` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `opd_timelines`
--

CREATE TABLE `opd_timelines` (
  `id` int UNSIGNED NOT NULL,
  `opd_patient_department_id` int UNSIGNED NOT NULL,
  `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `date` date NOT NULL,
  `description` text COLLATE utf8mb4_unicode_ci,
  `visible_to_person` tinyint(1) NOT NULL DEFAULT '1',
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `operation_reports`
--

CREATE TABLE `operation_reports` (
  `id` int UNSIGNED NOT NULL,
  `patient_id` int UNSIGNED NOT NULL,
  `case_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `doctor_id` bigint UNSIGNED NOT NULL,
  `date` datetime NOT NULL,
  `description` text COLLATE utf8mb4_unicode_ci,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `packages`
--

CREATE TABLE `packages` (
  `id` int UNSIGNED NOT NULL,
  `name` varchar(160) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` text COLLATE utf8mb4_unicode_ci,
  `discount` double NOT NULL,
  `total_amount` double NOT NULL,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `package_services`
--

CREATE TABLE `package_services` (
  `id` bigint UNSIGNED NOT NULL,
  `package_id` int UNSIGNED NOT NULL,
  `service_id` int UNSIGNED NOT NULL,
  `quantity` double NOT NULL,
  `rate` double NOT NULL,
  `amount` double NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `password_reset_tokens`
--

CREATE TABLE `password_reset_tokens` (
  `email` varchar(160) COLLATE utf8mb4_unicode_ci NOT NULL,
  `token` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `pathology_categories`
--

CREATE TABLE `pathology_categories` (
  `id` int UNSIGNED NOT NULL,
  `name` varchar(160) COLLATE utf8mb4_unicode_ci NOT NULL,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `pathology_parameters`
--

CREATE TABLE `pathology_parameters` (
  `id` int UNSIGNED NOT NULL,
  `parameter_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `reference_range` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `unit_id` int UNSIGNED NOT NULL,
  `description` text COLLATE utf8mb4_unicode_ci,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `pathology_parameter_items`
--

CREATE TABLE `pathology_parameter_items` (
  `id` bigint UNSIGNED NOT NULL,
  `pathology_id` int UNSIGNED NOT NULL,
  `patient_result` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `parameter_id` int UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `pathology_tests`
--

CREATE TABLE `pathology_tests` (
  `id` int UNSIGNED NOT NULL,
  `test_name` varchar(160) COLLATE utf8mb4_unicode_ci NOT NULL,
  `short_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `test_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `category_id` int UNSIGNED NOT NULL,
  `unit` int DEFAULT NULL,
  `subcategory` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `method` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `report_days` int DEFAULT NULL,
  `charge_category_id` int UNSIGNED NOT NULL,
  `standard_charge` double NOT NULL,
  `patient_id` int UNSIGNED DEFAULT NULL,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `pathology_units`
--

CREATE TABLE `pathology_units` (
  `id` int UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `patients`
--

CREATE TABLE `patients` (
  `id` int UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `template_id` int UNSIGNED DEFAULT NULL,
  `custom_field` longtext COLLATE utf8mb4_unicode_ci,
  `patient_unique_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `patient_admissions`
--

CREATE TABLE `patient_admissions` (
  `id` int UNSIGNED NOT NULL,
  `patient_admission_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `patient_id` int UNSIGNED NOT NULL,
  `doctor_id` bigint UNSIGNED NOT NULL,
  `admission_date` datetime NOT NULL,
  `discharge_date` datetime DEFAULT NULL,
  `package_id` int UNSIGNED DEFAULT NULL,
  `insurance_id` int UNSIGNED DEFAULT NULL,
  `bed_id` int UNSIGNED DEFAULT NULL,
  `policy_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `agent_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `guardian_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `guardian_relation` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `guardian_contact` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `guardian_address` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status` tinyint(1) DEFAULT NULL,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `patient_cases`
--

CREATE TABLE `patient_cases` (
  `id` int UNSIGNED NOT NULL,
  `case_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `patient_id` int UNSIGNED NOT NULL,
  `phone` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `doctor_id` bigint UNSIGNED NOT NULL,
  `date` datetime NOT NULL,
  `fee` double NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT '0',
  `description` text COLLATE utf8mb4_unicode_ci,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `patient_diagnosis_properties`
--

CREATE TABLE `patient_diagnosis_properties` (
  `id` int UNSIGNED NOT NULL,
  `patient_diagnosis_id` bigint UNSIGNED NOT NULL,
  `property_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `property_value` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `patient_diagnosis_tests`
--

CREATE TABLE `patient_diagnosis_tests` (
  `id` bigint UNSIGNED NOT NULL,
  `patient_id` int UNSIGNED NOT NULL,
  `doctor_id` bigint UNSIGNED NOT NULL,
  `category_id` bigint UNSIGNED NOT NULL,
  `report_number` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `patient_queues`
--

CREATE TABLE `patient_queues` (
  `id` bigint UNSIGNED NOT NULL,
  `appointment_id` bigint UNSIGNED NOT NULL,
  `no` int NOT NULL,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` int UNSIGNED NOT NULL,
  `payment_date` date NOT NULL,
  `account_id` int UNSIGNED NOT NULL,
  `pay_to` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `amount` double NOT NULL,
  `description` text COLLATE utf8mb4_unicode_ci,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `permissions`
--

CREATE TABLE `permissions` (
  `id` bigint UNSIGNED NOT NULL,
  `name` varchar(160) COLLATE utf8mb4_unicode_ci NOT NULL,
  `guard_name` varchar(160) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `permissions`
--

INSERT INTO `permissions` (`id`, `name`, `guard_name`, `created_at`, `updated_at`) VALUES
(1, 'manage_users', 'web', '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(2, 'manage_beds', 'web', '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(3, 'manage_wards', 'web', '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(4, 'manage_appointments', 'web', '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(5, 'manage_prescriptions', 'web', '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(6, 'manage_patients', 'web', '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(7, 'manage_blood_bank', 'web', '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(8, 'manage_reports', 'web', '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(9, 'manage_payrolls', 'web', '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(10, 'manage_settings', 'web', '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(11, 'manage_notice_board', 'web', '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(12, 'manage_doctors', 'web', '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(13, 'manage_nurses', 'web', '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(14, 'manage_receptionists', 'web', '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(15, 'manage_pharmacists', 'web', '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(16, 'manage_accountants', 'web', '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(17, 'manage_invoices', 'web', '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(18, 'manage_operations_history', 'web', '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(19, 'manage_admit_history', 'web', '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(20, 'manage_blood_donor', 'web', '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(21, 'manage_medicines', 'web', '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(22, 'manage_department', 'web', '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(23, 'manage_doctor_departments', 'web', '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(24, 'manage_lab_technicians', 'web', '2025-06-21 00:42:23', '2025-06-21 00:42:23');

-- --------------------------------------------------------

--
-- Table structure for table `pharmacists`
--

CREATE TABLE `pharmacists` (
  `id` int UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `postals`
--

CREATE TABLE `postals` (
  `id` bigint UNSIGNED NOT NULL,
  `from_title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `to_title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `reference_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `date` date DEFAULT NULL,
  `address` text COLLATE utf8mb4_unicode_ci,
  `type` int DEFAULT NULL,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `prescriptions`
--

CREATE TABLE `prescriptions` (
  `id` int UNSIGNED NOT NULL,
  `patient_id` int UNSIGNED NOT NULL,
  `doctor_id` bigint UNSIGNED DEFAULT NULL,
  `food_allergies` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `tendency_bleed` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `heart_disease` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `high_blood_pressure` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `diabetic` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `surgery` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `accident` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `others` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `medical_history` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `current_medication` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `female_pregnancy` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `breast_feeding` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `health_insurance` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `low_income` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `reference` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status` tinyint(1) DEFAULT NULL,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `plus_rate` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `temperature` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `problem_description` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `test` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `advice` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `next_visit_qty` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `next_visit_time` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `prescriptions_medicines`
--

CREATE TABLE `prescriptions_medicines` (
  `id` bigint UNSIGNED NOT NULL,
  `prescription_id` int UNSIGNED NOT NULL,
  `medicine` int UNSIGNED NOT NULL,
  `dosage` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `day` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `time` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `dose_interval` int NOT NULL,
  `comment` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `purchased_medicines`
--

CREATE TABLE `purchased_medicines` (
  `id` bigint UNSIGNED NOT NULL,
  `purchase_medicines_id` bigint UNSIGNED NOT NULL,
  `medicine_id` int UNSIGNED DEFAULT NULL,
  `expiry_date` datetime DEFAULT NULL,
  `lot_no` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `tax` double NOT NULL,
  `quantity` int NOT NULL,
  `amount` double NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `purchase_medicines`
--

CREATE TABLE `purchase_medicines` (
  `id` bigint UNSIGNED NOT NULL,
  `purchase_no` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `tax` double NOT NULL,
  `total` double NOT NULL,
  `net_amount` double NOT NULL,
  `payment_type` int NOT NULL,
  `payment_status` tinyint(1) DEFAULT '1',
  `discount` double NOT NULL,
  `note` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `payment_note` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `radiology_categories`
--

CREATE TABLE `radiology_categories` (
  `id` int UNSIGNED NOT NULL,
  `name` varchar(160) COLLATE utf8mb4_unicode_ci NOT NULL,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `radiology_tests`
--

CREATE TABLE `radiology_tests` (
  `id` int UNSIGNED NOT NULL,
  `test_name` varchar(160) COLLATE utf8mb4_unicode_ci NOT NULL,
  `short_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `test_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `category_id` int UNSIGNED NOT NULL,
  `subcategory` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `report_days` int DEFAULT NULL,
  `charge_category_id` int UNSIGNED NOT NULL,
  `standard_charge` double NOT NULL,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `charge_id` int UNSIGNED DEFAULT NULL,
  `patient_id` bigint UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `receptionists`
--

CREATE TABLE `receptionists` (
  `id` int UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `role_has_permissions`
--

CREATE TABLE `role_has_permissions` (
  `permission_id` bigint UNSIGNED NOT NULL,
  `role_id` bigint UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `role_has_permissions`
--

INSERT INTO `role_has_permissions` (`permission_id`, `role_id`) VALUES
(1, 1),
(2, 1),
(3, 1),
(4, 1),
(5, 1),
(6, 1),
(7, 1),
(8, 1),
(9, 1),
(10, 1),
(11, 1),
(12, 1),
(13, 1),
(14, 1),
(15, 1),
(16, 1),
(17, 1),
(18, 1),
(19, 1),
(20, 1),
(21, 1),
(22, 1),
(23, 1),
(24, 1),
(4, 2),
(5, 2),
(6, 2),
(7, 2),
(8, 2),
(11, 2),
(12, 2),
(13, 2),
(14, 2),
(15, 2),
(18, 2),
(20, 2),
(21, 2),
(22, 2),
(4, 3),
(5, 3),
(7, 3),
(8, 3),
(11, 3),
(12, 3),
(13, 3),
(14, 3),
(15, 3),
(19, 3),
(21, 3),
(2, 4),
(3, 4),
(4, 4),
(5, 4),
(6, 4),
(7, 4),
(8, 4),
(11, 4),
(12, 4),
(13, 4),
(14, 4),
(15, 4),
(18, 4),
(20, 4),
(21, 4),
(22, 4),
(2, 5),
(3, 5),
(4, 5),
(6, 5),
(7, 5),
(8, 5),
(11, 5),
(12, 5),
(13, 5),
(14, 5),
(15, 5),
(18, 5),
(19, 5),
(20, 5),
(22, 5),
(24, 5),
(11, 6),
(15, 6),
(21, 6),
(11, 7),
(15, 7),
(21, 7),
(1, 10),
(2, 10),
(3, 10),
(4, 10),
(5, 10),
(6, 10),
(7, 10),
(8, 10),
(9, 10),
(10, 10),
(11, 10),
(12, 10),
(13, 10),
(14, 10),
(15, 10),
(16, 10),
(17, 10),
(18, 10),
(19, 10),
(20, 10),
(21, 10),
(22, 10),
(23, 10);

-- --------------------------------------------------------

--
-- Table structure for table `sale_medicines`
--

CREATE TABLE `sale_medicines` (
  `id` bigint UNSIGNED NOT NULL,
  `medicine_bill_id` int UNSIGNED NOT NULL,
  `medicine_id` int UNSIGNED NOT NULL,
  `sale_quantity` int NOT NULL,
  `sale_price` double NOT NULL,
  `tax` double NOT NULL,
  `expiry_date` date NOT NULL,
  `amount` double NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `schedules`
--

CREATE TABLE `schedules` (
  `id` int UNSIGNED NOT NULL,
  `doctor_id` bigint UNSIGNED NOT NULL,
  `per_patient_time` time NOT NULL,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `schedule_days`
--

CREATE TABLE `schedule_days` (
  `id` bigint UNSIGNED NOT NULL,
  `doctor_id` bigint UNSIGNED NOT NULL,
  `schedule_id` int UNSIGNED NOT NULL,
  `available_on` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `available_from` time NOT NULL,
  `available_to` time NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `section_fives`
--

CREATE TABLE `section_fives` (
  `id` bigint UNSIGNED NOT NULL,
  `main_img_url` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `card_img_url_one` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `card_img_url_two` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `card_img_url_three` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `card_img_url_four` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `card_one_number` int NOT NULL,
  `card_two_number` int NOT NULL,
  `card_three_number` int NOT NULL,
  `card_four_number` int NOT NULL,
  `card_one_text` varchar(15) COLLATE utf8mb4_unicode_ci NOT NULL,
  `card_two_text` varchar(15) COLLATE utf8mb4_unicode_ci NOT NULL,
  `card_three_text` varchar(15) COLLATE utf8mb4_unicode_ci NOT NULL,
  `card_four_text` varchar(15) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `section_fives`
--

INSERT INTO `section_fives` (`id`, `main_img_url`, `card_img_url_one`, `card_img_url_two`, `card_img_url_three`, `card_img_url_four`, `card_one_number`, `card_two_number`, `card_three_number`, `card_four_number`, `card_one_text`, `card_two_text`, `card_three_text`, `card_four_text`, `created_at`, `updated_at`) VALUES
(1, 'http://e-hms-saas-filament.test/uploads/14/07.png', 'http://e-hms-saas-filament.test/uploads/15/card_img_url_one.png', 'http://e-hms-saas-filament.test/uploads/16/card_img_url_two.png', 'http://e-hms-saas-filament.test/uploads/17/card_img_url_three.png', 'http://e-hms-saas-filament.test/uploads/18/card_imf_url_four.png', 234, 455, 365, 528, 'Services', 'Team Members', 'Happy Patients', 'Tonic Research', '2025-06-21 00:42:23', '2025-06-21 00:42:23');

-- --------------------------------------------------------

--
-- Table structure for table `section_fours`
--

CREATE TABLE `section_fours` (
  `id` bigint UNSIGNED NOT NULL,
  `text_main` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL,
  `text_secondary` varchar(160) COLLATE utf8mb4_unicode_ci NOT NULL,
  `img_url_one` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `img_url_two` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `img_url_three` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `img_url_four` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `img_url_five` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `img_url_six` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `card_text_one` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
  `card_text_two` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
  `card_text_three` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
  `card_text_four` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
  `card_text_five` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
  `card_text_six` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
  `card_text_one_secondary` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `card_text_two_secondary` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `card_text_three_secondary` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `card_text_four_secondary` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `card_text_five_secondary` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `card_text_six_secondary` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `section_fours`
--

INSERT INTO `section_fours` (`id`, `text_main`, `text_secondary`, `img_url_one`, `img_url_two`, `img_url_three`, `img_url_four`, `img_url_five`, `img_url_six`, `card_text_one`, `card_text_two`, `card_text_three`, `card_text_four`, `card_text_five`, `card_text_six`, `card_text_one_secondary`, `card_text_two_secondary`, `card_text_three_secondary`, `card_text_four_secondary`, `card_text_five_secondary`, `card_text_six_secondary`, `created_at`, `updated_at`) VALUES
(1, 'Grow Your Hospital', 'We Help To Grow Your Hospital Beyond Your Expectation', 'http://e-hms-saas-filament.test/uploads/8/bulit_seo.png', 'http://e-hms-saas-filament.test/uploads/9/hospital_profile.png', 'http://e-hms-saas-filament.test/uploads/10/online_appointment.png', 'http://e-hms-saas-filament.test/uploads/11/articles.png', 'http://e-hms-saas-filament.test/uploads/12/easy_to_use.png', 'http://e-hms-saas-filament.test/uploads/13/support.jpeg', 'Built SEO', 'Hospital Profile', 'Online Appointment', 'Articles', 'Easy to Use', '24*7 Support', 'SEO Brings Higher patient retention Rates which will Results into Higher Conversion Rate.', 'More than 80% of people searching for medical professionals make their selection from HMS.', 'Provide comfort to your patients in this pandemic situation to book online appointments.', 'Keep updated with latest techniques/knowledge/research to build a professional network.', 'Top quality Software with all Features easy to use and easily accessible.', 'Any time we are here to help you.', '2025-06-21 00:42:23', '2025-06-21 00:42:23');

-- --------------------------------------------------------

--
-- Table structure for table `section_ones`
--

CREATE TABLE `section_ones` (
  `id` bigint UNSIGNED NOT NULL,
  `text_main` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
  `text_secondary` varchar(135) COLLATE utf8mb4_unicode_ci NOT NULL,
  `img_url` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `section_ones`
--

INSERT INTO `section_ones` (`id`, `text_main`, `text_secondary`, `img_url`, `created_at`, `updated_at`) VALUES
(1, 'Manage Hospital Never Before', 'A Next Level Evolution In Healthcare IT, Web Based EMR, Revenue Cycle Management Solution, Designed To Meet The Opportunities.', 'http://e-hms-saas-filament.test/uploads/3/section_one.png', '2025-06-21 00:42:23', '2025-06-21 00:42:23');

-- --------------------------------------------------------

--
-- Table structure for table `section_threes`
--

CREATE TABLE `section_threes` (
  `id` bigint UNSIGNED NOT NULL,
  `text_main` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL,
  `text_secondary` varchar(160) COLLATE utf8mb4_unicode_ci NOT NULL,
  `img_url` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `text_one` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
  `text_two` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
  `text_three` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `text_four` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `text_five` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `section_threes`
--

INSERT INTO `section_threes` (`id`, `text_main`, `text_secondary`, `img_url`, `text_one`, `text_two`, `text_three`, `text_four`, `text_five`, `created_at`, `updated_at`) VALUES
(1, 'Why Hospital SAAS?', 'We have implemented, Hospital SAAS for our patient\'s registration, appointment scheduling, inpatient management, ICU management, OT management, pharmacy.', 'http://e-hms-saas-filament.test/uploads/7/section_three_sass.png', 'Fully Secure', 'Easy To Use', 'Regular Updates', '24*7 Support', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23');

-- --------------------------------------------------------

--
-- Table structure for table `section_twos`
--

CREATE TABLE `section_twos` (
  `id` bigint UNSIGNED NOT NULL,
  `text_main` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL,
  `text_secondary` varchar(160) COLLATE utf8mb4_unicode_ci NOT NULL,
  `card_one_image` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `card_one_text` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
  `card_one_text_secondary` varchar(90) COLLATE utf8mb4_unicode_ci NOT NULL,
  `card_two_image` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `card_two_text` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
  `card_two_text_secondary` varchar(90) COLLATE utf8mb4_unicode_ci NOT NULL,
  `card_third_image` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `card_third_text` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
  `card_third_text_secondary` varchar(90) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `section_twos`
--

INSERT INTO `section_twos` (`id`, `text_main`, `text_secondary`, `card_one_image`, `card_one_text`, `card_one_text_secondary`, `card_two_image`, `card_two_text`, `card_two_text_secondary`, `card_third_image`, `card_third_text`, `card_third_text_secondary`, `created_at`, `updated_at`) VALUES
(1, 'Protect Your Health', 'Our medical clinic provides quality care for the entire family while maintaining a personable atmosphere best services.', 'http://e-hms-saas-filament.test/uploads/4/appointment_schedule.png', 'Schedule Appointment', 'Makes it Easy for patients to Book Appointment online from anywhere &amp; anytime.', 'http://e-hms-saas-filament.test/uploads/5/ipd_manage.png', 'OPD Management', 'Easily Manage Appointments with one.', 'http://e-hms-saas-filament.test/uploads/6/opd_manage.png', 'IPD Management', 'This module of hospital management system is designed to manage all Inpatient department', '2025-06-21 00:42:23', '2025-06-21 00:42:23');

-- --------------------------------------------------------

--
-- Table structure for table `services`
--

CREATE TABLE `services` (
  `id` int UNSIGNED NOT NULL,
  `name` varchar(160) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` text COLLATE utf8mb4_unicode_ci,
  `quantity` int NOT NULL,
  `rate` double NOT NULL,
  `status` int NOT NULL,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `service_sliders`
--

CREATE TABLE `service_sliders` (
  `id` bigint UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `service_sliders`
--

INSERT INTO `service_sliders` (`id`, `created_at`, `updated_at`) VALUES
(1, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(2, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(3, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(4, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(5, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(6, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(7, '2025-06-21 00:42:23', '2025-06-21 00:42:23');

-- --------------------------------------------------------

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `user_id` bigint UNSIGNED DEFAULT NULL,
  `ip_address` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `user_agent` text COLLATE utf8mb4_unicode_ci,
  `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `last_activity` int NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `settings`
--

CREATE TABLE `settings` (
  `id` int UNSIGNED NOT NULL,
  `key` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `value` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `settings`
--

INSERT INTO `settings` (`id`, `key`, `value`, `tenant_id`, `created_at`, `updated_at`) VALUES
(1, 'phone_pe_enable', NULL, NULL, '2025-06-21 00:42:21', '2025-06-21 00:42:21'),
(2, 'phonepe_merchant_id', NULL, NULL, '2025-06-21 00:42:21', '2025-06-21 00:42:21'),
(3, 'phonepe_merchant_user_id', NULL, NULL, '2025-06-21 00:42:21', '2025-06-21 00:42:21'),
(4, 'phonepe_env', NULL, NULL, '2025-06-21 00:42:21', '2025-06-21 00:42:21'),
(5, 'phonepe_salt_key', NULL, NULL, '2025-06-21 00:42:21', '2025-06-21 00:42:21'),
(6, 'phonepe_salt_index', NULL, NULL, '2025-06-21 00:42:21', '2025-06-21 00:42:21'),
(7, 'phonepe_merchant_transaction_id', NULL, NULL, '2025-06-21 00:42:21', '2025-06-21 00:42:21'),
(8, 'flutterwave_enable', NULL, NULL, '2025-06-21 00:42:21', '2025-06-21 00:42:21'),
(9, 'flutterwave_public_key', NULL, NULL, '2025-06-21 00:42:21', '2025-06-21 00:42:21'),
(10, 'flutterwave_secret_key', NULL, NULL, '2025-06-21 00:42:21', '2025-06-21 00:42:21'),
(11, 'app_name', 'HMS', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(12, 'app_logo', 'web/img/hms-saas-logo.png', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(13, 'company_name', 'InfyOmLabs', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(14, 'current_currency', 'inr', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(15, 'hospital_address', '16/A saint Joseph Park', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(16, 'hospital_email', 'cityhospital@gmail.com', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(17, 'hospital_phone', '+919876543210', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(18, 'hospital_from_day', 'Mon to Fri', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(19, 'hospital_from_time', '9 AM to 9 PM', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(20, 'favicon', 'web/img/hms-saas-favicon.ico', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(21, 'facebook_url', 'https://www.facebook.com/test', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(22, 'twitter_url', 'https://twitter.com/test?lang=en', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(23, 'instagram_url', 'https://www.instagram.com/?hl=en', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(24, 'linkedIn_url', 'https://www.linkedin.com/test', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(25, 'about_us', 'Over past 10+ years of experience and skills in various technologies, we built great scalable products.', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(26, 'enable_google_recaptcha', '0', NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23');

-- --------------------------------------------------------

--
-- Table structure for table `smart_patient_cards`
--

CREATE TABLE `smart_patient_cards` (
  `id` int UNSIGNED NOT NULL,
  `template_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `header_color` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `show_email` tinyint(1) NOT NULL,
  `show_phone` tinyint(1) NOT NULL,
  `show_dob` tinyint(1) NOT NULL,
  `show_blood_group` tinyint(1) NOT NULL,
  `show_address` tinyint(1) NOT NULL,
  `show_patient_unique_id` tinyint(1) NOT NULL,
  `show_insurance` tinyint(1) NOT NULL DEFAULT '0',
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `sms`
--

CREATE TABLE `sms` (
  `id` bigint UNSIGNED NOT NULL,
  `send_to` bigint UNSIGNED DEFAULT NULL,
  `region_code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `phone_number` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `message` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `send_by` bigint UNSIGNED NOT NULL,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `subscribes`
--

CREATE TABLE `subscribes` (
  `id` bigint UNSIGNED NOT NULL,
  `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `subscribe` tinyint(1) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `subscriptions`
--

CREATE TABLE `subscriptions` (
  `id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `subscription_plan_id` bigint UNSIGNED DEFAULT NULL,
  `transaction_id` bigint UNSIGNED DEFAULT NULL,
  `plan_amount` double NOT NULL,
  `plan_frequency` int NOT NULL DEFAULT '1' COMMENT '1 = Month, 2 = Year',
  `starts_at` datetime NOT NULL,
  `ends_at` datetime NOT NULL,
  `trial_ends_at` datetime DEFAULT NULL,
  `sms_limit` bigint NOT NULL DEFAULT '0',
  `status` tinyint(1) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `subscription_plans`
--

CREATE TABLE `subscription_plans` (
  `id` bigint UNSIGNED NOT NULL,
  `currency` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT 'usd',
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `price` double DEFAULT '0',
  `frequency` int NOT NULL DEFAULT '1' COMMENT '1 = Month, 2 = Year',
  `is_default` int NOT NULL DEFAULT '0',
  `trial_days` int NOT NULL DEFAULT '0' COMMENT 'Default validity will be 7 trial days',
  `sms_limit` bigint NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `subscription_plans`
--

INSERT INTO `subscription_plans` (`id`, `currency`, `name`, `price`, `frequency`, `is_default`, `trial_days`, `sms_limit`, `created_at`, `updated_at`) VALUES
(1, 'usd', 'Standard', 10, 1, 1, 7, 0, '2025-06-21 00:42:23', '2025-06-21 00:42:23');

-- --------------------------------------------------------

--
-- Table structure for table `super_admin_currency_settings`
--

CREATE TABLE `super_admin_currency_settings` (
  `id` bigint UNSIGNED NOT NULL,
  `currency_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `currency_code` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `currency_icon` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `super_admin_currency_settings`
--

INSERT INTO `super_admin_currency_settings` (`id`, `currency_name`, `currency_code`, `currency_icon`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 'United states dollar', 'USD', '$', '2025-06-21 00:42:19', '2025-06-21 00:42:19', NULL),
(2, 'Indian rupee', 'INR', '₹', '2025-06-21 00:42:19', '2025-06-21 00:42:19', NULL),
(3, 'Euro', 'EUR', '€', '2025-06-21 00:42:19', '2025-06-21 00:42:19', NULL),
(4, 'Australian Dollar', 'AUD', 'AU$', '2025-06-21 00:42:19', '2025-06-21 00:42:19', NULL),
(5, 'Japanese Yen', 'JPY', '¥', '2025-06-21 00:42:19', '2025-06-21 00:42:19', NULL),
(6, 'British Pound Sterling', 'GBP', '£', '2025-06-21 00:42:19', '2025-06-21 00:42:19', NULL),
(7, 'Canadian Dollar', 'CAD', 'C$', '2025-06-21 00:42:19', '2025-06-21 00:42:19', NULL),
(8, 'Kenyan Shilling', 'KES', 'Ksh', '2025-06-21 00:42:19', '2025-06-21 00:42:19', NULL),
(9, 'Swiss Franc', 'CHF', 'CHF', '2025-06-21 00:42:19', '2025-06-21 00:42:19', NULL);

-- --------------------------------------------------------

--
-- Table structure for table `super_admin_enquiries`
--

CREATE TABLE `super_admin_enquiries` (
  `id` bigint UNSIGNED NOT NULL,
  `first_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `last_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `phone` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `message` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `super_admin_settings`
--

CREATE TABLE `super_admin_settings` (
  `id` int UNSIGNED NOT NULL,
  `key` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `value` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `super_admin_settings`
--

INSERT INTO `super_admin_settings` (`id`, `key`, `value`, `created_at`, `updated_at`) VALUES
(1, 'default_country_code', 'in', '2025-06-21 00:42:19', '2025-06-21 00:42:19'),
(2, 'super_admin_currency', 'inr', '2025-06-21 00:42:19', '2025-06-21 00:42:19'),
(3, 'enable_google_recaptcha', '0', '2025-06-21 00:42:19', '2025-06-21 00:42:19'),
(4, 'google_captcha_key', '', '2025-06-21 00:42:19', '2025-06-21 00:42:19'),
(5, 'google_captcha_secret', '', '2025-06-21 00:42:19', '2025-06-21 00:42:19'),
(6, 'stripe_key', '', '2025-06-21 00:42:19', '2025-06-21 00:42:19'),
(7, 'stripe_secret', '', '2025-06-21 00:42:19', '2025-06-21 00:42:19'),
(8, 'stripe_enable', '0', '2025-06-21 00:42:19', '2025-06-21 00:42:19'),
(9, 'paypal_key', '', '2025-06-21 00:42:19', '2025-06-21 00:42:19'),
(10, 'paypal_secret', '', '2025-06-21 00:42:19', '2025-06-21 00:42:19'),
(11, 'paypal_mode', 'sandbox', '2025-06-21 00:42:19', '2025-06-21 00:42:19'),
(12, 'paypal_enable', '0', '2025-06-21 00:42:19', '2025-06-21 00:42:19'),
(13, 'razorpay_key', '', '2025-06-21 00:42:19', '2025-06-21 00:42:19'),
(14, 'razorpay_secret', '', '2025-06-21 00:42:19', '2025-06-21 00:42:19'),
(15, 'razorpay_enable', '0', '2025-06-21 00:42:19', '2025-06-21 00:42:19'),
(16, 'default_language', 'en', '2025-06-21 00:42:20', '2025-06-21 00:42:20'),
(17, 'manual_instruction', 'Manual Instruction', '2025-06-21 00:42:21', '2025-06-21 00:42:21'),
(18, 'paystack_key', NULL, '2025-06-21 00:42:21', '2025-06-21 00:42:21'),
(19, 'paystack_secret', NULL, '2025-06-21 00:42:21', '2025-06-21 00:42:21'),
(20, 'paystack_enable', '0', '2025-06-21 00:42:21', '2025-06-21 00:42:21'),
(21, 'phonepe_merchant_id', NULL, '2025-06-21 00:42:21', '2025-06-21 00:42:21'),
(22, 'phonepe_merchant_user_id', NULL, '2025-06-21 00:42:21', '2025-06-21 00:42:21'),
(23, 'phonepe_env', NULL, '2025-06-21 00:42:21', '2025-06-21 00:42:21'),
(24, 'phonepe_salt_key', NULL, '2025-06-21 00:42:21', '2025-06-21 00:42:21'),
(25, 'phonepe_salt_index', NULL, '2025-06-21 00:42:21', '2025-06-21 00:42:21'),
(26, 'phonepe_merchant_transaction_id', NULL, '2025-06-21 00:42:21', '2025-06-21 00:42:21'),
(27, 'phonepe_enable', '0', '2025-06-21 00:42:21', '2025-06-21 00:42:21'),
(28, 'flutterwave_key', NULL, '2025-06-21 00:42:21', '2025-06-21 00:42:21'),
(29, 'flutterwave_secret', NULL, '2025-06-21 00:42:21', '2025-06-21 00:42:21'),
(30, 'flutterwave_enable', '0', '2025-06-21 00:42:21', '2025-06-21 00:42:21'),
(31, 'app_logo', 'http://e-hms-saas-filament.test/uploads/1/hms-saas-logo.png', '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(32, 'favicon', 'http://e-hms-saas-filament.test/uploads/2/hms-saas-favicon.ico', '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(33, 'app_name', 'InfyHMS', '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(34, 'footer_text', 'Over past 10+ years of experience and skills in various technologies, we built great scalable products. Whatever technology we worked with, we just not build products for our clients but we a', '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(35, 'address', '423B, Road Wordwide Country, USA', '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(36, 'email', 'admin@hms.com', '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(37, 'phone', '+91 2345678900', '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(38, 'facebook_url', 'https://www.facebook.com/test/', '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(39, 'twitter_url', 'https://twitter.com/test?lang=en', '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(40, 'instagram_url', 'https://www.instagram.com/?hl=en', '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(41, 'linkedin_url', 'https://www.linkedin.com/test', '2025-06-21 00:42:23', '2025-06-21 00:42:23'),
(42, 'plan_expire_notification', '6', '2025-06-21 00:42:23', '2025-06-21 00:42:23');

-- --------------------------------------------------------

--
-- Table structure for table `tenants`
--

CREATE TABLE `tenants` (
  `id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `tenant_username` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `hospital_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `data` text COLLATE utf8mb4_unicode_ci
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `testimonials`
--

CREATE TABLE `testimonials` (
  `id` bigint UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `transactions`
--

CREATE TABLE `transactions` (
  `id` bigint UNSIGNED NOT NULL,
  `transaction_id` varchar(160) COLLATE utf8mb4_unicode_ci NOT NULL,
  `payment_type` int NOT NULL COMMENT '1 = Stripe, 2 = Paypal',
  `amount` double NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `status` varchar(160) COLLATE utf8mb4_unicode_ci NOT NULL,
  `is_manual_payment` bigint UNSIGNED DEFAULT '0',
  `meta` longtext COLLATE utf8mb4_unicode_ci,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `notes` text COLLATE utf8mb4_unicode_ci
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `used_medicines`
--

CREATE TABLE `used_medicines` (
  `id` bigint UNSIGNED NOT NULL,
  `stock_used` int NOT NULL,
  `medicine_id` int UNSIGNED DEFAULT NULL,
  `model_id` int NOT NULL,
  `model_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint UNSIGNED NOT NULL,
  `department_id` bigint UNSIGNED DEFAULT NULL,
  `first_name` varchar(160) COLLATE utf8mb4_unicode_ci NOT NULL,
  `last_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `city` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `two_factor_secret` text COLLATE utf8mb4_unicode_ci,
  `two_factor_recovery_codes` text COLLATE utf8mb4_unicode_ci,
  `two_factor_type` enum('authenticator','email','phone') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `two_factor_confirmed_at` timestamp NULL DEFAULT NULL,
  `designation` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `phone` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `region_code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `is_super_admin_default` tinyint(1) NOT NULL DEFAULT '0',
  `gender` int NOT NULL DEFAULT '0',
  `is_admin_default` tinyint(1) NOT NULL DEFAULT '0',
  `qualification` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `blood_group` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `dob` date DEFAULT NULL,
  `email_verified_at` timestamp NULL DEFAULT NULL,
  `owner_id` int DEFAULT NULL,
  `owner_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status` tinyint(1) NOT NULL,
  `language` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'en',
  `username` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `hospital_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `facebook_url` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `twitter_url` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `instagram_url` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `linkedIn_url` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `theme_mode` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0',
  `hospital_type_id` bigint UNSIGNED DEFAULT NULL,
  `theme` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT 'default',
  `theme_color` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `users`
--

INSERT INTO `users` (`id`, `department_id`, `first_name`, `last_name`, `email`, `city`, `password`, `two_factor_secret`, `two_factor_recovery_codes`, `two_factor_type`, `two_factor_confirmed_at`, `designation`, `phone`, `region_code`, `is_super_admin_default`, `gender`, `is_admin_default`, `qualification`, `blood_group`, `dob`, `email_verified_at`, `owner_id`, `owner_type`, `status`, `language`, `username`, `hospital_name`, `tenant_id`, `remember_token`, `facebook_url`, `twitter_url`, `instagram_url`, `linkedIn_url`, `created_at`, `updated_at`, `theme_mode`, `hospital_type_id`, `theme`, `theme_color`) VALUES
(1, 10, 'Super', 'Admin', 'admin@hms.com', NULL, '$2y$12$CbX4a87hdkeOHire31f3heNR7m2009iicEpuByFhs76iClUswwj3i', NULL, NULL, NULL, NULL, NULL, '7878454512', NULL, 0, 1, 0, NULL, 'B+', '1994-12-12', '2025-06-21 00:42:23', NULL, NULL, 1, 'en', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2025-06-21 00:42:23', '2025-06-21 00:42:23', '0', NULL, 'default', NULL);

-- --------------------------------------------------------

--
-- Table structure for table `user_google_event_schedules`
--

CREATE TABLE `user_google_event_schedules` (
  `id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `google_live_consultation_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `google_calendar_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `google_event_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `google_meet_link` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `user_tenants`
--

CREATE TABLE `user_tenants` (
  `id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `last_login_at` datetime NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `user_zoom_credential`
--

CREATE TABLE `user_zoom_credential` (
  `id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `zoom_api_key` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `zoom_api_secret` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `vaccinated_patients`
--

CREATE TABLE `vaccinated_patients` (
  `id` int UNSIGNED NOT NULL,
  `patient_id` int UNSIGNED NOT NULL,
  `vaccination_id` int UNSIGNED NOT NULL,
  `vaccination_serial_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `dose_number` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `dose_given_date` datetime NOT NULL,
  `description` text COLLATE utf8mb4_unicode_ci,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `vaccinations`
--

CREATE TABLE `vaccinations` (
  `id` int UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `manufactured_by` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `brand` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `visitors`
--

CREATE TABLE `visitors` (
  `id` bigint UNSIGNED NOT NULL,
  `purpose` int NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `phone` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `id_card` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `no_of_person` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `date` date DEFAULT NULL,
  `in_time` time DEFAULT NULL,
  `out_time` time DEFAULT NULL,
  `note` text COLLATE utf8mb4_unicode_ci,
  `tenant_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `zoom_o_auth_credentials`
--

CREATE TABLE `zoom_o_auth_credentials` (
  `id` bigint UNSIGNED NOT NULL,
  `user_id` bigint UNSIGNED NOT NULL,
  `access_token` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `refresh_token` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Indexes for dumped tables
--

--
-- Indexes for table `accountants`
--
ALTER TABLE `accountants`
  ADD PRIMARY KEY (`id`),
  ADD KEY `accountants_tenant_id_foreign` (`tenant_id`),
  ADD KEY `accountants_user_id_foreign` (`user_id`);

--
-- Indexes for table `accounts`
--
ALTER TABLE `accounts`
  ADD PRIMARY KEY (`id`),
  ADD KEY `accounts_tenant_id_foreign` (`tenant_id`),
  ADD KEY `accounts_name_index` (`name`);

--
-- Indexes for table `addresses`
--
ALTER TABLE `addresses`
  ADD PRIMARY KEY (`id`),
  ADD KEY `addresses_tenant_id_foreign` (`tenant_id`);

--
-- Indexes for table `admin_testimonials`
--
ALTER TABLE `admin_testimonials`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `advanced_payments`
--
ALTER TABLE `advanced_payments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `advanced_payments_tenant_id_foreign` (`tenant_id`),
  ADD KEY `advanced_payments_patient_id_foreign` (`patient_id`),
  ADD KEY `advanced_payments_amount_index` (`amount`);

--
-- Indexes for table `ambulances`
--
ALTER TABLE `ambulances`
  ADD PRIMARY KEY (`id`),
  ADD KEY `ambulances_tenant_id_foreign` (`tenant_id`),
  ADD KEY `ambulances_vehicle_number_index` (`vehicle_number`);

--
-- Indexes for table `ambulance_calls`
--
ALTER TABLE `ambulance_calls`
  ADD PRIMARY KEY (`id`),
  ADD KEY `ambulance_calls_tenant_id_foreign` (`tenant_id`),
  ADD KEY `ambulance_calls_patient_id_foreign` (`patient_id`),
  ADD KEY `ambulance_calls_ambulance_id_foreign` (`ambulance_id`),
  ADD KEY `ambulance_calls_date_index` (`date`);

--
-- Indexes for table `appointments`
--
ALTER TABLE `appointments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `appointments_tenant_id_foreign` (`tenant_id`),
  ADD KEY `appointments_doctor_id_foreign` (`doctor_id`),
  ADD KEY `appointments_opd_date_index` (`opd_date`),
  ADD KEY `appointments_patient_id_foreign` (`patient_id`),
  ADD KEY `appointments_department_id_foreign` (`department_id`);

--
-- Indexes for table `appointment_transactions`
--
ALTER TABLE `appointment_transactions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `appointment_transactions_tenant_id_foreign` (`tenant_id`),
  ADD KEY `appointment_transactions_appointment_id_foreign` (`appointment_id`);

--
-- Indexes for table `beds`
--
ALTER TABLE `beds`
  ADD PRIMARY KEY (`id`),
  ADD KEY `beds_tenant_id_foreign` (`tenant_id`),
  ADD KEY `beds_bed_type_foreign` (`bed_type`),
  ADD KEY `beds_is_available_index` (`is_available`);

--
-- Indexes for table `bed_assigns`
--
ALTER TABLE `bed_assigns`
  ADD PRIMARY KEY (`id`),
  ADD KEY `bed_assigns_tenant_id_foreign` (`tenant_id`),
  ADD KEY `bed_assigns_bed_id_foreign` (`bed_id`),
  ADD KEY `bed_assigns_patient_id_foreign` (`patient_id`),
  ADD KEY `bed_assigns_created_at_assign_date_index` (`created_at`,`assign_date`),
  ADD KEY `bed_assigns_ipd_patient_department_id_foreign` (`ipd_patient_department_id`);

--
-- Indexes for table `bed_types`
--
ALTER TABLE `bed_types`
  ADD PRIMARY KEY (`id`),
  ADD KEY `bed_types_tenant_id_foreign` (`tenant_id`),
  ADD KEY `bed_types_title_index` (`title`);

--
-- Indexes for table `bills`
--
ALTER TABLE `bills`
  ADD PRIMARY KEY (`id`),
  ADD KEY `bills_tenant_id_foreign` (`tenant_id`),
  ADD KEY `bills_patient_id_foreign` (`patient_id`),
  ADD KEY `bills_bill_date_index` (`bill_date`);

--
-- Indexes for table `bill_items`
--
ALTER TABLE `bill_items`
  ADD PRIMARY KEY (`id`),
  ADD KEY `bill_items_bill_id_foreign` (`bill_id`);

--
-- Indexes for table `bill_transactions`
--
ALTER TABLE `bill_transactions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `bill_transactions_bill_id_foreign` (`bill_id`),
  ADD KEY `bill_transactions_tenant_id_foreign` (`tenant_id`);

--
-- Indexes for table `birth_reports`
--
ALTER TABLE `birth_reports`
  ADD PRIMARY KEY (`id`),
  ADD KEY `birth_reports_tenant_id_foreign` (`tenant_id`),
  ADD KEY `birth_reports_patient_id_foreign` (`patient_id`),
  ADD KEY `birth_reports_doctor_id_foreign` (`doctor_id`),
  ADD KEY `birth_reports_date_index` (`date`);

--
-- Indexes for table `blood_banks`
--
ALTER TABLE `blood_banks`
  ADD PRIMARY KEY (`id`),
  ADD KEY `blood_banks_tenant_id_foreign` (`tenant_id`),
  ADD KEY `blood_banks_remained_bags_index` (`remained_bags`);

--
-- Indexes for table `blood_donations`
--
ALTER TABLE `blood_donations`
  ADD PRIMARY KEY (`id`),
  ADD KEY `blood_donations_tenant_id_foreign` (`tenant_id`),
  ADD KEY `blood_donations_blood_donor_id_foreign` (`blood_donor_id`);

--
-- Indexes for table `blood_donors`
--
ALTER TABLE `blood_donors`
  ADD PRIMARY KEY (`id`),
  ADD KEY `blood_donors_tenant_id_foreign` (`tenant_id`),
  ADD KEY `blood_donors_created_at_last_donate_date_index` (`created_at`,`last_donate_date`);

--
-- Indexes for table `blood_issues`
--
ALTER TABLE `blood_issues`
  ADD PRIMARY KEY (`id`),
  ADD KEY `blood_issues_tenant_id_foreign` (`tenant_id`),
  ADD KEY `blood_issues_doctor_id_foreign` (`doctor_id`),
  ADD KEY `blood_issues_donor_id_foreign` (`donor_id`),
  ADD KEY `blood_issues_patient_id_foreign` (`patient_id`);

--
-- Indexes for table `brands`
--
ALTER TABLE `brands`
  ADD PRIMARY KEY (`id`),
  ADD KEY `brands_tenant_id_foreign` (`tenant_id`),
  ADD KEY `brands_name_index` (`name`);

--
-- Indexes for table `cache`
--
ALTER TABLE `cache`
  ADD PRIMARY KEY (`key`);

--
-- Indexes for table `cache_locks`
--
ALTER TABLE `cache_locks`
  ADD PRIMARY KEY (`key`);

--
-- Indexes for table `call_logs`
--
ALTER TABLE `call_logs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `call_logs_tenant_id_foreign` (`tenant_id`);

--
-- Indexes for table `case_handlers`
--
ALTER TABLE `case_handlers`
  ADD PRIMARY KEY (`id`),
  ADD KEY `case_handlers_tenant_id_foreign` (`tenant_id`),
  ADD KEY `case_handlers_user_id_foreign` (`user_id`);

--
-- Indexes for table `categories`
--
ALTER TABLE `categories`
  ADD PRIMARY KEY (`id`),
  ADD KEY `categories_tenant_id_foreign` (`tenant_id`),
  ADD KEY `categories_name_index` (`name`);

--
-- Indexes for table `charges`
--
ALTER TABLE `charges`
  ADD PRIMARY KEY (`id`),
  ADD KEY `charges_tenant_id_foreign` (`tenant_id`),
  ADD KEY `charges_charge_category_id_foreign` (`charge_category_id`),
  ADD KEY `charges_code_index` (`code`);

--
-- Indexes for table `charge_categories`
--
ALTER TABLE `charge_categories`
  ADD PRIMARY KEY (`id`),
  ADD KEY `charge_categories_tenant_id_foreign` (`tenant_id`),
  ADD KEY `charge_categories_name_index` (`name`);

--
-- Indexes for table `currency_settings`
--
ALTER TABLE `currency_settings`
  ADD PRIMARY KEY (`id`),
  ADD KEY `currency_settings_tenant_id_foreign` (`tenant_id`);

--
-- Indexes for table `custom_fields`
--
ALTER TABLE `custom_fields`
  ADD PRIMARY KEY (`id`),
  ADD KEY `custom_fields_tenant_id_foreign` (`tenant_id`);

--
-- Indexes for table `death_reports`
--
ALTER TABLE `death_reports`
  ADD PRIMARY KEY (`id`),
  ADD KEY `death_reports_tenant_id_foreign` (`tenant_id`),
  ADD KEY `death_reports_patient_id_foreign` (`patient_id`),
  ADD KEY `death_reports_doctor_id_foreign` (`doctor_id`),
  ADD KEY `death_reports_date_index` (`date`);

--
-- Indexes for table `departments`
--
ALTER TABLE `departments`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `diagnosis_categories`
--
ALTER TABLE `diagnosis_categories`
  ADD PRIMARY KEY (`id`),
  ADD KEY `diagnosis_categories_name_index` (`name`),
  ADD KEY `diagnosis_categories_tenant_id_foreign` (`tenant_id`);

--
-- Indexes for table `doctors`
--
ALTER TABLE `doctors`
  ADD PRIMARY KEY (`id`),
  ADD KEY `doctors_user_id_foreign` (`user_id`),
  ADD KEY `doctors_tenant_id_foreign` (`tenant_id`),
  ADD KEY `doctors_doctor_department_id_foreign` (`doctor_department_id`);

--
-- Indexes for table `doctor_departments`
--
ALTER TABLE `doctor_departments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `doctor_departments_tenant_id_foreign` (`tenant_id`),
  ADD KEY `doctor_departments_title_index` (`title`);

--
-- Indexes for table `doctor_holidays`
--
ALTER TABLE `doctor_holidays`
  ADD PRIMARY KEY (`id`),
  ADD KEY `doctor_holidays_tenant_id_foreign` (`tenant_id`),
  ADD KEY `doctor_holidays_doctor_id_foreign` (`doctor_id`);

--
-- Indexes for table `doctor_opd_charges`
--
ALTER TABLE `doctor_opd_charges`
  ADD PRIMARY KEY (`id`),
  ADD KEY `doctor_opd_charges_tenant_id_foreign` (`tenant_id`),
  ADD KEY `doctor_opd_charges_doctor_id_foreign` (`doctor_id`),
  ADD KEY `doctor_opd_charges_created_at_index` (`created_at`);

--
-- Indexes for table `documents`
--
ALTER TABLE `documents`
  ADD PRIMARY KEY (`id`),
  ADD KEY `documents_tenant_id_foreign` (`tenant_id`),
  ADD KEY `documents_uploaded_by_foreign` (`uploaded_by`);

--
-- Indexes for table `document_types`
--
ALTER TABLE `document_types`
  ADD PRIMARY KEY (`id`),
  ADD KEY `document_types_tenant_id_foreign` (`tenant_id`),
  ADD KEY `document_types_name_index` (`name`);

--
-- Indexes for table `domains`
--
ALTER TABLE `domains`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `domains_domain_unique` (`domain`),
  ADD KEY `domains_tenant_id_foreign` (`tenant_id`);

--
-- Indexes for table `employee_payrolls`
--
ALTER TABLE `employee_payrolls`
  ADD PRIMARY KEY (`id`),
  ADD KEY `employee_payrolls_tenant_id_foreign` (`tenant_id`),
  ADD KEY `employee_payrolls_id_sr_no_index` (`id`,`sr_no`);

--
-- Indexes for table `enquiries`
--
ALTER TABLE `enquiries`
  ADD PRIMARY KEY (`id`),
  ADD KEY `enquiries_tenant_id_foreign` (`tenant_id`),
  ADD KEY `enquiries_viewed_by_foreign` (`viewed_by`),
  ADD KEY `enquiries_created_at_index` (`created_at`);

--
-- Indexes for table `event_google_calendars`
--
ALTER TABLE `event_google_calendars`
  ADD PRIMARY KEY (`id`),
  ADD KEY `event_google_calendars_user_id_foreign` (`user_id`),
  ADD KEY `event_google_calendars_google_calendar_list_id_foreign` (`google_calendar_list_id`);

--
-- Indexes for table `expenses`
--
ALTER TABLE `expenses`
  ADD PRIMARY KEY (`id`),
  ADD KEY `expenses_tenant_id_foreign` (`tenant_id`),
  ADD KEY `expenses_date_index` (`date`);

--
-- Indexes for table `exports`
--
ALTER TABLE `exports`
  ADD PRIMARY KEY (`id`),
  ADD KEY `exports_user_id_foreign` (`user_id`);

--
-- Indexes for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`);

--
-- Indexes for table `faqs`
--
ALTER TABLE `faqs`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `features`
--
ALTER TABLE `features`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `features_name_unique` (`name`),
  ADD KEY `features_name_submenu_has_parent_is_default_index` (`name`,`submenu`,`has_parent`,`is_default`);

--
-- Indexes for table `feature_subscriptionplan`
--
ALTER TABLE `feature_subscriptionplan`
  ADD PRIMARY KEY (`id`),
  ADD KEY `feature_subscriptionplan_feature_id_subscription_plan_id_index` (`feature_id`,`subscription_plan_id`),
  ADD KEY `feature_subscriptionplan_subscription_plan_id_foreign` (`subscription_plan_id`);

--
-- Indexes for table `front_services`
--
ALTER TABLE `front_services`
  ADD PRIMARY KEY (`id`),
  ADD KEY `front_services_tenant_id_foreign` (`tenant_id`);

--
-- Indexes for table `front_settings`
--
ALTER TABLE `front_settings`
  ADD PRIMARY KEY (`id`),
  ADD KEY `front_settings_tenant_id_foreign` (`tenant_id`);

--
-- Indexes for table `google_calendar_integrations`
--
ALTER TABLE `google_calendar_integrations`
  ADD PRIMARY KEY (`id`),
  ADD KEY `google_calendar_integrations_user_id_foreign` (`user_id`);

--
-- Indexes for table `google_calendar_lists`
--
ALTER TABLE `google_calendar_lists`
  ADD PRIMARY KEY (`id`),
  ADD KEY `google_calendar_lists_user_id_foreign` (`user_id`);

--
-- Indexes for table `hospital_schedules`
--
ALTER TABLE `hospital_schedules`
  ADD PRIMARY KEY (`id`),
  ADD KEY `hospital_schedules_tenant_id_foreign` (`tenant_id`);

--
-- Indexes for table `hospital_type`
--
ALTER TABLE `hospital_type`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `hospital_type_name_unique` (`name`);

--
-- Indexes for table `incomes`
--
ALTER TABLE `incomes`
  ADD PRIMARY KEY (`id`),
  ADD KEY `incomes_tenant_id_foreign` (`tenant_id`),
  ADD KEY `incomes_date_index` (`date`);

--
-- Indexes for table `insurances`
--
ALTER TABLE `insurances`
  ADD PRIMARY KEY (`id`),
  ADD KEY `insurances_tenant_id_foreign` (`tenant_id`),
  ADD KEY `insurances_name_index` (`name`);

--
-- Indexes for table `insurance_diseases`
--
ALTER TABLE `insurance_diseases`
  ADD PRIMARY KEY (`id`),
  ADD KEY `insurance_diseases_insurance_id_foreign` (`insurance_id`);

--
-- Indexes for table `investigation_reports`
--
ALTER TABLE `investigation_reports`
  ADD PRIMARY KEY (`id`),
  ADD KEY `investigation_reports_tenant_id_foreign` (`tenant_id`),
  ADD KEY `investigation_reports_patient_id_foreign` (`patient_id`),
  ADD KEY `investigation_reports_doctor_id_foreign` (`doctor_id`),
  ADD KEY `investigation_reports_date_index` (`date`);

--
-- Indexes for table `invoices`
--
ALTER TABLE `invoices`
  ADD PRIMARY KEY (`id`),
  ADD KEY `invoices_tenant_id_foreign` (`tenant_id`),
  ADD KEY `invoices_patient_id_foreign` (`patient_id`),
  ADD KEY `invoices_invoice_date_index` (`invoice_date`);

--
-- Indexes for table `invoice_items`
--
ALTER TABLE `invoice_items`
  ADD PRIMARY KEY (`id`),
  ADD KEY `invoice_items_account_id_foreign` (`account_id`),
  ADD KEY `invoice_items_invoice_id_foreign` (`invoice_id`);

--
-- Indexes for table `ipd_bills`
--
ALTER TABLE `ipd_bills`
  ADD PRIMARY KEY (`id`),
  ADD KEY `ipd_bills_tenant_id_foreign` (`tenant_id`),
  ADD KEY `ipd_bills_ipd_patient_department_id_foreign` (`ipd_patient_department_id`);

--
-- Indexes for table `ipd_charges`
--
ALTER TABLE `ipd_charges`
  ADD PRIMARY KEY (`id`),
  ADD KEY `ipd_charges_tenant_id_foreign` (`tenant_id`),
  ADD KEY `ipd_charges_ipd_patient_department_id_foreign` (`ipd_patient_department_id`),
  ADD KEY `ipd_charges_charge_category_id_foreign` (`charge_category_id`),
  ADD KEY `ipd_charges_charge_id_foreign` (`charge_id`);

--
-- Indexes for table `ipd_consultant_registers`
--
ALTER TABLE `ipd_consultant_registers`
  ADD PRIMARY KEY (`id`),
  ADD KEY `ipd_consultant_registers_tenant_id_foreign` (`tenant_id`),
  ADD KEY `ipd_consultant_registers_ipd_patient_department_id_foreign` (`ipd_patient_department_id`),
  ADD KEY `ipd_consultant_registers_doctor_id_foreign` (`doctor_id`);

--
-- Indexes for table `ipd_diagnoses`
--
ALTER TABLE `ipd_diagnoses`
  ADD PRIMARY KEY (`id`),
  ADD KEY `ipd_diagnoses_tenant_id_foreign` (`tenant_id`),
  ADD KEY `ipd_diagnoses_ipd_patient_department_id_foreign` (`ipd_patient_department_id`);

--
-- Indexes for table `ipd_patient_departments`
--
ALTER TABLE `ipd_patient_departments`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `ipd_patient_departments_ipd_number_unique` (`ipd_number`),
  ADD KEY `ipd_patient_departments_tenant_id_foreign` (`tenant_id`),
  ADD KEY `ipd_patient_departments_patient_id_foreign` (`patient_id`),
  ADD KEY `ipd_patient_departments_case_id_foreign` (`case_id`),
  ADD KEY `ipd_patient_departments_doctor_id_foreign` (`doctor_id`),
  ADD KEY `ipd_patient_departments_bed_type_id_foreign` (`bed_type_id`),
  ADD KEY `ipd_patient_departments_bed_id_foreign` (`bed_id`);

--
-- Indexes for table `ipd_payments`
--
ALTER TABLE `ipd_payments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `ipd_payments_tenant_id_foreign` (`tenant_id`),
  ADD KEY `ipd_payments_ipd_patient_department_id_foreign` (`ipd_patient_department_id`);

--
-- Indexes for table `ipd_prescriptions`
--
ALTER TABLE `ipd_prescriptions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `ipd_prescriptions_tenant_id_foreign` (`tenant_id`),
  ADD KEY `ipd_prescriptions_ipd_patient_department_id_foreign` (`ipd_patient_department_id`);

--
-- Indexes for table `ipd_prescription_items`
--
ALTER TABLE `ipd_prescription_items`
  ADD PRIMARY KEY (`id`),
  ADD KEY `ipd_prescription_items_tenant_id_foreign` (`tenant_id`),
  ADD KEY `ipd_prescription_items_ipd_prescription_id_foreign` (`ipd_prescription_id`),
  ADD KEY `ipd_prescription_items_category_id_foreign` (`category_id`),
  ADD KEY `ipd_prescription_items_medicine_id_foreign` (`medicine_id`);

--
-- Indexes for table `ipd_timelines`
--
ALTER TABLE `ipd_timelines`
  ADD PRIMARY KEY (`id`),
  ADD KEY `ipd_timelines_tenant_id_foreign` (`tenant_id`),
  ADD KEY `ipd_timelines_ipd_patient_department_id_foreign` (`ipd_patient_department_id`);

--
-- Indexes for table `issued_items`
--
ALTER TABLE `issued_items`
  ADD PRIMARY KEY (`id`),
  ADD KEY `issued_items_tenant_id_foreign` (`tenant_id`),
  ADD KEY `issued_items_department_id_foreign` (`department_id`),
  ADD KEY `issued_items_user_id_foreign` (`user_id`),
  ADD KEY `issued_items_item_category_id_foreign` (`item_category_id`),
  ADD KEY `issued_items_item_id_foreign` (`item_id`);

--
-- Indexes for table `items`
--
ALTER TABLE `items`
  ADD PRIMARY KEY (`id`),
  ADD KEY `items_tenant_id_foreign` (`tenant_id`),
  ADD KEY `items_item_category_id_foreign` (`item_category_id`);

--
-- Indexes for table `item_categories`
--
ALTER TABLE `item_categories`
  ADD PRIMARY KEY (`id`),
  ADD KEY `item_categories_tenant_id_foreign` (`tenant_id`);

--
-- Indexes for table `item_stocks`
--
ALTER TABLE `item_stocks`
  ADD PRIMARY KEY (`id`),
  ADD KEY `item_stocks_tenant_id_foreign` (`tenant_id`),
  ADD KEY `item_stocks_item_category_id_foreign` (`item_category_id`),
  ADD KEY `item_stocks_item_id_foreign` (`item_id`);

--
-- Indexes for table `jobs`
--
ALTER TABLE `jobs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `jobs_queue_index` (`queue`);

--
-- Indexes for table `job_batches`
--
ALTER TABLE `job_batches`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `lab_technicians`
--
ALTER TABLE `lab_technicians`
  ADD PRIMARY KEY (`id`),
  ADD KEY `lab_technicians_tenant_id_foreign` (`tenant_id`),
  ADD KEY `lab_technicians_user_id_foreign` (`user_id`);

--
-- Indexes for table `landing_about_us`
--
ALTER TABLE `landing_about_us`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `live_consultations`
--
ALTER TABLE `live_consultations`
  ADD PRIMARY KEY (`id`),
  ADD KEY `live_consultations_tenant_id_foreign` (`tenant_id`),
  ADD KEY `live_consultations_doctor_id_foreign` (`doctor_id`),
  ADD KEY `live_consultations_patient_id_foreign` (`patient_id`);

--
-- Indexes for table `live_meetings`
--
ALTER TABLE `live_meetings`
  ADD PRIMARY KEY (`id`),
  ADD KEY `live_meetings_tenant_id_foreign` (`tenant_id`);

--
-- Indexes for table `live_meetings_candidates`
--
ALTER TABLE `live_meetings_candidates`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `ltu_contributors`
--
ALTER TABLE `ltu_contributors`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `ltu_contributors_email_unique` (`email`);

--
-- Indexes for table `ltu_invites`
--
ALTER TABLE `ltu_invites`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `ltu_invites_email_unique` (`email`),
  ADD UNIQUE KEY `ltu_invites_token_unique` (`token`);

--
-- Indexes for table `ltu_languages`
--
ALTER TABLE `ltu_languages`
  ADD PRIMARY KEY (`id`),
  ADD KEY `ltu_languages_code_index` (`code`);

--
-- Indexes for table `ltu_phrases`
--
ALTER TABLE `ltu_phrases`
  ADD PRIMARY KEY (`id`),
  ADD KEY `ltu_phrases_translation_id_foreign` (`translation_id`),
  ADD KEY `ltu_phrases_translation_file_id_foreign` (`translation_file_id`),
  ADD KEY `ltu_phrases_phrase_id_foreign` (`phrase_id`);

--
-- Indexes for table `ltu_translations`
--
ALTER TABLE `ltu_translations`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `ltu_translation_files`
--
ALTER TABLE `ltu_translation_files`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `lunch_breaks`
--
ALTER TABLE `lunch_breaks`
  ADD PRIMARY KEY (`id`),
  ADD KEY `lunch_breaks_tenant_id_foreign` (`tenant_id`),
  ADD KEY `lunch_breaks_doctor_id_foreign` (`doctor_id`);

--
-- Indexes for table `mails`
--
ALTER TABLE `mails`
  ADD PRIMARY KEY (`id`),
  ADD KEY `mails_tenant_id_foreign` (`tenant_id`),
  ADD KEY `mails_user_id_foreign` (`user_id`);

--
-- Indexes for table `media`
--
ALTER TABLE `media`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `media_uuid_unique` (`uuid`),
  ADD KEY `media_model_type_model_id_index` (`model_type`,`model_id`);

--
-- Indexes for table `medicines`
--
ALTER TABLE `medicines`
  ADD PRIMARY KEY (`id`),
  ADD KEY `medicines_tenant_id_foreign` (`tenant_id`),
  ADD KEY `medicines_category_id_foreign` (`category_id`),
  ADD KEY `medicines_brand_id_foreign` (`brand_id`),
  ADD KEY `medicines_name_index` (`name`);

--
-- Indexes for table `medicine_bills`
--
ALTER TABLE `medicine_bills`
  ADD PRIMARY KEY (`id`),
  ADD KEY `medicine_bills_tenant_id_foreign` (`tenant_id`);

--
-- Indexes for table `migrations`
--
ALTER TABLE `migrations`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `model_has_permissions`
--
ALTER TABLE `model_has_permissions`
  ADD PRIMARY KEY (`permission_id`,`model_id`,`model_type`),
  ADD UNIQUE KEY `model_has_permissions_model_type_unique` (`model_type`),
  ADD KEY `model_has_permissions_model_id_model_type_index` (`model_id`,`model_type`);

--
-- Indexes for table `model_has_roles`
--
ALTER TABLE `model_has_roles`
  ADD PRIMARY KEY (`role_id`,`model_id`,`model_type`),
  ADD KEY `model_has_roles_model_id_model_type_index` (`model_id`,`model_type`);

--
-- Indexes for table `modules`
--
ALTER TABLE `modules`
  ADD PRIMARY KEY (`id`),
  ADD KEY `modules_tenant_id_foreign` (`tenant_id`);

--
-- Indexes for table `notice_boards`
--
ALTER TABLE `notice_boards`
  ADD PRIMARY KEY (`id`),
  ADD KEY `notice_boards_tenant_id_foreign` (`tenant_id`),
  ADD KEY `notice_boards_created_at_id_index` (`created_at`,`id`);

--
-- Indexes for table `notifications`
--
ALTER TABLE `notifications`
  ADD PRIMARY KEY (`id`),
  ADD KEY `notifications_tenant_id_foreign` (`tenant_id`),
  ADD KEY `notifications_user_id_foreign` (`user_id`);

--
-- Indexes for table `nurses`
--
ALTER TABLE `nurses`
  ADD PRIMARY KEY (`id`),
  ADD KEY `nurses_tenant_id_foreign` (`tenant_id`),
  ADD KEY `nurses_user_id_foreign` (`user_id`);

--
-- Indexes for table `odontograms`
--
ALTER TABLE `odontograms`
  ADD PRIMARY KEY (`id`),
  ADD KEY `odontograms_patient_id_foreign` (`patient_id`),
  ADD KEY `odontograms_doctor_id_foreign` (`doctor_id`);

--
-- Indexes for table `opd_diagnoses`
--
ALTER TABLE `opd_diagnoses`
  ADD PRIMARY KEY (`id`),
  ADD KEY `opd_diagnoses_tenant_id_foreign` (`tenant_id`),
  ADD KEY `opd_diagnoses_opd_patient_department_id_foreign` (`opd_patient_department_id`);

--
-- Indexes for table `opd_patient_departments`
--
ALTER TABLE `opd_patient_departments`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `opd_patient_departments_opd_number_unique` (`opd_number`),
  ADD KEY `opd_patient_departments_tenant_id_foreign` (`tenant_id`),
  ADD KEY `opd_patient_departments_patient_id_foreign` (`patient_id`),
  ADD KEY `opd_patient_departments_case_id_foreign` (`case_id`),
  ADD KEY `opd_patient_departments_doctor_id_foreign` (`doctor_id`);

--
-- Indexes for table `opd_prescriptions`
--
ALTER TABLE `opd_prescriptions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `opd_prescriptions_tenant_id_foreign` (`tenant_id`),
  ADD KEY `opd_prescriptions_opd_patient_department_id_foreign` (`opd_patient_department_id`);

--
-- Indexes for table `opd_prescription_items`
--
ALTER TABLE `opd_prescription_items`
  ADD PRIMARY KEY (`id`),
  ADD KEY `opd_prescription_items_tenant_id_foreign` (`tenant_id`),
  ADD KEY `opd_prescription_items_opd_prescription_id_foreign` (`opd_prescription_id`),
  ADD KEY `opd_prescription_items_category_id_foreign` (`category_id`),
  ADD KEY `opd_prescription_items_medicine_id_foreign` (`medicine_id`);

--
-- Indexes for table `opd_timelines`
--
ALTER TABLE `opd_timelines`
  ADD PRIMARY KEY (`id`),
  ADD KEY `opd_timelines_tenant_id_foreign` (`tenant_id`),
  ADD KEY `opd_timelines_opd_patient_department_id_foreign` (`opd_patient_department_id`);

--
-- Indexes for table `operation_reports`
--
ALTER TABLE `operation_reports`
  ADD PRIMARY KEY (`id`),
  ADD KEY `operation_reports_tenant_id_foreign` (`tenant_id`),
  ADD KEY `operation_reports_patient_id_foreign` (`patient_id`),
  ADD KEY `operation_reports_date_index` (`date`),
  ADD KEY `operation_reports_doctor_id_foreign` (`doctor_id`);

--
-- Indexes for table `packages`
--
ALTER TABLE `packages`
  ADD PRIMARY KEY (`id`),
  ADD KEY `packages_tenant_id_foreign` (`tenant_id`),
  ADD KEY `packages_created_at_name_index` (`created_at`,`name`);

--
-- Indexes for table `package_services`
--
ALTER TABLE `package_services`
  ADD PRIMARY KEY (`id`),
  ADD KEY `package_services_package_id_foreign` (`package_id`),
  ADD KEY `package_services_service_id_foreign` (`service_id`);

--
-- Indexes for table `password_reset_tokens`
--
ALTER TABLE `password_reset_tokens`
  ADD KEY `password_resets_email_index` (`email`);

--
-- Indexes for table `pathology_categories`
--
ALTER TABLE `pathology_categories`
  ADD PRIMARY KEY (`id`),
  ADD KEY `pathology_categories_tenant_id_foreign` (`tenant_id`),
  ADD KEY `pathology_categories_name_index` (`name`);

--
-- Indexes for table `pathology_parameters`
--
ALTER TABLE `pathology_parameters`
  ADD PRIMARY KEY (`id`),
  ADD KEY `pathology_parameters_tenant_id_foreign` (`tenant_id`),
  ADD KEY `pathology_parameters_unit_id_foreign` (`unit_id`);

--
-- Indexes for table `pathology_parameter_items`
--
ALTER TABLE `pathology_parameter_items`
  ADD PRIMARY KEY (`id`),
  ADD KEY `pathology_parameter_items_pathology_id_foreign` (`pathology_id`),
  ADD KEY `pathology_parameter_items_parameter_id_foreign` (`parameter_id`);

--
-- Indexes for table `pathology_tests`
--
ALTER TABLE `pathology_tests`
  ADD PRIMARY KEY (`id`),
  ADD KEY `pathology_tests_tenant_id_foreign` (`tenant_id`),
  ADD KEY `pathology_tests_category_id_foreign` (`category_id`),
  ADD KEY `pathology_tests_charge_category_id_foreign` (`charge_category_id`),
  ADD KEY `pathology_tests_test_name_index` (`test_name`),
  ADD KEY `pathology_tests_patient_id_foreign` (`patient_id`);

--
-- Indexes for table `pathology_units`
--
ALTER TABLE `pathology_units`
  ADD PRIMARY KEY (`id`),
  ADD KEY `pathology_units_tenant_id_foreign` (`tenant_id`);

--
-- Indexes for table `patients`
--
ALTER TABLE `patients`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `patients_patient_unique_id_unique` (`patient_unique_id`),
  ADD KEY `patients_tenant_id_foreign` (`tenant_id`),
  ADD KEY `patients_user_id_foreign` (`user_id`),
  ADD KEY `patients_template_id_foreign` (`template_id`);

--
-- Indexes for table `patient_admissions`
--
ALTER TABLE `patient_admissions`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `patient_admissions_patient_admission_id_unique` (`patient_admission_id`),
  ADD KEY `patient_admissions_tenant_id_foreign` (`tenant_id`),
  ADD KEY `patient_admissions_patient_id_foreign` (`patient_id`),
  ADD KEY `patient_admissions_doctor_id_foreign` (`doctor_id`),
  ADD KEY `patient_admissions_package_id_foreign` (`package_id`),
  ADD KEY `patient_admissions_insurance_id_foreign` (`insurance_id`),
  ADD KEY `patient_admissions_bed_id_foreign` (`bed_id`),
  ADD KEY `patient_admissions_admission_date_index` (`admission_date`);

--
-- Indexes for table `patient_cases`
--
ALTER TABLE `patient_cases`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `patient_cases_case_id_unique` (`case_id`),
  ADD KEY `patient_cases_tenant_id_foreign` (`tenant_id`),
  ADD KEY `patient_cases_patient_id_foreign` (`patient_id`),
  ADD KEY `patient_cases_doctor_id_foreign` (`doctor_id`),
  ADD KEY `patient_cases_date_index` (`date`);

--
-- Indexes for table `patient_diagnosis_properties`
--
ALTER TABLE `patient_diagnosis_properties`
  ADD PRIMARY KEY (`id`),
  ADD KEY `patient_diagnosis_properties_created_at_index` (`created_at`),
  ADD KEY `patient_diagnosis_properties_patient_diagnosis_id_foreign` (`patient_diagnosis_id`);

--
-- Indexes for table `patient_diagnosis_tests`
--
ALTER TABLE `patient_diagnosis_tests`
  ADD PRIMARY KEY (`id`),
  ADD KEY `patient_diagnosis_tests_created_at_index` (`created_at`),
  ADD KEY `patient_diagnosis_tests_tenant_id_foreign` (`tenant_id`),
  ADD KEY `patient_diagnosis_tests_patient_id_foreign` (`patient_id`),
  ADD KEY `patient_diagnosis_tests_doctor_id_foreign` (`doctor_id`),
  ADD KEY `patient_diagnosis_tests_category_id_foreign` (`category_id`);

--
-- Indexes for table `patient_queues`
--
ALTER TABLE `patient_queues`
  ADD PRIMARY KEY (`id`),
  ADD KEY `patient_queues_appointment_id_foreign` (`appointment_id`),
  ADD KEY `patient_queues_tenant_id_foreign` (`tenant_id`);

--
-- Indexes for table `payments`
--
ALTER TABLE `payments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `payments_tenant_id_foreign` (`tenant_id`),
  ADD KEY `payments_account_id_foreign` (`account_id`),
  ADD KEY `payments_payment_date_index` (`payment_date`);

--
-- Indexes for table `permissions`
--
ALTER TABLE `permissions`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `permissions_name_guard_name_unique` (`name`,`guard_name`);

--
-- Indexes for table `pharmacists`
--
ALTER TABLE `pharmacists`
  ADD PRIMARY KEY (`id`),
  ADD KEY `pharmacists_tenant_id_foreign` (`tenant_id`),
  ADD KEY `pharmacists_user_id_foreign` (`user_id`);

--
-- Indexes for table `postals`
--
ALTER TABLE `postals`
  ADD PRIMARY KEY (`id`),
  ADD KEY `postals_tenant_id_foreign` (`tenant_id`);

--
-- Indexes for table `prescriptions`
--
ALTER TABLE `prescriptions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `prescriptions_tenant_id_foreign` (`tenant_id`),
  ADD KEY `prescriptions_patient_id_foreign` (`patient_id`),
  ADD KEY `prescriptions_doctor_id_foreign` (`doctor_id`);

--
-- Indexes for table `prescriptions_medicines`
--
ALTER TABLE `prescriptions_medicines`
  ADD PRIMARY KEY (`id`),
  ADD KEY `prescriptions_medicines_prescription_id_foreign` (`prescription_id`),
  ADD KEY `prescriptions_medicines_medicine_foreign` (`medicine`);

--
-- Indexes for table `purchased_medicines`
--
ALTER TABLE `purchased_medicines`
  ADD PRIMARY KEY (`id`),
  ADD KEY `purchased_medicines_medicine_id_foreign` (`medicine_id`),
  ADD KEY `purchased_medicines_purchase_medicines_id_foreign` (`purchase_medicines_id`),
  ADD KEY `purchased_medicines_tenant_id_foreign` (`tenant_id`);

--
-- Indexes for table `purchase_medicines`
--
ALTER TABLE `purchase_medicines`
  ADD PRIMARY KEY (`id`),
  ADD KEY `purchase_medicines_tenant_id_foreign` (`tenant_id`);

--
-- Indexes for table `radiology_categories`
--
ALTER TABLE `radiology_categories`
  ADD PRIMARY KEY (`id`),
  ADD KEY `radiology_categories_tenant_id_foreign` (`tenant_id`),
  ADD KEY `radiology_categories_name_index` (`name`);

--
-- Indexes for table `radiology_tests`
--
ALTER TABLE `radiology_tests`
  ADD PRIMARY KEY (`id`),
  ADD KEY `radiology_tests_tenant_id_foreign` (`tenant_id`),
  ADD KEY `radiology_tests_category_id_foreign` (`category_id`),
  ADD KEY `radiology_tests_charge_category_id_foreign` (`charge_category_id`),
  ADD KEY `radiology_tests_test_name_index` (`test_name`),
  ADD KEY `radiology_tests_charge_id_foreign` (`charge_id`);

--
-- Indexes for table `receptionists`
--
ALTER TABLE `receptionists`
  ADD PRIMARY KEY (`id`),
  ADD KEY `receptionists_tenant_id_foreign` (`tenant_id`),
  ADD KEY `receptionists_user_id_foreign` (`user_id`);

--
-- Indexes for table `role_has_permissions`
--
ALTER TABLE `role_has_permissions`
  ADD PRIMARY KEY (`permission_id`,`role_id`),
  ADD KEY `role_has_permissions_role_id_foreign` (`role_id`);

--
-- Indexes for table `sale_medicines`
--
ALTER TABLE `sale_medicines`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `schedules`
--
ALTER TABLE `schedules`
  ADD PRIMARY KEY (`id`),
  ADD KEY `schedules_tenant_id_foreign` (`tenant_id`),
  ADD KEY `schedules_doctor_id_foreign` (`doctor_id`);

--
-- Indexes for table `schedule_days`
--
ALTER TABLE `schedule_days`
  ADD PRIMARY KEY (`id`),
  ADD KEY `schedule_days_doctor_id_foreign` (`doctor_id`),
  ADD KEY `schedule_days_schedule_id_foreign` (`schedule_id`);

--
-- Indexes for table `section_fives`
--
ALTER TABLE `section_fives`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `section_fours`
--
ALTER TABLE `section_fours`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `section_ones`
--
ALTER TABLE `section_ones`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `section_threes`
--
ALTER TABLE `section_threes`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `section_twos`
--
ALTER TABLE `section_twos`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `services`
--
ALTER TABLE `services`
  ADD PRIMARY KEY (`id`),
  ADD KEY `services_tenant_id_foreign` (`tenant_id`),
  ADD KEY `services_name_index` (`name`);

--
-- Indexes for table `service_sliders`
--
ALTER TABLE `service_sliders`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sessions`
--
ALTER TABLE `sessions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `sessions_user_id_index` (`user_id`),
  ADD KEY `sessions_last_activity_index` (`last_activity`);

--
-- Indexes for table `settings`
--
ALTER TABLE `settings`
  ADD PRIMARY KEY (`id`),
  ADD KEY `settings_tenant_id_foreign` (`tenant_id`);

--
-- Indexes for table `smart_patient_cards`
--
ALTER TABLE `smart_patient_cards`
  ADD PRIMARY KEY (`id`),
  ADD KEY `smart_patient_cards_tenant_id_foreign` (`tenant_id`);

--
-- Indexes for table `sms`
--
ALTER TABLE `sms`
  ADD PRIMARY KEY (`id`),
  ADD KEY `sms_tenant_id_foreign` (`tenant_id`),
  ADD KEY `sms_send_to_foreign` (`send_to`),
  ADD KEY `sms_send_by_foreign` (`send_by`);

--
-- Indexes for table `subscribes`
--
ALTER TABLE `subscribes`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `subscribes_email_unique` (`email`);

--
-- Indexes for table `subscriptions`
--
ALTER TABLE `subscriptions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `subscriptions_user_id_index` (`user_id`),
  ADD KEY `subscriptions_subscription_plan_id_index` (`subscription_plan_id`),
  ADD KEY `subscriptions_transaction_id_index` (`transaction_id`),
  ADD KEY `subscriptions_plan_amount_index` (`plan_amount`),
  ADD KEY `subscriptions_plan_frequency_index` (`plan_frequency`),
  ADD KEY `subscriptions_starts_at_index` (`starts_at`),
  ADD KEY `subscriptions_ends_at_index` (`ends_at`),
  ADD KEY `subscriptions_trial_ends_at_index` (`trial_ends_at`),
  ADD KEY `subscriptions_status_index` (`status`);

--
-- Indexes for table `subscription_plans`
--
ALTER TABLE `subscription_plans`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `super_admin_currency_settings`
--
ALTER TABLE `super_admin_currency_settings`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `super_admin_enquiries`
--
ALTER TABLE `super_admin_enquiries`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `super_admin_settings`
--
ALTER TABLE `super_admin_settings`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `tenants`
--
ALTER TABLE `tenants`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `tenants_tenant_username_unique` (`tenant_username`),
  ADD UNIQUE KEY `tenants_hospital_name_unique` (`hospital_name`);

--
-- Indexes for table `testimonials`
--
ALTER TABLE `testimonials`
  ADD PRIMARY KEY (`id`),
  ADD KEY `testimonials_tenant_id_foreign` (`tenant_id`);

--
-- Indexes for table `transactions`
--
ALTER TABLE `transactions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `transactions_transaction_id_index` (`transaction_id`),
  ADD KEY `transactions_payment_type_index` (`payment_type`),
  ADD KEY `transactions_amount_index` (`amount`),
  ADD KEY `transactions_user_id_index` (`user_id`),
  ADD KEY `transactions_status_index` (`status`),
  ADD KEY `transactions_tenant_id_foreign` (`tenant_id`);

--
-- Indexes for table `used_medicines`
--
ALTER TABLE `used_medicines`
  ADD PRIMARY KEY (`id`),
  ADD KEY `used_medicines_medicine_id_foreign` (`medicine_id`),
  ADD KEY `used_medicines_tenant_id_foreign` (`tenant_id`);

--
-- Indexes for table `users`
--
ALTER TABLE `users`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `users_email_unique` (`email`),
  ADD UNIQUE KEY `users_username_unique` (`username`),
  ADD KEY `users_tenant_id_foreign` (`tenant_id`),
  ADD KEY `users_first_name_index` (`first_name`),
  ADD KEY `users_hospital_type_id_foreign` (`hospital_type_id`);

--
-- Indexes for table `user_google_event_schedules`
--
ALTER TABLE `user_google_event_schedules`
  ADD PRIMARY KEY (`id`),
  ADD KEY `user_google_event_schedules_user_id_foreign` (`user_id`);

--
-- Indexes for table `user_tenants`
--
ALTER TABLE `user_tenants`
  ADD PRIMARY KEY (`id`),
  ADD KEY `user_tenants_tenant_id_foreign` (`tenant_id`),
  ADD KEY `user_tenants_user_id_foreign` (`user_id`);

--
-- Indexes for table `user_zoom_credential`
--
ALTER TABLE `user_zoom_credential`
  ADD PRIMARY KEY (`id`),
  ADD KEY `user_zoom_credential_tenant_id_foreign` (`tenant_id`),
  ADD KEY `user_zoom_credential_user_id_foreign` (`user_id`);

--
-- Indexes for table `vaccinated_patients`
--
ALTER TABLE `vaccinated_patients`
  ADD PRIMARY KEY (`id`),
  ADD KEY `vaccinated_patients_tenant_id_foreign` (`tenant_id`),
  ADD KEY `vaccinated_patients_id_index` (`id`),
  ADD KEY `vaccinated_patients_patient_id_index` (`patient_id`),
  ADD KEY `vaccinated_patients_vaccination_id_index` (`vaccination_id`);

--
-- Indexes for table `vaccinations`
--
ALTER TABLE `vaccinations`
  ADD PRIMARY KEY (`id`),
  ADD KEY `vaccinations_tenant_id_foreign` (`tenant_id`),
  ADD KEY `vaccinations_id_index` (`id`);

--
-- Indexes for table `visitors`
--
ALTER TABLE `visitors`
  ADD PRIMARY KEY (`id`),
  ADD KEY `visitors_tenant_id_foreign` (`tenant_id`);

--
-- Indexes for table `zoom_o_auth_credentials`
--
ALTER TABLE `zoom_o_auth_credentials`
  ADD PRIMARY KEY (`id`),
  ADD KEY `zoom_o_auth_credentials_user_id_foreign` (`user_id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `accountants`
--
ALTER TABLE `accountants`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `accounts`
--
ALTER TABLE `accounts`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `addresses`
--
ALTER TABLE `addresses`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `admin_testimonials`
--
ALTER TABLE `admin_testimonials`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `advanced_payments`
--
ALTER TABLE `advanced_payments`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `ambulances`
--
ALTER TABLE `ambulances`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `ambulance_calls`
--
ALTER TABLE `ambulance_calls`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `appointments`
--
ALTER TABLE `appointments`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `appointment_transactions`
--
ALTER TABLE `appointment_transactions`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `beds`
--
ALTER TABLE `beds`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `bed_assigns`
--
ALTER TABLE `bed_assigns`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `bed_types`
--
ALTER TABLE `bed_types`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `bills`
--
ALTER TABLE `bills`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `bill_items`
--
ALTER TABLE `bill_items`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `bill_transactions`
--
ALTER TABLE `bill_transactions`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `birth_reports`
--
ALTER TABLE `birth_reports`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `blood_banks`
--
ALTER TABLE `blood_banks`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `blood_donations`
--
ALTER TABLE `blood_donations`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `blood_donors`
--
ALTER TABLE `blood_donors`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `blood_issues`
--
ALTER TABLE `blood_issues`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `brands`
--
ALTER TABLE `brands`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `call_logs`
--
ALTER TABLE `call_logs`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `case_handlers`
--
ALTER TABLE `case_handlers`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `categories`
--
ALTER TABLE `categories`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `charges`
--
ALTER TABLE `charges`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `charge_categories`
--
ALTER TABLE `charge_categories`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `currency_settings`
--
ALTER TABLE `currency_settings`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `custom_fields`
--
ALTER TABLE `custom_fields`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `death_reports`
--
ALTER TABLE `death_reports`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `departments`
--
ALTER TABLE `departments`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT for table `diagnosis_categories`
--
ALTER TABLE `diagnosis_categories`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `doctors`
--
ALTER TABLE `doctors`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `doctor_departments`
--
ALTER TABLE `doctor_departments`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `doctor_holidays`
--
ALTER TABLE `doctor_holidays`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `doctor_opd_charges`
--
ALTER TABLE `doctor_opd_charges`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `documents`
--
ALTER TABLE `documents`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `document_types`
--
ALTER TABLE `document_types`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `domains`
--
ALTER TABLE `domains`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `employee_payrolls`
--
ALTER TABLE `employee_payrolls`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `enquiries`
--
ALTER TABLE `enquiries`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `event_google_calendars`
--
ALTER TABLE `event_google_calendars`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `expenses`
--
ALTER TABLE `expenses`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `exports`
--
ALTER TABLE `exports`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `faqs`
--
ALTER TABLE `faqs`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `features`
--
ALTER TABLE `features`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=27;

--
-- AUTO_INCREMENT for table `feature_subscriptionplan`
--
ALTER TABLE `feature_subscriptionplan`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT for table `front_services`
--
ALTER TABLE `front_services`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `front_settings`
--
ALTER TABLE `front_settings`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29;

--
-- AUTO_INCREMENT for table `google_calendar_integrations`
--
ALTER TABLE `google_calendar_integrations`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `google_calendar_lists`
--
ALTER TABLE `google_calendar_lists`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `hospital_schedules`
--
ALTER TABLE `hospital_schedules`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `hospital_type`
--
ALTER TABLE `hospital_type`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `incomes`
--
ALTER TABLE `incomes`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `insurances`
--
ALTER TABLE `insurances`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `insurance_diseases`
--
ALTER TABLE `insurance_diseases`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `investigation_reports`
--
ALTER TABLE `investigation_reports`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `invoices`
--
ALTER TABLE `invoices`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `invoice_items`
--
ALTER TABLE `invoice_items`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `ipd_bills`
--
ALTER TABLE `ipd_bills`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `ipd_charges`
--
ALTER TABLE `ipd_charges`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `ipd_consultant_registers`
--
ALTER TABLE `ipd_consultant_registers`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `ipd_diagnoses`
--
ALTER TABLE `ipd_diagnoses`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `ipd_patient_departments`
--
ALTER TABLE `ipd_patient_departments`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `ipd_payments`
--
ALTER TABLE `ipd_payments`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `ipd_prescriptions`
--
ALTER TABLE `ipd_prescriptions`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `ipd_prescription_items`
--
ALTER TABLE `ipd_prescription_items`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `ipd_timelines`
--
ALTER TABLE `ipd_timelines`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `issued_items`
--
ALTER TABLE `issued_items`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `items`
--
ALTER TABLE `items`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `item_categories`
--
ALTER TABLE `item_categories`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `item_stocks`
--
ALTER TABLE `item_stocks`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `jobs`
--
ALTER TABLE `jobs`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `lab_technicians`
--
ALTER TABLE `lab_technicians`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `landing_about_us`
--
ALTER TABLE `landing_about_us`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `live_consultations`
--
ALTER TABLE `live_consultations`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `live_meetings`
--
ALTER TABLE `live_meetings`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `live_meetings_candidates`
--
ALTER TABLE `live_meetings_candidates`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `ltu_contributors`
--
ALTER TABLE `ltu_contributors`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `ltu_invites`
--
ALTER TABLE `ltu_invites`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `ltu_languages`
--
ALTER TABLE `ltu_languages`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=107;

--
-- AUTO_INCREMENT for table `ltu_phrases`
--
ALTER TABLE `ltu_phrases`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=27393;

--
-- AUTO_INCREMENT for table `ltu_translations`
--
ALTER TABLE `ltu_translations`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;

--
-- AUTO_INCREMENT for table `ltu_translation_files`
--
ALTER TABLE `ltu_translation_files`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT for table `lunch_breaks`
--
ALTER TABLE `lunch_breaks`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mails`
--
ALTER TABLE `mails`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `media`
--
ALTER TABLE `media`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=34;

--
-- AUTO_INCREMENT for table `medicines`
--
ALTER TABLE `medicines`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `medicine_bills`
--
ALTER TABLE `medicine_bills`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=327;

--
-- AUTO_INCREMENT for table `modules`
--
ALTER TABLE `modules`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=81;

--
-- AUTO_INCREMENT for table `notice_boards`
--
ALTER TABLE `notice_boards`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `notifications`
--
ALTER TABLE `notifications`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `nurses`
--
ALTER TABLE `nurses`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `odontograms`
--
ALTER TABLE `odontograms`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `opd_diagnoses`
--
ALTER TABLE `opd_diagnoses`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `opd_patient_departments`
--
ALTER TABLE `opd_patient_departments`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `opd_prescriptions`
--
ALTER TABLE `opd_prescriptions`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `opd_prescription_items`
--
ALTER TABLE `opd_prescription_items`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `opd_timelines`
--
ALTER TABLE `opd_timelines`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `operation_reports`
--
ALTER TABLE `operation_reports`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `packages`
--
ALTER TABLE `packages`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `package_services`
--
ALTER TABLE `package_services`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `pathology_categories`
--
ALTER TABLE `pathology_categories`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `pathology_parameters`
--
ALTER TABLE `pathology_parameters`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `pathology_parameter_items`
--
ALTER TABLE `pathology_parameter_items`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `pathology_tests`
--
ALTER TABLE `pathology_tests`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `pathology_units`
--
ALTER TABLE `pathology_units`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `patients`
--
ALTER TABLE `patients`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `patient_admissions`
--
ALTER TABLE `patient_admissions`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `patient_cases`
--
ALTER TABLE `patient_cases`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `patient_diagnosis_properties`
--
ALTER TABLE `patient_diagnosis_properties`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `patient_diagnosis_tests`
--
ALTER TABLE `patient_diagnosis_tests`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `patient_queues`
--
ALTER TABLE `patient_queues`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `payments`
--
ALTER TABLE `payments`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `permissions`
--
ALTER TABLE `permissions`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;

--
-- AUTO_INCREMENT for table `pharmacists`
--
ALTER TABLE `pharmacists`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `postals`
--
ALTER TABLE `postals`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `prescriptions`
--
ALTER TABLE `prescriptions`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `prescriptions_medicines`
--
ALTER TABLE `prescriptions_medicines`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `purchased_medicines`
--
ALTER TABLE `purchased_medicines`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `purchase_medicines`
--
ALTER TABLE `purchase_medicines`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `radiology_categories`
--
ALTER TABLE `radiology_categories`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `radiology_tests`
--
ALTER TABLE `radiology_tests`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `receptionists`
--
ALTER TABLE `receptionists`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sale_medicines`
--
ALTER TABLE `sale_medicines`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `schedules`
--
ALTER TABLE `schedules`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `schedule_days`
--
ALTER TABLE `schedule_days`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `section_fives`
--
ALTER TABLE `section_fives`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `section_fours`
--
ALTER TABLE `section_fours`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `section_ones`
--
ALTER TABLE `section_ones`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `section_threes`
--
ALTER TABLE `section_threes`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `section_twos`
--
ALTER TABLE `section_twos`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `services`
--
ALTER TABLE `services`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `service_sliders`
--
ALTER TABLE `service_sliders`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT for table `settings`
--
ALTER TABLE `settings`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=27;

--
-- AUTO_INCREMENT for table `smart_patient_cards`
--
ALTER TABLE `smart_patient_cards`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sms`
--
ALTER TABLE `sms`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `subscribes`
--
ALTER TABLE `subscribes`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `subscriptions`
--
ALTER TABLE `subscriptions`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `subscription_plans`
--
ALTER TABLE `subscription_plans`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `super_admin_currency_settings`
--
ALTER TABLE `super_admin_currency_settings`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;

--
-- AUTO_INCREMENT for table `super_admin_enquiries`
--
ALTER TABLE `super_admin_enquiries`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `super_admin_settings`
--
ALTER TABLE `super_admin_settings`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=43;

--
-- AUTO_INCREMENT for table `testimonials`
--
ALTER TABLE `testimonials`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `transactions`
--
ALTER TABLE `transactions`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `used_medicines`
--
ALTER TABLE `used_medicines`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `user_google_event_schedules`
--
ALTER TABLE `user_google_event_schedules`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `user_tenants`
--
ALTER TABLE `user_tenants`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `user_zoom_credential`
--
ALTER TABLE `user_zoom_credential`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `vaccinated_patients`
--
ALTER TABLE `vaccinated_patients`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `vaccinations`
--
ALTER TABLE `vaccinations`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `visitors`
--
ALTER TABLE `visitors`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `zoom_o_auth_credentials`
--
ALTER TABLE `zoom_o_auth_credentials`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- Constraints for dumped tables
--

--
-- Constraints for table `accountants`
--
ALTER TABLE `accountants`
  ADD CONSTRAINT `accountants_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `accountants_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `accounts`
--
ALTER TABLE `accounts`
  ADD CONSTRAINT `accounts_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `addresses`
--
ALTER TABLE `addresses`
  ADD CONSTRAINT `addresses_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `advanced_payments`
--
ALTER TABLE `advanced_payments`
  ADD CONSTRAINT `advanced_payments_patient_id_foreign` FOREIGN KEY (`patient_id`) REFERENCES `users` (`id`),
  ADD CONSTRAINT `advanced_payments_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `ambulances`
--
ALTER TABLE `ambulances`
  ADD CONSTRAINT `ambulances_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `ambulance_calls`
--
ALTER TABLE `ambulance_calls`
  ADD CONSTRAINT `ambulance_calls_ambulance_id_foreign` FOREIGN KEY (`ambulance_id`) REFERENCES `ambulances` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `ambulance_calls_patient_id_foreign` FOREIGN KEY (`patient_id`) REFERENCES `patients` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `ambulance_calls_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `appointments`
--
ALTER TABLE `appointments`
  ADD CONSTRAINT `appointments_department_id_foreign` FOREIGN KEY (`department_id`) REFERENCES `doctor_departments` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `appointments_doctor_id_foreign` FOREIGN KEY (`doctor_id`) REFERENCES `doctors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `appointments_patient_id_foreign` FOREIGN KEY (`patient_id`) REFERENCES `patients` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `appointments_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `appointment_transactions`
--
ALTER TABLE `appointment_transactions`
  ADD CONSTRAINT `appointment_transactions_appointment_id_foreign` FOREIGN KEY (`appointment_id`) REFERENCES `appointments` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `appointment_transactions_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `beds`
--
ALTER TABLE `beds`
  ADD CONSTRAINT `beds_bed_type_foreign` FOREIGN KEY (`bed_type`) REFERENCES `bed_types` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `beds_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `bed_assigns`
--
ALTER TABLE `bed_assigns`
  ADD CONSTRAINT `bed_assigns_bed_id_foreign` FOREIGN KEY (`bed_id`) REFERENCES `beds` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `bed_assigns_ipd_patient_department_id_foreign` FOREIGN KEY (`ipd_patient_department_id`) REFERENCES `ipd_patient_departments` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `bed_assigns_patient_id_foreign` FOREIGN KEY (`patient_id`) REFERENCES `patients` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `bed_assigns_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `bed_types`
--
ALTER TABLE `bed_types`
  ADD CONSTRAINT `bed_types_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `bills`
--
ALTER TABLE `bills`
  ADD CONSTRAINT `bills_patient_id_foreign` FOREIGN KEY (`patient_id`) REFERENCES `patients` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `bills_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `bill_items`
--
ALTER TABLE `bill_items`
  ADD CONSTRAINT `bill_items_bill_id_foreign` FOREIGN KEY (`bill_id`) REFERENCES `bills` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `bill_transactions`
--
ALTER TABLE `bill_transactions`
  ADD CONSTRAINT `bill_transactions_bill_id_foreign` FOREIGN KEY (`bill_id`) REFERENCES `bills` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `bill_transactions_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `birth_reports`
--
ALTER TABLE `birth_reports`
  ADD CONSTRAINT `birth_reports_doctor_id_foreign` FOREIGN KEY (`doctor_id`) REFERENCES `doctors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `birth_reports_patient_id_foreign` FOREIGN KEY (`patient_id`) REFERENCES `patients` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `birth_reports_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `blood_banks`
--
ALTER TABLE `blood_banks`
  ADD CONSTRAINT `blood_banks_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `blood_donations`
--
ALTER TABLE `blood_donations`
  ADD CONSTRAINT `blood_donations_blood_donor_id_foreign` FOREIGN KEY (`blood_donor_id`) REFERENCES `blood_donors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `blood_donations_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `blood_donors`
--
ALTER TABLE `blood_donors`
  ADD CONSTRAINT `blood_donors_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `blood_issues`
--
ALTER TABLE `blood_issues`
  ADD CONSTRAINT `blood_issues_doctor_id_foreign` FOREIGN KEY (`doctor_id`) REFERENCES `doctors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `blood_issues_donor_id_foreign` FOREIGN KEY (`donor_id`) REFERENCES `blood_donors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `blood_issues_patient_id_foreign` FOREIGN KEY (`patient_id`) REFERENCES `patients` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `blood_issues_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `brands`
--
ALTER TABLE `brands`
  ADD CONSTRAINT `brands_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `call_logs`
--
ALTER TABLE `call_logs`
  ADD CONSTRAINT `call_logs_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `case_handlers`
--
ALTER TABLE `case_handlers`
  ADD CONSTRAINT `case_handlers_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `case_handlers_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `categories`
--
ALTER TABLE `categories`
  ADD CONSTRAINT `categories_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `charges`
--
ALTER TABLE `charges`
  ADD CONSTRAINT `charges_charge_category_id_foreign` FOREIGN KEY (`charge_category_id`) REFERENCES `charge_categories` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `charges_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `charge_categories`
--
ALTER TABLE `charge_categories`
  ADD CONSTRAINT `charge_categories_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `currency_settings`
--
ALTER TABLE `currency_settings`
  ADD CONSTRAINT `currency_settings_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `custom_fields`
--
ALTER TABLE `custom_fields`
  ADD CONSTRAINT `custom_fields_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `death_reports`
--
ALTER TABLE `death_reports`
  ADD CONSTRAINT `death_reports_doctor_id_foreign` FOREIGN KEY (`doctor_id`) REFERENCES `doctors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `death_reports_patient_id_foreign` FOREIGN KEY (`patient_id`) REFERENCES `patients` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `death_reports_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `diagnosis_categories`
--
ALTER TABLE `diagnosis_categories`
  ADD CONSTRAINT `diagnosis_categories_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `doctors`
--
ALTER TABLE `doctors`
  ADD CONSTRAINT `doctors_doctor_department_id_foreign` FOREIGN KEY (`doctor_department_id`) REFERENCES `doctor_departments` (`id`),
  ADD CONSTRAINT `doctors_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `doctors_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `doctor_departments`
--
ALTER TABLE `doctor_departments`
  ADD CONSTRAINT `doctor_departments_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `doctor_holidays`
--
ALTER TABLE `doctor_holidays`
  ADD CONSTRAINT `doctor_holidays_doctor_id_foreign` FOREIGN KEY (`doctor_id`) REFERENCES `doctors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `doctor_holidays_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `doctor_opd_charges`
--
ALTER TABLE `doctor_opd_charges`
  ADD CONSTRAINT `doctor_opd_charges_doctor_id_foreign` FOREIGN KEY (`doctor_id`) REFERENCES `doctors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `doctor_opd_charges_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `documents`
--
ALTER TABLE `documents`
  ADD CONSTRAINT `documents_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `documents_uploaded_by_foreign` FOREIGN KEY (`uploaded_by`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `document_types`
--
ALTER TABLE `document_types`
  ADD CONSTRAINT `document_types_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `domains`
--
ALTER TABLE `domains`
  ADD CONSTRAINT `domains_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `employee_payrolls`
--
ALTER TABLE `employee_payrolls`
  ADD CONSTRAINT `employee_payrolls_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `enquiries`
--
ALTER TABLE `enquiries`
  ADD CONSTRAINT `enquiries_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `enquiries_viewed_by_foreign` FOREIGN KEY (`viewed_by`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `event_google_calendars`
--
ALTER TABLE `event_google_calendars`
  ADD CONSTRAINT `event_google_calendars_google_calendar_list_id_foreign` FOREIGN KEY (`google_calendar_list_id`) REFERENCES `google_calendar_lists` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `event_google_calendars_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `expenses`
--
ALTER TABLE `expenses`
  ADD CONSTRAINT `expenses_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `exports`
--
ALTER TABLE `exports`
  ADD CONSTRAINT `exports_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `feature_subscriptionplan`
--
ALTER TABLE `feature_subscriptionplan`
  ADD CONSTRAINT `feature_subscriptionplan_feature_id_foreign` FOREIGN KEY (`feature_id`) REFERENCES `features` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `feature_subscriptionplan_subscription_plan_id_foreign` FOREIGN KEY (`subscription_plan_id`) REFERENCES `subscription_plans` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `front_services`
--
ALTER TABLE `front_services`
  ADD CONSTRAINT `front_services_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `front_settings`
--
ALTER TABLE `front_settings`
  ADD CONSTRAINT `front_settings_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `google_calendar_integrations`
--
ALTER TABLE `google_calendar_integrations`
  ADD CONSTRAINT `google_calendar_integrations_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `google_calendar_lists`
--
ALTER TABLE `google_calendar_lists`
  ADD CONSTRAINT `google_calendar_lists_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `hospital_schedules`
--
ALTER TABLE `hospital_schedules`
  ADD CONSTRAINT `hospital_schedules_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `incomes`
--
ALTER TABLE `incomes`
  ADD CONSTRAINT `incomes_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `insurances`
--
ALTER TABLE `insurances`
  ADD CONSTRAINT `insurances_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `insurance_diseases`
--
ALTER TABLE `insurance_diseases`
  ADD CONSTRAINT `insurance_diseases_insurance_id_foreign` FOREIGN KEY (`insurance_id`) REFERENCES `insurances` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `investigation_reports`
--
ALTER TABLE `investigation_reports`
  ADD CONSTRAINT `investigation_reports_doctor_id_foreign` FOREIGN KEY (`doctor_id`) REFERENCES `doctors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `investigation_reports_patient_id_foreign` FOREIGN KEY (`patient_id`) REFERENCES `patients` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `investigation_reports_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `invoices`
--
ALTER TABLE `invoices`
  ADD CONSTRAINT `invoices_patient_id_foreign` FOREIGN KEY (`patient_id`) REFERENCES `patients` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `invoices_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `invoice_items`
--
ALTER TABLE `invoice_items`
  ADD CONSTRAINT `invoice_items_account_id_foreign` FOREIGN KEY (`account_id`) REFERENCES `accounts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `invoice_items_invoice_id_foreign` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `ipd_bills`
--
ALTER TABLE `ipd_bills`
  ADD CONSTRAINT `ipd_bills_ipd_patient_department_id_foreign` FOREIGN KEY (`ipd_patient_department_id`) REFERENCES `ipd_patient_departments` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `ipd_bills_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `ipd_charges`
--
ALTER TABLE `ipd_charges`
  ADD CONSTRAINT `ipd_charges_charge_category_id_foreign` FOREIGN KEY (`charge_category_id`) REFERENCES `charge_categories` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `ipd_charges_charge_id_foreign` FOREIGN KEY (`charge_id`) REFERENCES `charges` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `ipd_charges_ipd_patient_department_id_foreign` FOREIGN KEY (`ipd_patient_department_id`) REFERENCES `ipd_patient_departments` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `ipd_charges_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `ipd_consultant_registers`
--
ALTER TABLE `ipd_consultant_registers`
  ADD CONSTRAINT `ipd_consultant_registers_doctor_id_foreign` FOREIGN KEY (`doctor_id`) REFERENCES `doctors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `ipd_consultant_registers_ipd_patient_department_id_foreign` FOREIGN KEY (`ipd_patient_department_id`) REFERENCES `ipd_patient_departments` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `ipd_consultant_registers_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `ipd_diagnoses`
--
ALTER TABLE `ipd_diagnoses`
  ADD CONSTRAINT `ipd_diagnoses_ipd_patient_department_id_foreign` FOREIGN KEY (`ipd_patient_department_id`) REFERENCES `ipd_patient_departments` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `ipd_diagnoses_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `ipd_patient_departments`
--
ALTER TABLE `ipd_patient_departments`
  ADD CONSTRAINT `ipd_patient_departments_bed_id_foreign` FOREIGN KEY (`bed_id`) REFERENCES `beds` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `ipd_patient_departments_bed_type_id_foreign` FOREIGN KEY (`bed_type_id`) REFERENCES `bed_types` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `ipd_patient_departments_case_id_foreign` FOREIGN KEY (`case_id`) REFERENCES `patient_cases` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `ipd_patient_departments_doctor_id_foreign` FOREIGN KEY (`doctor_id`) REFERENCES `doctors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `ipd_patient_departments_patient_id_foreign` FOREIGN KEY (`patient_id`) REFERENCES `patients` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `ipd_patient_departments_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `ipd_payments`
--
ALTER TABLE `ipd_payments`
  ADD CONSTRAINT `ipd_payments_ipd_patient_department_id_foreign` FOREIGN KEY (`ipd_patient_department_id`) REFERENCES `ipd_patient_departments` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `ipd_payments_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `ipd_prescriptions`
--
ALTER TABLE `ipd_prescriptions`
  ADD CONSTRAINT `ipd_prescriptions_ipd_patient_department_id_foreign` FOREIGN KEY (`ipd_patient_department_id`) REFERENCES `ipd_patient_departments` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `ipd_prescriptions_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `ipd_prescription_items`
--
ALTER TABLE `ipd_prescription_items`
  ADD CONSTRAINT `ipd_prescription_items_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `categories` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `ipd_prescription_items_ipd_prescription_id_foreign` FOREIGN KEY (`ipd_prescription_id`) REFERENCES `ipd_prescriptions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `ipd_prescription_items_medicine_id_foreign` FOREIGN KEY (`medicine_id`) REFERENCES `medicines` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `ipd_prescription_items_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `ipd_timelines`
--
ALTER TABLE `ipd_timelines`
  ADD CONSTRAINT `ipd_timelines_ipd_patient_department_id_foreign` FOREIGN KEY (`ipd_patient_department_id`) REFERENCES `ipd_patient_departments` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `ipd_timelines_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `issued_items`
--
ALTER TABLE `issued_items`
  ADD CONSTRAINT `issued_items_department_id_foreign` FOREIGN KEY (`department_id`) REFERENCES `departments` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `issued_items_item_category_id_foreign` FOREIGN KEY (`item_category_id`) REFERENCES `item_categories` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `issued_items_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `issued_items_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `issued_items_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `items`
--
ALTER TABLE `items`
  ADD CONSTRAINT `items_item_category_id_foreign` FOREIGN KEY (`item_category_id`) REFERENCES `item_categories` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `items_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `item_categories`
--
ALTER TABLE `item_categories`
  ADD CONSTRAINT `item_categories_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `item_stocks`
--
ALTER TABLE `item_stocks`
  ADD CONSTRAINT `item_stocks_item_category_id_foreign` FOREIGN KEY (`item_category_id`) REFERENCES `item_categories` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `item_stocks_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `item_stocks_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `lab_technicians`
--
ALTER TABLE `lab_technicians`
  ADD CONSTRAINT `lab_technicians_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `lab_technicians_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `live_consultations`
--
ALTER TABLE `live_consultations`
  ADD CONSTRAINT `live_consultations_doctor_id_foreign` FOREIGN KEY (`doctor_id`) REFERENCES `doctors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `live_consultations_patient_id_foreign` FOREIGN KEY (`patient_id`) REFERENCES `patients` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `live_consultations_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `live_meetings`
--
ALTER TABLE `live_meetings`
  ADD CONSTRAINT `live_meetings_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `ltu_phrases`
--
ALTER TABLE `ltu_phrases`
  ADD CONSTRAINT `ltu_phrases_phrase_id_foreign` FOREIGN KEY (`phrase_id`) REFERENCES `ltu_phrases` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `ltu_phrases_translation_file_id_foreign` FOREIGN KEY (`translation_file_id`) REFERENCES `ltu_translation_files` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `ltu_phrases_translation_id_foreign` FOREIGN KEY (`translation_id`) REFERENCES `ltu_translations` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `lunch_breaks`
--
ALTER TABLE `lunch_breaks`
  ADD CONSTRAINT `lunch_breaks_doctor_id_foreign` FOREIGN KEY (`doctor_id`) REFERENCES `doctors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `lunch_breaks_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `mails`
--
ALTER TABLE `mails`
  ADD CONSTRAINT `mails_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `mails_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `medicines`
--
ALTER TABLE `medicines`
  ADD CONSTRAINT `medicines_brand_id_foreign` FOREIGN KEY (`brand_id`) REFERENCES `brands` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `medicines_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `categories` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `medicines_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `medicine_bills`
--
ALTER TABLE `medicine_bills`
  ADD CONSTRAINT `medicine_bills_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `model_has_permissions`
--
ALTER TABLE `model_has_permissions`
  ADD CONSTRAINT `model_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `model_has_roles`
--
ALTER TABLE `model_has_roles`
  ADD CONSTRAINT `model_has_roles_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `departments` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `modules`
--
ALTER TABLE `modules`
  ADD CONSTRAINT `modules_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `notice_boards`
--
ALTER TABLE `notice_boards`
  ADD CONSTRAINT `notice_boards_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `notifications`
--
ALTER TABLE `notifications`
  ADD CONSTRAINT `notifications_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `notifications_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `nurses`
--
ALTER TABLE `nurses`
  ADD CONSTRAINT `nurses_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `nurses_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `odontograms`
--
ALTER TABLE `odontograms`
  ADD CONSTRAINT `odontograms_doctor_id_foreign` FOREIGN KEY (`doctor_id`) REFERENCES `doctors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `odontograms_patient_id_foreign` FOREIGN KEY (`patient_id`) REFERENCES `patients` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `opd_diagnoses`
--
ALTER TABLE `opd_diagnoses`
  ADD CONSTRAINT `opd_diagnoses_opd_patient_department_id_foreign` FOREIGN KEY (`opd_patient_department_id`) REFERENCES `opd_patient_departments` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `opd_diagnoses_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `opd_patient_departments`
--
ALTER TABLE `opd_patient_departments`
  ADD CONSTRAINT `opd_patient_departments_case_id_foreign` FOREIGN KEY (`case_id`) REFERENCES `patient_cases` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `opd_patient_departments_doctor_id_foreign` FOREIGN KEY (`doctor_id`) REFERENCES `doctors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `opd_patient_departments_patient_id_foreign` FOREIGN KEY (`patient_id`) REFERENCES `patients` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `opd_patient_departments_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `opd_prescriptions`
--
ALTER TABLE `opd_prescriptions`
  ADD CONSTRAINT `opd_prescriptions_opd_patient_department_id_foreign` FOREIGN KEY (`opd_patient_department_id`) REFERENCES `opd_patient_departments` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `opd_prescriptions_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `opd_prescription_items`
--
ALTER TABLE `opd_prescription_items`
  ADD CONSTRAINT `opd_prescription_items_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `categories` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `opd_prescription_items_medicine_id_foreign` FOREIGN KEY (`medicine_id`) REFERENCES `medicines` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `opd_prescription_items_opd_prescription_id_foreign` FOREIGN KEY (`opd_prescription_id`) REFERENCES `opd_prescriptions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `opd_prescription_items_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `opd_timelines`
--
ALTER TABLE `opd_timelines`
  ADD CONSTRAINT `opd_timelines_opd_patient_department_id_foreign` FOREIGN KEY (`opd_patient_department_id`) REFERENCES `opd_patient_departments` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `opd_timelines_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `operation_reports`
--
ALTER TABLE `operation_reports`
  ADD CONSTRAINT `operation_reports_doctor_id_foreign` FOREIGN KEY (`doctor_id`) REFERENCES `doctors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `operation_reports_patient_id_foreign` FOREIGN KEY (`patient_id`) REFERENCES `patients` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `operation_reports_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `packages`
--
ALTER TABLE `packages`
  ADD CONSTRAINT `packages_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `package_services`
--
ALTER TABLE `package_services`
  ADD CONSTRAINT `package_services_package_id_foreign` FOREIGN KEY (`package_id`) REFERENCES `packages` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `package_services_service_id_foreign` FOREIGN KEY (`service_id`) REFERENCES `services` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `pathology_categories`
--
ALTER TABLE `pathology_categories`
  ADD CONSTRAINT `pathology_categories_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `pathology_parameters`
--
ALTER TABLE `pathology_parameters`
  ADD CONSTRAINT `pathology_parameters_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `pathology_parameters_unit_id_foreign` FOREIGN KEY (`unit_id`) REFERENCES `pathology_units` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `pathology_parameter_items`
--
ALTER TABLE `pathology_parameter_items`
  ADD CONSTRAINT `pathology_parameter_items_parameter_id_foreign` FOREIGN KEY (`parameter_id`) REFERENCES `pathology_parameters` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `pathology_parameter_items_pathology_id_foreign` FOREIGN KEY (`pathology_id`) REFERENCES `pathology_tests` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `pathology_tests`
--
ALTER TABLE `pathology_tests`
  ADD CONSTRAINT `pathology_tests_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `pathology_categories` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `pathology_tests_charge_category_id_foreign` FOREIGN KEY (`charge_category_id`) REFERENCES `charge_categories` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `pathology_tests_patient_id_foreign` FOREIGN KEY (`patient_id`) REFERENCES `patients` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `pathology_tests_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `pathology_units`
--
ALTER TABLE `pathology_units`
  ADD CONSTRAINT `pathology_units_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `patients`
--
ALTER TABLE `patients`
  ADD CONSTRAINT `patients_template_id_foreign` FOREIGN KEY (`template_id`) REFERENCES `smart_patient_cards` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `patients_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `patients_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `patient_admissions`
--
ALTER TABLE `patient_admissions`
  ADD CONSTRAINT `patient_admissions_bed_id_foreign` FOREIGN KEY (`bed_id`) REFERENCES `beds` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `patient_admissions_doctor_id_foreign` FOREIGN KEY (`doctor_id`) REFERENCES `doctors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `patient_admissions_insurance_id_foreign` FOREIGN KEY (`insurance_id`) REFERENCES `insurances` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `patient_admissions_package_id_foreign` FOREIGN KEY (`package_id`) REFERENCES `packages` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `patient_admissions_patient_id_foreign` FOREIGN KEY (`patient_id`) REFERENCES `patients` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `patient_admissions_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `patient_cases`
--
ALTER TABLE `patient_cases`
  ADD CONSTRAINT `patient_cases_doctor_id_foreign` FOREIGN KEY (`doctor_id`) REFERENCES `doctors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `patient_cases_patient_id_foreign` FOREIGN KEY (`patient_id`) REFERENCES `patients` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `patient_cases_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `patient_diagnosis_properties`
--
ALTER TABLE `patient_diagnosis_properties`
  ADD CONSTRAINT `patient_diagnosis_properties_patient_diagnosis_id_foreign` FOREIGN KEY (`patient_diagnosis_id`) REFERENCES `patient_diagnosis_tests` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `patient_diagnosis_tests`
--
ALTER TABLE `patient_diagnosis_tests`
  ADD CONSTRAINT `patient_diagnosis_tests_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `diagnosis_categories` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `patient_diagnosis_tests_doctor_id_foreign` FOREIGN KEY (`doctor_id`) REFERENCES `doctors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `patient_diagnosis_tests_patient_id_foreign` FOREIGN KEY (`patient_id`) REFERENCES `patients` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `patient_diagnosis_tests_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `patient_queues`
--
ALTER TABLE `patient_queues`
  ADD CONSTRAINT `patient_queues_appointment_id_foreign` FOREIGN KEY (`appointment_id`) REFERENCES `appointments` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `patient_queues_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `payments`
--
ALTER TABLE `payments`
  ADD CONSTRAINT `payments_account_id_foreign` FOREIGN KEY (`account_id`) REFERENCES `accounts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `payments_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `pharmacists`
--
ALTER TABLE `pharmacists`
  ADD CONSTRAINT `pharmacists_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `pharmacists_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `postals`
--
ALTER TABLE `postals`
  ADD CONSTRAINT `postals_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `prescriptions`
--
ALTER TABLE `prescriptions`
  ADD CONSTRAINT `prescriptions_doctor_id_foreign` FOREIGN KEY (`doctor_id`) REFERENCES `doctors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `prescriptions_patient_id_foreign` FOREIGN KEY (`patient_id`) REFERENCES `patients` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `prescriptions_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `prescriptions_medicines`
--
ALTER TABLE `prescriptions_medicines`
  ADD CONSTRAINT `prescriptions_medicines_medicine_foreign` FOREIGN KEY (`medicine`) REFERENCES `medicines` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `prescriptions_medicines_prescription_id_foreign` FOREIGN KEY (`prescription_id`) REFERENCES `prescriptions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `purchased_medicines`
--
ALTER TABLE `purchased_medicines`
  ADD CONSTRAINT `purchased_medicines_medicine_id_foreign` FOREIGN KEY (`medicine_id`) REFERENCES `medicines` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  ADD CONSTRAINT `purchased_medicines_purchase_medicines_id_foreign` FOREIGN KEY (`purchase_medicines_id`) REFERENCES `purchase_medicines` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `purchased_medicines_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `purchase_medicines`
--
ALTER TABLE `purchase_medicines`
  ADD CONSTRAINT `purchase_medicines_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `radiology_categories`
--
ALTER TABLE `radiology_categories`
  ADD CONSTRAINT `radiology_categories_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `radiology_tests`
--
ALTER TABLE `radiology_tests`
  ADD CONSTRAINT `radiology_tests_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `radiology_categories` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `radiology_tests_charge_category_id_foreign` FOREIGN KEY (`charge_category_id`) REFERENCES `charge_categories` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `radiology_tests_charge_id_foreign` FOREIGN KEY (`charge_id`) REFERENCES `charges` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `radiology_tests_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `receptionists`
--
ALTER TABLE `receptionists`
  ADD CONSTRAINT `receptionists_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `receptionists_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `role_has_permissions`
--
ALTER TABLE `role_has_permissions`
  ADD CONSTRAINT `role_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `role_has_permissions_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `departments` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `schedules`
--
ALTER TABLE `schedules`
  ADD CONSTRAINT `schedules_doctor_id_foreign` FOREIGN KEY (`doctor_id`) REFERENCES `doctors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `schedules_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `schedule_days`
--
ALTER TABLE `schedule_days`
  ADD CONSTRAINT `schedule_days_doctor_id_foreign` FOREIGN KEY (`doctor_id`) REFERENCES `doctors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `schedule_days_schedule_id_foreign` FOREIGN KEY (`schedule_id`) REFERENCES `schedules` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `services`
--
ALTER TABLE `services`
  ADD CONSTRAINT `services_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `settings`
--
ALTER TABLE `settings`
  ADD CONSTRAINT `settings_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `smart_patient_cards`
--
ALTER TABLE `smart_patient_cards`
  ADD CONSTRAINT `smart_patient_cards_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `sms`
--
ALTER TABLE `sms`
  ADD CONSTRAINT `sms_send_by_foreign` FOREIGN KEY (`send_by`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `sms_send_to_foreign` FOREIGN KEY (`send_to`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `sms_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `subscriptions`
--
ALTER TABLE `subscriptions`
  ADD CONSTRAINT `subscriptions_subscription_plan_id_foreign` FOREIGN KEY (`subscription_plan_id`) REFERENCES `subscription_plans` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `subscriptions_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `subscriptions_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `testimonials`
--
ALTER TABLE `testimonials`
  ADD CONSTRAINT `testimonials_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `transactions`
--
ALTER TABLE `transactions`
  ADD CONSTRAINT `transactions_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `transactions_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `used_medicines`
--
ALTER TABLE `used_medicines`
  ADD CONSTRAINT `used_medicines_medicine_id_foreign` FOREIGN KEY (`medicine_id`) REFERENCES `medicines` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `used_medicines_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `users`
--
ALTER TABLE `users`
  ADD CONSTRAINT `users_hospital_type_id_foreign` FOREIGN KEY (`hospital_type_id`) REFERENCES `hospital_type` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `users_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `user_google_event_schedules`
--
ALTER TABLE `user_google_event_schedules`
  ADD CONSTRAINT `user_google_event_schedules_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `user_tenants`
--
ALTER TABLE `user_tenants`
  ADD CONSTRAINT `user_tenants_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `user_tenants_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `user_zoom_credential`
--
ALTER TABLE `user_zoom_credential`
  ADD CONSTRAINT `user_zoom_credential_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `user_zoom_credential_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `vaccinated_patients`
--
ALTER TABLE `vaccinated_patients`
  ADD CONSTRAINT `vaccinated_patients_patient_id_foreign` FOREIGN KEY (`patient_id`) REFERENCES `patients` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `vaccinated_patients_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `vaccinated_patients_vaccination_id_foreign` FOREIGN KEY (`vaccination_id`) REFERENCES `vaccinations` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `vaccinations`
--
ALTER TABLE `vaccinations`
  ADD CONSTRAINT `vaccinations_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `visitors`
--
ALTER TABLE `visitors`
  ADD CONSTRAINT `visitors_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `tenants` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `zoom_o_auth_credentials`
--
ALTER TABLE `zoom_o_auth_credentials`
  ADD CONSTRAINT `zoom_o_auth_credentials_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
COMMIT;

