--
-- Host: 127.0.0.1    Database: emedsol
-- ------------------------------------------------------


--
-- Table structure for table `announcement`
--

CREATE TABLE `announcement` (
  `announcement_id` int NOT NULL AUTO_INCREMENT,
  `announcement_type_id` int DEFAULT NULL,
  `location_id` int DEFAULT NULL,
  `department_id` int DEFAULT NULL,
  `title` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `content` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `start_time` date NOT NULL,
  `end_time` date DEFAULT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`announcement_id`),
  KEY `announcement_announcement_type_id_foreign` (`announcement_type_id`),
  KEY `announcement_location_id_foreign` (`location_id`),
  KEY `announcement_department_id_foreign` (`department_id`),
  KEY `announcement_created_by_foreign` (`created_by`),
  KEY `announcement_updated_by_foreign` (`updated_by`),
  CONSTRAINT `announcement_announcement_type_id_foreign` FOREIGN KEY (`announcement_type_id`) REFERENCES `announcement_type` (`announcement_type_id`) ON UPDATE CASCADE,
  CONSTRAINT `announcement_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `announcement_department_id_foreign` FOREIGN KEY (`department_id`) REFERENCES `department` (`department_id`) ON UPDATE CASCADE,
  CONSTRAINT `announcement_location_id_foreign` FOREIGN KEY (`location_id`) REFERENCES `location` (`location_id`) ON UPDATE CASCADE,
  CONSTRAINT `announcement_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `announcement`
--


--
-- Table structure for table `announcement_type`
--

CREATE TABLE `announcement_type` (
  `announcement_type_id` int NOT NULL AUTO_INCREMENT,
  `announcement_type_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`announcement_type_id`),
  KEY `announcement_type_created_by_foreign` (`created_by`),
  KEY `announcement_type_updated_by_foreign` (`updated_by`),
  CONSTRAINT `announcement_type_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `announcement_type_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `announcement_type`
--


--
-- Table structure for table `appointment`
--

CREATE TABLE `appointment` (
  `appointment_id` int NOT NULL AUTO_INCREMENT,
  `patient_id` int NOT NULL,
  `billing_category_id` int NOT NULL,
  `doctor_id` int NOT NULL,
  `visit_id` int NOT NULL,
  `location_id` int NOT NULL COMMENT 'Sub-location',
  `start_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `end_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `appt_status_id` int NOT NULL,
  `cost` decimal(9,2) NOT NULL,
  `amount_covered` decimal(9,2) DEFAULT NULL,
  `confidential` tinyint(1) NOT NULL DEFAULT '0',
  `is_external` tinyint(1) NOT NULL DEFAULT '0',
  `is_extra` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0=not extra, 1=is extra',
  `time_arrived_in_clinic` datetime DEFAULT NULL,
  `checkin_time` datetime DEFAULT NULL COMMENT 'Time of patient arrival in hospital',
  `calledin_time` datetime DEFAULT NULL COMMENT 'Time when patient is called by doctor',
  `checkout_time` datetime DEFAULT NULL COMMENT 'Time when patient exit doctor''s office',
  `nurse_calledin_time` datetime DEFAULT NULL COMMENT 'Time when patient is called in by nurse',
  `nurse_checkout_time` datetime DEFAULT NULL COMMENT 'Time when patient Leaves the nurse',
  `appt_reminder_sent` tinyint DEFAULT NULL COMMENT 'Automatic reminder status: null=not sent, 1=24h before, 2=72h before',
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_by` int DEFAULT NULL COMMENT 'User who cancel the appointment',
  `deleted_at` timestamp NULL DEFAULT NULL,
  `deleted_comment` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`appointment_id`),
  UNIQUE KEY `appointment_visit_id_unique` (`visit_id`),
  KEY `appointment_patient_id_foreign` (`patient_id`),
  KEY `appointment_billing_category_id_foreign` (`billing_category_id`),
  KEY `appointment_doctor_id_foreign` (`doctor_id`),
  KEY `appointment_location_id_foreign` (`location_id`),
  KEY `appointment_appt_status_id_foreign` (`appt_status_id`),
  KEY `appointment_created_by_foreign` (`created_by`),
  KEY `appointment_updated_by_foreign` (`updated_by`),
  KEY `appointment_deleted_by_foreign` (`deleted_by`),
  KEY `idx_deleted_at` (`deleted_at`),
  KEY `idx_appt_deleted_at_date` (`deleted_at`,`start_time`),
  KEY `idx_start_time` (`start_time`),
  CONSTRAINT `appointment_appt_status_id_foreign` FOREIGN KEY (`appt_status_id`) REFERENCES `appt_status` (`appt_status_id`) ON UPDATE CASCADE,
  CONSTRAINT `appointment_billing_category_id_foreign` FOREIGN KEY (`billing_category_id`) REFERENCES `billing_category` (`billing_category_id`) ON UPDATE CASCADE,
  CONSTRAINT `appointment_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `appointment_deleted_by_foreign` FOREIGN KEY (`deleted_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `appointment_doctor_id_foreign` FOREIGN KEY (`doctor_id`) REFERENCES `doctor` (`doctor_id`) ON UPDATE CASCADE,
  CONSTRAINT `appointment_location_id_foreign` FOREIGN KEY (`location_id`) REFERENCES `location` (`location_id`) ON UPDATE CASCADE,
  CONSTRAINT `appointment_patient_id_foreign` FOREIGN KEY (`patient_id`) REFERENCES `patient` (`patient_id`) ON UPDATE CASCADE,
  CONSTRAINT `appointment_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `appointment_visit_id_foreign` FOREIGN KEY (`visit_id`) REFERENCES `visit` (`visit_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `appointment`
--


--
-- Table structure for table `appt_confirmation`
--

CREATE TABLE `appt_confirmation` (
  `appt_confirmation_id` int NOT NULL AUTO_INCREMENT,
  `appointment_id` int NOT NULL,
  `confirmation` text COLLATE utf8mb4_unicode_ci COMMENT 'contains a json string of the methods by which the patient was contacted: 1 = WhatsApp, 2 = SMS, 3 = phone message, 4 = email',
  `comment` text COLLATE utf8mb4_unicode_ci,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`appt_confirmation_id`),
  KEY `fk_appt_confirmation` (`appointment_id`),
  KEY `fk_appt_confirmation_created_by` (`created_by`),
  KEY `fk_appt_confirmation_updated_by` (`updated_by`),
  CONSTRAINT `fk_appt_confirmation` FOREIGN KEY (`appointment_id`) REFERENCES `appointment` (`appointment_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_appt_confirmation_created_by` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_appt_confirmation_updated_by` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `appt_confirmation`
--


--
-- Table structure for table `appt_doctor`
--

CREATE TABLE `appt_doctor` (
  `appt_doctor_id` int NOT NULL AUTO_INCREMENT,
  `doctor_id` int NOT NULL,
  `confirmation` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin COMMENT 'Methods by which the doctor was contacted',
  `comment` text COLLATE utf8mb4_unicode_ci,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`appt_doctor_id`),
  KEY `appt_doctor_doctor_id_foreign` (`doctor_id`),
  KEY `appt_doctor_created_by_foreign` (`created_by`),
  KEY `appt_doctor_updated_by_foreign` (`updated_by`),
  CONSTRAINT `appt_doctor_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `appt_doctor_doctor_id_foreign` FOREIGN KEY (`doctor_id`) REFERENCES `doctor` (`doctor_id`) ON UPDATE CASCADE,
  CONSTRAINT `appt_doctor_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `appt_doctor`
--


--
-- Table structure for table `appt_history`
--

CREATE TABLE `appt_history` (
  `appt_history_id` int NOT NULL AUTO_INCREMENT,
  `appointment_id` int NOT NULL,
  `json_data` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`appt_history_id`),
  KEY `fk_appt_history_appointment_id` (`appointment_id`),
  KEY `fk_appt_history_created_by` (`created_by`),
  KEY `fk_appt_history_updated_by` (`updated_by`),
  CONSTRAINT `fk_appt_history_appointment_id` FOREIGN KEY (`appointment_id`) REFERENCES `appointment` (`appointment_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_appt_history_created_by` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_appt_history_updated_by` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `appt_history`
--


--
-- Table structure for table `appt_reschedule`
--

CREATE TABLE `appt_reschedule` (
  `appt_reschedule_id` int NOT NULL AUTO_INCREMENT,
  `missed_appt_id` int NOT NULL,
  `new_appt_id` int NOT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`appt_reschedule_id`),
  KEY `fk_appt_reschedule_missed_appt` (`missed_appt_id`),
  KEY `fk_appt_reschedule_new_appt` (`new_appt_id`),
  KEY `fk_appt_reschedule_created_by` (`created_by`),
  KEY `fk_appt_reschedule_updated_by` (`updated_by`),
  CONSTRAINT `fk_appt_reschedule_created_by` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_appt_reschedule_missed_appt` FOREIGN KEY (`missed_appt_id`) REFERENCES `appointment` (`appointment_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_appt_reschedule_new_appt` FOREIGN KEY (`new_appt_id`) REFERENCES `appointment` (`appointment_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_appt_reschedule_updated_by` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `appt_reschedule`
--


--
-- Table structure for table `appt_status`
--

CREATE TABLE `appt_status` (
  `appt_status_id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `color` varchar(7) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`appt_status_id`),
  UNIQUE KEY `appt_status_name_unique` (`name`),
  KEY `fk_appt_status_created_by` (`created_by`),
  KEY `fk_appt_status_updated_by` (`updated_by`),
  CONSTRAINT `fk_appt_status_created_by` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_appt_status_updated_by` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `appt_status`
--


--
-- Table structure for table `bill`
--

CREATE TABLE `bill` (
  `bill_id` int NOT NULL AUTO_INCREMENT,
  `bill_date` date NOT NULL COMMENT 'Date of the bill/appointment',
  `total` decimal(9,2) NOT NULL COMMENT 'Total of the bill',
  `covered_amount` decimal(9,2) DEFAULT NULL COMMENT 'Amount covered by patient''s company',
  `discount` decimal(9,2) DEFAULT NULL COMMENT 'Total of the discounts',
  `negociation_amount` decimal(9,2) DEFAULT NULL COMMENT 'Amount reduced after negociation with the patient''s company',
  `cut_amount` decimal(9,2) DEFAULT NULL COMMENT 'Amount reduced after the patient''s company said it won''t cover some items',
  `internal_comment` text COLLATE utf8mb4_unicode_ci COMMENT 'Internal comment for the billing team',
  `external_comment` text COLLATE utf8mb4_unicode_ci COMMENT 'Comment seen by patient and patient''s company',
  `diagnostics` text COLLATE utf8mb4_unicode_ci,
  `signature_text` text COLLATE utf8mb4_unicode_ci COMMENT 'Patient''s signature',
  `hide_collectable` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0=To be shown in collectable table, 1=hide from collectables table',
  `is_frozen` tinyint(1) NOT NULL DEFAULT '0',
  `is_blocked` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'To not show bill on money to collect',
  `created_by` int NOT NULL,
  `updated_by` int DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`bill_id`),
  KEY `bill_created_by_foreign` (`created_by`),
  KEY `bill_updated_by_foreign` (`updated_by`),
  CONSTRAINT `bill_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `bill_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `bill`
--


--
-- Table structure for table `bill_payment`
--

CREATE TABLE `bill_payment` (
  `bill_payment_id` int NOT NULL AUTO_INCREMENT,
  `bill_id` int NOT NULL,
  `bill_payment_method_id` int NOT NULL,
  `total` decimal(9,2) NOT NULL,
  `amount` decimal(9,2) NOT NULL,
  `currency` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'USD',
  `location_id` int NOT NULL COMMENT 'Should always be a child location',
  `payment_proof` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`bill_payment_id`),
  KEY `bill_payment_bill_id_foreign` (`bill_id`),
  KEY `bill_payment_bill_payment_method_id_foreign` (`bill_payment_method_id`),
  KEY `bill_payment_location_id_foreign` (`location_id`),
  KEY `bill_payment_created_by_foreign` (`created_by`),
  KEY `bill_payment_updated_by_foreign` (`updated_by`),
  CONSTRAINT `bill_payment_bill_id_foreign` FOREIGN KEY (`bill_id`) REFERENCES `bill` (`bill_id`) ON UPDATE CASCADE,
  CONSTRAINT `bill_payment_bill_payment_method_id_foreign` FOREIGN KEY (`bill_payment_method_id`) REFERENCES `bill_payment_method` (`bill_payment_method_id`) ON UPDATE CASCADE,
  CONSTRAINT `bill_payment_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `bill_payment_location_id_foreign` FOREIGN KEY (`location_id`) REFERENCES `location` (`location_id`) ON UPDATE CASCADE,
  CONSTRAINT `bill_payment_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `bill_payment`
--


--
-- Table structure for table `bill_payment_method`
--

CREATE TABLE `bill_payment_method` (
  `bill_payment_method_id` int NOT NULL AUTO_INCREMENT,
  `bill_payment_method_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`bill_payment_method_id`),
  KEY `bill_payment_method_created_by_foreign` (`created_by`),
  KEY `bill_payment_method_updated_by_foreign` (`updated_by`),
  CONSTRAINT `bill_payment_method_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `bill_payment_method_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `bill_payment_method`
--


--
-- Table structure for table `bill_rating`
--

CREATE TABLE `bill_rating` (
  `bill_rating_id` int NOT NULL AUTO_INCREMENT,
  `bill_id` int NOT NULL,
  `bill_review_question_id` int NOT NULL,
  `location_id` int NOT NULL COMMENT 'Should always be a child location',
  `rating` tinyint NOT NULL,
  `comment` text COLLATE utf8mb4_unicode_ci,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`bill_rating_id`),
  KEY `bill_rating_bill_id_foreign` (`bill_id`),
  KEY `bill_rating_bill_review_question_id_foreign` (`bill_review_question_id`),
  KEY `bill_rating_location_id_foreign` (`location_id`),
  KEY `bill_rating_created_by_foreign` (`created_by`),
  CONSTRAINT `bill_rating_bill_id_foreign` FOREIGN KEY (`bill_id`) REFERENCES `bill` (`bill_id`) ON UPDATE CASCADE,
  CONSTRAINT `bill_rating_bill_review_question_id_foreign` FOREIGN KEY (`bill_review_question_id`) REFERENCES `bill_review_question` (`bill_review_question_id`) ON UPDATE CASCADE,
  CONSTRAINT `bill_rating_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `bill_rating_location_id_foreign` FOREIGN KEY (`location_id`) REFERENCES `location` (`location_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `bill_rating`
--


--
-- Table structure for table `bill_review_question`
--

CREATE TABLE `bill_review_question` (
  `bill_review_question_id` int NOT NULL AUTO_INCREMENT,
  `content` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `location_id` int NOT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`bill_review_question_id`),
  KEY `bill_review_question_location_id_foreign` (`location_id`),
  KEY `bill_review_question_created_by_foreign` (`created_by`),
  KEY `bill_review_question_updated_by_foreign` (`updated_by`),
  CONSTRAINT `bill_review_question_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `bill_review_question_location_id_foreign` FOREIGN KEY (`location_id`) REFERENCES `location` (`location_id`) ON UPDATE CASCADE,
  CONSTRAINT `bill_review_question_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `bill_review_question`
--


--
-- Table structure for table `billing_category`
--

CREATE TABLE `billing_category` (
  `billing_category_id` int NOT NULL AUTO_INCREMENT,
  `billing_category_name` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
  `default_cost` decimal(7,2) NOT NULL DEFAULT '0.00',
  `type` tinyint DEFAULT NULL COMMENT '0=normal consultation, 1=urgent, 2=result, 3=remote/call, 4=request, 5=procedure or surgery',
  `created_by` int NOT NULL,
  `updated_by` int DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`billing_category_id`),
  UNIQUE KEY `billing_category_billing_category_name_unique` (`billing_category_name`),
  KEY `billing_category_created_by_foreign` (`created_by`),
  KEY `billing_category_updated_by_foreign` (`updated_by`),
  CONSTRAINT `billing_category_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `billing_category_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='List of consultation types';

--
-- Dumping data for table `billing_category`
--


--
-- Table structure for table `commune`
--

CREATE TABLE `commune` (
  `commune_id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`commune_id`),
  UNIQUE KEY `commune_name_unique` (`name`),
  KEY `commune_created_by_foreign` (`created_by`),
  KEY `commune_updated_by_foreign` (`updated_by`),
  CONSTRAINT `commune_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `commune_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `commune`
--


--
-- Table structure for table `company`
--

CREATE TABLE `company` (
  `company_id` int NOT NULL AUTO_INCREMENT,
  `type_id` int DEFAULT NULL,
  `company_name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
  `country` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `province` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `city` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `postal` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `telephone` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
  `email` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
  `auto_accept_request` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0=no auto-accept request, 1=auto-accept request',
  `auto_accept_urgent_request` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0=no auto-accept urgent request, 1=auto-accept request',
  `address` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `deposit_amount` decimal(9,2) DEFAULT NULL,
  `hospitalisation_daily_bill_max_amount` decimal(9,2) DEFAULT NULL,
  `ambulatory_daily_bill_max_amount` decimal(9,2) DEFAULT NULL,
  `company_monthly_cost_limit` decimal(9,2) DEFAULT NULL,
  `patient_monthly_cost_limit` decimal(9,2) DEFAULT NULL,
  `hospitalisation_percent_coverage` decimal(5,2) DEFAULT NULL,
  `ambulatory_percent_coverage` decimal(5,2) DEFAULT NULL,
  `company_info` text COLLATE utf8mb4_unicode_ci,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`company_id`),
  UNIQUE KEY `company_company_name_unique` (`company_name`),
  KEY `fk_company_type` (`type_id`),
  KEY `fk_company_created_by` (`created_by`),
  KEY `fk_company_updated_by` (`updated_by`),
  CONSTRAINT `fk_company_created_by` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_company_type` FOREIGN KEY (`type_id`) REFERENCES `company_type` (`company_type_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_company_updated_by` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `company`
--


--
-- Table structure for table `company_bill`
--

CREATE TABLE `company_bill` (
  `company_bill_id` int NOT NULL AUTO_INCREMENT,
  `number` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `company_id` int NOT NULL,
  `total` decimal(9,2) NOT NULL,
  `total_consultation` decimal(9,2) NOT NULL,
  `patient_total_paid` decimal(9,2) NOT NULL,
  `total_to_pay` decimal(9,2) NOT NULL,
  `discount` decimal(9,2) NOT NULL,
  `internal_comment` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `external_comment` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `is_frozen` tinyint(1) NOT NULL DEFAULT '0' COMMENT '1=bill can''t be edited',
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`company_bill_id`),
  KEY `company_bill_company_id_foreign` (`company_id`),
  KEY `company_bill_created_by_foreign` (`created_by`),
  KEY `company_bill_updated_by_foreign` (`updated_by`),
  CONSTRAINT `company_bill_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `company` (`company_id`) ON UPDATE CASCADE,
  CONSTRAINT `company_bill_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `company_bill_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `company_bill`
--


--
-- Table structure for table `company_bill_payment`
--

CREATE TABLE `company_bill_payment` (
  `company_bill_payment_id` int NOT NULL AUTO_INCREMENT,
  `company_bill_id` int NOT NULL,
  `bill_payment_method_id` int NOT NULL,
  `amount` decimal(9,2) NOT NULL,
  `location_id` int NOT NULL,
  `payment_proof` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`company_bill_payment_id`),
  KEY `company_bill_payment_company_bill_id_foreign` (`company_bill_id`),
  KEY `company_bill_payment_payment_method_id_foreign` (`bill_payment_method_id`),
  KEY `company_bill_payment_location_id_foreign` (`location_id`),
  KEY `company_bill_payment_created_by_foreign` (`created_by`),
  KEY `company_bill_payment_updated_by_foreign` (`updated_by`),
  CONSTRAINT `company_bill_payment_bill_payment_method_id_foreign` FOREIGN KEY (`bill_payment_method_id`) REFERENCES `bill_payment_method` (`bill_payment_method_id`) ON UPDATE CASCADE,
  CONSTRAINT `company_bill_payment_company_bill_id_foreign` FOREIGN KEY (`company_bill_id`) REFERENCES `company_bill` (`company_bill_id`) ON UPDATE CASCADE,
  CONSTRAINT `company_bill_payment_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `company_bill_payment_location_id_foreign` FOREIGN KEY (`location_id`) REFERENCES `location` (`location_id`) ON UPDATE CASCADE,
  CONSTRAINT `company_bill_payment_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `company_bill_payment`
--


--
-- Table structure for table `company_billing_category_code`
--

CREATE TABLE `company_billing_category_code` (
  `company_billing_category_code_id` int NOT NULL AUTO_INCREMENT,
  `company_code_id` int NOT NULL,
  `billing_category_id` int NOT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`company_billing_category_code_id`),
  KEY `company_billing_category_code_company_code_id_foreign` (`company_code_id`),
  KEY `bcategory_company_code_id_foreign` (`billing_category_id`),
  KEY `company_billing_category_code_created_by_foreign` (`created_by`),
  KEY `company_billing_category_code_updated_by_foreign` (`updated_by`),
  CONSTRAINT `bcategory_company_code_id_foreign` FOREIGN KEY (`billing_category_id`) REFERENCES `billing_category` (`billing_category_id`) ON UPDATE CASCADE,
  CONSTRAINT `company_billing_category_code_company_code_id_foreign` FOREIGN KEY (`company_code_id`) REFERENCES `company_code` (`company_code_id`) ON UPDATE CASCADE,
  CONSTRAINT `company_billing_category_code_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `company_billing_category_code_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `company_billing_category_code`
--


--
-- Table structure for table `company_code`
--

CREATE TABLE `company_code` (
  `company_code_id` int NOT NULL AUTO_INCREMENT,
  `code` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`company_code_id`),
  UNIQUE KEY `company_code_code_unique` (`code`),
  KEY `company_code_created_by_foreign` (`created_by`),
  KEY `company_code_updated_by_foreign` (`updated_by`),
  CONSTRAINT `company_code_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `company_code_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `company_code`
--


--
-- Table structure for table `company_code_mapping`
--

CREATE TABLE `company_code_mapping` (
  `company_code_mapping_id` int NOT NULL AUTO_INCREMENT,
  `company_id` int NOT NULL,
  `company_code_id` int NOT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`company_code_mapping_id`),
  KEY `company_code_mapping_company_id_foreign` (`company_id`),
  KEY `company_code_mapping_company_code_id_foreign` (`company_code_id`),
  KEY `company_code_mapping_created_by_foreign` (`created_by`),
  KEY `company_code_mapping_updated_by_foreign` (`updated_by`),
  CONSTRAINT `company_code_mapping_company_code_id_foreign` FOREIGN KEY (`company_code_id`) REFERENCES `company_code` (`company_code_id`) ON UPDATE CASCADE,
  CONSTRAINT `company_code_mapping_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `company` (`company_id`) ON UPDATE CASCADE,
  CONSTRAINT `company_code_mapping_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `company_code_mapping_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `company_code_mapping`
--


--
-- Table structure for table `company_medical_service_code`
--

CREATE TABLE `company_medical_service_code` (
  `company_code_medical_service_id` int NOT NULL AUTO_INCREMENT,
  `company_code_id` int NOT NULL,
  `medical_service_id` int NOT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`company_code_medical_service_id`),
  KEY `company_code_medical_service_company_code_id_foreign` (`company_code_id`),
  KEY `ms_company_code_id_foreign` (`medical_service_id`),
  KEY `company_code_medical_service_created_by_foreign` (`created_by`),
  KEY `company_code_medical_service_updated_by_foreign` (`updated_by`),
  CONSTRAINT `company_medical_service_code_company_code_id_foreign` FOREIGN KEY (`company_code_id`) REFERENCES `company_code` (`company_code_id`) ON UPDATE CASCADE,
  CONSTRAINT `company_medical_service_code_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `company_medical_service_code_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `ms_company_code_id_foreign` FOREIGN KEY (`medical_service_id`) REFERENCES `medical_service` (`medical_service_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `company_medical_service_code`
--


--
-- Table structure for table `company_medical_service_group`
--

CREATE TABLE `company_medical_service_group` (
  `company_medical_service_group_id` int NOT NULL AUTO_INCREMENT,
  `medical_service_group_name` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`company_medical_service_group_id`),
  KEY `company_medical_service_group_created_by_foreign` (`created_by`),
  KEY `company_medical_service_group_updated_by_foreign` (`updated_by`),
  CONSTRAINT `company_medical_service_group_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `company_medical_service_group_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `company_medical_service_group`
--


--
-- Table structure for table `company_medical_service_grouped`
--

CREATE TABLE `company_medical_service_grouped` (
  `company_medical_service_grouped_id` int NOT NULL AUTO_INCREMENT,
  `medical_service_id` int NOT NULL,
  `company_medical_service_group_id` int NOT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`company_medical_service_grouped_id`),
  KEY `company_medical_service_grouped_medical_service_foreign` (`medical_service_id`),
  KEY `company_medical_service_grouped_c_med_serv_g_foreign` (`company_medical_service_group_id`),
  KEY `company_medical_service_grouped_created_by_foreign` (`created_by`),
  KEY `company_medical_service_grouped_updated_by_foreign` (`updated_by`),
  CONSTRAINT `company_medical_service_grouped_c_med_serv_g_foreign` FOREIGN KEY (`company_medical_service_group_id`) REFERENCES `company_medical_service_group` (`company_medical_service_group_id`) ON UPDATE CASCADE,
  CONSTRAINT `company_medical_service_grouped_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `company_medical_service_grouped_medical_service_foreign` FOREIGN KEY (`medical_service_id`) REFERENCES `medical_service` (`medical_service_id`) ON UPDATE CASCADE,
  CONSTRAINT `company_medical_service_grouped_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `company_medical_service_grouped`
--


--
-- Table structure for table `company_price_list_assignation`
--

CREATE TABLE `company_price_list_assignation` (
  `company_price_list_assignation_id` int NOT NULL AUTO_INCREMENT,
  `company_id` int NOT NULL,
  `company_price_list_header_id` int NOT NULL,
  `start_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `end_date` datetime DEFAULT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`company_price_list_assignation_id`),
  KEY `fk_price_list_company_id` (`company_id`),
  KEY `fk_company_price_list_header_assignation` (`company_price_list_header_id`),
  KEY `fk_company_price_list_assignation_created_by` (`created_by`),
  KEY `fk_company_price_list_assignation_updated_by` (`updated_by`),
  CONSTRAINT `fk_company_price_list_assignation_created_by` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_company_price_list_assignation_updated_by` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_company_price_list_header_assignation` FOREIGN KEY (`company_price_list_header_id`) REFERENCES `company_price_list_header` (`company_price_list_header_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_price_list_company_id` FOREIGN KEY (`company_id`) REFERENCES `company` (`company_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `company_price_list_assignation`
--


--
-- Table structure for table `company_price_list_billing_category`
--

CREATE TABLE `company_price_list_billing_category` (
  `company_price_list_billing_category_id` int NOT NULL AUTO_INCREMENT,
  `company_price_list_header_id` int NOT NULL,
  `billing_category_id` int NOT NULL,
  `doctor_specialty_id` int DEFAULT NULL,
  `doctor_id` int DEFAULT NULL,
  `location_id` int DEFAULT NULL,
  `preferential_price` decimal(9,2) DEFAULT NULL,
  `discount` decimal(5,2) DEFAULT NULL,
  `company_percent_coverage` decimal(5,2) DEFAULT NULL,
  `is_extra` tinyint(1) NOT NULL DEFAULT '0',
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`company_price_list_billing_category_id`),
  KEY `fk_company_price_billing_category_list_header` (`company_price_list_header_id`),
  KEY `fk_medical_billing_category_price_list` (`billing_category_id`),
  KEY `company_price_list_billing_category_doctor_specialty_id_foreign` (`doctor_specialty_id`),
  KEY `company_price_list_billing_category_doctor_id_foreign` (`doctor_id`),
  KEY `company_price_list_billing_category_location_id_foreign` (`location_id`),
  KEY `fk_company_price_list_billing_category_created_by` (`created_by`),
  KEY `fk_company_price_list_billing_category_updated_by` (`updated_by`),
  CONSTRAINT `company_price_list_billing_category_doctor_id_foreign` FOREIGN KEY (`doctor_id`) REFERENCES `doctor` (`doctor_id`) ON UPDATE CASCADE,
  CONSTRAINT `company_price_list_billing_category_doctor_specialty_id_foreign` FOREIGN KEY (`doctor_specialty_id`) REFERENCES `doctor_specialty` (`doctor_specialty_id`) ON UPDATE CASCADE,
  CONSTRAINT `company_price_list_billing_category_location_id_foreign` FOREIGN KEY (`location_id`) REFERENCES `location` (`location_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_company_price_billing_category_list_header` FOREIGN KEY (`company_price_list_header_id`) REFERENCES `company_price_list_header` (`company_price_list_header_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_company_price_list_billing_category_created_by` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_company_price_list_billing_category_updated_by` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_medical_billing_category_price_list` FOREIGN KEY (`billing_category_id`) REFERENCES `billing_category` (`billing_category_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `company_price_list_billing_category`
--


--
-- Table structure for table `company_price_list_header`
--

CREATE TABLE `company_price_list_header` (
  `company_price_list_header_id` int NOT NULL AUTO_INCREMENT,
  `price_list_name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
  `hospitalisation_days_per_month` int DEFAULT NULL COMMENT 'hospitalisation days per patient per month',
  `is_promotion` tinyint(1) NOT NULL DEFAULT '0',
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`company_price_list_header_id`),
  UNIQUE KEY `company_price_list_header_price_list_name_unique` (`price_list_name`),
  KEY `company_price_list_header_created_by_foreign` (`created_by`),
  KEY `company_price_list_header_updated_by_foreign` (`updated_by`),
  CONSTRAINT `company_price_list_header_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `company_price_list_header_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `company_price_list_header`
--


--
-- Table structure for table `company_price_list_medical_category`
--

CREATE TABLE `company_price_list_medical_category` (
  `company_price_list_medical_category_id` int NOT NULL AUTO_INCREMENT,
  `company_price_list_header_id` int NOT NULL,
  `medical_service_category_id` int NOT NULL,
  `location_id` int DEFAULT NULL,
  `discount` decimal(5,2) DEFAULT NULL,
  `patient_monthly_cost_limit` decimal(9,2) DEFAULT NULL,
  `company_monthly_cost_limit` decimal(9,2) DEFAULT NULL,
  `months_limit` int DEFAULT NULL,
  `hospitalisation_percent_coverage` decimal(5,2) DEFAULT NULL COMMENT 'Percentage covered by patient in hospitalisation',
  `ambulatory_percent_coverage` decimal(5,2) DEFAULT NULL COMMENT 'Percentage covered by ambulatory patient',
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`company_price_list_medical_category_id`),
  KEY `fk_company_price_medical_category_list_header` (`company_price_list_header_id`),
  KEY `fk_medical_service_category_price_list` (`medical_service_category_id`),
  KEY `company_price_list_medical_category_location_id_foreign` (`location_id`),
  KEY `fk_price_list_medical_category_created_by` (`created_by`),
  KEY `fk_price_list_medical_category_updated_by` (`updated_by`),
  CONSTRAINT `company_price_list_medical_category_location_id_foreign` FOREIGN KEY (`location_id`) REFERENCES `location` (`location_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_company_price_medical_category_list_header` FOREIGN KEY (`company_price_list_header_id`) REFERENCES `company_price_list_header` (`company_price_list_header_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_medical_service_category_price_list` FOREIGN KEY (`medical_service_category_id`) REFERENCES `medical_category` (`medical_category_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_price_list_medical_category_created_by` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_price_list_medical_category_updated_by` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `company_price_list_medical_category`
--


--
-- Table structure for table `company_price_list_medical_service`
--

CREATE TABLE `company_price_list_medical_service` (
  `company_medical_service_price_list_id` int NOT NULL AUTO_INCREMENT,
  `company_price_list_header_id` int NOT NULL,
  `medical_service_id` int NOT NULL,
  `location_id` int DEFAULT NULL,
  `preferential_price` decimal(9,2) DEFAULT NULL,
  `discount` decimal(5,2) DEFAULT NULL,
  `is_extra` tinyint(1) DEFAULT NULL COMMENT '0=include, 1=extra',
  `hospitalisation_percent_coverage` decimal(5,2) DEFAULT NULL COMMENT 'Percentage covered by patient in hospitalisation',
  `ambulatory_percent_coverage` decimal(5,2) DEFAULT NULL COMMENT 'Percentage covered by ambulatory patient',
  `start_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `end_date` timestamp NULL DEFAULT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`company_medical_service_price_list_id`),
  KEY `fk_company_price_service_list_header` (`company_price_list_header_id`),
  KEY `fk_medical_service_price_list` (`medical_service_id`),
  KEY `company_price_list_medical_service_location_id_foreign` (`location_id`),
  KEY `company_price_list_medical_service_created_by_foreign` (`created_by`),
  KEY `company_price_list_medical_service_updated_by_foreign` (`updated_by`),
  CONSTRAINT `company_price_list_medical_service_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `company_price_list_medical_service_location_id_foreign` FOREIGN KEY (`location_id`) REFERENCES `location` (`location_id`) ON UPDATE CASCADE,
  CONSTRAINT `company_price_list_medical_service_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_company_price_service_list_header` FOREIGN KEY (`company_price_list_header_id`) REFERENCES `company_price_list_header` (`company_price_list_header_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_medical_service_price_list` FOREIGN KEY (`medical_service_id`) REFERENCES `medical_service` (`medical_service_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `company_price_list_medical_service`
--


--
-- Table structure for table `company_price_list_medical_service_group`
--

CREATE TABLE `company_price_list_medical_service_group` (
  `company_price_list_medical_service_group_id` int NOT NULL AUTO_INCREMENT,
  `company_price_list_header_id` int NOT NULL,
  `company_medical_service_group_id` int DEFAULT NULL,
  `discount` decimal(5,2) DEFAULT NULL,
  `company_monthly_amount_limit` decimal(9,2) DEFAULT NULL,
  `created_by` int DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`company_price_list_medical_service_group_id`),
  KEY `fk_c_price_list_med_serv_group_header` (`company_price_list_header_id`),
  KEY `fk_c_price_list_med_serv_group_group` (`company_medical_service_group_id`),
  KEY `fk_c_price_list_med_serv_group_created_by` (`created_by`),
  KEY `fk_c_price_list_med_serv_group_updated_by` (`updated_by`),
  CONSTRAINT `fk_c_price_list_med_serv_group_created_by` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_c_price_list_med_serv_group_group` FOREIGN KEY (`company_medical_service_group_id`) REFERENCES `company_medical_service_group` (`company_medical_service_group_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_c_price_list_med_serv_group_header` FOREIGN KEY (`company_price_list_header_id`) REFERENCES `company_price_list_header` (`company_price_list_header_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_c_price_list_med_serv_group_updated_by` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `company_price_list_medical_service_group`
--


--
-- Table structure for table `company_type`
--

CREATE TABLE `company_type` (
  `company_type_id` int NOT NULL AUTO_INCREMENT,
  `company_type_name` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`company_type_id`),
  UNIQUE KEY `company_type_company_type_name_unique` (`company_type_name`),
  KEY `fk_company_type_created_by` (`created_by`),
  KEY `fk_company_type_updated_by` (`updated_by`),
  CONSTRAINT `fk_company_type_created_by` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_company_type_updated_by` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `company_type`
--


--
-- Table structure for table `config_parameters`
--

CREATE TABLE `config_parameters` (
  `config_id` int NOT NULL AUTO_INCREMENT,
  `config_param` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `config_value` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `config_type` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`config_id`)
) ENGINE=InnoDB AUTO_INCREMENT=113 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `config_parameters`
--

INSERT INTO `config_parameters` VALUES (1,'auto_logout_time','12000','Waiting time to automatically logout users after inactivity','INT'),(2,'appt_status_appointment_given','1','Primary key of appointment status when appointment is created','INT'),(3,'appt_status_reminder_sent','2','Primary key of appointment status when reminder has been sent manually','INT'),(4,'appt_status_no_show_status','7','Primary key of appointment status for no show','INT'),(5,'appt_status_patient_arrived','4','Primary key of appointment status when patient arrived in clinic','INT'),(6,'appt_status_patient_confirmed_reminder','3','Primary key of appointment status when patient confirmed reminder','INT'),(7,'appt_status_patient_seen_and_left','6','Primary key of appointment status when patient saw the doctor and left','INT'),(8,'appt_status_patient_with_doctor','5','Primary key of appointment status when patient seen by doctor','INT'),(9,'category_consumable','139','Primary key of medical category consummable','INT'),(10,'category_drug','25','Primary key of medical category drug','INT'),(11,'category_hospit','338','Primary key of medical category hospitalisation','INT'),(12,'category_imagery','3','Primary key of medical category imagery','INT'),(13,'category_injectable','137','Primary key of medical category injectable','INT'),(14,'category_laboratory','1','Primary key of medical category laboratory','INT'),(15,'category_pharmacy','6','Primary key of medical category pharmacy','INT'),(16,'category_surgery','4','Primary key of medical category surgery','INT'),(17,'category_vaccine','41','Primary key of medical category vaccine','INT'),(18,'company_city','Lubumbashi','Owner\'s city','TEXT'),(19,'company_default_currency','USD','Owner\'s default currency','TEXT'),(20,'company_email','info@cmd.cd','Owner\'s main email appearing on messages','TEXT'),(21,'company_footer_bill','<p>ID national 01-822-N71676A. RCMM 13-B-OO15</p><p>&nbsp; &nbsp; NIF: A1301638W</p>','Owner\'s footer for bill','HTML'),(22,'company_footer_document','Immeuble Infinity 1034 <br> Avenue Kilela Balanda Blv 30 Juin <br>Centre Médical Diamant Lubumbashi','Owner\'s footer for document','HTML'),(23,'company_footer_email_fr','<div style=\"float:left; padding:5px;\">\n                                                <span>--</span> \n                                                <br>\n                                                <span style=\"font-family:Arial,sans-serif;font-size:9.5pt\">\n                                                    Centre Médical Diamant S.A.R.L.\n                                                </span>\n                                                <p style=\"margin-bottom:0.0001pt;background-position:initial;background-repeat:initial\">\n                                                    <span lang=\"FR-CA\" style=\"font-size:9.5pt;font-family:Arial,sans-serif;\">\n                                                        <i>\n                                                            <span style=\"color:rgb(192,0,0)\">\n                                                                <b>\n                                                                    :location_name: \n                                                                </b>\n                                                            </span>\n                                                            <span>\n                                                                <a href=\":location_map\" target=\"_blank\">\n                                                                    :location_address\n                                                                </a>\n                                                            </span>\n                                                        </i>\n                                                    </span>\n                                                </p>\n                                                <p lang=\"FR-CA\" style=\"font-size:9.5pt;font-family:Arial,sans-serif\">\n                                                    <span>\n                                                        <a href=\"mailto::location_email\" target=\"_blank\">\n                                                            :location_email\n                                                        </a>\n                                                        &nbsp; &nbsp; | &nbsp; &nbsp;\n                                                        <a href=\":website\" target=\"_blank\">\n                                                            :website\n                                                        </a>\n                                                        &nbsp; &nbsp; | &nbsp; &nbsp;\n                                                        <a href=\":facebook_link\" target=\"_blank\">\n                                                            <img src=\"https://cmd.cd/wp-content/uploads/2020/08/facebook.png\" alt=\"facebook\">\n                                                            Suivez-nous sur Facebook\n                                                        </a>\n                                                        &nbsp; &nbsp; | &nbsp; &nbsp;\n                                                        <a href=\"https://wa.me/:whatsapp_number\">\n                                                            <img src=\"https://cmd.cd/wp-content/uploads/2020/08/whatsapp_icon_04.png\" alt=\"whatsapp\">\n                                                            :whatsapp_number\n                                                        </a>\n                                                    </span>\n                                                </p>\n                                                <p style=\"color:rgb(255,255,255);font-size:12px;margin:8pt;line-height:15px;font-family:Calibri,sans-serif\">\n                                                    <span lang=\"FR-CA\">\n                                                        <b>\n                                                            <i>\n                                                                <font color=\"#990000\">\n                                                                    STOP COVID-19\n                                                                </font>\n                                                                <font color=\"#073763\">\n                                                                    : Dépistons-nous pour limiter la propagation du coronavirus.\n                                                                </font>\n                                                            </i>\n                                                        </b>\n                                                    </span>\n                                                </p>\n                                                <p style=\"margin:8pt;line-height:15px;font-family:Calibri,sans-serif;color:rgb(255,255,255);font-size:12px;\">\n                                                    <span lang=\"FR-CA\">\n                                                        <i>\n                                                            <font color=\"#073763\">\n                                                                Votre santé nous tient à cœur et nous voudrions vous informer que notre centre médical développe en continu les méthodes permettant l’optimisation de la prise en charge de nos patients et la lutte contre la propagation du coronavirus en vous offrant les soins à domicile et les consultations à distance.\n                                                                <br>\n                                                                <br>\n                                                                Nos équipes respectent scrupuleusement toutes les mesures d’asepsie en vue de vous garantir un cadre hautement hygiénique et sécurisé lors de vos visites médicales et séjour en hospitalisation dans nos sites.\n                                                                <br>\n                                                                <br>\n                                                                Nous vous invitons à nous joindre par WhatsApp au\n                                                                <b>\n                                                                    <a href=\"tel::whatsapp_number\">\n                                                                        :whatsapp_number\n                                                                    </a>\n                                                                </b>\n                                                                ou sur \n                                                                    <a href=\"mailto::location_email\" target=\"_blank\">\n                                                                    :location_email\n                                                                    </a>\n                                                                pour la prise de rendez-vous ou toute autre précisions.\n                                                            </font>\n                                                        </i>\n                                                    </span>\n                                                </p>\n                                                <p style=\"color:rgb(80,0,80);margin-bottom:0.0001pt;background-position:initial;background-repeat:initial\">\n                                                    <b style=\"color:rgb(34,34,34)\">\n                                                        <i>\n                                                            <span lang=\"FR-CA\" style=\"font-family:Arial,sans-serif;color:rgb(0,32,96)\">\n                                                                URGENCES | MATERNITÉ | NÉONATOLOGIE | CHIRURGIE | ENDOSCOPIE | DENTISTERIE | OPTIQUE | LABO &amp; IMAGERIE 24H\n                                                            </span>\n                                                        </i>\n                                                    </b>\n                                                </p>\n                                        </div>','Owner\'s footer for french email','HTML'),(24,'company_footer_email_en','<div style=\"float:left; padding:5px;\">\n                                                <span>--</span>\n                                                <br>\n                                                <span style=\"font-family:Arial,sans-serif;font-size:9.5pt\">\n                                                    Centre Médical Diamant S.A.R.L.\n                                                </span>\n                                                <p style=\"margin-bottom:0.0001pt;background-position:initial;background-repeat:initial\">\n                                                    <span lang=\"FR-CA\" style=\"font-size:9.5pt;font-family:Arial,sans-serif;\">\n                                                        <i>\n                                                            <span style=\"color:rgb(192,0,0)\">\n                                                                <b>\n                                                                    :location_name: \n                                                                </b>\n                                                            </span>\n                                                            <span>\n                                                                <a href=\":location_map\" target=\"_blank\">\n                                                                    :location_address\n                                                                </a>\n                                                            </span>\n                                                        </i>\n                                                    </span>\n                                                </p>\n                                                <p lang=\"FR-CA\" style=\"font-size:9.5pt;font-family:Arial,sans-serif\">\n                                                    <span>\n                                                        <a href=\"mailto::location_email\" target=\"_blank\">\n                                                            :location_email\n                                                        </a>\n                                                        &nbsp; &nbsp; | &nbsp; &nbsp;\n                                                        <a href=\":website\" target=\"_blank\">\n                                                            :website\n                                                        </a>\n                                                        &nbsp; &nbsp; | &nbsp; &nbsp;\n                                                        <a href=\":facebook_link\" target=\"_blank\">\n                                                            <img src=\"https://cmd.cd/wp-content/uploads/2020/08/facebook.png\" alt=\"facebook\">\n                                                            Follow us on Facebook\n                                                        </a>\n                                                        &nbsp; &nbsp; | &nbsp; &nbsp;\n                                                        <a href=\"https://wa.me/:whatsapp_number\">\n                                                            <img src=\"https://cmd.cd/wp-content/uploads/2020/08/whatsapp_icon_04.png\" alt=\"whatsapp\">\n                                                            :whatsapp_number\n                                                        </a>\n                                                    </span>\n                                                </p>\n                                                <p style=\"color:rgb(255,255,255);font-size:12px;margin:8pt;line-height:15px;font-family:Calibri,sans-serif\">\n                                                    <span lang=\"FR-CA\">\n                                                        <b>\n                                                            <i>\n                                                                <font color=\"#990000\">\n                                                                    STOP COVID-19\n                                                                </font>\n                                                                <font color=\"#073763\">\n                                                                    : Lets get tested to limit the spread of the coronavirus.\n                                                                </font>\n                                                            </i>\n                                                        </b>\n                                                    </span>\n                                                </p>\n                                                <p style=\"margin:8pt;line-height:15px;font-family:Calibri,sans-serif;color:rgb(255,255,255);font-size:12px;\">\n                                                    <span lang=\"FR-CA\">\n                                                        <i>\n                                                            <font color=\"#073763\">\n                                                                Your health is important to us and we would like to inform you that our medical center is continuously developing methods to optimize our patient and our fight against the spread of the coronavirus by offering you home care and consultations at distance.\n                                                                <br>\n                                                                <br>\n                                                                Our teams scrupulously respect all aseptic measures in order to guarantee you a highly hygienic and secure environment during your medical visits and hospital stay.\n                                                                <br>\n                                                                <br>\n                                                                We invite you to join us by WhatsApp at\n                                                                <b>\n                                                                    <a href=\"tel::whatsapp_number\">\n                                                                        :whatsapp_number\n                                                                    </a>\n                                                                </b>\n                                                                or on\n                                                                <b>\n                                                                    <a href=\"mailto::location_email\" target=\"_blank\">\n                                                                    :location_email\n                                                                    </a>\n                                                                </b>\n                                                                to take an appointment or any other details.\n                                                            </font>\n                                                        </i>\n                                                    </span>\n                                                </p>\n                                                <p style=\"color:rgb(80,0,80);margin-bottom:0.0001pt;background-position:initial;background-repeat:initial\">\n                                                    <b style=\"color:rgb(34,34,34)\">\n                                                        <i>\n                                                            <span lang=\"FR-CA\" style=\"font-family:Arial,sans-serif;color:rgb(0,32,96)\">\n                                                                EMERGENCY | MATERNITY | NEONATOLOGY | SURGERY | ENDOSCOPY | DENTISTRY | OPTICS | LAB &amp; IMAGING 24H \n                                                            </span>\n                                                        </i>\n                                                    </b>\n                                                </p>\n                                        </div>','Owner\'s footer for english email','HTML'),(25,'company_id','1','Owner\'s own company','INT'),(26,'company_link_facebook','https://web.facebook.com/CMDLubum/','Owner\'s Facebook link','LINK'),(27,'company_link_linkedin','https://www.linkedin.com/company/centre-médical-diamant-lubumbashi','Owner\'s LinkedIn link','LINK'),(28,'company_link_twitter','https://twitter.com/cmdlubum','Owner\'s Twitter link','LINK'),(29,'company_link_youtube','https://www.youtube.com/user/CliniqueDiamant','Owner\'s Youtube link','LINK'),(30,'company_logo','/site_logo/lubumbashi-company_logo_1717422788-6895b2a4-9ab4-488a-abf9-3cd9bee9435a.jpg','Owner\'s logo','FILE'),(31,'company_name','CMDL','Owner\'s company_name for document','TEXT'),(32,'company_header_name','<span style=\"color:#101083\">Centre Médical</span><span style=\"color: #c13131;\">Diamant</span>','Owner\'s name for email and pdf\'s header','HTML'),(33,'company_web_portal','https://cmdl.cmd.cd:9082/#','Owner\'s web portal','LINK'),(34,'company_website','https://cmd.cd','Owner\'s website','LINK'),(35,'company_whatsapp_number','+243907777783','Owner\'s Whatsapp number','TEL'),(36,'default_expected_time_lab','4','Default expected time in hours for lab result for inpatients','INT'),(37,'default_expected_time_lab_hospit','2','Default expected time in hours for lab result for hospitalized patients','INT'),(38,'default_expected_time_imagery','4','Default expected time in hours for imagery for inpatients','INT'),(39,'default_expected_time_sample','4','Default expected time in hours for samples for inpatients','INT'),(40,'delay_lab_result_email','info@cmd.cd','Time (minutes) after which approved results are sent to the patient','INT'),(41,'medical_service_injectable_injection','24089','Primary key of injection medical_service for the \"injectable\" category','INT'),(42,'medical_service_lab_sample','16572','Primary key of \"prelevement\" (sample) medical_service','INT'),(43,'medical_service_lab_supplement','24843','Primary key of lab supplement medical_service','INT'),(44,'medical_service_vaccine_injection','613','Primary key of vaccine injection medical_service','INT'),(45,'note_category_medical_request','10','note_category_id of the note category \"Other\" of the patient file for medical request','INT'),(46,'note_category_document','2','note_category_id of the note category \"Other\" of the patient file for uploaded document','INT'),(47,'note_category_other','9','note_category_id of the note category \"Other\" of the patient file','INT'),(48,'pacs_external_link','','pacs external link','LINK'),(49,'pacs_internal_link','','pacs internal link','LINK'),(50,'price_coefficient','1.8','Factor to multiply buying price to set suggested selling price','INT'),(51,'private_company_id','390','Primary key of the private company','INT'),(52,'screen_welcome_text','','Welcome text showing in waiting room','HTML'),(53,'screen_fullscreen_text','','Full text showing in waiting room','HTML'),(54,'screen_scrolling_text','','Scrolling text showing in waiting room','HTML'),(55,'server_alias','Z','Letter to prepend to patient.dossier_id when creating a patient file','TEXT'),(56,'specialty_generalist','5','Primary key of generalist specialty in table doctor_specialty','INT'),(57,'specialty_nurse','-1','Primary key of nurse specialty in table doctor_specialty','INT'),(58,'company_map','https://goo.gl/maps/rLpHpVtmufu','Google Maps URL of the owner\'s company','VARCHAR'),(59,'company_address','1034 ave Kilela Balanda, Imm. Infinity, Lubumbashi, RDC','address of company.','VARCHAR'),(60,'note_category_note','6','note_category_id of the note category Note of the patient file','INT'),(61,'app_sms_sender_name','CM Diamant','application sms sender name','TEXT'),(62,'allergy_type_medication','2','allergy type for medication','INT'),(63,'billing_category_refer_friend','72','Primary key of billing category refer friend','INT'),(64,'billing_category_hospitalisation','39','Primary key of billing category hospitalisation','INT'),(65,'billing_category_surgery','19','Primary key of billing category hospitalisation','INT'),(66,'company_email_daily_report','jp@cmd.cd','The email where sent the daily report','EMAIL'),(67,'note_category_lab','7','note_category_id of the note category \"Laboratory\" of the patient file','INT'),(68,'note_category_imagery','8','note_category_id of the note category \"Imagery\" of the patient file','INT'),(69,'note_category_imagery_template','1','note_category_id of the note category \"Imagery Protocol\" of the patient file for protocol\'s template','INT'),(70,'sample_time_duration','4','sample default duration in hours','INT'),(71,'time_to_notify_lab_manager','24','lab manager expected time change notification interval in hours','INT'),(72,'time_to_send_notification','5','expected time notification interval to patient in minute','INT'),(73,'default_time_to_send_approve_result','30','default time to send approve result in minute','INT'),(74,'role_lab_manager','7','Lab manager role id','INT'),(75,'nurse_telegram_channel_id','-1001608900427','Telegram channel ID for nurse','INT'),(76,'treatment_plan_type_consultation','1','Treatment plan type Consultation','INT'),(77,'treatment_plan_type_request','2','Treatment plan type request','INT'),(78,'treatment_plan_status_pending','0','Treatment Plan status pending','INT'),(79,'treatment_plan_status_done','1','Treatment Plan status done','INT'),(80,'category_speciality','12','Primary key of medical category specialty','INT'),(81,'role_doctor','4','Primary key of doctor\'s role in table role','INT'),(82,'role_nurse','5','Primary key of nurse\'s role in table role','INT'),(83,'role_secretary','3','Primary key of secretary\'s role in table role','INT'),(84,'convention_company_type_id','2','Primary key of conventions\'s company type','INT'),(85,'category_optical_center','11','Primary key of medical category centre_optique','INT'),(86,'authorised_signature_name','CMD','Authorised signature for documents','INT'),(87,'company_pdf_header','\n                <table style=\'width: 100% !important; border: none !important; table-layout:fixed !important;\'>\n    <tr>\n        <td style=\'width: 33.33% !important;\' align=\'right\'>\n            <div style=\'display: flex; float: right; justify-content: end; margin-top: 15px;\'>\n                <img src=\'{{logo}}\'\n                     style=\'display: block; width: 100%; height: inherit;\'\n                     alt=\'\' width=\'100%\'>\n            </div>\n        </td>\n        <td style=\'width: 66.67% !important; padding: 8px;\' align=\'left\'>\n            <div>\n                <table style=\'width: 100%; color: #002060; font-family:poppins; font-weight:bold; border-collapse: collapse;\'>\n                    <tr style=\'border-bottom: 1px solid black;\'>\n                        <td style=\'padding: 5px;\'>CMD Lubumbashi</td>\n                        <td style=\'padding: 5px;\'>\n                            <a href=\'mailto:rdv.l@cmd.cd\' style=\'text-decoration:none; color: inherit;\'>\n                                RDV.L@CMD.CD\n                            </a>\n                        </td>\n                        <td style=\'padding: 5px;\'>\n                            <a href=\'https://wa.me/+243907777780\' style=\'text-decoration:none; color: inherit;\'>\n                                <img src=\'https://cmd.cd/wp-content/uploads/2020/08/whatsapp_icon_04.png\' width=\'17\'\n                                     alt=\'\'>\n                                +243 (0)90 777 77 80\n                            </a>\n                        </td>\n                    </tr>\n                    <tr>\n                        <td style=\'padding: 5px;\'>CMD Lubumbashi</td>\n                        <td style=\'padding: 5px;\'>\n                            <a href=\'mailto:rdv.l@cmd.cd\' style=\'text-decoration:none; color: inherit;\'>\n                                RDV.L@CMD.CD\n                            </a>\n                        </td>\n                        <td style=\'padding: 5px;\'>\n                            <a href=\'https://wa.me/+243907777783\' style=\'text-decoration:none; color: inherit;\'>\n                                <img src=\'https://cmd.cd/wp-content/uploads/2020/08/whatsapp_icon_04.png\' width=\'17\'\n                                     alt=\'\'>\n                                +243 (0)90 777 77 83\n                            </a>\n                        </td>\n                    </tr>\n                    <tr>\n                        <td colspan=\'3\'\n                            style=\'background:#002060; border-radius:5px; color:#fff; text-align:center; padding:2px\'>\n                            <a href=\'https://cmd.cd\' style=\'text-decoration:none; color: inherit;\'>\n                                WWW.CMD.CD\n                            </a>\n                        </td>\n                    </tr>\n                </table>\n            </div>\n        </td>\n    </tr>\n</table>','header of pdf file','HTML'),(88,'company_pdf_footer','\n                    <div style=\'width: 100%; border-top: 1px solid black; padding-top:5px;\'>\n                        <table\n                            style=\'width: 100%; color: #002060; font-family:poppins; border-collapse: collapse; border-spacing: 30px; text-align:center; font-size:12px\'>\n                            <hr>\n                            <tr>\n                                <td style=\'border-right: 1px solid black;\'>\n                                    <div style=\'font-weight:bold;\'>CMD GOMBE</div>\n                                    <div style=\'color:black;\'>Imm. Future Tower 3642 Boul.30 juin</div>\n                                </td>\n                                <td style=\'border-right: 1px solid black;\'>\n                                    <div style=\'font-weight:bold;\'>CMD BANDAL</div>\n                                    <div style=\'color:black;\'>Imm. Kin Marché 8811 Ave. Kasa Vubu</div>\n                                </td>\n                                <td>\n                                    <div style=\'font-weight:bold;\'>CMD LUBUMBASHI 1</div>\n                                    <div style=\'color:black;\'>1034 Avenue Kilela Balanda, Imm. Infinity</div>\n                                </td>\n                            </tr>\n                        \n                            <tr>\n                                <td style=\'border-right: 1px solid black;\'>\n                                    <div style=\'font-weight:bold;\'>CMD NGALIEMA</div>\n                                    <div style=\'color:black;\'>Imm. Il Mercato 2366 Av. Col. Mondjiba</div>\n                                </td>\n                                <td style=\'border-right: 1px solid black;\'>\n                                    <div style=\'font-weight:bold;\'>CMD LIMETE</div>\n                                    <div style=\'color:black;\'>Place comm. 374/27ème rue résidentielle</div>\n                                </td>\n                                <td>\n                                    <div style=\'font-weight:bold;\'>CMD LUBUMBASHI 2</div>\n                                    <div style=\'color:black;\'>753 Avenue Kilela Balanda</div>\n                                </td>\n                            </tr>\n                        </table>\n                    </div>\n                ','footer of pdf file','HTML'),(89,'medical_category_imagery_scanner','78','Primary key of medical category scanner for imagery request','INT'),(90,'medical_category_pregnancy_confirmation','[78,21]','Array of primary keys of medical category which need pregnancy confirmation','JSON'),(91,'telegram_channel_hospitalisation_audit_id','-1001608900427','Telegram channel ID for hospitalization audit: No room assigned','INT'),(92,'telegram_channel_observation_audit_id','-1001608900427','Telegram channel ID for observation audit: No room assigned','INT'),(93,'audit_patient_hosp_obs_req_tel_channel_id','-1001608900427','Telegram channel ID for audit patients in rooms that don\'t have the hospit/observation requests','INT'),(94,'audit_patient_obs_not_allowed_tel_channel_id','-1001608900427','Telegram channel ID for audit observations that are longer than allowed','INT'),(95,'lab_results_not_sent_on_time_tel_channel_id','-1001608900427','Telegram channel ID for lab results that are not sent on time','INT'),(96,'sample_wait_time_tel_channel_id','-1001608900427','Telegram channel ID for sample waiting time.','INT'),(97,'telegram_channel_lab_wait_time_result_sent_pa','-1001608900427','Telegram channel ID for lab waiting time','INT'),(98,'telegram_channel_wait_time_triage_id','-1001608900427','Telegram channel ID for wait time triage','INT'),(99,'category_observation','339','Medical category id for observation','INT'),(100,'number_of_days_lab_result_not_ready','2','Past date to check for lab results that are not sent to patient','INT'),(101,'number_of_days_sample_taken_to_home','5','Past date to check for sample that is taken home by patient','INT'),(102,'number_of_days_for_bacteriology_subcat','2','Past date to check for lab bacteriology subcategory','INT'),(103,'maximum_ready_time_lab_result','4','Maximum time for lab result ready in hour','INT'),(104,'maximum_time_sample_taken_to_home','12','Maximum time allowed to patient for sample taken to home in hour','INT'),(105,'maximum_timi_to_check_for_bacteriology_subcat','72','Maximum time to check for bacteriology sub category in hour','INT'),(106,'category_bacteriology','13','bacteriology category id','INT'),(107,'telegram_channel_audit_vitalsign_if_patient_is_hospitalized_id','-1001608900427','Audit vitalsign channel id','INT'),(108,'billing_category_hospitalisation_id','39','Billing category name for hospitalisation','TEXT'),(109,'external_doctor_id','23','External doctor id','INT'),(110,'default_doctor_percentage_pay','30','Default doctor percentage pay','INT'),(111,'medical_category_pregnancy_confirmation','[78,21]','Array of primary keys of medical category which need pregnancy confirmation','JSON'),(112,'specialist_medical_service_id','14067','Primary key of medical service requete specialiste','INT');

--
-- Table structure for table `country`
--

CREATE TABLE `country` (
  `country_id` int NOT NULL AUTO_INCREMENT,
  `country_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`country_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `country`
--


--
-- Table structure for table `currency_exchange_rate`
--

CREATE TABLE `currency_exchange_rate` (
  `currency_exchange_rate_id` int NOT NULL AUTO_INCREMENT,
  `from_currency` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL,
  `from_currency_amount` decimal(8,2) NOT NULL COMMENT 'the value of the amount from currency',
  `to_currency` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL,
  `rate` decimal(9,6) NOT NULL COMMENT 'Exchange rate amount',
  `from_date` timestamp NOT NULL,
  `to_date` datetime DEFAULT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`currency_exchange_rate_id`),
  KEY `fk_currency_exchange_created_by` (`created_by`),
  KEY `fk_currency_exchange_updated_by` (`updated_by`),
  CONSTRAINT `fk_currency_exchange_created_by` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_currency_exchange_updated_by` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Tracking of currency exchange rate';

--
-- Dumping data for table `currency_exchange_rate`
--


--
-- Table structure for table `department`
--

CREATE TABLE `department` (
  `department_id` int NOT NULL AUTO_INCREMENT,
  `supervisor_id` int DEFAULT NULL,
  `department_name` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`department_id`),
  UNIQUE KEY `department_name` (`department_name`),
  KEY `department_supervisor_id_foreign` (`supervisor_id`),
  KEY `department_created_by_foreign` (`created_by`),
  KEY `department_updated_by_foreign` (`updated_by`),
  CONSTRAINT `department_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `department_supervisor_id_foreign` FOREIGN KEY (`supervisor_id`) REFERENCES `employee` (`employee_id`) ON UPDATE CASCADE,
  CONSTRAINT `department_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `department`
--


--
-- Table structure for table `diagnostic`
--

CREATE TABLE `diagnostic` (
  `diagnostic_code_id` int NOT NULL AUTO_INCREMENT,
  `diagnostic_name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` text COLLATE utf8mb4_unicode_ci,
  `confirmed_by` int DEFAULT NULL,
  `confirmed_at` timestamp NULL DEFAULT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`diagnostic_code_id`),
  KEY `diagnostic_confirmed_by_foreign` (`confirmed_by`),
  KEY `diagnostic_created_by_foreign` (`created_by`),
  KEY `diagnostic_updated_by_foreign` (`updated_by`),
  CONSTRAINT `diagnostic_confirmed_by_foreign` FOREIGN KEY (`confirmed_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `diagnostic_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `diagnostic_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `diagnostic`
--


--
-- Table structure for table `direct_material_cost`
--

CREATE TABLE `direct_material_cost` (
  `material_cost_id` int NOT NULL AUTO_INCREMENT,
  `medical_service_id` int NOT NULL,
  `material_cost` decimal(9,2) NOT NULL COMMENT 'Material cost of a medical service',
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`material_cost_id`),
  UNIQUE KEY `direct_material_cost_medical_service_id_unique` (`medical_service_id`),
  KEY `direct_material_cost_created_by_foreign` (`created_by`),
  KEY `direct_material_cost_updated_by_foreign` (`updated_by`),
  CONSTRAINT `direct_material_cost_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `direct_material_cost_medical_service` FOREIGN KEY (`medical_service_id`) REFERENCES `medical_service` (`medical_service_id`) ON UPDATE CASCADE,
  CONSTRAINT `direct_material_cost_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='List of material costs for medical services';

--
-- Dumping data for table `direct_material_cost`
--


--
-- Table structure for table `discount`
--

CREATE TABLE `discount` (
  `discount_id` int NOT NULL AUTO_INCREMENT,
  `billing_category_id` int DEFAULT NULL,
  `medical_category_id` int DEFAULT NULL,
  `medical_service_id` int DEFAULT NULL,
  `percentage` int NOT NULL,
  `start_date` date NOT NULL,
  `end_date` date DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int NOT NULL,
  `hide` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`discount_id`),
  KEY `fk_discount_billing_category` (`billing_category_id`),
  KEY `fk_discount_medical_category` (`medical_category_id`),
  KEY `fk_discount_medical_service` (`medical_service_id`),
  KEY `fk_discount_created_by` (`created_by`),
  CONSTRAINT `fk_discount_billing_category` FOREIGN KEY (`billing_category_id`) REFERENCES `billing_category` (`billing_category_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_discount_created_by` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_discount_medical_category` FOREIGN KEY (`medical_category_id`) REFERENCES `medical_category` (`medical_category_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_discount_medical_service` FOREIGN KEY (`medical_service_id`) REFERENCES `medical_service` (`medical_service_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `discount`
--


--
-- Table structure for table `discount_on_group`
--

CREATE TABLE `discount_on_group` (
  `discount_on_group_id` int NOT NULL AUTO_INCREMENT,
  `discount_group_id` int NOT NULL,
  `discount_id` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int NOT NULL,
  `hide` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`discount_on_group_id`),
  KEY `fk_discount_on_group_created_by` (`created_by`),
  CONSTRAINT `fk_discount_on_group_created_by` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `discount_on_group`
--


--
-- Table structure for table `discount_patient_group`
--

CREATE TABLE `discount_patient_group` (
  `discount_patient_group_id` int NOT NULL AUTO_INCREMENT,
  `patient_id` int NOT NULL,
  `discount_group_id` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int NOT NULL,
  `hide` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`discount_patient_group_id`),
  KEY `fk_discount_patient_group_patient` (`patient_id`),
  KEY `fk_discount_patient_group_created_by` (`created_by`),
  CONSTRAINT `fk_discount_patient_group_created_by` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_discount_patient_group_patient` FOREIGN KEY (`patient_id`) REFERENCES `patient` (`patient_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `discount_patient_group`
--


--
-- Table structure for table `doctor`
--

CREATE TABLE `doctor` (
  `doctor_id` int NOT NULL AUTO_INCREMENT,
  `user_id` int NOT NULL,
  `person_id` int DEFAULT NULL,
  `specialty_id` int NOT NULL,
  `professional_id` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `doctor_shortname` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0=Internal, 1=External',
  `is_family` tinyint(1) NOT NULL DEFAULT '0',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`doctor_id`),
  KEY `doctor_user_id_foreign` (`user_id`),
  KEY `doctor_person_id_foreign` (`person_id`),
  KEY `doctor_specialty_id_foreign` (`specialty_id`),
  CONSTRAINT `doctor_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `person` (`person_id`) ON UPDATE CASCADE,
  CONSTRAINT `doctor_specialty_id_foreign` FOREIGN KEY (`specialty_id`) REFERENCES `doctor_specialty` (`doctor_specialty_id`) ON UPDATE CASCADE,
  CONSTRAINT `doctor_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `doctor`
--


--
-- Table structure for table `doctor_billing`
--

CREATE TABLE `doctor_billing` (
  `doctor_billing_id` int NOT NULL AUTO_INCREMENT,
  `doctor_id` int NOT NULL,
  `billing_category_id` int NOT NULL,
  `cost` decimal(9,2) DEFAULT NULL COMMENT 'Default consultation cost for a specific doctor',
  `duration` decimal(2,0) DEFAULT NULL COMMENT 'Consultation duration',
  `default` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Default category for specific doctor',
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`doctor_billing_id`),
  KEY `fk_doctor_billing_doctor` (`doctor_id`),
  KEY `fk_doctor_billing_category` (`billing_category_id`),
  KEY `fk_doctor_billing_created_by` (`created_by`),
  CONSTRAINT `fk_doctor_billing_category` FOREIGN KEY (`billing_category_id`) REFERENCES `billing_category` (`billing_category_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_doctor_billing_created_by` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_doctor_billing_doctor` FOREIGN KEY (`doctor_id`) REFERENCES `doctor` (`doctor_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='List of costs for each connsultation type per doctor';

--
-- Dumping data for table `doctor_billing`
--


--
-- Table structure for table `doctor_category_cost`
--

CREATE TABLE `doctor_category_cost` (
  `doctor_cat_cost_id` int NOT NULL AUTO_INCREMENT,
  `doctor_billing` int NOT NULL,
  `company_id` int DEFAULT NULL COMMENT 'Preferential price based on company_id. If NULL = for all company i.e., default price for this billing_category',
  `location_id` int DEFAULT NULL COMMENT 'Preferential price based on location_id. If NULL = for all location',
  `cost` decimal(7,2) DEFAULT '0.00' COMMENT 'Preferential price amount',
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `hide` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`doctor_cat_cost_id`),
  KEY `fk_doctor_category_cost_doctor_billing` (`doctor_billing`),
  KEY `fk_doctor_category_cost_company` (`company_id`),
  KEY `fk_doctor_category_cost_location` (`location_id`),
  KEY `fk_doctor_category_cost_created_by` (`created_by`),
  CONSTRAINT `fk_doctor_category_cost_company` FOREIGN KEY (`company_id`) REFERENCES `company` (`company_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_doctor_category_cost_created_by` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_doctor_category_cost_doctor_billing` FOREIGN KEY (`doctor_billing`) REFERENCES `doctor_billing` (`doctor_billing_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_doctor_category_cost_location` FOREIGN KEY (`location_id`) REFERENCES `location` (`location_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='List of preferential prices per company per doctors overiding values set in doctor_billing';

--
-- Dumping data for table `doctor_category_cost`
--


--
-- Table structure for table `doctor_family_patient`
--

CREATE TABLE `doctor_family_patient` (
  `doctor_family_patient_id` int NOT NULL AUTO_INCREMENT,
  `doctor_id` int NOT NULL,
  `patient_id` int NOT NULL,
  `hide` tinyint(1) NOT NULL DEFAULT '0',
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`doctor_family_patient_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `doctor_family_patient`
--


--
-- Table structure for table `doctor_favorite`
--

CREATE TABLE `doctor_favorite` (
  `doctor_favorite_id` int NOT NULL AUTO_INCREMENT,
  `doctor_id` int NOT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`doctor_favorite_id`),
  KEY `fk_doctor_favorite` (`doctor_id`),
  KEY `fk_doctor_favorite_created_by` (`created_by`),
  CONSTRAINT `fk_doctor_favorite` FOREIGN KEY (`doctor_id`) REFERENCES `doctor` (`doctor_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_doctor_favorite_created_by` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `doctor_favorite`
--


--
-- Table structure for table `doctor_note_template`
--

CREATE TABLE `doctor_note_template` (
  `template_id` int NOT NULL AUTO_INCREMENT,
  `title` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
  `free_text` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `note_category_id` int DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`template_id`),
  KEY `fk_doctor_note_template_type` (`note_category_id`),
  CONSTRAINT `fk_doctor_note_template_type` FOREIGN KEY (`note_category_id`) REFERENCES `note_category` (`note_category_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `doctor_note_template`
--


--
-- Table structure for table `doctor_percentage_pay`
--

CREATE TABLE `doctor_percentage_pay` (
  `doctor_percentage_pay` int NOT NULL AUTO_INCREMENT,
  `doctor_id` int NOT NULL,
  `billing_category_id` int DEFAULT NULL,
  `medical_category_id` int DEFAULT NULL,
  `amount` decimal(9,2) DEFAULT NULL COMMENT 'Amount given to the doctor',
  `percentage_pay` decimal(9,2) DEFAULT NULL COMMENT 'Percentage given to the doctor',
  `quantity` decimal(9,2) DEFAULT NULL,
  `consult_hr` decimal(5,2) DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_by` int NOT NULL,
  `updated_by` int DEFAULT NULL,
  `deleted_by` int DEFAULT NULL,
  PRIMARY KEY (`doctor_percentage_pay`),
  UNIQUE KEY `medical_category_pay_unique` (`doctor_id`,`medical_category_id`),
  UNIQUE KEY `medical_billing_pay_unique` (`doctor_id`,`billing_category_id`),
  KEY `fk_billing_category_pay` (`billing_category_id`),
  KEY `fk_medical_category_pay` (`medical_category_id`),
  KEY `doctor_percentage_pay_created_by_foreign` (`created_by`),
  KEY `doctor_percentage_pay_updated_by_foreign` (`updated_by`),
  KEY `doctor_percentage_pay_deleted_by_foreign` (`deleted_by`),
  CONSTRAINT `doctor_percentage_pay_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  CONSTRAINT `doctor_percentage_pay_deleted_by_foreign` FOREIGN KEY (`deleted_by`) REFERENCES `user` (`user_id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  CONSTRAINT `doctor_percentage_pay_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  CONSTRAINT `fk_billing_category_pay` FOREIGN KEY (`billing_category_id`) REFERENCES `billing_category` (`billing_category_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_doctor_pay` FOREIGN KEY (`doctor_id`) REFERENCES `doctor` (`doctor_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_medical_category_pay` FOREIGN KEY (`medical_category_id`) REFERENCES `medical_category` (`medical_category_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='List of percentage given to the doctor on either billing categories or medical services';

--
-- Dumping data for table `doctor_percentage_pay`
--


--
-- Table structure for table `doctor_specialty`
--

CREATE TABLE `doctor_specialty` (
  `doctor_specialty_id` int NOT NULL AUTO_INCREMENT,
  `specialty_name` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
  `shortname` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`doctor_specialty_id`),
  UNIQUE KEY `doctor_specialty_specialty_name_unique` (`specialty_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `doctor_specialty`
--


--
-- Table structure for table `doctor_specialty_filter`
--

CREATE TABLE `doctor_specialty_filter` (
  `doctor_specialty_filter_id` int NOT NULL AUTO_INCREMENT,
  `doctor_specialty_id` int NOT NULL,
  `config_order` int NOT NULL,
  PRIMARY KEY (`doctor_specialty_filter_id`),
  KEY `doctor_specialty_filter_doctor_specialty_id_foreign` (`doctor_specialty_id`),
  CONSTRAINT `doctor_specialty_filter_doctor_specialty_id_foreign` FOREIGN KEY (`doctor_specialty_id`) REFERENCES `doctor_specialty` (`doctor_specialty_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `doctor_specialty_filter`
--


--
-- Table structure for table `doctor_vacancy`
--

CREATE TABLE `doctor_vacancy` (
  `doctor_vacancy_id` int NOT NULL AUTO_INCREMENT,
  `doctor_id` int NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date DEFAULT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`doctor_vacancy_id`),
  KEY `fk_vacancy_for_doctor` (`doctor_id`),
  KEY `fk_vacancy_created_by_user` (`created_by`),
  CONSTRAINT `fk_vacancy_created_by_user` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_vacancy_for_doctor` FOREIGN KEY (`doctor_id`) REFERENCES `doctor` (`doctor_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `doctor_vacancy`
--


--
-- Table structure for table `email_template`
--

CREATE TABLE `email_template` (
  `email_template_id` int NOT NULL AUTO_INCREMENT,
  `template_email_name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `language` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
  `template` text COLLATE utf8mb4_unicode_ci,
  `type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`email_template_id`),
  UNIQUE KEY `email_template_template_email_name_language_unique` (`template_email_name`,`language`),
  KEY `email_template_created_by_foreign` (`created_by`),
  KEY `email_template_updated_by_foreign` (`updated_by`),
  CONSTRAINT `email_template_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `email_template_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `email_template`
--


--
-- Table structure for table `employee`
--

CREATE TABLE `employee` (
  `employee_id` int NOT NULL AUTO_INCREMENT,
  `person_id` int NOT NULL,
  `department_id` int NOT NULL,
  `title` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `salary` decimal(5,2) DEFAULT NULL,
  `account_number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `bank` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `remuneration_type` tinyint DEFAULT NULL COMMENT 'per act=1, per hour=2',
  `fingerprint` blob,
  `hired_at` date DEFAULT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`employee_id`),
  KEY `employee_person_id_foreign` (`person_id`),
  KEY `employee_department_id_foreign` (`department_id`),
  KEY `employee_created_by_foreign` (`created_by`),
  CONSTRAINT `employee_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `employee_department_id_foreign` FOREIGN KEY (`department_id`) REFERENCES `department` (`department_id`) ON UPDATE CASCADE,
  CONSTRAINT `employee_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `person` (`person_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `employee`
--


--
-- Table structure for table `employee_position`
--

CREATE TABLE `employee_position` (
  `employee_position_id` int NOT NULL AUTO_INCREMENT,
  `title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` text COLLATE utf8mb4_unicode_ci,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `hide` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`employee_position_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `employee_position`
--


--
-- Table structure for table `employee_vacancy`
--

CREATE TABLE `employee_vacancy` (
  `employee_vacancy_id` int NOT NULL AUTO_INCREMENT,
  `employee_id` int NOT NULL,
  `from_date` date DEFAULT NULL,
  `to_date` date DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int NOT NULL,
  PRIMARY KEY (`employee_vacancy_id`),
  KEY `fk_employee_vacancy` (`employee_id`),
  KEY `fk_vacancy_created_by` (`created_by`),
  CONSTRAINT `fk_employee_vacancy` FOREIGN KEY (`employee_id`) REFERENCES `employee` (`employee_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_vacancy_created_by` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `employee_vacancy`
--


--
-- Table structure for table `employee_working_day`
--

CREATE TABLE `employee_working_day` (
  `emp_working_day_id` int NOT NULL AUTO_INCREMENT,
  `location_id` int NOT NULL,
  `employee_id` int NOT NULL,
  `day_of_week` tinyint NOT NULL COMMENT '0 = Sunday, 1 = Monday, 2 = Tuesday, 3 = Wednesday, 4 = Thursday, 5 = Friday, 6 = Saturday',
  `start_time` time NOT NULL,
  `end_time` time NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_by` int NOT NULL,
  `updated_by` int DEFAULT NULL,
  PRIMARY KEY (`emp_working_day_id`),
  KEY `fk_employees_working_day_location` (`location_id`),
  KEY `fk_employees_working_day_employee` (`employee_id`),
  KEY `employee_working_day_created_by_foreign` (`created_by`),
  KEY `employee_working_day_updated_by_foreign` (`updated_by`),
  CONSTRAINT `employee_working_day_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `employee_working_day_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_employees_working_day_employee` FOREIGN KEY (`employee_id`) REFERENCES `employee` (`employee_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_employees_working_day_location` FOREIGN KEY (`location_id`) REFERENCES `location` (`location_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `employee_working_day`
--


--
-- Table structure for table `failed_jobs`
--

CREATE TABLE `failed_jobs` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `uuid` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `failed_jobs`
--


--
-- Table structure for table `form`
--

CREATE TABLE `form` (
  `form_id` int NOT NULL AUTO_INCREMENT,
  `visit_id` int NOT NULL,
  `type_id` int NOT NULL,
  `patient_id` int DEFAULT NULL,
  `to_doctor` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `data` text COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int NOT NULL,
  `hide` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`form_id`),
  KEY `fk_form_visit_id` (`visit_id`),
  KEY `fk_form_type_id` (`type_id`),
  KEY `fk_patient` (`patient_id`),
  KEY `fk_form_created_by` (`created_by`),
  CONSTRAINT `fk_form_created_by` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_form_type_id` FOREIGN KEY (`type_id`) REFERENCES `form_type` (`form_type_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_form_visit_id` FOREIGN KEY (`visit_id`) REFERENCES `visit` (`visit_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_patient` FOREIGN KEY (`patient_id`) REFERENCES `patient` (`patient_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `form`
--


--
-- Table structure for table `form_hosp`
--

CREATE TABLE `form_hosp` (
  `form_id` int NOT NULL AUTO_INCREMENT,
  `type_form` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'type of hosp form, ex: EXIT_TICKET, the key of hosp form exit ticket',
  `hospitalisation_id` int DEFAULT NULL,
  `patient_id` int NOT NULL,
  `type_id` int DEFAULT NULL,
  `data` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `locked` tinyint(1) NOT NULL DEFAULT '0',
  `locked_time` datetime DEFAULT NULL,
  `locked_by` int DEFAULT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `deleted_by` int DEFAULT NULL,
  `new_id` int DEFAULT NULL,
  PRIMARY KEY (`form_id`),
  KEY `form_hosp_hospitalisation_id_foreign` (`hospitalisation_id`),
  KEY `form_hosp_patient_id_foreign` (`patient_id`),
  KEY `form_hosp_type_id_foreign` (`type_id`),
  KEY `form_hosp_locked_by_foreign` (`locked_by`),
  KEY `fk_deleted_user_id` (`deleted_by`),
  KEY `fk_created_by_user_id` (`created_by`),
  KEY `fk_updated_by_user_id` (`updated_by`),
  CONSTRAINT `fk_created_by_user_id` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_deleted_user_id` FOREIGN KEY (`deleted_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_updated_by_user_id` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `form_hosp_hospitalisation_id_foreign` FOREIGN KEY (`hospitalisation_id`) REFERENCES `hospitalisation` (`hospitalisation_id`) ON UPDATE CASCADE,
  CONSTRAINT `form_hosp_locked_by_foreign` FOREIGN KEY (`locked_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `form_hosp_patient_id_foreign` FOREIGN KEY (`patient_id`) REFERENCES `patient` (`patient_id`) ON UPDATE CASCADE,
  CONSTRAINT `form_hosp_type_id_foreign` FOREIGN KEY (`type_id`) REFERENCES `form_type` (`form_type_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `form_hosp`
--


--
-- Table structure for table `form_type`
--

CREATE TABLE `form_type` (
  `form_type_id` int NOT NULL AUTO_INCREMENT,
  `form_name` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
  `form_label` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `form_type` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int NOT NULL,
  `hide` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`form_type_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `form_type`
--


--
-- Table structure for table `hosp_bed`
--

CREATE TABLE `hosp_bed` (
  `hosp_bed_id` int NOT NULL AUTO_INCREMENT,
  `hosp_room_id` int NOT NULL,
  `bed_name` varchar(15) COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0 = not occupied; 1 = occupied ',
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`hosp_bed_id`),
  KEY `hosp_bed_hosp_room_id_foreign` (`hosp_room_id`),
  KEY `hosp_bed_created_by_foreign` (`created_by`),
  KEY `hosp_bed_updated_by_foreign` (`updated_by`),
  CONSTRAINT `hosp_bed_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `hosp_bed_hosp_room_id_foreign` FOREIGN KEY (`hosp_room_id`) REFERENCES `hosp_room` (`hosp_room_id`) ON UPDATE CASCADE,
  CONSTRAINT `hosp_bed_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `hosp_bed`
--


--
-- Table structure for table `hosp_room`
--

CREATE TABLE `hosp_room` (
  `hosp_room_id` int NOT NULL AUTO_INCREMENT,
  `room_name` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL,
  `location_id` int NOT NULL,
  `room_status` tinyint NOT NULL DEFAULT '1' COMMENT '1=inPatient (hospitalisation normale), 2=observation, 3=USC, 4=ICU',
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`hosp_room_id`),
  KEY `hosp_room_location_id_foreign` (`location_id`),
  KEY `hosp_room_created_by_foreign` (`created_by`),
  KEY `hosp_room_updated_by_foreign` (`updated_by`),
  CONSTRAINT `hosp_room_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `hosp_room_location_id_foreign` FOREIGN KEY (`location_id`) REFERENCES `location` (`location_id`) ON UPDATE CASCADE,
  CONSTRAINT `hosp_room_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `hosp_room`
--


--
-- Table structure for table `hospit_delivery_and_recover`
--

CREATE TABLE `hospit_delivery_and_recover` (
  `hospit_delivery_and_recover_id` int NOT NULL AUTO_INCREMENT,
  `hospitalisation_id` int NOT NULL,
  `delivery_by` int NOT NULL,
  `doctor_recover_id` int NOT NULL,
  `delivery_note` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `recover_note` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `accepted` tinyint(1) NOT NULL DEFAULT '0',
  `accepted_at` timestamp NULL DEFAULT NULL,
  `hide` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`hospit_delivery_and_recover_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `hospit_delivery_and_recover`
--


--
-- Table structure for table `hospit_need`
--

CREATE TABLE `hospit_need` (
  `hospit_need_id` int NOT NULL AUTO_INCREMENT,
  `hospitalisation_id` int NOT NULL,
  `patient_need_id` int NOT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`hospit_need_id`),
  KEY `hospit_need_hospitalisation_id_foreign` (`hospitalisation_id`),
  KEY `hospit_need_patient_need_id_foreign` (`patient_need_id`),
  KEY `hospit_need_created_by_foreign` (`created_by`),
  CONSTRAINT `hospit_need_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `hospit_need_hospitalisation_id_foreign` FOREIGN KEY (`hospitalisation_id`) REFERENCES `hospitalisation` (`hospitalisation_id`) ON UPDATE CASCADE,
  CONSTRAINT `hospit_need_patient_need_id_foreign` FOREIGN KEY (`patient_need_id`) REFERENCES `patient_need` (`patient_need_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `hospit_need`
--


--
-- Table structure for table `hospitalisation`
--

CREATE TABLE `hospitalisation` (
  `hospitalisation_id` int NOT NULL AUTO_INCREMENT,
  `medical_service_request_id` int NOT NULL,
  `visit_id` int NOT NULL,
  `patient_id` int NOT NULL,
  `hosp_bed_id` int DEFAULT NULL,
  `type` smallint NOT NULL COMMENT '1=normal, 2=observation, 3=USC, 4=ICU, 5=intensive care',
  `estimated_out_date` date NOT NULL,
  `in_date` datetime NOT NULL,
  `out_date` datetime DEFAULT NULL,
  `diete` text COLLATE utf8mb4_unicode_ci,
  `doctor_id` int DEFAULT NULL,
  `supervisors` text COLLATE utf8mb4_unicode_ci COMMENT 'json data of supervisors for hospitalisation',
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`hospitalisation_id`),
  KEY `hospitalisation_medical_service_request_id_foreign` (`medical_service_request_id`),
  KEY `hospitalisation_visit_id_foreign` (`visit_id`),
  KEY `hospitalisation_patient_id_foreign` (`patient_id`),
  KEY `hospitalisation_hosp_bed_id_foreign` (`hosp_bed_id`),
  KEY `hospitalisation_doctor_id_foreign` (`doctor_id`),
  KEY `hospitalisation_created_by_foreign` (`created_by`),
  KEY `hospitalisation_updated_by_foreign` (`updated_by`),
  CONSTRAINT `hospitalisation_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `hospitalisation_doctor_id_foreign` FOREIGN KEY (`doctor_id`) REFERENCES `doctor` (`doctor_id`) ON UPDATE CASCADE,
  CONSTRAINT `hospitalisation_hosp_bed_id_foreign` FOREIGN KEY (`hosp_bed_id`) REFERENCES `hosp_bed` (`hosp_bed_id`) ON UPDATE CASCADE,
  CONSTRAINT `hospitalisation_medical_service_request_id_foreign` FOREIGN KEY (`medical_service_request_id`) REFERENCES `medical_service_request` (`medical_service_request_id`) ON UPDATE CASCADE,
  CONSTRAINT `hospitalisation_patient_id_foreign` FOREIGN KEY (`patient_id`) REFERENCES `patient` (`patient_id`) ON UPDATE CASCADE,
  CONSTRAINT `hospitalisation_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `hospitalisation_visit_id_foreign` FOREIGN KEY (`visit_id`) REFERENCES `visit` (`visit_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `hospitalisation`
--


--
-- Table structure for table `inventory`
--

CREATE TABLE `inventory` (
  `inventory_id` int NOT NULL AUTO_INCREMENT,
  `inventory_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `unit` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
  `unit_per_container` smallint NOT NULL COMMENT 'Used to calculate quantity to decrease in stock',
  `quantity_per_unit_container` smallint NOT NULL,
  `min_quantity` decimal(7,2) DEFAULT NULL COMMENT 'Minimal quantity for an item. NULL = none',
  `buffer` decimal(7,2) NOT NULL COMMENT 'Buffer quantity for an item, i.e. quantity required between orders.',
  `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT 'For temporary items not yet received: 0 = pending confirmation, 1 = confirmed',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int NOT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`inventory_id`),
  KEY `fk_inventory_created_by` (`created_by`),
  CONSTRAINT `fk_inventory_created_by` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='List of inventory item type and their param';

--
-- Dumping data for table `inventory`
--


--
-- Table structure for table `inventory_batch`
--

CREATE TABLE `inventory_batch` (
  `inventory_batch_id` int NOT NULL AUTO_INCREMENT,
  `inventory_id` int NOT NULL,
  `location_id` int NOT NULL,
  `qty` decimal(7,2) NOT NULL COMMENT 'Current quantity',
  `lot_number` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `barcode` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `inventory_order_item_id` int DEFAULT NULL,
  `expiry_date` date DEFAULT NULL,
  `purchase_price` decimal(7,2) NOT NULL,
  `received_at` datetime DEFAULT NULL COMMENT 'When the batch has been received',
  `supplier_id` int DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int NOT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`inventory_batch_id`),
  KEY `fk_inventory_batch_inventory_id` (`inventory_id`),
  KEY `fk_inventory_batch_location_id` (`location_id`),
  KEY `fk_batch_inventory_order_item_id` (`inventory_order_item_id`),
  KEY `fk_inventory_batch_supplier_id` (`supplier_id`),
  KEY `fk_inventory_batch_created_by` (`created_by`),
  CONSTRAINT `fk_batch_inventory_order_item_id` FOREIGN KEY (`inventory_order_item_id`) REFERENCES `inventory_order_item` (`inventory_order_item_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_inventory_batch_created_by` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_inventory_batch_inventory_id` FOREIGN KEY (`inventory_id`) REFERENCES `inventory` (`inventory_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_inventory_batch_location_id` FOREIGN KEY (`location_id`) REFERENCES `location` (`location_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_inventory_batch_supplier_id` FOREIGN KEY (`supplier_id`) REFERENCES `supplier` (`supplier_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='List of inventory item batches';

--
-- Dumping data for table `inventory_batch`
--


--
-- Table structure for table `inventory_batch_freeze`
--

CREATE TABLE `inventory_batch_freeze` (
  `inventory_batch_freeze_id` int NOT NULL AUTO_INCREMENT,
  `inventory_batch_id` int NOT NULL,
  `quantity_freezed` decimal(7,2) NOT NULL,
  `reason` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `comments` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int NOT NULL,
  PRIMARY KEY (`inventory_batch_freeze_id`),
  KEY `fk_batch_freeze` (`inventory_batch_id`),
  KEY `fk_freezed_by` (`created_by`),
  CONSTRAINT `fk_batch_freeze` FOREIGN KEY (`inventory_batch_id`) REFERENCES `inventory_batch` (`inventory_batch_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_freezed_by` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inventory_batch_freeze`
--


--
-- Table structure for table `inventory_decreased`
--

CREATE TABLE `inventory_decreased` (
  `inventory_decrease_id` int NOT NULL AUTO_INCREMENT,
  `inventory_batch_id` int NOT NULL,
  `medical_service_request_id` int NOT NULL,
  `inventory_mapping_id` int DEFAULT NULL,
  `quantity_to_fix` tinyint(1) DEFAULT '0' COMMENT '0 = nothing to fix (normal scenario), 1 = to fix',
  `to_process` int DEFAULT NULL COMMENT 'Task ID if any',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`inventory_decrease_id`),
  UNIQUE KEY `inventory_decreased_medical_service_request_id_unique` (`medical_service_request_id`),
  KEY `fk_reagent_decreased_2` (`inventory_batch_id`),
  KEY `fk_reagent_decreased_3` (`inventory_mapping_id`),
  CONSTRAINT `fk_reagent_decreased_1` FOREIGN KEY (`medical_service_request_id`) REFERENCES `medical_service_request` (`medical_service_request_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_reagent_decreased_2` FOREIGN KEY (`inventory_batch_id`) REFERENCES `inventory_batch` (`inventory_batch_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_reagent_decreased_3` FOREIGN KEY (`inventory_mapping_id`) REFERENCES `inventory_mapping` (`inventory_mapping_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='List of inventory decrementations';

--
-- Dumping data for table `inventory_decreased`
--


--
-- Table structure for table `inventory_mapping`
--

CREATE TABLE `inventory_mapping` (
  `inventory_mapping_id` int NOT NULL AUTO_INCREMENT,
  `medical_category_id` int NOT NULL,
  `location_from` int NOT NULL,
  `location_to` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int NOT NULL,
  `hide` int NOT NULL DEFAULT '0',
  PRIMARY KEY (`inventory_mapping_id`),
  KEY `fk_inventory_mapping_1` (`medical_category_id`),
  KEY `fk_inventory_mapping_2` (`location_from`),
  KEY `fk_inventory_mapping_3` (`location_to`),
  KEY `fk_inventory_mapping_created_by` (`created_by`),
  CONSTRAINT `fk_inventory_mapping_1` FOREIGN KEY (`medical_category_id`) REFERENCES `medical_category` (`medical_category_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_inventory_mapping_2` FOREIGN KEY (`location_from`) REFERENCES `location` (`location_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_inventory_mapping_3` FOREIGN KEY (`location_to`) REFERENCES `location` (`location_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_inventory_mapping_created_by` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inventory_mapping`
--


--
-- Table structure for table `inventory_not_decreased`
--

CREATE TABLE `inventory_not_decreased` (
  `inventory_not_decreased_id` int NOT NULL AUTO_INCREMENT,
  `medical_service_request_id` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`inventory_not_decreased_id`),
  UNIQUE KEY `inventory_not_decreased_medical_service_request_id_unique` (`medical_service_request_id`),
  CONSTRAINT `fk_reagent_not_decreased` FOREIGN KEY (`medical_service_request_id`) REFERENCES `medical_service_request` (`medical_service_request_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inventory_not_decreased`
--


--
-- Table structure for table `inventory_order`
--

CREATE TABLE `inventory_order` (
  `inventory_order_id` int NOT NULL AUTO_INCREMENT,
  `supplier_id` int NOT NULL,
  `order_number` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `order_reference` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `excepted_time` datetime DEFAULT NULL COMMENT 'Expected date of when the order will arrive',
  `status` tinyint NOT NULL DEFAULT '0' COMMENT '0 = pending (not yet sent to supplier), 1 = complete (order closed), 2 = sent to supplier (order in progress), 3 = canceled (order closed)',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int NOT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`inventory_order_id`),
  KEY `fk_inventory_order_supplier_id` (`supplier_id`),
  KEY `fk_order_created_by` (`created_by`),
  CONSTRAINT `fk_inventory_order_supplier_id` FOREIGN KEY (`supplier_id`) REFERENCES `supplier` (`supplier_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_order_created_by` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='List of inventory orders related to suppliers';

--
-- Dumping data for table `inventory_order`
--


--
-- Table structure for table `inventory_order_history`
--

CREATE TABLE `inventory_order_history` (
  `inventory_order_history_id` int NOT NULL AUTO_INCREMENT,
  `expected` timestamp NULL DEFAULT NULL,
  `inventory_order_id` int NOT NULL,
  `comments` varchar(500) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`inventory_order_history_id`),
  KEY `fk_inventory_order_history` (`inventory_order_id`),
  CONSTRAINT `fk_inventory_order_history` FOREIGN KEY (`inventory_order_id`) REFERENCES `inventory_order` (`inventory_order_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inventory_order_history`
--


--
-- Table structure for table `inventory_order_item`
--

CREATE TABLE `inventory_order_item` (
  `inventory_order_item_id` int NOT NULL AUTO_INCREMENT,
  `inventory_order_id` int NOT NULL,
  `inventory_item_id` int NOT NULL,
  `qty` smallint NOT NULL COMMENT 'Quantity ordered',
  `supplier_qty_ordered` int DEFAULT NULL COMMENT 'Quantity ordered from supplier',
  `ordered` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0=not ordered, 1=ordered',
  `received` tinyint NOT NULL DEFAULT '0' COMMENT '0 = pending (not yet received), 1 = received (item needs to be closed), 2 = canceled (item closed), 3 = closed (item closed), 4 = partially received (item pending)',
  `received_quantity` smallint DEFAULT NULL COMMENT 'Quantity received',
  `proformat_invoice_amount` decimal(7,2) DEFAULT NULL COMMENT 'Total of the pro forma sent to the supplier',
  `excepted_time` date NOT NULL COMMENT 'Expected date of when the item will arrived. NOT NULL = if different from the inventory_order.excepted_time',
  `expiry_date` date DEFAULT NULL COMMENT 'Supplier''s item expiry date',
  `qty_in_stock` smallint NOT NULL COMMENT 'Supplier qty in stock',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`inventory_order_item_id`),
  KEY `fk_inventory_order` (`inventory_order_id`),
  KEY `fk_item_ordered` (`inventory_item_id`),
  CONSTRAINT `fk_inventory_order` FOREIGN KEY (`inventory_order_id`) REFERENCES `inventory_order` (`inventory_order_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_item_ordered` FOREIGN KEY (`inventory_item_id`) REFERENCES `inventory` (`inventory_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='List of inventory items ordered for each order';

--
-- Dumping data for table `inventory_order_item`
--


--
-- Table structure for table `inventory_received`
--

CREATE TABLE `inventory_received` (
  `inventory_received_id` int NOT NULL AUTO_INCREMENT,
  `inventory_order_item_id` int DEFAULT NULL,
  `location_id` int NOT NULL,
  `qty` decimal(7,2) NOT NULL COMMENT 'quantity received',
  `lot_number` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `barcode` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `expiry_date` date DEFAULT NULL,
  `purchase_price` decimal(7,2) DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int NOT NULL,
  PRIMARY KEY (`inventory_received_id`),
  KEY `fk_inventory_received_order_item_id` (`inventory_order_item_id`),
  KEY `fk_inventory_received__location_id` (`location_id`),
  KEY `fk_inventory_received_created_by` (`created_by`),
  CONSTRAINT `fk_inventory_received__location_id` FOREIGN KEY (`location_id`) REFERENCES `location` (`location_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_inventory_received_created_by` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_inventory_received_order_item_id` FOREIGN KEY (`inventory_order_item_id`) REFERENCES `inventory_order_item` (`inventory_order_item_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inventory_received`
--


--
-- Table structure for table `inventory_transfer`
--

CREATE TABLE `inventory_transfer` (
  `inventory_transfert_id` int NOT NULL AUTO_INCREMENT,
  `from_location_id` int NOT NULL,
  `to_location_id` int NOT NULL,
  `inventory_batch_id` int NOT NULL,
  `qty` decimal(7,2) NOT NULL,
  `batch_transfer_number` varchar(2555) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int NOT NULL,
  PRIMARY KEY (`inventory_transfert_id`),
  KEY `fk_inventory_transfert_from` (`from_location_id`),
  KEY `fk_inventory_transfert_to` (`to_location_id`),
  KEY `fk_inventory_batch_transfer` (`inventory_batch_id`),
  KEY `fk_inventory_transfert_by` (`created_by`),
  CONSTRAINT `fk_inventory_batch_transfer` FOREIGN KEY (`inventory_batch_id`) REFERENCES `inventory_batch` (`inventory_batch_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_inventory_transfert_by` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_inventory_transfert_from` FOREIGN KEY (`from_location_id`) REFERENCES `location` (`location_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_inventory_transfert_to` FOREIGN KEY (`to_location_id`) REFERENCES `location` (`location_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inventory_transfer`
--


--
-- Table structure for table `inventory_unit`
--

CREATE TABLE `inventory_unit` (
  `unit_id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `hide` tinyint(1) NOT NULL DEFAULT '0',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`unit_id`),
  UNIQUE KEY `inventory_unit_name_unique` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inventory_unit`
--


--
-- Table structure for table `jobs`
--

CREATE TABLE `jobs` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `queue` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `attempts` tinyint unsigned NOT NULL,
  `reserved_at` int unsigned DEFAULT NULL,
  `available_at` int unsigned NOT NULL,
  `created_at` int unsigned NOT NULL,
  PRIMARY KEY (`id`),
  KEY `jobs_queue_index` (`queue`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `jobs`
--


--
-- Table structure for table `laboratory_units`
--

CREATE TABLE `laboratory_units` (
  `laboratory_unit_id` int NOT NULL AUTO_INCREMENT,
  `units` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` text COLLATE utf8mb4_unicode_ci,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`laboratory_unit_id`),
  UNIQUE KEY `laboratory_units_units_unique` (`units`),
  KEY `laboratory_units_created_by_foreign` (`created_by`),
  KEY `laboratory_units_updated_by_foreign` (`updated_by`),
  CONSTRAINT `laboratory_units_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `laboratory_units_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `laboratory_units`
--


--
-- Table structure for table `location`
--

CREATE TABLE `location` (
  `location_id` int NOT NULL AUTO_INCREMENT,
  `parent_loc_id` int DEFAULT NULL,
  `location_name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `address` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `phone` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `email` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `country` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `map` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Google Maps url',
  `cachet` mediumblob,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `hide` int DEFAULT NULL,
  PRIMARY KEY (`location_id`),
  UNIQUE KEY `location_parent_loc_id_location_name_unique` (`parent_loc_id`,`location_name`),
  CONSTRAINT `fk_locations_1` FOREIGN KEY (`parent_loc_id`) REFERENCES `location` (`location_id`) ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `location`
--

INSERT INTO `location` VALUES (1,NULL,'Delta Lubumbashi',NULL,NULL,NULL,NULL,NULL,NULL,1,'2024-07-15 22:00:00',NULL,NULL,NULL),(2,1,'Ambulatoire',NULL,NULL,NULL,NULL,NULL,NULL,1,'2024-07-15 22:00:00',NULL,NULL,NULL);

--
-- Table structure for table `location_daily_cash_close`
--

CREATE TABLE `location_daily_cash_close` (
  `daily_cash_close_id` int NOT NULL AUTO_INCREMENT,
  `location_id` int DEFAULT NULL COMMENT 'If null, all location',
  `monday_time` json DEFAULT NULL,
  `tuesday_time` json DEFAULT NULL,
  `wednesday_time` json DEFAULT NULL,
  `thursday_time` json DEFAULT NULL,
  `friday_time` json DEFAULT NULL,
  `saturday_time` json DEFAULT NULL,
  `sunday_time` json DEFAULT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`daily_cash_close_id`),
  KEY `fk_daily_cash_location` (`location_id`),
  KEY `fk_daily_cash_created_by` (`created_by`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `location_daily_cash_close`
--


--
-- Table structure for table `medical_category`
--

CREATE TABLE `medical_category` (
  `medical_category_id` int NOT NULL AUTO_INCREMENT,
  `parent_med_cat_id` int DEFAULT NULL,
  `medical_category_name` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
  `color` varchar(30) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`medical_category_id`),
  UNIQUE KEY `medical_category_parent_med_cat_id_medical_category_name_unique` (`parent_med_cat_id`,`medical_category_name`),
  KEY `medical_category_created_by_foreign` (`created_by`),
  KEY `medical_category_updated_by_foreign` (`updated_by`),
  CONSTRAINT `medical_category_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `medical_category_parent_med_cat_id_foreign` FOREIGN KEY (`parent_med_cat_id`) REFERENCES `medical_category` (`medical_category_id`) ON UPDATE CASCADE,
  CONSTRAINT `medical_category_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `medical_category`
--


--
-- Table structure for table `medical_category_location_mapping`
--

CREATE TABLE `medical_category_location_mapping` (
  `medical_category_location_mapping_id` int NOT NULL AUTO_INCREMENT,
  `medical_category_id` int NOT NULL,
  `location_from` int DEFAULT NULL,
  `location_to` int NOT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`medical_category_location_mapping_id`),
  KEY `medical_category_location_mapping_medical_category_id_foreign` (`medical_category_id`),
  KEY `medical_category_location_mapping_location_from_foreign` (`location_from`),
  KEY `medical_category_location_mapping_location_to_foreign` (`location_to`),
  KEY `medical_category_location_mapping_created_by_foreign` (`created_by`),
  KEY `medical_category_location_mapping_updated_by_foreign` (`updated_by`),
  CONSTRAINT `medical_category_location_mapping_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `medical_category_location_mapping_location_from_foreign` FOREIGN KEY (`location_from`) REFERENCES `location` (`location_id`) ON UPDATE CASCADE,
  CONSTRAINT `medical_category_location_mapping_location_to_foreign` FOREIGN KEY (`location_to`) REFERENCES `location` (`location_id`) ON UPDATE CASCADE,
  CONSTRAINT `medical_category_location_mapping_medical_category_id_foreign` FOREIGN KEY (`medical_category_id`) REFERENCES `medical_category` (`medical_category_id`) ON UPDATE CASCADE,
  CONSTRAINT `medical_category_location_mapping_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `medical_category_location_mapping`
--


--
-- Table structure for table `medical_category_tube_conf`
--

CREATE TABLE `medical_category_tube_conf` (
  `configuration_id` int NOT NULL AUTO_INCREMENT,
  `medical_category_id` int NOT NULL,
  `tube_type` int NOT NULL COMMENT '1=long, 2=short',
  `ml_size` decimal(5,2) NOT NULL,
  `color` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL,
  `icon` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sample_type` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`configuration_id`),
  KEY `medical_category_tube_conf_medical_category_id_foreign` (`medical_category_id`),
  KEY `medical_category_tube_conf_created_by_foreign` (`created_by`),
  KEY `medical_category_tube_conf_updated_by_foreign` (`updated_by`),
  CONSTRAINT `medical_category_tube_conf_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `medical_category_tube_conf_medical_category_id_foreign` FOREIGN KEY (`medical_category_id`) REFERENCES `medical_category` (`medical_category_id`) ON UPDATE CASCADE,
  CONSTRAINT `medical_category_tube_conf_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `medical_category_tube_conf`
--


--
-- Table structure for table `medical_device`
--

CREATE TABLE `medical_device` (
  `medical_device_id` int NOT NULL AUTO_INCREMENT,
  `medical_device_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `medical_device_type` int NOT NULL DEFAULT '1',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`medical_device_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `medical_device`
--


--
-- Table structure for table `medical_prescription_served_qty`
--

CREATE TABLE `medical_prescription_served_qty` (
  `served_quantity_id` int NOT NULL AUTO_INCREMENT,
  `medical_service_prescription_id` int NOT NULL,
  `quantity` decimal(7,3) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int NOT NULL,
  PRIMARY KEY (`served_quantity_id`),
  KEY `fk_med_pres_served_qty_med_serv_pres_id` (`medical_service_prescription_id`),
  KEY `medical_prescription_served_qty_created_by_foreign` (`created_by`),
  CONSTRAINT `fk_med_pres_served_qty_med_serv_pres_id` FOREIGN KEY (`medical_service_prescription_id`) REFERENCES `medical_service_prescription` (`medical_service_prescription_id`) ON UPDATE CASCADE,
  CONSTRAINT `medical_prescription_served_qty_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `medical_prescription_served_qty`
--


--
-- Table structure for table `medical_request_document`
--

CREATE TABLE `medical_request_document` (
  `medical_request_document_id` int NOT NULL AUTO_INCREMENT,
  `medical_request_id` int NOT NULL,
  `type` tinyint NOT NULL COMMENT '1=Image, 2=PACS, 3=Lab',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `created_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`medical_request_document_id`),
  KEY `fk_imagery_document_created_by` (`created_by`),
  KEY `fk_imagery_document_updated_by` (`updated_by`),
  KEY `fk_medical_request_document_id` (`medical_request_id`),
  CONSTRAINT `fk_imagery_document_created_by` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_imagery_document_updated_by` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_medical_request_document_id` FOREIGN KEY (`medical_request_id`) REFERENCES `medical_service_request` (`medical_service_request_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `medical_request_document`
--


--
-- Table structure for table `medical_request_expected_time_update_history`
--

CREATE TABLE `medical_request_expected_time_update_history` (
  `medical_request_expected_time_update_history_id` int NOT NULL AUTO_INCREMENT,
  `type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `flow_id` int NOT NULL,
  `expected_time` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `expected_time_changed` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `expected_time_modif_comment` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `expected_time_modified_by` int NOT NULL,
  PRIMARY KEY (`medical_request_expected_time_update_history_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `medical_request_expected_time_update_history`
--


--
-- Table structure for table `medical_request_flow_status_history`
--

CREATE TABLE `medical_request_flow_status_history` (
  `medical_request_flow_status_history_id` int NOT NULL AUTO_INCREMENT,
  `type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `flow_id` int NOT NULL,
  `status` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int NOT NULL,
  PRIMARY KEY (`medical_request_flow_status_history_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `medical_request_flow_status_history`
--


--
-- Table structure for table `medical_request_imagery`
--

CREATE TABLE `medical_request_imagery` (
  `medical_request_imagery_id` int NOT NULL AUTO_INCREMENT,
  `medical_service_request_id` int NOT NULL,
  `location_id` int NOT NULL,
  `flow_status` int NOT NULL COMMENT '0=awaiting, 1=inProgress, 2=awaiting return, 3=protocol Ready, 4=Completed',
  `flow_status_updated_at` datetime DEFAULT NULL,
  `expected_time` timestamp NULL DEFAULT NULL,
  `expected_time_modified_by` int DEFAULT NULL COMMENT 'User who modified the expected time',
  `expected_time_modif_comment` text COLLATE utf8mb4_unicode_ci,
  `doctor_id` int DEFAULT NULL COMMENT 'Radiologist',
  `report` text COLLATE utf8mb4_unicode_ci COMMENT 'Doctor''s comments',
  `visit_scan_id` int DEFAULT NULL,
  `reported_at` timestamp NULL DEFAULT NULL,
  `pacs_link` text COLLATE utf8mb4_unicode_ci,
  `time_email_sent_to_radiologist` datetime DEFAULT NULL COMMENT 'When email was sent to radiologist',
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `completed_at` datetime DEFAULT NULL,
  PRIMARY KEY (`medical_request_imagery_id`),
  KEY `medical_request_imagery_medical_service_request_id_foreign` (`medical_service_request_id`),
  KEY `medical_request_imagery_location_id_foreign` (`location_id`),
  KEY `medical_request_imagery_expected_time_modified_by_foreign` (`expected_time_modified_by`),
  KEY `medical_request_imagery_doctor_id_foreign` (`doctor_id`),
  KEY `medical_request_imagery_created_by_foreign` (`created_by`),
  KEY `medical_request_imagery_updated_by_foreign` (`updated_by`),
  KEY `fk_imagery_visit_scan_id` (`visit_scan_id`),
  CONSTRAINT `fk_imagery_visit_scan_id` FOREIGN KEY (`visit_scan_id`) REFERENCES `visit_scan` (`visit_scan_id`) ON UPDATE CASCADE,
  CONSTRAINT `medical_request_imagery_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `medical_request_imagery_doctor_id_foreign` FOREIGN KEY (`doctor_id`) REFERENCES `doctor` (`doctor_id`) ON UPDATE CASCADE,
  CONSTRAINT `medical_request_imagery_expected_time_modified_by_foreign` FOREIGN KEY (`expected_time_modified_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `medical_request_imagery_location_id_foreign` FOREIGN KEY (`location_id`) REFERENCES `location` (`location_id`) ON UPDATE CASCADE,
  CONSTRAINT `medical_request_imagery_medical_service_request_id_foreign` FOREIGN KEY (`medical_service_request_id`) REFERENCES `medical_service_request` (`medical_service_request_id`) ON UPDATE CASCADE,
  CONSTRAINT `medical_request_imagery_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `medical_request_imagery`
--


--
-- Table structure for table `medical_request_sample`
--

CREATE TABLE `medical_request_sample` (
  `medical_request_sample_id` int NOT NULL AUTO_INCREMENT,
  `medical_service_request_id` int NOT NULL,
  `room_id` int DEFAULT NULL,
  `is_confirmed` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Confirmation of the sample to be taken',
  `flow_status` int NOT NULL DEFAULT '0' COMMENT '0=awaiting, 1=inProgress, 2=awaiting return, 3=done',
  `flow_status_updated_at` datetime DEFAULT NULL,
  `barcode` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `location_id` int NOT NULL,
  `transfered_to` int DEFAULT NULL COMMENT 'Location where sample is transfered',
  `completed_at` datetime DEFAULT NULL COMMENT 'Time when sample was completed',
  `expected_time` datetime DEFAULT NULL,
  `from_sample` int DEFAULT NULL,
  `call_patient_after_result_completed` tinyint(1) NOT NULL DEFAULT '0',
  `taken_by` int DEFAULT NULL COMMENT 'User who took the sample',
  `updated_by` int DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`medical_request_sample_id`),
  KEY `medical_request_sample_medical_service_request_id_foreign` (`medical_service_request_id`),
  KEY `medical_request_sample_room_id_foreign` (`room_id`),
  KEY `medical_request_sample_location_id_foreign` (`location_id`),
  KEY `medical_request_sample_transfered_to_foreign` (`transfered_to`),
  KEY `medical_request_sample_taken_by_foreign` (`taken_by`),
  KEY `medical_request_sample_updated_by_foreign` (`updated_by`),
  CONSTRAINT `medical_request_sample_location_id_foreign` FOREIGN KEY (`location_id`) REFERENCES `location` (`location_id`) ON UPDATE CASCADE,
  CONSTRAINT `medical_request_sample_medical_service_request_id_foreign` FOREIGN KEY (`medical_service_request_id`) REFERENCES `medical_service_request` (`medical_service_request_id`) ON UPDATE CASCADE,
  CONSTRAINT `medical_request_sample_room_id_foreign` FOREIGN KEY (`room_id`) REFERENCES `hosp_room` (`hosp_room_id`) ON UPDATE CASCADE,
  CONSTRAINT `medical_request_sample_taken_by_foreign` FOREIGN KEY (`taken_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `medical_request_sample_transfered_to_foreign` FOREIGN KEY (`transfered_to`) REFERENCES `location` (`location_id`) ON UPDATE CASCADE,
  CONSTRAINT `medical_request_sample_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `medical_request_sample`
--


--
-- Table structure for table `medical_request_sample_tube`
--

CREATE TABLE `medical_request_sample_tube` (
  `medical_request_sample_tube_id` int NOT NULL AUTO_INCREMENT,
  `batch_number` varchar(36) COLLATE utf8mb4_unicode_ci NOT NULL,
  `barcode` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `configuration_id` int NOT NULL,
  `is_scan` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0=not scanned, 1=scanned',
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`medical_request_sample_tube_id`),
  KEY `medical_request_sample_tube_batch_number_foreign` (`batch_number`),
  KEY `medical_request_sample_tube_created_by_foreign` (`created_by`),
  KEY `medical_request_sample_tube_updated_by_foreign` (`updated_by`),
  KEY `medical_request_sample_tube_configuration_id_foreign` (`configuration_id`),
  CONSTRAINT `medical_request_sample_tube_batch_number_foreign` FOREIGN KEY (`batch_number`) REFERENCES `medical_service_request` (`batch_number`) ON UPDATE CASCADE,
  CONSTRAINT `medical_request_sample_tube_configuration_id_foreign` FOREIGN KEY (`configuration_id`) REFERENCES `medical_category_tube_conf` (`configuration_id`) ON UPDATE CASCADE,
  CONSTRAINT `medical_request_sample_tube_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `medical_request_sample_tube_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `medical_request_sample_tube`
--


--
-- Table structure for table `medical_service`
--

CREATE TABLE `medical_service` (
  `medical_service_id` int NOT NULL AUTO_INCREMENT,
  `category_id` int NOT NULL,
  `medical_service_name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `medical_service_type` tinyint NOT NULL DEFAULT '0' COMMENT 'otc',
  `type` tinyint DEFAULT NULL COMMENT '1=hospit, 2=observation',
  `lab_test_abbr` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Name of the test to be mapped to the lab machine',
  `cost` decimal(9,2) NOT NULL COMMENT 'Selling price',
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`medical_service_id`),
  KEY `fk_medical_service_1` (`category_id`),
  KEY `fk_medical_service_created_by` (`created_by`),
  KEY `fk_medical_service_updated_by` (`updated_by`),
  CONSTRAINT `fk_medical_service_1` FOREIGN KEY (`category_id`) REFERENCES `medical_category` (`medical_category_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_medical_service_created_by` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_medical_service_updated_by` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='List of medical services available';

--
-- Dumping data for table `medical_service`
--


--
-- Table structure for table `medical_service_cost`
--

CREATE TABLE `medical_service_cost` (
  `medical_service_cost_id` int NOT NULL AUTO_INCREMENT,
  `medical_service_id` int NOT NULL,
  `cost` decimal(9,2) NOT NULL,
  `started_at` date NOT NULL,
  `ended_at` date DEFAULT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`medical_service_cost_id`),
  KEY `medical_service_cost_medical_service_id_foreign` (`medical_service_id`),
  KEY `medical_service_cost_created_by_foreign` (`created_by`),
  CONSTRAINT `medical_service_cost_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `medical_service_cost_medical_service_id_foreign` FOREIGN KEY (`medical_service_id`) REFERENCES `medical_service` (`medical_service_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `medical_service_cost`
--


--
-- Table structure for table `medical_service_duration`
--

CREATE TABLE `medical_service_duration` (
  `medical_service_duration_id` int NOT NULL AUTO_INCREMENT,
  `medical_service_id` int NOT NULL,
  `hosp_time_duration` time NOT NULL DEFAULT '04:00:00',
  `obs_time_duration` time NOT NULL DEFAULT '02:00:00',
  `outpatient_time_duration` time NOT NULL DEFAULT '02:00:00',
  `waiting_time` time NOT NULL DEFAULT '02:00:00',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`medical_service_duration_id`),
  KEY `fk_medical_service_duration` (`medical_service_id`),
  CONSTRAINT `fk_medical_service_duration` FOREIGN KEY (`medical_service_id`) REFERENCES `medical_service` (`medical_service_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `medical_service_duration`
--


--
-- Table structure for table `medical_service_group`
--

CREATE TABLE `medical_service_group` (
  `medical_service_group_id` int NOT NULL AUTO_INCREMENT,
  `medical_service_id` int NOT NULL,
  `medical_service_child_id` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_by` int NOT NULL,
  `updated_by` int DEFAULT NULL,
  PRIMARY KEY (`medical_service_group_id`),
  KEY `medical_service_group_medical_service_id_foreign` (`medical_service_id`),
  KEY `medical_service_group_medical_service_child_id_foreign` (`medical_service_child_id`),
  KEY `medical_service_group_created_by_foreign` (`created_by`),
  KEY `medical_service_group_updated_by_foreign` (`updated_by`),
  CONSTRAINT `medical_service_group_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `medical_service_group_medical_service_child_id_foreign` FOREIGN KEY (`medical_service_child_id`) REFERENCES `medical_service` (`medical_service_id`) ON UPDATE CASCADE,
  CONSTRAINT `medical_service_group_medical_service_id_foreign` FOREIGN KEY (`medical_service_id`) REFERENCES `medical_service` (`medical_service_id`) ON UPDATE CASCADE,
  CONSTRAINT `medical_service_group_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `medical_service_group`
--


--
-- Table structure for table `medical_service_inv`
--

CREATE TABLE `medical_service_inv` (
  `medical_service_inv_id` int NOT NULL AUTO_INCREMENT,
  `medical_service_id` int NOT NULL,
  `inventory_id` int NOT NULL,
  `quantity` decimal(7,2) NOT NULL COMMENT 'Quantity to decrease',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `hide` tinyint(1) NOT NULL DEFAULT '0',
  `created_by` int NOT NULL,
  `updated_by` int DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`medical_service_inv_id`),
  KEY `fk_medical_service_inv_medical_service_id` (`medical_service_id`),
  KEY `fk_medical_service_inv_inventory_id` (`inventory_id`),
  KEY `medical_service_inv_created_by_foreign` (`created_by`),
  KEY `medical_service_inv_updated_by_foreign` (`updated_by`),
  CONSTRAINT `fk_medical_service_inv_inventory_id` FOREIGN KEY (`inventory_id`) REFERENCES `inventory` (`inventory_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_medical_service_inv_medical_service_id` FOREIGN KEY (`medical_service_id`) REFERENCES `medical_service` (`medical_service_id`) ON UPDATE CASCADE,
  CONSTRAINT `medical_service_inv_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `medical_service_inv_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Quantity to decrease for each item after the request is launched';

--
-- Dumping data for table `medical_service_inv`
--


--
-- Table structure for table `medical_service_machine_mapping`
--

CREATE TABLE `medical_service_machine_mapping` (
  `medical_service_machine_mapping_id` int NOT NULL AUTO_INCREMENT,
  `medical_service_id` int NOT NULL,
  `test_name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
  `unit` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`medical_service_machine_mapping_id`),
  UNIQUE KEY `medical_service_machine_mapping_test_name_unique` (`test_name`),
  KEY `medical_service_machine_mapping_medical_service_id_foreign` (`medical_service_id`),
  CONSTRAINT `medical_service_machine_mapping_medical_service_id_foreign` FOREIGN KEY (`medical_service_id`) REFERENCES `medical_service` (`medical_service_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `medical_service_machine_mapping`
--


--
-- Table structure for table `medical_service_molecule`
--

CREATE TABLE `medical_service_molecule` (
  `medical_service_molecule_id` int NOT NULL AUTO_INCREMENT,
  `medical_service_id` int NOT NULL,
  `molecule_id` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `hide` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`medical_service_molecule_id`),
  KEY `fk_medical_service_molecule` (`medical_service_id`),
  KEY `fk_molecule` (`molecule_id`),
  CONSTRAINT `fk_medical_service_molecule` FOREIGN KEY (`medical_service_id`) REFERENCES `medical_service` (`medical_service_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_molecule` FOREIGN KEY (`molecule_id`) REFERENCES `molecule` (`molecule_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `medical_service_molecule`
--


--
-- Table structure for table `medical_service_prescription`
--

CREATE TABLE `medical_service_prescription` (
  `medical_service_prescription_id` int NOT NULL AUTO_INCREMENT,
  `medical_service_request_id` int DEFAULT NULL,
  `quantity` decimal(9,2) DEFAULT NULL,
  `unit` tinyint NOT NULL COMMENT '1=mcg, 2=mg, 3=g, 4=ml, 5=l, 6=kg, 7=oz, 8=goutte, 9=co s.L., 10=co, 11=supp, 12=amp, 13=ov, 14=mEq, 15=mmol, 16=co LA',
  `frequency` tinyint NOT NULL COMMENT '1=unique dosage, 2=if needed, 3=determined frequency',
  `unit_frequency` tinyint DEFAULT NULL COMMENT '1=hour, 2=day, 3=week',
  `unit_length` tinyint DEFAULT NULL COMMENT '1=hour, 2=day, 3=week',
  `duration_unit_length` tinyint DEFAULT NULL COMMENT '1=hour, 2=day, 3=week',
  `administration_id` tinyint NOT NULL COMMENT '1=Per Os, 2=Intra-Musculaire, 3=Intra-Veineux, 4=???, 5=Intra-Rectal, 6=Intra-Vaginal, 7=Sublingual, 8=Intra-Oriculaire, 9=Sous-Cutané, 10=Nasal, 11=Occulaire, 12=Aérosol',
  `duration` int DEFAULT NULL,
  `integer` tinyint DEFAULT NULL,
  `start_time` datetime DEFAULT NULL,
  `end_time` datetime DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int NOT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`medical_service_prescription_id`),
  KEY `medical_service_prescription_medical_service_request_id_foreign` (`medical_service_request_id`),
  KEY `medical_service_prescription_created_by_foreign` (`created_by`),
  CONSTRAINT `medical_service_prescription_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `medical_service_prescription_medical_service_request_id_foreign` FOREIGN KEY (`medical_service_request_id`) REFERENCES `medical_service_request` (`medical_service_request_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `medical_service_prescription`
--


--
-- Table structure for table `medical_service_ref_value`
--

CREATE TABLE `medical_service_ref_value` (
  `ms_ref_value_id` int NOT NULL AUTO_INCREMENT,
  `medical_service_id` int NOT NULL,
  `units` int NOT NULL,
  `min_value` decimal(14,4) NOT NULL,
  `max_value` decimal(14,4) NOT NULL,
  `gender` varchar(1) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'NULL=for all gender',
  `min_age` int DEFAULT NULL COMMENT 'min age in days',
  `max_age` int DEFAULT NULL COMMENT 'max age in days',
  `semester` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Used for pregnancy values',
  `ref_text` text COLLATE utf8mb4_unicode_ci,
  `comments` text COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`ms_ref_value_id`),
  KEY `medical_service_ref_value_medical_service_id_foreign` (`medical_service_id`),
  KEY `medical_service_ref_value_units_foreign` (`units`),
  CONSTRAINT `medical_service_ref_value_medical_service_id_foreign` FOREIGN KEY (`medical_service_id`) REFERENCES `medical_service` (`medical_service_id`) ON UPDATE CASCADE,
  CONSTRAINT `medical_service_ref_value_units_foreign` FOREIGN KEY (`units`) REFERENCES `laboratory_units` (`laboratory_unit_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `medical_service_ref_value`
--


--
-- Table structure for table `medical_service_request`
--

CREATE TABLE `medical_service_request` (
  `medical_service_request_id` int NOT NULL AUTO_INCREMENT,
  `medical_service_id` int NOT NULL,
  `quantity_to_launch` smallint NOT NULL,
  `patient_id` int NOT NULL,
  `receipt_id` int DEFAULT NULL,
  `visit_id` int NOT NULL,
  `doctor_id` int NOT NULL,
  `cost` decimal(9,2) NOT NULL,
  `doctor_note` text COLLATE utf8mb4_unicode_ci,
  `urgent_request` tinyint(1) NOT NULL DEFAULT '0',
  `location_from` int DEFAULT NULL,
  `auto_accepted` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0=accepted manually, 1=accepted automatically',
  `is_extra` tinyint(1) NOT NULL DEFAULT '0',
  `amount_covered` decimal(9,2) DEFAULT NULL COMMENT 'Cost covered by patient',
  `batch_number` varchar(36) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `is_confirmed` tinyint(1) DEFAULT NULL COMMENT 'null for non-pharmacy-type requests, 0 for pharmacy-type requests awaiting confirmation, and 1 for pharmacy-type requests that are confirmed',
  `is_delivered` tinyint DEFAULT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_by` int DEFAULT NULL,
  `task_to_delete_id` int DEFAULT NULL,
  `delete_reason` text COLLATE utf8mb4_unicode_ci,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `hide` int DEFAULT '0',
  PRIMARY KEY (`medical_service_request_id`),
  KEY `fk_medical_service_request_2` (`medical_service_id`),
  KEY `medical_service_request_for_patient` (`patient_id`),
  KEY `fk_medical_service_request_3` (`receipt_id`),
  KEY `fk_medical_service_request_1` (`visit_id`),
  KEY `medical_service_request_doctor_id_foreign` (`doctor_id`),
  KEY `fk_request_from_location` (`location_from`),
  KEY `fk_batch_number` (`batch_number`),
  KEY `fk_medical_service_request_created_by` (`created_by`),
  KEY `fk_medical_service_request_updated_by` (`updated_by`),
  KEY `fk_medical_service_request_deleted_by` (`deleted_by`),
  KEY `medical_service_request_batch_number_index` (`batch_number`),
  KEY `idx_receipt` (`receipt_id`),
  KEY `idx_deleted_at` (`deleted_at`),
  KEY `idx_urgent_request` (`urgent_request`),
  KEY `idx_patient_id` (`patient_id`),
  KEY `idx_receipt_id_deleted_at` (`receipt_id`,`deleted_at`),
  KEY `idx_deleted_at_receipt_id` (`deleted_at`,`receipt_id`),
  KEY `doctor_report_idx` (`deleted_at`,`cost`,`receipt_id`,`created_at`),
  KEY `receipt_created_at_idx` (`receipt_id`,`created_at`),
  KEY `idx_receipt_created_at` (`receipt_id`,`created_at`),
  CONSTRAINT `fk_medical_service_request_1` FOREIGN KEY (`visit_id`) REFERENCES `visit` (`visit_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_medical_service_request_2` FOREIGN KEY (`medical_service_id`) REFERENCES `medical_service` (`medical_service_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_medical_service_request_3` FOREIGN KEY (`receipt_id`) REFERENCES `receipt` (`receipt_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_medical_service_request_created_by` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_medical_service_request_deleted_by` FOREIGN KEY (`deleted_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_medical_service_request_updated_by` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_request_from_location` FOREIGN KEY (`location_from`) REFERENCES `location` (`location_id`) ON UPDATE CASCADE,
  CONSTRAINT `medical_service_request_doctor_id_foreign` FOREIGN KEY (`doctor_id`) REFERENCES `doctor` (`doctor_id`) ON UPDATE CASCADE,
  CONSTRAINT `medical_service_request_for_patient` FOREIGN KEY (`patient_id`) REFERENCES `patient` (`patient_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='List of requests launch';

--
-- Dumping data for table `medical_service_request`
--


--
-- Table structure for table `medical_service_request_result`
--

CREATE TABLE `medical_service_request_result` (
  `medical_service_request_result_id` int NOT NULL AUTO_INCREMENT,
  `medical_service_request_id` int NOT NULL,
  `medical_request_sample_id` int DEFAULT NULL,
  `appointment_id` int DEFAULT NULL,
  `flow_status` tinyint NOT NULL DEFAULT '0' COMMENT '0=Waiting, 1=InProgress, 2=Analyse to confirm, 3=Analyse to approve, 4=Analyze completed',
  `flow_status_updated_at` datetime DEFAULT NULL,
  `updated_by` int DEFAULT NULL,
  `expected_time` timestamp NULL DEFAULT NULL,
  `expected_time_modified_by` int DEFAULT NULL COMMENT 'User who modified th expected time',
  `expected_time_modif_comment` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `result` text COLLATE utf8mb4_unicode_ci,
  `numeric_result` decimal(14,4) DEFAULT NULL,
  `visit_scan_id` int DEFAULT NULL,
  `ref_values` text COLLATE utf8mb4_unicode_ci,
  `is_pathologic` tinyint DEFAULT NULL COMMENT '-1= pathologic, 1=normal',
  `set_pathologic_by` int DEFAULT NULL COMMENT 'User who set result as pathology',
  `is_external` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0=not external, 1=is external',
  `confirmed` tinyint NOT NULL DEFAULT '0',
  `confirmed_by` int DEFAULT NULL,
  `is_approved` tinyint(1) DEFAULT NULL COMMENT 'null=awaiting approval, 0=not approved, 1=approved',
  `approved_by` int DEFAULT NULL COMMENT 'User who approved the result',
  `approved_at` datetime DEFAULT NULL COMMENT 'When result was approved',
  `remade_result_id` int DEFAULT NULL COMMENT 'The id of the remade result',
  `doctor_action` smallint DEFAULT NULL COMMENT '1=patient_called, 2=patient_unavailable, 3=no_suppl_action',
  `task_appointment_id` int DEFAULT NULL COMMENT 'Task ID to create next appointment after doctor review',
  `analysed_from_location` int NOT NULL COMMENT 'Location where result is analyzed',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int NOT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`medical_service_request_result_id`),
  KEY `fk_med_serv_req_result_med_serv_req_id` (`medical_service_request_id`),
  KEY `medical_service_request_result_medical_request_sample_id_foreign` (`medical_request_sample_id`),
  KEY `medical_service_request_result_appointment_id_foreign` (`appointment_id`),
  KEY `medical_service_request_result_updated_by_foreign` (`updated_by`),
  KEY `medical_service_request_result_expected_time_modified_by_foreign` (`expected_time_modified_by`),
  KEY `medical_service_request_result_set_pathologic_by_foreign` (`set_pathologic_by`),
  KEY `medical_service_request_result_confirmed_by_foreign` (`confirmed_by`),
  KEY `medical_service_request_result_approved_by_foreign` (`approved_by`),
  KEY `medical_service_request_result_analysed_from_location_foreign` (`analysed_from_location`),
  KEY `medical_service_request_result_created_by_foreign` (`created_by`),
  KEY `fk_lab_visit_scan_id` (`visit_scan_id`),
  CONSTRAINT `fk_lab_visit_scan_id` FOREIGN KEY (`visit_scan_id`) REFERENCES `visit_scan` (`visit_scan_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_med_serv_req_result_med_serv_req_id` FOREIGN KEY (`medical_service_request_id`) REFERENCES `medical_service_request` (`medical_service_request_id`) ON UPDATE CASCADE,
  CONSTRAINT `medical_service_request_result_analysed_from_location_foreign` FOREIGN KEY (`analysed_from_location`) REFERENCES `location` (`location_id`) ON UPDATE CASCADE,
  CONSTRAINT `medical_service_request_result_appointment_id_foreign` FOREIGN KEY (`appointment_id`) REFERENCES `appointment` (`appointment_id`) ON UPDATE CASCADE,
  CONSTRAINT `medical_service_request_result_approved_by_foreign` FOREIGN KEY (`approved_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `medical_service_request_result_confirmed_by_foreign` FOREIGN KEY (`confirmed_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `medical_service_request_result_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `medical_service_request_result_expected_time_modified_by_foreign` FOREIGN KEY (`expected_time_modified_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `medical_service_request_result_medical_request_sample_id_foreign` FOREIGN KEY (`medical_request_sample_id`) REFERENCES `medical_request_sample` (`medical_request_sample_id`) ON UPDATE CASCADE,
  CONSTRAINT `medical_service_request_result_set_pathologic_by_foreign` FOREIGN KEY (`set_pathologic_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `medical_service_request_result_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `medical_service_request_result`
--


--
-- Table structure for table `medical_service_tube_configuration`
--

CREATE TABLE `medical_service_tube_configuration` (
  `medical_service_tube_conf_id` int NOT NULL AUTO_INCREMENT,
  `medical_service_id` int NOT NULL,
  `ml_size` decimal(5,2) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`medical_service_tube_conf_id`),
  KEY `medical_service_tube_configuration_medical_service_id_foreign` (`medical_service_id`),
  KEY `medical_service_tube_configuration_updated_by_foreign` (`updated_by`),
  CONSTRAINT `medical_service_tube_configuration_medical_service_id_foreign` FOREIGN KEY (`medical_service_id`) REFERENCES `medical_service` (`medical_service_id`) ON UPDATE CASCADE,
  CONSTRAINT `medical_service_tube_configuration_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `medical_service_tube_configuration`
--


--
-- Table structure for table `meta_data`
--

CREATE TABLE `meta_data` (
  `meta_data_id` int NOT NULL AUTO_INCREMENT,
  `type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'the type of dropdown',
  `value1` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `value2` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `value3` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_by` int NOT NULL,
  `updated_by` int DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`meta_data_id`),
  KEY `fk_user_id` (`created_by`),
  KEY `fk_user_id_update` (`updated_by`),
  CONSTRAINT `fk_user_id` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_user_id_update` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `meta_data`
--


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

CREATE TABLE `migrations` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `batch` int NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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


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

CREATE TABLE `model_has_permissions` (
  `permission_id` int NOT NULL,
  `model_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `model_id` int NOT NULL,
  PRIMARY KEY (`permission_id`,`model_id`,`model_type`),
  KEY `model_has_permissions_model_id_model_type_index` (`model_id`,`model_type`),
  CONSTRAINT `model_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `model_has_permissions`
--


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

CREATE TABLE `model_has_roles` (
  `role_id` int NOT NULL,
  `model_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `model_id` int NOT NULL,
  PRIMARY KEY (`role_id`,`model_id`,`model_type`),
  KEY `model_has_roles_model_id_model_type_index` (`model_id`,`model_type`),
  CONSTRAINT `model_has_roles_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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


--
-- Table structure for table `molecule`
--

CREATE TABLE `molecule` (
  `molecule_id` int NOT NULL AUTO_INCREMENT,
  `th_family_id` int NOT NULL,
  `molecule_name` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
  `contraindication` text COLLATE utf8mb4_unicode_ci,
  `comment` text COLLATE utf8mb4_unicode_ci,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`molecule_id`),
  UNIQUE KEY `molecule_molecule_name_unique` (`molecule_name`),
  KEY `fk_molecule_1` (`th_family_id`),
  KEY `fk_molecule_created_by` (`created_by`),
  KEY `fk_molecule_updated_by` (`updated_by`),
  CONSTRAINT `fk_molecule_1` FOREIGN KEY (`th_family_id`) REFERENCES `th_family` (`th_family_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_molecule_created_by` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_molecule_updated_by` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `molecule`
--


--
-- Table structure for table `molecule_side_effect`
--

CREATE TABLE `molecule_side_effect` (
  `molecule_side_effect_id` int NOT NULL AUTO_INCREMENT,
  `molecule_id` int NOT NULL,
  `side_effect_id` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `hide` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`molecule_side_effect_id`),
  KEY `fk_effect_molecule_id` (`molecule_id`),
  KEY `fk_side_effect` (`side_effect_id`),
  CONSTRAINT `fk_effect_molecule_id` FOREIGN KEY (`molecule_id`) REFERENCES `molecule` (`molecule_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_side_effect` FOREIGN KEY (`side_effect_id`) REFERENCES `side_effect` (`side_effect_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `molecule_side_effect`
--


--
-- Table structure for table `note_category`
--

CREATE TABLE `note_category` (
  `note_category_id` int NOT NULL AUTO_INCREMENT,
  `parent_note_category_id` int DEFAULT NULL,
  `note_category_name` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`note_category_id`),
  KEY `note_category_parent_note_category_id_foreign` (`parent_note_category_id`),
  CONSTRAINT `note_category_parent_note_category_id_foreign` FOREIGN KEY (`parent_note_category_id`) REFERENCES `note_category` (`note_category_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `note_category`
--


--
-- Table structure for table `password_resets`
--

CREATE TABLE `password_resets` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `token` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `password_resets`
--


--
-- Table structure for table `patient`
--

CREATE TABLE `patient` (
  `patient_id` int NOT NULL AUTO_INCREMENT,
  `person_id` int NOT NULL,
  `other_id` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'The id given by its company',
  `dossier_id` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
  `ramq` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
  `vip` tinyint(1) NOT NULL DEFAULT '0',
  `vip_pending_task` int DEFAULT NULL,
  `assign_company_tasks_id` int DEFAULT NULL,
  `vip_reason` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `preferred_language` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '["FRENCH"]',
  `blood_group` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`patient_id`),
  UNIQUE KEY `patient_dossier_id_unique` (`dossier_id`),
  UNIQUE KEY `patient_ramq_unique` (`ramq`),
  KEY `patient_person_id_foreign` (`person_id`),
  KEY `patient_created_by` (`created_by`),
  KEY `patient_updated_by` (`updated_by`),
  KEY `patient_assign_company_tasks_id_foreign` (`assign_company_tasks_id`),
  CONSTRAINT `patient_assign_company_tasks_id_foreign` FOREIGN KEY (`assign_company_tasks_id`) REFERENCES `tasks` (`tasks_id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  CONSTRAINT `patient_created_by` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `patient_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `person` (`person_id`) ON UPDATE CASCADE,
  CONSTRAINT `patient_updated_by` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `patient`
--


--
-- Table structure for table `patient_allergy`
--

CREATE TABLE `patient_allergy` (
  `patient_allergy_id` int NOT NULL AUTO_INCREMENT,
  `patient_id` int NOT NULL,
  `type_id` int NOT NULL COMMENT 'Allergy type',
  `date` date DEFAULT NULL,
  `description` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int NOT NULL,
  `deleted_by` int DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `deleted_reason` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`patient_allergy_id`),
  KEY `patient_allergy_patient_id_foreign` (`patient_id`),
  KEY `patient_allergy_type_id_foreign` (`type_id`),
  KEY `patient_allergy_created_by_foreign` (`created_by`),
  KEY `patient_allergy_deleted_by_foreign` (`deleted_by`),
  CONSTRAINT `patient_allergy_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `patient_allergy_deleted_by_foreign` FOREIGN KEY (`deleted_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `patient_allergy_patient_id_foreign` FOREIGN KEY (`patient_id`) REFERENCES `patient` (`patient_id`) ON UPDATE CASCADE,
  CONSTRAINT `patient_allergy_type_id_foreign` FOREIGN KEY (`type_id`) REFERENCES `patient_allergy_type` (`patient_allergy_type_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `patient_allergy`
--


--
-- Table structure for table `patient_allergy_molecule`
--

CREATE TABLE `patient_allergy_molecule` (
  `patient_allergy_molecule_id` int NOT NULL AUTO_INCREMENT,
  `patient_allergy_id` int NOT NULL,
  `molecule_id` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`patient_allergy_molecule_id`),
  UNIQUE KEY `patient_allergy_molecule_patient_allergy_id_molecule_id_unique` (`patient_allergy_id`,`molecule_id`),
  KEY `patient_allergy_molecule_molecule_id_foreign` (`molecule_id`),
  CONSTRAINT `patient_allergy_molecule_molecule_id_foreign` FOREIGN KEY (`molecule_id`) REFERENCES `molecule` (`molecule_id`) ON UPDATE CASCADE,
  CONSTRAINT `patient_allergy_molecule_patient_allergy_id_foreign` FOREIGN KEY (`patient_allergy_id`) REFERENCES `patient_allergy` (`patient_allergy_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `patient_allergy_molecule`
--


--
-- Table structure for table `patient_allergy_type`
--

CREATE TABLE `patient_allergy_type` (
  `patient_allergy_type_id` int NOT NULL AUTO_INCREMENT,
  `patient_allergy_type_name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`patient_allergy_type_id`),
  UNIQUE KEY `patient_allergy_type_patient_allergy_type_name_unique` (`patient_allergy_type_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `patient_allergy_type`
--


--
-- Table structure for table `patient_antecedent`
--

CREATE TABLE `patient_antecedent` (
  `patient_antecedent_id` int NOT NULL AUTO_INCREMENT,
  `patient_id` int NOT NULL,
  `type_id` int NOT NULL,
  `description` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `date` date DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int NOT NULL,
  `deleted_by` int DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `deleted_reason` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`patient_antecedent_id`),
  KEY `fk_patient_antecedent_patient` (`patient_id`),
  KEY `fk_patient_antecedent_type` (`type_id`),
  KEY `fk_patient_antecedent_created_by` (`created_by`),
  KEY `fk_patient_antecedent_deleted_by` (`deleted_by`),
  CONSTRAINT `fk_patient_antecedent_created_by` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_patient_antecedent_deleted_by` FOREIGN KEY (`deleted_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_patient_antecedent_patient` FOREIGN KEY (`patient_id`) REFERENCES `patient` (`patient_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_patient_antecedent_type` FOREIGN KEY (`type_id`) REFERENCES `patient_antecedent_type` (`patient_antecedent_type_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `patient_antecedent`
--


--
-- Table structure for table `patient_antecedent_type`
--

CREATE TABLE `patient_antecedent_type` (
  `patient_antecedent_type_id` int NOT NULL AUTO_INCREMENT,
  `patient_antecedent_type_name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`patient_antecedent_type_id`),
  UNIQUE KEY `patient_antecedent_type_patient_antecedent_type_name_unique` (`patient_antecedent_type_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `patient_antecedent_type`
--


--
-- Table structure for table `patient_chronic_disease`
--

CREATE TABLE `patient_chronic_disease` (
  `patient_chronic_disease_id` int NOT NULL AUTO_INCREMENT,
  `patient_id` int NOT NULL,
  `patient_chronic_disease_name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `date` date DEFAULT NULL,
  `medication` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_by` int DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `deleted_reason` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`patient_chronic_disease_id`),
  KEY `patient_chronic_disease_patient_id_foreign` (`patient_id`),
  KEY `patient_chronic_disease_created_by_foreign` (`created_by`),
  CONSTRAINT `patient_chronic_disease_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `patient_chronic_disease_patient_id_foreign` FOREIGN KEY (`patient_id`) REFERENCES `patient` (`patient_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `patient_chronic_disease`
--


--
-- Table structure for table `patient_chronic_disease_request`
--

CREATE TABLE `patient_chronic_disease_request` (
  `patient_chronic_disease_request_id` int NOT NULL AUTO_INCREMENT,
  `patient_chronic_disease_id` int NOT NULL,
  `medical_request_id` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`patient_chronic_disease_request_id`),
  KEY `fk_p_chronic_disease_request_p_chronic_disease_id` (`patient_chronic_disease_id`),
  KEY `patient_chronic_disease_request_medical_request_id_foreign` (`medical_request_id`),
  CONSTRAINT `fk_p_chronic_disease_request_p_chronic_disease_id` FOREIGN KEY (`patient_chronic_disease_id`) REFERENCES `patient_chronic_disease` (`patient_chronic_disease_id`) ON UPDATE CASCADE,
  CONSTRAINT `patient_chronic_disease_request_medical_request_id_foreign` FOREIGN KEY (`medical_request_id`) REFERENCES `medical_service_request` (`medical_service_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `patient_chronic_disease_request`
--


--
-- Table structure for table `patient_company_relation`
--

CREATE TABLE `patient_company_relation` (
  `patient_comp_relation_id` int NOT NULL AUTO_INCREMENT,
  `patient_id` int NOT NULL,
  `company_id` int NOT NULL,
  `from_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `to_date` timestamp NULL DEFAULT NULL,
  `other_id` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Previous other id link to the company',
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`patient_comp_relation_id`),
  KEY `fk_patient_company_relations_patient_id` (`patient_id`),
  KEY `fk_patient_company_relations_company_id` (`company_id`),
  KEY `fk_patient_company_relations_created_by` (`created_by`),
  CONSTRAINT `fk_patient_company_relations_company_id` FOREIGN KEY (`company_id`) REFERENCES `company` (`company_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_patient_company_relations_created_by` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_patient_company_relations_patient_id` FOREIGN KEY (`patient_id`) REFERENCES `patient` (`patient_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `patient_company_relation`
--


--
-- Table structure for table `patient_demographic_history`
--

CREATE TABLE `patient_demographic_history` (
  `patient_demographic_history_id` int NOT NULL AUTO_INCREMENT,
  `patient_id` int NOT NULL,
  `history` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int NOT NULL,
  PRIMARY KEY (`patient_demographic_history_id`),
  KEY `patient_demographic_history_patient_id_foreign` (`patient_id`),
  KEY `patient_demographic_history_created_by_foreign` (`created_by`),
  CONSTRAINT `patient_demographic_history_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `patient_demographic_history_patient_id_foreign` FOREIGN KEY (`patient_id`) REFERENCES `patient` (`patient_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `patient_demographic_history`
--


--
-- Table structure for table `patient_file_access`
--

CREATE TABLE `patient_file_access` (
  `patient_file_access_id` int NOT NULL AUTO_INCREMENT,
  `patient_id` int NOT NULL,
  `reason` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `email_sent` tinyint(1) NOT NULL DEFAULT '0',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int NOT NULL,
  PRIMARY KEY (`patient_file_access_id`),
  KEY `patient_file_access_patient_id_foreign` (`patient_id`),
  KEY `patient_file_access_created_by_foreign` (`created_by`),
  CONSTRAINT `patient_file_access_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `patient_file_access_patient_id_foreign` FOREIGN KEY (`patient_id`) REFERENCES `patient` (`patient_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `patient_file_access`
--


--
-- Table structure for table `patient_need`
--

CREATE TABLE `patient_need` (
  `patient_need_id` int NOT NULL AUTO_INCREMENT,
  `title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`patient_need_id`),
  KEY `patient_need_created_by_foreign` (`created_by`),
  KEY `patient_need_updated_by_foreign` (`updated_by`),
  CONSTRAINT `patient_need_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `patient_need`
--


--
-- Table structure for table `patient_other_note`
--

CREATE TABLE `patient_other_note` (
  `patient_other_note_id` int NOT NULL AUTO_INCREMENT,
  `patient_id` int NOT NULL,
  `description` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` tinyint NOT NULL COMMENT '0 = for doctor, 1 = for secretary',
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`patient_other_note_id`),
  KEY `fk_patient_other_note_patient_id` (`patient_id`),
  KEY `fk_note_created_by` (`created_by`),
  CONSTRAINT `fk_note_created_by` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_patient_other_note_patient_id` FOREIGN KEY (`patient_id`) REFERENCES `patient` (`patient_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `patient_other_note`
--


--
-- Table structure for table `patient_pregnant`
--

CREATE TABLE `patient_pregnant` (
  `patient_pregnant_id` int NOT NULL AUTO_INCREMENT,
  `patient_id` int NOT NULL,
  `last_menstruation_date` date NOT NULL,
  `delivery_date` date NOT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`patient_pregnant_id`),
  KEY `patient_pregnant_patient_id_foreign` (`patient_id`),
  KEY `patient_pregnant_created_by_foreign` (`created_by`),
  KEY `patient_pregnant_updated_by_foreign` (`updated_by`),
  CONSTRAINT `patient_pregnant_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `patient_pregnant_patient_id_foreign` FOREIGN KEY (`patient_id`) REFERENCES `patient` (`patient_id`) ON UPDATE CASCADE,
  CONSTRAINT `patient_pregnant_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `patient_pregnant`
--


--
-- Table structure for table `patient_treatment_plan`
--

CREATE TABLE `patient_treatment_plan` (
  `patient_treatment_plan_id` int NOT NULL AUTO_INCREMENT,
  `patient_id` int NOT NULL,
  `medical_service_id` int DEFAULT NULL,
  `doctor_specialty_id` int DEFAULT NULL,
  `type` int NOT NULL COMMENT '1=consultation, 2=request',
  `appointment_id` int DEFAULT NULL,
  `date` datetime NOT NULL,
  `status` int NOT NULL DEFAULT '0' COMMENT '0=pending, 1=done',
  `confirmed_by` int DEFAULT NULL,
  `confirmed_at` datetime DEFAULT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `delete_by` int DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`patient_treatment_plan_id`),
  KEY `patient_treatment_plan_patient_id_foreign` (`patient_id`),
  KEY `patient_treatment_plan_medical_service_id_foreign` (`medical_service_id`),
  KEY `patient_treatment_plan_doctor_specialty_id_foreign` (`doctor_specialty_id`),
  KEY `fk_appointment_id` (`appointment_id`),
  KEY `patient_treatment_plan_confirmed_by_foreign` (`confirmed_by`),
  KEY `patient_treatment_plan_created_by_foreign` (`created_by`),
  KEY `patient_treatment_plan_delete_by_foreign` (`delete_by`),
  CONSTRAINT `fk_appointment_id` FOREIGN KEY (`appointment_id`) REFERENCES `appointment` (`appointment_id`) ON UPDATE CASCADE,
  CONSTRAINT `patient_treatment_plan_confirmed_by_foreign` FOREIGN KEY (`confirmed_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `patient_treatment_plan_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `patient_treatment_plan_delete_by_foreign` FOREIGN KEY (`delete_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `patient_treatment_plan_doctor_specialty_id_foreign` FOREIGN KEY (`doctor_specialty_id`) REFERENCES `doctor_specialty` (`doctor_specialty_id`) ON UPDATE CASCADE,
  CONSTRAINT `patient_treatment_plan_medical_service_id_foreign` FOREIGN KEY (`medical_service_id`) REFERENCES `medical_service` (`medical_service_id`) ON UPDATE CASCADE,
  CONSTRAINT `patient_treatment_plan_patient_id_foreign` FOREIGN KEY (`patient_id`) REFERENCES `patient` (`patient_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `patient_treatment_plan`
--


--
-- Table structure for table `patient_vaccine`
--

CREATE TABLE `patient_vaccine` (
  `patient_vaccine_id` int NOT NULL AUTO_INCREMENT,
  `patient_id` int NOT NULL,
  `medical_service_request_id` int DEFAULT NULL,
  `date` date NOT NULL,
  `vaccine` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `quantity` decimal(10,2) DEFAULT NULL,
  `batch_no` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `expiry_date` date DEFAULT NULL,
  `comments` text COLLATE utf8mb4_unicode_ci,
  `admin_by` int DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int NOT NULL,
  `deleted_by` int DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `deleted_reason` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`patient_vaccine_id`),
  KEY `patient_vaccine_patient_id_foreign` (`patient_id`),
  KEY `patient_vaccine_medical_service_request_id_foreign` (`medical_service_request_id`),
  KEY `patient_vaccine_admin_by_foreign` (`admin_by`),
  KEY `patient_vaccine_created_by_foreign` (`created_by`),
  KEY `patient_vaccine_deleted_by_foreign` (`deleted_by`),
  CONSTRAINT `patient_vaccine_admin_by_foreign` FOREIGN KEY (`admin_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `patient_vaccine_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `patient_vaccine_deleted_by_foreign` FOREIGN KEY (`deleted_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `patient_vaccine_medical_service_request_id_foreign` FOREIGN KEY (`medical_service_request_id`) REFERENCES `medical_service_request` (`medical_service_request_id`) ON UPDATE CASCADE,
  CONSTRAINT `patient_vaccine_patient_id_foreign` FOREIGN KEY (`patient_id`) REFERENCES `patient` (`patient_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `patient_vaccine`
--


--
-- Table structure for table `patient_vital_sign`
--

CREATE TABLE `patient_vital_sign` (
  `patient_vital_sign_id` int NOT NULL AUTO_INCREMENT,
  `patient_id` int NOT NULL,
  `visit_id` int DEFAULT NULL,
  `date` datetime NOT NULL,
  `temperature` decimal(4,2) DEFAULT NULL,
  `ta` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `fc` decimal(5,2) DEFAULT NULL,
  `fr` decimal(5,2) DEFAULT NULL,
  `so2` decimal(5,2) DEFAULT NULL,
  `weight` decimal(8,2) DEFAULT NULL,
  `height` decimal(5,2) DEFAULT NULL,
  `bmi` decimal(5,2) DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int NOT NULL,
  `deleted_by` int DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `deleted_reason` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`patient_vital_sign_id`),
  KEY `patient_vital_sign_patient_id_foreign` (`patient_id`),
  KEY `patient_vital_sign_visit_id_foreign` (`visit_id`),
  KEY `patient_vital_sign_created_by_foreign` (`created_by`),
  KEY `patient_vital_sign_deleted_by_foreign` (`deleted_by`),
  CONSTRAINT `patient_vital_sign_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `patient_vital_sign_deleted_by_foreign` FOREIGN KEY (`deleted_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `patient_vital_sign_patient_id_foreign` FOREIGN KEY (`patient_id`) REFERENCES `patient` (`patient_id`) ON UPDATE CASCADE,
  CONSTRAINT `patient_vital_sign_visit_id_foreign` FOREIGN KEY (`visit_id`) REFERENCES `visit` (`visit_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `patient_vital_sign`
--


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

CREATE TABLE `permissions` (
  `id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `guard_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `permissions_name_guard_name_unique` (`name`,`guard_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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


--
-- Table structure for table `person`
--

CREATE TABLE `person` (
  `person_id` int NOT NULL AUTO_INCREMENT,
  `first_name` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL,
  `middle_name` varchar(30) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `last_name` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL,
  `gender` varchar(1) COLLATE utf8mb4_unicode_ci NOT NULL,
  `phone_number` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `phone_number2` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `is_whatsapp` tinyint(1) NOT NULL DEFAULT '0',
  `is_whatsapp2` tinyint(1) NOT NULL DEFAULT '0',
  `email` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `city` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `address` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `commune_id` int DEFAULT NULL,
  `dob` date DEFAULT NULL COMMENT 'Date of birth',
  `place_of_birth` int DEFAULT NULL,
  `nationality` int DEFAULT NULL,
  `photo` longblob,
  `created_by` int NOT NULL,
  `updated_by` int DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`person_id`),
  KEY `person_commune_id_foreign` (`commune_id`),
  KEY `person_place_of_birth_foreign` (`place_of_birth`),
  KEY `person_nationality_foreign` (`nationality`),
  KEY `person_created_by_foreign` (`created_by`),
  KEY `person_updated_by_foreign` (`updated_by`),
  CONSTRAINT `person_commune_id_foreign` FOREIGN KEY (`commune_id`) REFERENCES `commune` (`commune_id`) ON UPDATE CASCADE,
  CONSTRAINT `person_created_by` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `person_nationality_foreign` FOREIGN KEY (`nationality`) REFERENCES `country` (`country_id`) ON UPDATE CASCADE,
  CONSTRAINT `person_place_of_birth_foreign` FOREIGN KEY (`place_of_birth`) REFERENCES `country` (`country_id`) ON UPDATE CASCADE,
  CONSTRAINT `person_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `person`
--


--
-- Table structure for table `person_relation`
--

CREATE TABLE `person_relation` (
  `person_relation_id` int NOT NULL AUTO_INCREMENT,
  `person_a_id` int NOT NULL,
  `person_b_id` int NOT NULL,
  `relation` enum('child','parent','grandparent','sibling') COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`person_relation_id`),
  KEY `person_relation_person_a_id_foreign` (`person_a_id`),
  KEY `person_relation_person_b_id_foreign` (`person_b_id`),
  CONSTRAINT `person_relation_person_a_id_foreign` FOREIGN KEY (`person_a_id`) REFERENCES `person` (`person_id`) ON UPDATE CASCADE,
  CONSTRAINT `person_relation_person_b_id_foreign` FOREIGN KEY (`person_b_id`) REFERENCES `person` (`person_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `person_relation`
--


--
-- Table structure for table `personal_access_tokens`
--

CREATE TABLE `personal_access_tokens` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `tokenable_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `tokenable_id` bigint unsigned NOT NULL,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `token` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
  `abilities` text COLLATE utf8mb4_unicode_ci,
  `last_used_at` timestamp NULL DEFAULT NULL,
  `expires_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `personal_access_tokens_token_unique` (`token`),
  KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `personal_access_tokens`
--


--
-- Table structure for table `print_report`
--

CREATE TABLE `print_report` (
  `print_report_id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `file_path` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `sql_query` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `sql_native_report_id` int DEFAULT NULL,
  `created_by` int NOT NULL,
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`print_report_id`),
  KEY `print_report_sql_native_report_id_foreign` (`sql_native_report_id`),
  KEY `print_report_created_by_foreign` (`created_by`),
  KEY `fk_print_report_deleted_by` (`deleted_by`),
  CONSTRAINT `print_report_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `print_report_deleted_by_foreign` FOREIGN KEY (`deleted_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `print_report_sql_native_report_id_foreign` FOREIGN KEY (`sql_native_report_id`) REFERENCES `sql_native_report` (`sql_native_report_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `print_report`
--


--
-- Table structure for table `proforma_billing_category`
--

CREATE TABLE `proforma_billing_category` (
  `proforma_billing_category_id` int NOT NULL AUTO_INCREMENT,
  `proforma_invoice_id` int NOT NULL,
  `quantity` decimal(9,2) NOT NULL,
  `percentage_tax` decimal(9,2) NOT NULL,
  `percentage_discount` decimal(9,2) NOT NULL,
  `amount_discount` decimal(9,2) NOT NULL,
  `discount_note` text COLLATE utf8mb4_unicode_ci,
  `discount_added_by` int DEFAULT NULL,
  `billing_category_id` int NOT NULL,
  `created_by` int NOT NULL,
  `updated_by` int DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`proforma_billing_category_id`),
  KEY `proforma_billing_category_proforma_invoice_id_foreign` (`proforma_invoice_id`),
  KEY `proforma_billing_category_discount_added_by_foreign` (`discount_added_by`),
  KEY `proforma_billing_category_billing_category_id_foreign` (`billing_category_id`),
  KEY `proforma_billing_category_created_by_foreign` (`created_by`),
  KEY `proforma_billing_category_updated_by_foreign` (`updated_by`),
  CONSTRAINT `proforma_billing_category_billing_category_id_foreign` FOREIGN KEY (`billing_category_id`) REFERENCES `billing_category` (`billing_category_id`) ON UPDATE CASCADE,
  CONSTRAINT `proforma_billing_category_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `proforma_billing_category_discount_added_by_foreign` FOREIGN KEY (`discount_added_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `proforma_billing_category_proforma_invoice_id_foreign` FOREIGN KEY (`proforma_invoice_id`) REFERENCES `proforma_invoice` (`proforma_invoice_id`) ON UPDATE CASCADE,
  CONSTRAINT `proforma_billing_category_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `proforma_billing_category`
--


--
-- Table structure for table `proforma_invoice`
--

CREATE TABLE `proforma_invoice` (
  `proforma_invoice_id` int NOT NULL AUTO_INCREMENT,
  `number` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `patient_id` int DEFAULT NULL,
  `company_id` int DEFAULT NULL,
  `employees_count` int DEFAULT NULL,
  `validity` int NOT NULL,
  `percentage_discount` decimal(9,2) NOT NULL,
  `amount_discount` decimal(9,2) NOT NULL,
  `discount_note` text COLLATE utf8mb4_unicode_ci,
  `sub_total` decimal(9,2) NOT NULL,
  `net_to_pay` decimal(9,2) NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT '0',
  `discount_added_by` int DEFAULT NULL,
  `date` date NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int NOT NULL,
  PRIMARY KEY (`proforma_invoice_id`),
  KEY `proforma_invoice_patient_id_foreign` (`patient_id`),
  KEY `proforma_invoice_discount_added_by_foreign` (`discount_added_by`),
  KEY `proforma_invoice_created_by_foreign` (`created_by`),
  CONSTRAINT `proforma_invoice_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `proforma_invoice_discount_added_by_foreign` FOREIGN KEY (`discount_added_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `proforma_invoice_patient_id_foreign` FOREIGN KEY (`patient_id`) REFERENCES `patient` (`patient_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `proforma_invoice`
--


--
-- Table structure for table `proforma_medical_service`
--

CREATE TABLE `proforma_medical_service` (
  `proforma_medical_service_id` int NOT NULL AUTO_INCREMENT,
  `proforma_invoice_id` int NOT NULL,
  `medical_service_id` int NOT NULL,
  `quantity` smallint NOT NULL,
  `cost` decimal(9,2) NOT NULL DEFAULT '0.00',
  `amount_covered` decimal(9,2) NOT NULL DEFAULT '0.00',
  `is_extra` tinyint(1) NOT NULL DEFAULT '0',
  `percentage_tax` decimal(5,2) NOT NULL,
  `percentage_discount` decimal(5,2) NOT NULL,
  `amount_discount` decimal(9,2) NOT NULL,
  `discount_note` text COLLATE utf8mb4_unicode_ci,
  `discount_added_by` int DEFAULT NULL,
  `created_by` int NOT NULL,
  `updated_by` int DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`proforma_medical_service_id`),
  KEY `proforma_medical_service_proforma_invoice_id_foreign` (`proforma_invoice_id`),
  KEY `proforma_medical_service_medical_service_id_foreign` (`medical_service_id`),
  KEY `proforma_medical_service_discount_added_by_foreign` (`discount_added_by`),
  KEY `proforma_medical_service_created_by_foreign` (`created_by`),
  KEY `proforma_medical_service_updated_by_foreign` (`updated_by`),
  CONSTRAINT `proforma_medical_service_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `proforma_medical_service_discount_added_by_foreign` FOREIGN KEY (`discount_added_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `proforma_medical_service_medical_service_id_foreign` FOREIGN KEY (`medical_service_id`) REFERENCES `medical_service` (`medical_service_id`) ON UPDATE CASCADE,
  CONSTRAINT `proforma_medical_service_proforma_invoice_id_foreign` FOREIGN KEY (`proforma_invoice_id`) REFERENCES `proforma_invoice` (`proforma_invoice_id`) ON UPDATE CASCADE,
  CONSTRAINT `proforma_medical_service_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `proforma_medical_service`
--


--
-- Table structure for table `receipt`
--

CREATE TABLE `receipt` (
  `receipt_id` int NOT NULL AUTO_INCREMENT,
  `amount` decimal(9,2) NOT NULL,
  `location_id` int NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0=accepted manually, 1=accepted automatically',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int NOT NULL,
  PRIMARY KEY (`receipt_id`),
  KEY `receipt_location_id_foreign` (`location_id`),
  KEY `fk_created_by` (`created_by`),
  CONSTRAINT `fk_created_by` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `receipt_location_id_foreign` FOREIGN KEY (`location_id`) REFERENCES `location` (`location_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `receipt`
--


--
-- Table structure for table `result_raw_data_import`
--

CREATE TABLE `result_raw_data_import` (
  `MAC_RAW_DATA_ID` int NOT NULL AUTO_INCREMENT,
  `MEDICAL_RESULT_ID` int NOT NULL COMMENT 'id of result request in emedsol',
  `SRNO` int NOT NULL,
  `MC_ID` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `INSTR_ID` varchar(5) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `BARCODE_ID` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `RESULT_ID` int DEFAULT NULL COMMENT 'id of result on emedsol',
  `ACC_ID` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `SPCMN_ID` varchar(5) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `TEST_NAME` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `TEST_RESULT` varchar(4000) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `MSG_SENT` varchar(1) COLLATE utf8mb4_unicode_ci DEFAULT 'N',
  `RSLT_INDX` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `LCTN_ID` varchar(5) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `SUFFIX` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `STATUS` int DEFAULT '1' COMMENT '1=NEW, 2=IMPORTED, 3= FAILED',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `import_at` datetime NOT NULL COMMENT 'date when data raw is processed',
  PRIMARY KEY (`MAC_RAW_DATA_ID`),
  UNIQUE KEY `IDX_RAW_DATA` (`MC_ID`,`BARCODE_ID`,`TEST_NAME`,`RSLT_INDX`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `result_raw_data_import`
--


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

CREATE TABLE `role_has_permissions` (
  `permission_id` int NOT NULL,
  `role_id` int NOT NULL,
  PRIMARY KEY (`permission_id`,`role_id`),
  KEY `role_has_permissions_role_id_foreign` (`role_id`),
  CONSTRAINT `role_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`),
  CONSTRAINT `role_has_permissions_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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


--
-- Table structure for table `roles`
--

CREATE TABLE `roles` (
  `id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `guard_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `default_page` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `roles_name_guard_name_unique` (`name`,`guard_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `roles`
--


--
-- Table structure for table `side_effect`
--

CREATE TABLE `side_effect` (
  `side_effect_id` int NOT NULL AUTO_INCREMENT,
  `side_effect_name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int NOT NULL,
  PRIMARY KEY (`side_effect_id`),
  KEY `fk_side_effect_created_by` (`created_by`),
  CONSTRAINT `fk_side_effect_created_by` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `side_effect`
--


--
-- Table structure for table `sql_native_report`
--

CREATE TABLE `sql_native_report` (
  `sql_native_report_id` int NOT NULL AUTO_INCREMENT,
  `sql_native_report_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `query` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `hide` tinyint(1) NOT NULL DEFAULT '0',
  `sql_original_table_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description` text COLLATE utf8mb4_unicode_ci,
  `order_by_1` text COLLATE utf8mb4_unicode_ci,
  `sort_by_1` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `order_by_2` text COLLATE utf8mb4_unicode_ci,
  `sort_by_2` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `order_by_3` text COLLATE utf8mb4_unicode_ci,
  `sort_by_3` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sql_joins` text COLLATE utf8mb4_unicode_ci,
  `sql_condition_or` text COLLATE utf8mb4_unicode_ci,
  `sql_condition_and` text COLLATE utf8mb4_unicode_ci,
  `sql_group_columns` text COLLATE utf8mb4_unicode_ci,
  `sql_columns` text COLLATE utf8mb4_unicode_ci,
  `deleted_by` int DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`sql_native_report_id`),
  KEY `fk_sql_native_report_created_by` (`created_by`),
  KEY `fk_sql_native_report_deleted_by` (`deleted_by`),
  CONSTRAINT `fk_sql_native_report_created_by` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `sql_native_report_deleted_by_foreign` FOREIGN KEY (`deleted_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sql_native_report`
--


--
-- Table structure for table `supplier`
--

CREATE TABLE `supplier` (
  `supplier_id` int NOT NULL AUTO_INCREMENT,
  `supplier_name` varchar(30) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `address` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `email` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `phone` varchar(15) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `comments` text COLLATE utf8mb4_unicode_ci,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `hide` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`supplier_id`),
  KEY `supplier_created_by` (`created_by`),
  CONSTRAINT `supplier_created_by` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `supplier`
--


--
-- Table structure for table `task`
--

CREATE TABLE `task` (
  `task_id` int NOT NULL AUTO_INCREMENT,
  `task_title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `task_description` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `default_role` int DEFAULT NULL COMMENT 'Default role to assign the tasks when created. If null, task is for everyone',
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`task_id`),
  KEY `task_default_role_foreign` (`default_role`),
  KEY `task_created_by_foreign` (`created_by`),
  KEY `task_updated_by_foreign` (`updated_by`),
  CONSTRAINT `task_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `task_default_role_foreign` FOREIGN KEY (`default_role`) REFERENCES `roles` (`id`) ON UPDATE CASCADE,
  CONSTRAINT `task_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='List of available tasks';

--
-- Dumping data for table `task`
--


--
-- Table structure for table `task_assign`
--

CREATE TABLE `task_assign` (
  `task_assign_id` int NOT NULL AUTO_INCREMENT,
  `tasks_id` int NOT NULL,
  `user_id` int DEFAULT NULL,
  `role_id` int DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int NOT NULL,
  `hide` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`task_assign_id`),
  KEY `task_assign_tasks_id_foreign` (`tasks_id`),
  KEY `task_assign_role_id_foreign` (`role_id`),
  KEY `task_assign_created_by_foreign` (`created_by`),
  CONSTRAINT `task_assign_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `task_assign_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON UPDATE CASCADE,
  CONSTRAINT `task_assign_tasks_id_foreign` FOREIGN KEY (`tasks_id`) REFERENCES `tasks` (`tasks_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='List of users or roles assigned to each task';

--
-- Dumping data for table `task_assign`
--


--
-- Table structure for table `task_tag`
--

CREATE TABLE `task_tag` (
  `task_tag_id` int NOT NULL AUTO_INCREMENT,
  `task_tag_title` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int NOT NULL,
  `hide` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`task_tag_id`),
  KEY `task_tag_created_by_foreign` (`created_by`),
  CONSTRAINT `task_tag_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `task_tag`
--


--
-- Table structure for table `tasks`
--

CREATE TABLE `tasks` (
  `tasks_id` int NOT NULL AUTO_INCREMENT,
  `task_id` int NOT NULL,
  `task_status` tinyint NOT NULL DEFAULT '1' COMMENT '0=canceled, 1=todo, 2=in progress, 3=done',
  `priority` tinyint NOT NULL DEFAULT '1' COMMENT '1=low, 2=medium, 3=high',
  `data` text COLLATE utf8mb4_unicode_ci COMMENT 'JSON string of task''s variables',
  `description` text COLLATE utf8mb4_unicode_ci COMMENT 'JSON string for the description',
  `location_id` int NOT NULL,
  `due_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `start_time` timestamp NULL DEFAULT NULL,
  `end_time` timestamp NULL DEFAULT NULL,
  `previous_tasks_id` int DEFAULT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `completed_by` int DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`tasks_id`),
  KEY `tasks_task_id_foreign` (`task_id`),
  KEY `tasks_location_id_foreign` (`location_id`),
  KEY `tasks_previous_tasks_id_foreign` (`previous_tasks_id`),
  KEY `tasks_created_by_foreign` (`created_by`),
  KEY `tasks_updated_by_foreign` (`updated_by`),
  KEY `tasks_completed_by_foreign` (`completed_by`),
  CONSTRAINT `tasks_completed_by_foreign` FOREIGN KEY (`completed_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `tasks_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `tasks_location_id_foreign` FOREIGN KEY (`location_id`) REFERENCES `location` (`location_id`) ON UPDATE CASCADE,
  CONSTRAINT `tasks_previous_tasks_id_foreign` FOREIGN KEY (`previous_tasks_id`) REFERENCES `tasks` (`tasks_id`) ON UPDATE CASCADE,
  CONSTRAINT `tasks_task_id_foreign` FOREIGN KEY (`task_id`) REFERENCES `task` (`task_id`) ON UPDATE CASCADE,
  CONSTRAINT `tasks_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='List of tasks';

--
-- Dumping data for table `tasks`
--


--
-- Table structure for table `tasks_comment`
--

CREATE TABLE `tasks_comment` (
  `tasks_comment_id` int NOT NULL AUTO_INCREMENT,
  `tasks_id` int NOT NULL,
  `comment` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `hide` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`tasks_comment_id`),
  KEY `tasks_comment_tasks_id_foreign` (`tasks_id`),
  KEY `tasks_comment_created_by_foreign` (`created_by`),
  KEY `tasks_comment_updated_by_foreign` (`updated_by`),
  CONSTRAINT `tasks_comment_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `tasks_comment_tasks_id_foreign` FOREIGN KEY (`tasks_id`) REFERENCES `tasks` (`tasks_id`) ON UPDATE CASCADE,
  CONSTRAINT `tasks_comment_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `tasks_comment`
--


--
-- Table structure for table `tasks_tag`
--

CREATE TABLE `tasks_tag` (
  `tasks_tag_id` int NOT NULL AUTO_INCREMENT,
  `tasks_id` int NOT NULL,
  `task_tag_id` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int NOT NULL,
  `hide` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`tasks_tag_id`),
  UNIQUE KEY `tasks_tag_tasks_id_task_tag_id_unique` (`tasks_id`,`task_tag_id`),
  KEY `tasks_tag_task_tag_id_foreign` (`task_tag_id`),
  KEY `tasks_tag_created_by_foreign` (`created_by`),
  CONSTRAINT `tasks_tag_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `tasks_tag_task_tag_id_foreign` FOREIGN KEY (`task_tag_id`) REFERENCES `task_tag` (`task_tag_id`) ON UPDATE CASCADE,
  CONSTRAINT `tasks_tag_tasks_id_foreign` FOREIGN KEY (`tasks_id`) REFERENCES `tasks` (`tasks_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `tasks_tag`
--


--
-- Table structure for table `telescope_entries`
--

CREATE TABLE `telescope_entries` (
  `sequence` bigint unsigned NOT NULL AUTO_INCREMENT,
  `uuid` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
  `batch_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
  `family_hash` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `should_display_on_index` tinyint(1) NOT NULL DEFAULT '1',
  `type` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
  `content` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` datetime DEFAULT NULL,
  PRIMARY KEY (`sequence`),
  UNIQUE KEY `telescope_entries_uuid_unique` (`uuid`),
  KEY `telescope_entries_batch_id_index` (`batch_id`),
  KEY `telescope_entries_family_hash_index` (`family_hash`),
  KEY `telescope_entries_created_at_index` (`created_at`),
  KEY `telescope_entries_type_should_display_on_index_index` (`type`,`should_display_on_index`)
) ENGINE=InnoDB AUTO_INCREMENT=282 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `telescope_entries`
--

INSERT INTO `telescope_entries` VALUES (1,'9c88ef63-f93a-45c4-a163-7c525f64416e','9c88ef64-5378-4bdf-a1b1-65ce3fbddc44',NULL,1,'request','{\"ip_address\":\"127.0.0.1\",\"uri\":\"\\/api\\/csrf-cookie\",\"method\":\"GET\",\"controller_action\":\"Laravel\\\\Sanctum\\\\Http\\\\Controllers\\\\CsrfCookieController@show\",\"middleware\":[\"web\"],\"headers\":{\"host\":\"localhost:8000\",\"connection\":\"keep-alive\",\"sec-ch-ua\":\"\\\"Not\\/A)Brand\\\";v=\\\"8\\\", \\\"Chromium\\\";v=\\\"126\\\", \\\"Google Chrome\\\";v=\\\"126\\\"\",\"accept\":\"application\\/json, text\\/plain, *\\/*\",\"sec-ch-ua-mobile\":\"?0\",\"user-agent\":\"Mozilla\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\/537.36 (KHTML, like Gecko) Chrome\\/126.0.0.0 Safari\\/537.36\",\"sec-ch-ua-platform\":\"\\\"Windows\\\"\",\"origin\":\"http:\\/\\/localhost:9000\",\"sec-fetch-site\":\"same-site\",\"sec-fetch-mode\":\"cors\",\"sec-fetch-dest\":\"empty\",\"referer\":\"http:\\/\\/localhost:9000\\/\",\"accept-encoding\":\"gzip, deflate, br, zstd\",\"accept-language\":\"fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7\",\"cookie\":\"Studio-99d0ba62=5b48f54f-6700-41a2-a846-66f6b501e1b9; io=nze2GWQNRP6HfBvlAAAA\"},\"payload\":[],\"session\":{\"_token\":\"rTfeNLVBInMDocTBHqRiEKPwIQdX4ZDrKl9BkLsO\",\"_previous\":{\"url\":\"http:\\/\\/localhost:8000\\/api\\/csrf-cookie\"},\"_flash\":{\"old\":[],\"new\":[]}},\"response_status\":204,\"response\":\"Empty Response\",\"duration\":886,\"memory\":22,\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:44:18'),(2,'9c88ef65-7ae2-4b0b-b848-2205646988b1','9c88ef65-8279-4951-8d4f-191f980df0a5',NULL,1,'request','{\"ip_address\":\"127.0.0.1\",\"uri\":\"\\/api\\/login\",\"method\":\"OPTIONS\",\"controller_action\":null,\"middleware\":[],\"headers\":{\"host\":\"localhost:8000\",\"connection\":\"keep-alive\",\"accept\":\"*\\/*\",\"access-control-request-method\":\"POST\",\"access-control-request-headers\":\"content-type,x-xsrf-token\",\"origin\":\"http:\\/\\/localhost:9000\",\"user-agent\":\"Mozilla\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\/537.36 (KHTML, like Gecko) Chrome\\/126.0.0.0 Safari\\/537.36\",\"sec-fetch-mode\":\"cors\",\"sec-fetch-site\":\"same-site\",\"sec-fetch-dest\":\"empty\",\"referer\":\"http:\\/\\/localhost:9000\\/\",\"accept-encoding\":\"gzip, deflate, br, zstd\",\"accept-language\":\"fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7\"},\"payload\":[],\"session\":[],\"response_status\":204,\"response\":\"Empty Response\",\"duration\":450,\"memory\":22,\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:44:18'),(3,'9c88ef67-5e3b-405e-9b9b-2ce3a1ce889d','9c88ef67-64ff-4784-9799-04dd6ddbf526','a4fc74eaaffc76a60800dd4729867783',1,'exception','{\"class\":\"ErrorException\",\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\app\\\\Http\\\\Controllers\\\\Auth\\\\AuthController.php\",\"line\":47,\"message\":\"Attempt to read property \\\"location_id\\\" on null\",\"context\":{\"userId\":1},\"trace\":[{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Bootstrap\\\\HandleExceptions.php\",\"line\":270},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\app\\\\Http\\\\Controllers\\\\Auth\\\\AuthController.php\",\"line\":47},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Routing\\\\ControllerDispatcher.php\",\"line\":46},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Routing\\\\Route.php\",\"line\":259},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Routing\\\\Route.php\",\"line\":205},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Routing\\\\Router.php\",\"line\":798},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":141},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Routing\\\\Middleware\\\\SubstituteBindings.php\",\"line\":50},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\VerifyCsrfToken.php\",\"line\":78},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\View\\\\Middleware\\\\ShareErrorsFromSession.php\",\"line\":49},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Session\\\\Middleware\\\\StartSession.php\",\"line\":121},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Session\\\\Middleware\\\\StartSession.php\",\"line\":64},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Cookie\\\\Middleware\\\\AddQueuedCookiesToResponse.php\",\"line\":37},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Cookie\\\\Middleware\\\\EncryptCookies.php\",\"line\":67},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":116},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Routing\\\\Router.php\",\"line\":797},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Routing\\\\Router.php\",\"line\":776},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Routing\\\\Router.php\",\"line\":740},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Routing\\\\Router.php\",\"line\":729},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Http\\\\Kernel.php\",\"line\":190},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":141},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\TransformsRequest.php\",\"line\":21},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\ConvertEmptyStringsToNull.php\",\"line\":31},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\TransformsRequest.php\",\"line\":21},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\TrimStrings.php\",\"line\":40},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\ValidatePostSize.php\",\"line\":27},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\PreventRequestsDuringMaintenance.php\",\"line\":86},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Http\\\\Middleware\\\\HandleCors.php\",\"line\":62},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Http\\\\Middleware\\\\TrustProxies.php\",\"line\":39},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":116},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Http\\\\Kernel.php\",\"line\":165},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Http\\\\Kernel.php\",\"line\":134},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\public\\\\index.php\",\"line\":51},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\resources\\\\server.php\",\"line\":16}],\"line_preview\":{\"38\":\"\\r\",\"39\":\"        if (auth()->attempt($request->only([\'username\', \'password\']))) {\\r\",\"40\":\"            \\/** @var User $user *\\/\\r\",\"41\":\"\\r\",\"42\":\"            $user = auth()->user();\\r\",\"43\":\"\\r\",\"44\":\"            $location = Location::find(1);\\r\",\"45\":\"            $subLocation = Location::find(3);\\r\",\"46\":\"            $user->last_seen_at = (new DateTime())->format(\\\"Y-m-d H:i:s\\\");\\r\",\"47\":\"            $user->last_seen_location_id = $subLocation->location_id;\\r\",\"48\":\"            $user->save();\\r\",\"49\":\"            \\/\\/$token = $user->createToken($user->username . $user->email)->plainTextToken;\\r\",\"50\":\"\\r\",\"51\":\"            $config = [\\r\",\"52\":\"                \\\"autoLogoutTime\\\" => ConfigParameter::where(\'config_param\', \'auto_logout_time\')->first(),\\r\",\"53\":\"                \\\"defaultLanguage\\\" => auth()->user()->default_language,\\r\",\"54\":\"            ];\\r\",\"55\":\"\\r\",\"56\":\"            $userLanguage = auth()->user()->default_language;\\r\",\"57\":\"            $person = Person::find($user->person_id);\\r\"},\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"},\"occurrences\":1}','2024-07-16 09:44:20'),(4,'9c88ef66-ef4e-4bfe-93fe-86e78a1e5e1a','9c88ef67-64ff-4784-9799-04dd6ddbf526',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `user` where `username` = \'admin\' and `user`.`deleted_at` is null limit 1\",\"time\":\"17.54\",\"slow\":false,\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\app\\\\Http\\\\Controllers\\\\Auth\\\\AuthController.php\",\"line\":34,\"hash\":\"56f267c17974a18fe94bec013cf898c5\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:44:19'),(5,'9c88ef66-f429-467a-8a9e-be367661cafd','9c88ef67-64ff-4784-9799-04dd6ddbf526',NULL,1,'model','{\"action\":\"retrieved\",\"model\":\"App\\\\Models\\\\User\",\"count\":2,\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:44:19'),(6,'9c88ef67-0b68-4f09-b930-ee6d7098244b','9c88ef67-64ff-4784-9799-04dd6ddbf526',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `user` where `username` = \'admin\' and `user`.`deleted_at` is null limit 1\",\"time\":\"0.77\",\"slow\":false,\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\app\\\\Http\\\\Controllers\\\\Auth\\\\AuthController.php\",\"line\":39,\"hash\":\"56f267c17974a18fe94bec013cf898c5\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:44:19'),(7,'9c88ef67-40bc-4fc0-b59f-e781f7ecac71','9c88ef67-64ff-4784-9799-04dd6ddbf526',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `location` where `location`.`location_id` = 1 and `location`.`deleted_at` is null limit 1\",\"time\":\"1.04\",\"slow\":false,\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\app\\\\Http\\\\Controllers\\\\Auth\\\\AuthController.php\",\"line\":44,\"hash\":\"871d673517b0f916a091abf3feb2091a\",\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"}}','2024-07-16 09:44:20'),(8,'9c88ef67-416f-4361-ad19-49a0d3976410','9c88ef67-64ff-4784-9799-04dd6ddbf526',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `location` where `location`.`location_id` = 3 and `location`.`deleted_at` is null limit 1\",\"time\":\"0.92\",\"slow\":false,\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\app\\\\Http\\\\Controllers\\\\Auth\\\\AuthController.php\",\"line\":45,\"hash\":\"871d673517b0f916a091abf3feb2091a\",\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"}}','2024-07-16 09:44:20'),(9,'9c88ef67-6344-46cf-b228-d3816226709b','9c88ef67-64ff-4784-9799-04dd6ddbf526',NULL,1,'request','{\"ip_address\":\"127.0.0.1\",\"uri\":\"\\/api\\/login\",\"method\":\"POST\",\"controller_action\":\"App\\\\Http\\\\Controllers\\\\Auth\\\\AuthController@authenticate\",\"middleware\":[\"web\"],\"headers\":{\"host\":\"localhost:8000\",\"connection\":\"keep-alive\",\"content-length\":\"45\",\"sec-ch-ua\":\"\\\"Not\\/A)Brand\\\";v=\\\"8\\\", \\\"Chromium\\\";v=\\\"126\\\", \\\"Google Chrome\\\";v=\\\"126\\\"\",\"accept\":\"application\\/json, text\\/plain, *\\/*\",\"content-type\":\"application\\/json\",\"x-xsrf-token\":\"eyJpdiI6IkdGTTZmWjFlS0QrYndQUlQwMVd0SlE9PSIsInZhbHVlIjoidjZyY29mNUdvam1pNHlQVy9mRXRSaFFPdW53WHFUdFBPVnFaOW0zWlNWbW9BUFV6UFhXOUVHdldBMW03TWNObnpLdTJSNC9xakUxeHpkbmoxWlVvYVBPeFFRUHp4MVh6cmFDSGpIUHcvU0ZWUHc5UUNORE01ZzhrQ2ZXZk50ZzIiLCJtYWMiOiJmZDIzZDRjNGZjODlkZWMwOTg4ZWJlNWI4MTk4NDg0YWY5NWVmMTFlZjk0YjdlYmQzNmE1YTVhNDNlNDZjNzYyIiwidGFnIjoiIn0=\",\"sec-ch-ua-mobile\":\"?0\",\"user-agent\":\"Mozilla\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\/537.36 (KHTML, like Gecko) Chrome\\/126.0.0.0 Safari\\/537.36\",\"sec-ch-ua-platform\":\"\\\"Windows\\\"\",\"origin\":\"http:\\/\\/localhost:9000\",\"sec-fetch-site\":\"same-site\",\"sec-fetch-mode\":\"cors\",\"sec-fetch-dest\":\"empty\",\"referer\":\"http:\\/\\/localhost:9000\\/\",\"accept-encoding\":\"gzip, deflate, br, zstd\",\"accept-language\":\"fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7\",\"cookie\":\"Studio-99d0ba62=5b48f54f-6700-41a2-a846-66f6b501e1b9; io=nze2GWQNRP6HfBvlAAAA; XSRF-TOKEN=eyJpdiI6IkdGTTZmWjFlS0QrYndQUlQwMVd0SlE9PSIsInZhbHVlIjoidjZyY29mNUdvam1pNHlQVy9mRXRSaFFPdW53WHFUdFBPVnFaOW0zWlNWbW9BUFV6UFhXOUVHdldBMW03TWNObnpLdTJSNC9xakUxeHpkbmoxWlVvYVBPeFFRUHp4MVh6cmFDSGpIUHcvU0ZWUHc5UUNORE01ZzhrQ2ZXZk50ZzIiLCJtYWMiOiJmZDIzZDRjNGZjODlkZWMwOTg4ZWJlNWI4MTk4NDg0YWY5NWVmMTFlZjk0YjdlYmQzNmE1YTVhNDNlNDZjNzYyIiwidGFnIjoiIn0%3D; laravel_session=eyJpdiI6IkRtMEJVR3ZOU09XeFhQRkRsZFUxS0E9PSIsInZhbHVlIjoiV3pOVmhxWTJjMHN3VUVhYUQ1TmM5a00xSG5wdXpTZzZod1JNQ1V2TWRoTFYxLzhVTDVZaTlZd09yaHBHUFVUMnNNTmJYS0gwSDFVQkF5OWovWVBVZUR2eXBhejd4WGkxMmRqUjFGbkQxNEYzeFllQVl3MjQyWVpOWVZ5ZS9VUG8iLCJtYWMiOiJjMDljYzMwZGRkY2U4OTllZDgzMzJkYTBlZmU1NmE0Y2MxNzZiNDNlMjM0NjdjMTM2NDY0MjFkMmUzZjAzOTQyIiwidGFnIjoiIn0%3D\"},\"payload\":{\"username\":\"admin\",\"password\":\"********\"},\"session\":{\"_token\":\"rTfeNLVBInMDocTBHqRiEKPwIQdX4ZDrKl9BkLsO\",\"_previous\":{\"url\":\"http:\\/\\/localhost:8000\\/api\\/csrf-cookie\"},\"_flash\":{\"old\":[],\"new\":[]},\"login_web_59ba36addc2b2f9401580f014c7f58ea4e30989d\":1},\"response_status\":500,\"response\":{\"message\":\"Attempt to read property \\\"location_id\\\" on null\",\"exception\":\"ErrorException\",\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\app\\\\Http\\\\Controllers\\\\Auth\\\\AuthController.php\",\"line\":47,\"trace\":[{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Bootstrap\\\\HandleExceptions.php\",\"line\":270,\"function\":\"handleError\",\"class\":\"Illuminate\\\\Foundation\\\\Bootstrap\\\\HandleExceptions\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\app\\\\Http\\\\Controllers\\\\Auth\\\\AuthController.php\",\"line\":47,\"function\":\"Illuminate\\\\Foundation\\\\Bootstrap\\\\{closure}\",\"class\":\"Illuminate\\\\Foundation\\\\Bootstrap\\\\HandleExceptions\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Routing\\\\ControllerDispatcher.php\",\"line\":46,\"function\":\"authenticate\",\"class\":\"App\\\\Http\\\\Controllers\\\\Auth\\\\AuthController\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Routing\\\\Route.php\",\"line\":259,\"function\":\"dispatch\",\"class\":\"Illuminate\\\\Routing\\\\ControllerDispatcher\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Routing\\\\Route.php\",\"line\":205,\"function\":\"runController\",\"class\":\"Illuminate\\\\Routing\\\\Route\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Routing\\\\Router.php\",\"line\":798,\"function\":\"run\",\"class\":\"Illuminate\\\\Routing\\\\Route\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":141,\"function\":\"Illuminate\\\\Routing\\\\{closure}\",\"class\":\"Illuminate\\\\Routing\\\\Router\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Routing\\\\Middleware\\\\SubstituteBindings.php\",\"line\":50,\"function\":\"Illuminate\\\\Pipeline\\\\{closure}\",\"class\":\"Illuminate\\\\Pipeline\\\\Pipeline\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180,\"function\":\"handle\",\"class\":\"Illuminate\\\\Routing\\\\Middleware\\\\SubstituteBindings\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\VerifyCsrfToken.php\",\"line\":78,\"function\":\"Illuminate\\\\Pipeline\\\\{closure}\",\"class\":\"Illuminate\\\\Pipeline\\\\Pipeline\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180,\"function\":\"handle\",\"class\":\"Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\VerifyCsrfToken\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\View\\\\Middleware\\\\ShareErrorsFromSession.php\",\"line\":49,\"function\":\"Illuminate\\\\Pipeline\\\\{closure}\",\"class\":\"Illuminate\\\\Pipeline\\\\Pipeline\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180,\"function\":\"handle\",\"class\":\"Illuminate\\\\View\\\\Middleware\\\\ShareErrorsFromSession\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Session\\\\Middleware\\\\StartSession.php\",\"line\":121,\"function\":\"Illuminate\\\\Pipeline\\\\{closure}\",\"class\":\"Illuminate\\\\Pipeline\\\\Pipeline\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Session\\\\Middleware\\\\StartSession.php\",\"line\":64,\"function\":\"handleStatefulRequest\",\"class\":\"Illuminate\\\\Session\\\\Middleware\\\\StartSession\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180,\"function\":\"handle\",\"class\":\"Illuminate\\\\Session\\\\Middleware\\\\StartSession\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Cookie\\\\Middleware\\\\AddQueuedCookiesToResponse.php\",\"line\":37,\"function\":\"Illuminate\\\\Pipeline\\\\{closure}\",\"class\":\"Illuminate\\\\Pipeline\\\\Pipeline\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180,\"function\":\"handle\",\"class\":\"Illuminate\\\\Cookie\\\\Middleware\\\\AddQueuedCookiesToResponse\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Cookie\\\\Middleware\\\\EncryptCookies.php\",\"line\":67,\"function\":\"Illuminate\\\\Pipeline\\\\{closure}\",\"class\":\"Illuminate\\\\Pipeline\\\\Pipeline\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180,\"function\":\"handle\",\"class\":\"Illuminate\\\\Cookie\\\\Middleware\\\\EncryptCookies\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":116,\"function\":\"Illuminate\\\\Pipeline\\\\{closure}\",\"class\":\"Illuminate\\\\Pipeline\\\\Pipeline\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Routing\\\\Router.php\",\"line\":797,\"function\":\"then\",\"class\":\"Illuminate\\\\Pipeline\\\\Pipeline\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Routing\\\\Router.php\",\"line\":776,\"function\":\"runRouteWithinStack\",\"class\":\"Illuminate\\\\Routing\\\\Router\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Routing\\\\Router.php\",\"line\":740,\"function\":\"runRoute\",\"class\":\"Illuminate\\\\Routing\\\\Router\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Routing\\\\Router.php\",\"line\":729,\"function\":\"dispatchToRoute\",\"class\":\"Illuminate\\\\Routing\\\\Router\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Http\\\\Kernel.php\",\"line\":190,\"function\":\"dispatch\",\"class\":\"Illuminate\\\\Routing\\\\Router\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":141,\"function\":\"Illuminate\\\\Foundation\\\\Http\\\\{closure}\",\"class\":\"Illuminate\\\\Foundation\\\\Http\\\\Kernel\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\TransformsRequest.php\",\"line\":21,\"function\":\"Illuminate\\\\Pipeline\\\\{closure}\",\"class\":\"Illuminate\\\\Pipeline\\\\Pipeline\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\ConvertEmptyStringsToNull.php\",\"line\":31,\"function\":\"handle\",\"class\":\"Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\TransformsRequest\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180,\"function\":\"handle\",\"class\":\"Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\ConvertEmptyStringsToNull\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\TransformsRequest.php\",\"line\":21,\"function\":\"Illuminate\\\\Pipeline\\\\{closure}\",\"class\":\"Illuminate\\\\Pipeline\\\\Pipeline\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\TrimStrings.php\",\"line\":40,\"function\":\"handle\",\"class\":\"Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\TransformsRequest\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180,\"function\":\"handle\",\"class\":\"Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\TrimStrings\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\ValidatePostSize.php\",\"line\":27,\"function\":\"Illuminate\\\\Pipeline\\\\{closure}\",\"class\":\"Illuminate\\\\Pipeline\\\\Pipeline\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180,\"function\":\"handle\",\"class\":\"Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\ValidatePostSize\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\PreventRequestsDuringMaintenance.php\",\"line\":86,\"function\":\"Illuminate\\\\Pipeline\\\\{closure}\",\"class\":\"Illuminate\\\\Pipeline\\\\Pipeline\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180,\"function\":\"handle\",\"class\":\"Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\PreventRequestsDuringMaintenance\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Http\\\\Middleware\\\\HandleCors.php\",\"line\":62,\"function\":\"Illuminate\\\\Pipeline\\\\{closure}\",\"class\":\"Illuminate\\\\Pipeline\\\\Pipeline\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180,\"function\":\"handle\",\"class\":\"Illuminate\\\\Http\\\\Middleware\\\\HandleCors\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Http\\\\Middleware\\\\TrustProxies.php\",\"line\":39,\"function\":\"Illuminate\\\\Pipeline\\\\{closure}\",\"class\":\"Illuminate\\\\Pipeline\\\\Pipeline\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180,\"function\":\"handle\",\"class\":\"Illuminate\\\\Http\\\\Middleware\\\\TrustProxies\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":116,\"function\":\"Illuminate\\\\Pipeline\\\\{closure}\",\"class\":\"Illuminate\\\\Pipeline\\\\Pipeline\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Http\\\\Kernel.php\",\"line\":165,\"function\":\"then\",\"class\":\"Illuminate\\\\Pipeline\\\\Pipeline\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Http\\\\Kernel.php\",\"line\":134,\"function\":\"sendRequestThroughRouter\",\"class\":\"Illuminate\\\\Foundation\\\\Http\\\\Kernel\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\public\\\\index.php\",\"line\":51,\"function\":\"handle\",\"class\":\"Illuminate\\\\Foundation\\\\Http\\\\Kernel\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\resources\\\\server.php\",\"line\":16,\"function\":\"require_once\"}]},\"duration\":909,\"memory\":26,\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"}}','2024-07-16 09:44:20'),(10,'9c88efac-46ae-4bbf-b03d-a83b6d9fafdf','9c88efac-5541-4638-ab55-af658e062fb3',NULL,1,'command','{\"command\":\"list\",\"exit_code\":0,\"arguments\":{\"command\":\"list\",\"namespace\":null},\"options\":{\"raw\":false,\"format\":\"txt\",\"short\":false,\"help\":false,\"quiet\":false,\"verbose\":false,\"version\":false,\"ansi\":null,\"no-interaction\":false,\"env\":null},\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:05'),(11,'9c88efac-4db9-4c1b-9191-b9498c45df64','9c88efac-68cf-4140-86f4-42cf40c18fdb',NULL,1,'command','{\"command\":\"list\",\"exit_code\":0,\"arguments\":{\"command\":\"list\",\"namespace\":null},\"options\":{\"raw\":false,\"format\":\"txt\",\"short\":false,\"help\":false,\"quiet\":false,\"verbose\":false,\"version\":false,\"ansi\":null,\"no-interaction\":false,\"env\":null},\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:05'),(12,'9c88efac-b87d-4ab3-88f7-6964d1fa51cb','9c88efac-c451-402b-87a7-7ef18362eea2',NULL,1,'command','{\"command\":\"list\",\"exit_code\":0,\"arguments\":{\"command\":\"list\",\"namespace\":null},\"options\":{\"raw\":false,\"format\":\"txt\",\"short\":false,\"help\":false,\"quiet\":false,\"verbose\":false,\"version\":false,\"ansi\":null,\"no-interaction\":false,\"env\":null},\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:05'),(13,'9c88efad-2c1d-420d-a30c-b04e0df09320','9c88efad-38f4-42a6-b25d-2a2bb58f860b',NULL,1,'command','{\"command\":\"list\",\"exit_code\":0,\"arguments\":{\"command\":\"list\",\"namespace\":null},\"options\":{\"raw\":false,\"format\":\"txt\",\"short\":false,\"help\":false,\"quiet\":false,\"verbose\":false,\"version\":false,\"ansi\":null,\"no-interaction\":false,\"env\":null},\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:05'),(14,'9c88efad-26dc-4827-8e08-3eabf1398f46','9c88efad-5939-43de-b706-efe027cee414',NULL,1,'command','{\"command\":\"list\",\"exit_code\":0,\"arguments\":{\"command\":\"list\",\"namespace\":null},\"options\":{\"raw\":false,\"format\":\"txt\",\"short\":false,\"help\":false,\"quiet\":false,\"verbose\":false,\"version\":false,\"ansi\":null,\"no-interaction\":false,\"env\":null},\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:05'),(15,'9c88efad-5ef6-4bbc-88ff-4bf8d41af033','9c88efad-9171-443b-95c3-da9956949784',NULL,1,'command','{\"command\":\"list\",\"exit_code\":0,\"arguments\":{\"command\":\"list\",\"namespace\":null},\"options\":{\"raw\":false,\"format\":\"txt\",\"short\":false,\"help\":false,\"quiet\":false,\"verbose\":false,\"version\":false,\"ansi\":null,\"no-interaction\":false,\"env\":null},\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:06'),(16,'9c88efac-f6fc-4826-b8d0-1bfc6e84082f','9c88efae-2654-4357-8e92-fb29be0c9c4f',NULL,1,'command','{\"command\":\"list\",\"exit_code\":0,\"arguments\":{\"command\":\"list\",\"namespace\":null},\"options\":{\"raw\":false,\"format\":\"txt\",\"short\":false,\"help\":false,\"quiet\":false,\"verbose\":false,\"version\":false,\"ansi\":null,\"no-interaction\":false,\"env\":null},\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:05'),(17,'9c88efac-e69e-4a42-979e-493c766fb51b','9c88efb0-228f-4696-887b-f365ac8cb386',NULL,1,'command','{\"command\":\"list\",\"exit_code\":0,\"arguments\":{\"command\":\"list\",\"namespace\":null},\"options\":{\"raw\":false,\"format\":\"txt\",\"short\":false,\"help\":false,\"quiet\":false,\"verbose\":false,\"version\":false,\"ansi\":null,\"no-interaction\":false,\"env\":null},\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:05'),(18,'9c88efad-3b26-409d-b832-320537fef958','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'command','{\"command\":\"list\",\"exit_code\":0,\"arguments\":{\"command\":\"list\",\"namespace\":null},\"options\":{\"raw\":false,\"format\":\"txt\",\"short\":false,\"help\":false,\"quiet\":false,\"verbose\":false,\"version\":false,\"ansi\":null,\"no-interaction\":false,\"env\":null},\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:05'),(19,'9c88efae-2bec-4128-8026-de51a550d25d','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `appointment` where `appointment`.`deleted_at` is null limit 1\",\"time\":\"11.77\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"42dc93c9a1a511bd33011ad37955dc2f\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:06'),(20,'9c88efae-31e8-4d82-af80-d97a600ea7de','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `medical_service_request` where `medical_service_request`.`deleted_at` is null limit 1\",\"time\":\"1.83\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"c38b079e8b52b627e53c03a2a6206bd9\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:06'),(21,'9c88efae-36bb-46d1-a9d8-572d2e8997e2','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `medical_service_request_result` where `medical_service_request_result`.`deleted_at` is null limit 1\",\"time\":\"0.92\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"8dc2f0d7d066b1bfa876f3870cac974b\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:06'),(22,'9c88efae-3b5d-4cf2-a2f2-95b551c8a670','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `medical_request_sample` where `medical_request_sample`.`deleted_at` is null limit 1\",\"time\":\"1.12\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"35778fc80652357e80a8525341a76901\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:06'),(23,'9c88efae-406d-483a-ac1b-0573315ae48a','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `tasks` where `tasks`.`deleted_at` is null limit 1\",\"time\":\"4.30\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"13c15ea78d8d5589730cf78def39bb8a\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:06'),(24,'9c88efae-4367-414b-8785-42c95c788a82','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `patient` where `patient`.`deleted_at` is null limit 1\",\"time\":\"0.75\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"dccd89dbf63d989c111c4923dda3f7a5\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:06'),(25,'9c88efae-47d7-4ef7-995e-a507d4780ad0','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `patient_vital_sign` where `patient_vital_sign`.`deleted_at` is null limit 1\",\"time\":\"3.22\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"3f906627286dd7b9d21859c6fdc76dbc\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:06'),(26,'9c88efae-4bef-4e8e-9ac9-156841d11ec2','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `announcement` where `announcement`.`deleted_at` is null limit 1\",\"time\":\"2.05\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"54d62e582cee407153c3bc7918f31528\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:06'),(27,'9c88efae-5200-4918-8ba2-526d892185e3','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `announcement_type` where `announcement_type`.`deleted_at` is null limit 1\",\"time\":\"2.89\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"c1943e64bbd9a88507345af1d02c2c7f\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:06'),(28,'9c88efae-5671-4e2c-aae2-141ec913a720','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `appt_confirmation` where `appt_confirmation`.`deleted_at` is null limit 1\",\"time\":\"2.09\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"6766c5fa67459f1738962e639d1adad5\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:06'),(29,'9c88efae-5b93-4c14-a78c-72166487b08c','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `appt_doctor` where `appt_doctor`.`deleted_at` is null limit 1\",\"time\":\"2.17\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"fcfe6e9205a69950af1985aa5f98cb61\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:06'),(30,'9c88efae-6024-4b6b-a295-6f81e80e5628','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `appt_history` where `appt_history`.`deleted_at` is null limit 1\",\"time\":\"2.41\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"dd5cc0371f6baee97c35ef5fc93df402\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:06'),(31,'9c88efae-650d-4f56-93dd-c69d2c75eeb4','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `appt_reschedule` where `appt_reschedule`.`deleted_at` is null limit 1\",\"time\":\"2.25\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"ea9b6f3868dd89a32e4ee9467b798cfb\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:06'),(32,'9c88efae-6a9a-48df-ae9d-595ad9001c0b','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `appt_status` where `appt_status`.`deleted_at` is null limit 1\",\"time\":\"3.65\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"5e92e38bdef9243bef68fe7ea39be782\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:06'),(33,'9c88efae-6fd2-49f8-ba9f-63a295f539bc','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `bill` where `bill`.`deleted_at` is null limit 1\",\"time\":\"2.33\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"862e9e36ca03c4e6e06475846287f501\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:06'),(34,'9c88efae-763f-4913-b60a-f38d2c6b770a','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `bill_payment` where `bill_payment`.`deleted_at` is null limit 1\",\"time\":\"3.70\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"ed029d65a7112495857defd9cca76859\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:06'),(35,'9c88efae-7d7d-44be-b53a-f865740ab749','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `bill_payment_method` where `bill_payment_method`.`deleted_at` is null limit 1\",\"time\":\"3.69\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"3b11457687a78391e7b6a53b0c7ed3a8\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:06'),(36,'9c88efae-834b-429e-a6b5-52f913ebebad','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `bill_rating` limit 1\",\"time\":\"2.55\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"60e307a9f9f337602b0ea3161263945a\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:06'),(37,'9c88efae-8872-4640-a7e4-4dea5de8dd78','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `bill_review_question` where `bill_review_question`.`deleted_at` is null limit 1\",\"time\":\"2.23\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"39dd5ea3415adc3e4485caea7a412e4b\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:06'),(38,'9c88efae-8db5-4fb1-b53f-c6860d902f8f','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `billing_category` where `billing_category`.`deleted_at` is null limit 1\",\"time\":\"2.25\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"9ff640103ec2cb730f9b59650849b1b2\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:06'),(39,'9c88efae-92fe-490c-961b-6b82d5330c00','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `commune` where `commune`.`deleted_at` is null limit 1\",\"time\":\"3.26\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"767d6eaa564254281d4f7051322414d9\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:06'),(40,'9c88efae-9921-4c05-8b24-577b4f8ec9c5','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `company` where `company`.`deleted_at` is null limit 1\",\"time\":\"2.89\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"545e5d5da35679262e9873236c8df184\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:06'),(41,'9c88efae-a069-4c62-80ff-a01fc629e9b2','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `company_bill` limit 1\",\"time\":\"2.71\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"d4d698e5b0223d44c1b8221a03968e0b\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:06'),(42,'9c88efae-a624-4083-be64-28d53357bf99','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `company_bill_payment` where `company_bill_payment`.`deleted_at` is null limit 1\",\"time\":\"2.26\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"b7597c99f6c4b4f5028589f6e99b784e\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:06'),(43,'9c88efae-ac76-4e85-ada9-1f54d95b2121','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `company_billing_category_code` where `company_billing_category_code`.`deleted_at` is null limit 1\",\"time\":\"2.50\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"86e1c8e0b793e1dc024e40e0425a65ad\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:06'),(44,'9c88efae-b2bd-4621-91a6-71d0a7c79406','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `company_code` where `company_code`.`deleted_at` is null limit 1\",\"time\":\"2.58\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"03133aa0bc11af2f4409d7517841ead1\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:06'),(45,'9c88efae-b7fc-4e12-8d6f-f50f294a858d','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `company_code_mapping` where `company_code_mapping`.`deleted_at` is null limit 1\",\"time\":\"1.86\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"865eb36ca7911338e9cfb8929ac15e8b\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:06'),(46,'9c88efae-bcb1-4f7e-b300-7514d2065977','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `company_medical_service_code` where `company_medical_service_code`.`deleted_at` is null limit 1\",\"time\":\"1.91\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"6987931351a1202ae948794709900d84\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:06'),(47,'9c88efae-c5f6-431e-b71a-eaece45a902d','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `company_medical_service_grouped` limit 1\",\"time\":\"1.82\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"05e7bef5b219abced6eb5dc3de55bee9\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:06'),(48,'9c88efae-c98f-4703-8b31-1b31f0f08237','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `company_price_list_assignation` where `company_price_list_assignation`.`deleted_at` is null limit 1\",\"time\":\"1.85\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"6f47b25bfc91ee8172a09bd828f36a42\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:06'),(49,'9c88efae-cde2-4028-a4d6-43da235d327b','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `company_price_list_billing_category` where `company_price_list_billing_category`.`deleted_at` is null limit 1\",\"time\":\"2.06\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"714edc9b2fd2651286a6c9e678653e80\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:06'),(50,'9c88efae-d207-4bd7-8c02-72425d239871','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `company_price_list_header` where `company_price_list_header`.`deleted_at` is null limit 1\",\"time\":\"1.82\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"d6d0aa6497a11774f72f29f3db7bb45f\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:06'),(51,'9c88efae-d65a-4a63-9b2e-e1299009e5c7','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `company_price_list_medical_category` where `company_price_list_medical_category`.`deleted_at` is null limit 1\",\"time\":\"2.31\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"96ecf8ab37521e53866a03bc6290d18b\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:06'),(52,'9c88efae-dc07-4d80-a9a5-59fb287256cb','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `company_price_list_medical_service` where `company_price_list_medical_service`.`deleted_at` is null limit 1\",\"time\":\"2.68\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"7d6136f7a0f81ca8b2a292efc3a325a3\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:06'),(53,'9c88efae-e56a-4d5a-b74a-73f6905f0c17','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `company_type` where `company_type`.`deleted_at` is null limit 1\",\"time\":\"1.67\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"9a8b43c7c08a3ebd995321c344879702\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(54,'9c88efae-e910-4878-9db1-98cd7bee4fb6','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `config_parameters` limit 1\",\"time\":\"1.41\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"5995a5dc21cd35626eda35c7477eff4f\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(55,'9c88efae-ed3c-42dd-95e4-afbf537a750b','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `country` where `country`.`deleted_at` is null limit 1\",\"time\":\"1.91\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"cc12923c5a17f70ba63aa1eeea8266a5\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(56,'9c88efae-f242-4ee0-84eb-beb65a8a3c9a','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `currency_exchange_rate` where `currency_exchange_rate`.`deleted_at` is null limit 1\",\"time\":\"2.15\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"acf62f38e0a580b83c9368fa3c7ecc6e\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(57,'9c88efae-f747-402f-9ec0-9e984e0fcac1','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `department` where `department`.`deleted_at` is null limit 1\",\"time\":\"1.71\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"08ed8af889a835f5e83af80ffc71cc83\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(58,'9c88efae-fb56-4000-98dc-d7954df874b9','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `diagnostic` where `diagnostic`.`deleted_at` is null limit 1\",\"time\":\"1.89\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"c8dce5eb86ff3f4cdce598dff4d9b490\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(59,'9c88efae-ffb2-49fb-8c98-41f442082023','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `direct_material_cost` limit 1\",\"time\":\"1.56\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"c7f45c418d766d591ed861d73dad002e\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(60,'9c88efaf-048e-4e22-8499-bae06c6a12aa','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `discount` limit 1\",\"time\":\"2.11\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"8016e5a41c72b3476ac17d08c1f34680\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(61,'9c88efaf-0815-4009-b67b-a330fc9861e9','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `discount_on_group` limit 1\",\"time\":\"1.18\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"f2e6a105cfeb2797ae297fd0ade4b6ac\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(62,'9c88efaf-0bfa-43e8-b65f-0ac379c63cb0','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `discount_patient_group` limit 1\",\"time\":\"1.55\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"7b20ef1c30e90e40d85e2375223b2d67\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(63,'9c88efaf-0f6a-4810-b895-a2ff533b3b0d','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `doctor` where `doctor`.`deleted_at` is null limit 1\",\"time\":\"1.84\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"e99696a046d1f25529c35b4954aa1268\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(64,'9c88efaf-13c3-40a8-82eb-fbe410717360','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `doctor_billing` where `doctor_billing`.`deleted_at` is null limit 1\",\"time\":\"1.40\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"a76a52c9ecea4bcfd568f427b4ed2294\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(65,'9c88efaf-1701-47ac-97f1-d07589420357','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `doctor_category_cost` limit 1\",\"time\":\"1.57\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"2ae03ce79c9a516d41a03f2b74628dcb\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(66,'9c88efaf-1a15-4b8b-b0e3-4e9281a18c5b','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `doctor_family_patient` limit 1\",\"time\":\"1.14\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"3d13c5ab1491d08c5c98e1c06e2e8f98\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(67,'9c88efaf-1d92-4072-a85c-396ec9a7bcc0','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `doctor_favorite` where `doctor_favorite`.`deleted_at` is null limit 1\",\"time\":\"1.92\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"2877fcfbba1fcbb6bf04a343bcbd3c84\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(68,'9c88efaf-2074-4741-bb2b-34b8f5864125','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `doctor_note_template` limit 1\",\"time\":\"1.11\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"d96f934254d450fd3d6b42bdae2c9d34\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(69,'9c88efaf-2328-464c-a5d6-dc778583876a','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `doctor_percentage_pay` where `doctor_percentage_pay`.`deleted_at` is null limit 1\",\"time\":\"1.44\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"e27e403f1cb667ee1b384cbbe2a6842c\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(70,'9c88efaf-25fe-4bcc-960b-cbacde677e01','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `doctor_specialty` where `doctor_specialty`.`deleted_at` is null limit 1\",\"time\":\"1.34\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"c3054d048bff856286e5b4a0596b0623\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(71,'9c88efaf-2a17-48f2-b32f-c29e2d0d7918','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `doctor_specialty_filter` limit 1\",\"time\":\"1.77\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"d98044485a7af5c863c65047eab22cd0\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(72,'9c88efaf-2d78-4b59-8f21-2c01b5027b7b','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `doctor_vacancy` limit 1\",\"time\":\"1.33\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"220d1325b4041db6c58187a06c5df81b\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(73,'9c88efaf-3089-419a-aab6-336620984553','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `email_template` where `email_template`.`deleted_at` is null limit 1\",\"time\":\"1.50\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"ee6f76cefef77428aa53e1b4e1ed88b3\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(74,'9c88efaf-33bd-4992-8d03-d54ed8766b05','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `employee` where `employee`.`deleted_at` is null limit 1\",\"time\":\"1.96\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"b5847b675d796cd1bf5a2327f24e482c\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(75,'9c88efaf-3768-4b87-b0cf-a587ab1d4dfe','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `employee_position` limit 1\",\"time\":\"1.35\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"210a15f049962152bf9188e2af4a723b\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(76,'9c88efaf-3a57-4806-b26d-9215cdf791c3','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `employee_vacancy` limit 1\",\"time\":\"1.75\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"3b5c78fc7b88ad2ebe42d4d513a724a5\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(77,'9c88efaf-3d5a-4f78-a2ba-c97d1a216cf5','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `employee_working_day` where `employee_working_day`.`deleted_at` is null limit 1\",\"time\":\"1.38\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"262f79ed47fdbb541a366dcaeeff57f8\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(78,'9c88efaf-4099-4f54-b7d0-a0684cda5194','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `failed_jobs` limit 1\",\"time\":\"1.54\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"e5a9f709f2841b4ded312530dcbcb4c1\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(79,'9c88efaf-47e8-4696-9e29-68c4f03c8f5d','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `form` limit 1\",\"time\":\"1.58\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"96108c58d605869d2ac239afe8d4ef4e\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(80,'9c88efaf-4b7f-41b4-80d0-612b5284417a','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `form_hosp` where `form_hosp`.`deleted_at` is null limit 1\",\"time\":\"2.28\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"728e6506c5ed409b00d628f0307b84ce\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(81,'9c88efaf-512e-4f70-8941-e56467b7bb39','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `form_type` limit 1\",\"time\":\"5.61\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"b4854eec03e9ff0c6bfdd0030621b8fa\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(82,'9c88efaf-5578-4a18-93ed-8af9f57979f6','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `hosp_bed` where `hosp_bed`.`deleted_at` is null limit 1\",\"time\":\"1.89\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"96ce8ba2b912ddbe948d3d388c4c9fb8\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(83,'9c88efaf-596e-46f8-a6aa-067a951795c9','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `hosp_room` where `hosp_room`.`deleted_at` is null limit 1\",\"time\":\"2.10\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"23cf98ebfe222ec8dd3ed13d0e53976a\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(84,'9c88efaf-5e58-409e-8f8f-11899f8e3535','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `hospit_delivery_and_recover` limit 1\",\"time\":\"1.44\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"b9c28de538b0059285a511ccf9a3f4b1\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(85,'9c88efaf-611f-423d-9b1f-03063d7c473c','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `hospit_need` limit 1\",\"time\":\"1.30\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"4539c9f4d99a823fe39c5731acfbbf54\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(86,'9c88efaf-63f7-49c6-8bc2-ae738932e4af','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `hospitalisation` where `hospitalisation`.`deleted_at` is null limit 1\",\"time\":\"1.49\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"959074ac75f76683244cd924b262f6d9\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(87,'9c88efaf-6804-49b5-b2e2-5fe6a79bda3f','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `inventory` where `inventory`.`deleted_at` is null limit 1\",\"time\":\"1.77\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"50cdd07930389d65086fb363411b2c51\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(88,'9c88efaf-6b12-4b58-9345-84c0707cc207','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `inventory_batch` where `inventory_batch`.`deleted_at` is null limit 1\",\"time\":\"1.39\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"65395b97ba2e7950717404d28c9df4c8\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(89,'9c88efaf-6e2d-43a2-b2a4-abecbad42300','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `inventory_batch_freeze` limit 1\",\"time\":\"1.44\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"8f9ab08a02bc23cf4400dd6ef040d1da\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(90,'9c88efaf-70ea-4872-b3e9-fef87782f539','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `inventory_decreased` limit 1\",\"time\":\"1.18\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"3532f9c91ef50f1ffaa2e4ceb371828d\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(91,'9c88efaf-73d3-42ac-8588-e2db42cec169','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `inventory_mapping` limit 1\",\"time\":\"1.65\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"8e26defd451b06c99d3718b7320dd2b6\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(92,'9c88efaf-76a7-4fd7-ab56-c2749ea157e2','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `inventory_not_decreased` limit 1\",\"time\":\"1.31\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"3fce05a229fe5a1ad9ef196643da9089\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(93,'9c88efaf-7979-4500-94af-54f8206120fe','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `inventory_order` where `inventory_order`.`deleted_at` is null limit 1\",\"time\":\"1.49\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"db8522af0ba8ee8ac9e1abe05289fd38\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(94,'9c88efaf-7c8e-42e6-9a6b-ceeb896aeffa','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `inventory_order_history` limit 1\",\"time\":\"1.23\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"5a51c5222485d680a54ffde53912b220\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(95,'9c88efaf-7f6d-4b66-987d-689efdfaa413','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `inventory_order_item` limit 1\",\"time\":\"1.53\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"ba3aab7ff19804a95f047151ed267c85\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(96,'9c88efaf-826e-48f5-bb08-9fcdb7a4105a','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `inventory_received` limit 1\",\"time\":\"1.56\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"ddd61412c1554fdd06d07ee8e54a0773\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(97,'9c88efaf-8550-412b-8182-4f7b61104e0e','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `inventory_transfer` limit 1\",\"time\":\"1.57\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"51dfd9fc1a4844e2a97a7cab6b1450d4\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(98,'9c88efaf-8828-4564-bcb7-adb87d165d3f','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `inventory_unit` where `inventory_unit`.`deleted_at` is null limit 1\",\"time\":\"1.32\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"7cfc5d41173b5406a97c01518457dd01\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(99,'9c88efaf-8aff-4cb3-ad6b-ad2d22451d4e','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `jobs` limit 1\",\"time\":\"1.30\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"1325b33a9ac45b2516f65f4a2cef64ff\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(100,'9c88efaf-8e00-4f81-90ae-ad398821b91e','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `laboratory_units` where `laboratory_units`.`deleted_at` is null limit 1\",\"time\":\"2.01\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"f2a30b690dc4456c0d76d110a6347f90\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(101,'9c88efaf-90b6-46da-b4aa-dcaf5a274f27','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `location` where `location`.`deleted_at` is null limit 1\",\"time\":\"0.84\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"51175cd71e29e183d55974b7e8e7b82a\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(102,'9c88efaf-94d4-4b79-aab8-5493e7b98932','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `location_daily_cash_close` limit 1\",\"time\":\"1.55\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"970f50977dde9424a55f0f6afbc00a52\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(103,'9c88efaf-983d-4fb2-830e-f2e83ac48508','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `medical_category` where `medical_category`.`deleted_at` is null limit 1\",\"time\":\"1.84\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"0a67fda319521e0ff3cc260321822946\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(104,'9c88efaf-9d0b-4569-b83c-127be503e50e','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `medical_category_location_mapping` where `medical_category_location_mapping`.`deleted_at` is null limit 1\",\"time\":\"1.85\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"da03ecf5b62eae3ee17d10c0366c34e1\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(105,'9c88efaf-a1d9-4706-8ed7-8a2d342d39e5','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `medical_category_tube_conf` where `medical_category_tube_conf`.`deleted_at` is null limit 1\",\"time\":\"2.01\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"65fd5e5c13da8e4824a537ea95f2791a\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(106,'9c88efaf-a639-4805-9a2d-ca8b21ae2033','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `medical_device` limit 1\",\"time\":\"2.23\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"a7a27b59b4658075d92874d15d8c880e\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(107,'9c88efaf-aa23-4051-a53b-f086bd5a69d6','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `medical_prescription_served_qty` limit 1\",\"time\":\"1.56\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"392ebcbee2eb5ee42dacbbcf88a22504\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(108,'9c88efaf-ae3e-42ca-a726-d03696fdd942','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `medical_request_document` where `medical_request_document`.`deleted_at` is null limit 1\",\"time\":\"1.87\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"fb5d9f927867905ed4cc38ce5596f7d5\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(109,'9c88efaf-b2ed-45f1-951e-841e500e5f5d','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `medical_request_expected_time_update_history` limit 1\",\"time\":\"1.92\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"6eb41e2d38dca402db3b33fe779f07eb\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(110,'9c88efaf-b737-4b1d-8c7a-133fd0f4fc72','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `medical_request_flow_status_history` limit 1\",\"time\":\"1.83\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"ac9254aee4f2ad7d573d8f3c1f62358f\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(111,'9c88efaf-bbe5-4d9c-9023-37f69589e491','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `medical_request_imagery` limit 1\",\"time\":\"2.69\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"e0c77697b59da1063dcd3c0adbd2d51f\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(112,'9c88efaf-c0bb-4f07-95c3-36ca847399a6','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `medical_request_sample_tube` where `medical_request_sample_tube`.`deleted_at` is null limit 1\",\"time\":\"2.34\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"5f4b3d00de7a23b8bafa846d6093be92\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(113,'9c88efaf-c588-49c5-922b-62781d8b2bd1','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `medical_service` where `medical_service`.`deleted_at` is null limit 1\",\"time\":\"2.57\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"0d9269056cfee8edd8168b37cdda9c52\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(114,'9c88efaf-ca54-490a-ae46-56d6116eb73a','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `medical_service_cost` limit 1\",\"time\":\"1.74\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"51fb9dca6da3d40e533fad839c73b2d5\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(115,'9c88efaf-cd96-43f9-81f0-d9efedcb938a','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `medical_service_duration` limit 1\",\"time\":\"1.44\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"a768e96b4e51d3ca644d40d10ade9852\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(116,'9c88efaf-d048-4f73-b232-5efdcbeb92cf','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `medical_service_group` where `medical_service_group`.`deleted_at` is null limit 1\",\"time\":\"1.21\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"30416aa2173d105b883e1c3151848b21\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(117,'9c88efaf-d371-45a1-bb86-939166ae1067','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `medical_service_inv` where `medical_service_inv`.`deleted_at` is null limit 1\",\"time\":\"1.86\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"e30e254957e2dc167df5b61e230031b4\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(118,'9c88efaf-d8f2-4398-8d55-e7151016e939','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `medical_service_molecule` limit 1\",\"time\":\"1.21\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"a0709fca0286f3031bb12e6a2dd531e4\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(119,'9c88efaf-dba6-439c-b215-d2016a34b40b','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `medical_service_prescription` where `medical_service_prescription`.`deleted_at` is null limit 1\",\"time\":\"1.31\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"c5779284b41fcae46001614a184fa56e\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(120,'9c88efaf-defe-44fe-8d92-05743b966e6f','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `medical_service_ref_value` where `medical_service_ref_value`.`deleted_at` is null limit 1\",\"time\":\"2.28\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"138fd5b7747b6f9161883fcc2a3b3095\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(121,'9c88efaf-e3d4-4e08-bfdf-b32e610720a9','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `medical_service_tube_configuration` where `medical_service_tube_configuration`.`deleted_at` is null limit 1\",\"time\":\"2.05\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"827ea6ce04d5b42207dd8c9edd5c9d31\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(122,'9c88efaf-eb92-4bf6-8334-055aa946f5fc','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `meta_data` where `meta_data`.`deleted_at` is null limit 1\",\"time\":\"6.12\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"4ca68ffe11eebfca8a7306c8edc17bb3\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(123,'9c88efaf-f18d-4e7e-9954-e5c54377bbf5','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `molecule` where `molecule`.`deleted_at` is null limit 1\",\"time\":\"2.93\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"fc2c647513617115a5f552b760f0e8ef\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(124,'9c88efaf-f802-4659-9418-68b76703f3d2','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `molecule_side_effect` limit 1\",\"time\":\"2.24\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"aafa26c15c32666170b5b9de9d180e11\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(125,'9c88efaf-fdbb-498d-8577-c3000640038c','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `note_category` where `note_category`.`deleted_at` is null limit 1\",\"time\":\"2.50\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"26f3a6f781478de898ebf4fc565a9eac\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(126,'9c88efb0-0393-4871-9346-c975d4ed0662','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `password_resets` limit 1\",\"time\":\"2.06\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"75723444923cdb392b04cdded71c8a3b\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(127,'9c88efb0-0ab9-47c3-b1a2-98709f9eda5c','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `patient_allergy` where `patient_allergy`.`deleted_at` is null limit 1\",\"time\":\"6.15\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"4431402abc37d94445050e1d95cd60e2\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(128,'9c88efb0-10ea-4df1-b254-e53482f23d5c','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `patient_allergy_molecule` limit 1\",\"time\":\"2.27\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"fc2b6c1bcef6345c18e7725e76fc9967\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(129,'9c88efb0-1640-4229-a6c0-a5c5b97b9c11','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `patient_allergy_type` limit 1\",\"time\":\"2.22\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"415854a20afbccaa3eb7f6874376a100\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(130,'9c88efb0-1a8b-4116-b8b8-fb25e4f30f16','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `patient_antecedent` where `patient_antecedent`.`deleted_at` is null limit 1\",\"time\":\"1.72\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"f3f376efd10afa2cf0a2b8196a59bb28\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(131,'9c88efb0-1de5-4c9d-93e3-1e7d97f12c61','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `patient_antecedent_type` limit 1\",\"time\":\"1.19\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"cc1ad71293e4298b96a076d18817d467\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(132,'9c88efb0-21be-45a9-be32-188be2224ab2','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `patient_chronic_disease` where `patient_chronic_disease`.`deleted_at` is null limit 1\",\"time\":\"2.34\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"1e79de8f1fecfb9fb06ad703274fd28f\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(133,'9c88efb0-277a-4d5f-9fab-307f608889ef','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `patient_chronic_disease_request` limit 1\",\"time\":\"2.50\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"6942fd25d8d03eb9accddb3f121b12c6\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(134,'9c88efb0-2ff1-40c4-8c15-99e430582201','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `patient_company_relation` where `patient_company_relation`.`deleted_at` is null limit 1\",\"time\":\"4.51\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"e173bd188c110c4ab1740354c219d33d\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(135,'9c88efb0-36af-4b66-8fe4-0e6ed5fab3a2','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `patient_demographic_history` limit 1\",\"time\":\"3.57\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"db000d632f40d62cb27e9522d6e4ee88\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(136,'9c88efb0-3d8d-4b03-831c-9ed428e88a87','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `patient_file_access` limit 1\",\"time\":\"3.78\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"acb71b30c101124f4605643b9ded9ac6\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(137,'9c88efb0-43b3-4a13-807d-3b77a6a88456','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `patient_need` where `patient_need`.`deleted_at` is null limit 1\",\"time\":\"3.53\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"a3fca7d6ac8b73eef39659acf188d4a5\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(138,'9c88efb0-4b30-44b5-b88c-c155c72d9556','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `patient_other_note` where `patient_other_note`.`deleted_at` is null limit 1\",\"time\":\"3.72\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"1b5c0862e912bfa190e944cb320f0376\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(139,'9c88efb0-5216-49c1-8a08-9e536663fb84','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `patient_pregnant` where `patient_pregnant`.`deleted_at` is null limit 1\",\"time\":\"3.55\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"8f7188cebea57b6fccc3090888a59232\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(140,'9c88efb0-59e3-424a-95da-a95a3e953017','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `patient_treatment_plan` where `patient_treatment_plan`.`deleted_at` is null limit 1\",\"time\":\"5.63\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"42764e94b8763fa5748aa5a4529a1a9b\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(141,'9c88efb0-6097-43b8-b61f-3b658f3195f5','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `patient_vaccine` where `patient_vaccine`.`deleted_at` is null limit 1\",\"time\":\"4.67\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"7eaedd11ec744242fbd36f0a2a3f3d7b\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:07'),(142,'9c88efb0-6730-4048-9e86-667a278b675e','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `person` where `person`.`deleted_at` is null limit 1\",\"time\":\"3.54\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"7fe879bb88ae65540e6d3b7b4586abb7\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:08'),(143,'9c88efb0-6d8e-4d60-851c-9b355a47ec67','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `person_relation` limit 1\",\"time\":\"2.38\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"7ab6070c2180a197a9b2577695e6f770\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:08'),(144,'9c88efb0-7369-4d69-adbc-1bc5bbd299d5','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `proforma_billing_category` where `proforma_billing_category`.`deleted_at` is null limit 1\",\"time\":\"3.53\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"81bd25eca7b832a09fffce5a2670e5f6\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:08'),(145,'9c88efb0-7a18-4899-83aa-bc07b60eda15','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `proforma_invoice` limit 1\",\"time\":\"4.25\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"ea66668c5b4f9ba31428f20fc4903734\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:08'),(146,'9c88efb0-8086-4cf7-9432-8c4507154aa7','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `proforma_medical_service` where `proforma_medical_service`.`deleted_at` is null limit 1\",\"time\":\"3.17\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"5c278c70d6f43a17e562d3a690234b09\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:08'),(147,'9c88efb0-8686-4e2f-b7ec-dabf78f28116','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `receipt` limit 1\",\"time\":\"3.57\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"93ff49a43758a56e833e17e32a332957\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:08'),(148,'9c88efb0-8d15-4ffd-bf9d-cde94949819a','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `result_raw_data_import` limit 1\",\"time\":\"4.12\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"eac8e77b50de83faf367cdf7ff057a3e\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:08'),(149,'9c88efb0-92ac-4666-917e-23abe120ce29','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `side_effect` limit 1\",\"time\":\"2.94\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"7acc38c743814cebb710d659e158e7a5\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:08'),(150,'9c88efb0-9963-40f8-8ce0-ace6cf9b3a7e','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `sql_native_report` limit 1\",\"time\":\"4.60\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"90737ebd1b2ec6167258d6299dced5a2\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:08'),(151,'9c88efb0-9f82-4967-a9bf-2c9302582f01','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `supplier` limit 1\",\"time\":\"4.17\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"cf64a3988ce7d738d1fe067edc563a23\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:08'),(152,'9c88efb0-a6ec-4173-8ab7-167c11151b7b','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `task` where `task`.`deleted_at` is null limit 1\",\"time\":\"4.43\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"cab8a90d14b4f1b6c521a27d4df5a0a5\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:08'),(153,'9c88efb0-add3-4c17-a386-41a256296e8e','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `task_assign` limit 1\",\"time\":\"3.80\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"c055a8722577b589fbbbbc4bcd1f251d\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:08'),(154,'9c88efb0-b5cf-4fc9-bbfc-b170210e214a','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `task_tag` limit 1\",\"time\":\"6.81\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"4e0e52b2355c5001fe036b0b2094d499\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:08'),(155,'9c88efb0-bf3e-47b4-add9-a1e915adb55b','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `tasks_comment` limit 1\",\"time\":\"4.29\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"413f09cc6473bd74f94567dcf123d18a\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:08'),(156,'9c88efb0-ca0f-4631-846f-db47079e3fe0','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `tasks_tag` limit 1\",\"time\":\"3.96\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"f18229a82a14e3edb82ab95294b58e66\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:08'),(157,'9c88efb0-d623-4283-b8bf-623fbc1d4fe2','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `template_working_day` where `template_working_day`.`deleted_at` is null limit 1\",\"time\":\"7.30\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"259f9aba102790d54df0f199c9568288\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:08'),(158,'9c88efb0-df48-43d6-b1f2-0d4fa6027282','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `th_family` limit 1\",\"time\":\"3.49\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"ea230e91555bc7fb24bf9f47fb3acc9a\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:08'),(159,'9c88efb0-e906-4aea-9fea-c4cddc15ce32','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `treatment_plan_config` where `treatment_plan_config`.`deleted_at` is null limit 1\",\"time\":\"6.82\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"7d1e02cec3c561087dd1f3285f2be826\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:08'),(160,'9c88efb0-f298-49f8-94e1-904e6988ae58','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `treatment_plan_template` where `treatment_plan_template`.`deleted_at` is null limit 1\",\"time\":\"6.09\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"a77a73e4335c5f59942465ee37f25695\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:08'),(161,'9c88efb0-fb01-4131-9fdb-ab145fd534b8','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `user` where `user`.`deleted_at` is null limit 1\",\"time\":\"3.07\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"19b8bd062e404d4b00bd8d3f85490a8e\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:08'),(162,'9c88efb0-fb54-4eeb-be5a-49a6632d9dea','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'model','{\"action\":\"retrieved\",\"model\":\"App\\\\Models\\\\User\",\"count\":1,\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:08'),(163,'9c88efb1-12f9-4a50-bd7e-b9ca6f150bb4','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `visit` where `visit`.`deleted_at` is null limit 1\",\"time\":\"5.50\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"c4b6deeff0a5346f8e0e132ea60fd824\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:08'),(164,'9c88efb1-1da2-4e81-b720-40c673807546','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `visit_diagnostic` where `visit_diagnostic`.`deleted_at` is null limit 1\",\"time\":\"7.16\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"609d94951c15278e812282326debcf74\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:08'),(165,'9c88efb1-25bc-418b-929b-5a85a3068374','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `visit_note` where `visit_note`.`deleted_at` is null limit 1\",\"time\":\"2.95\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"7bae32dd58d6b369dfc549fa94ac0880\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:08'),(166,'9c88efb1-2f6c-4b87-bba9-0cf8a3ec5bc4','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `visit_scan` where `visit_scan`.`deleted_at` is null limit 1\",\"time\":\"4.18\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"8c119d9ec3669ca689f8a6f772f3c867\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:08'),(167,'9c88efb1-38a4-48a3-9e24-c96b7b6d9381','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `visit_scan_image` where `visit_scan_image`.`deleted_at` is null limit 1\",\"time\":\"4.64\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"f21959fb23c435c33a88d167ec33b9dd\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:08'),(168,'9c88efb1-421b-4c49-aa12-ee62cbf1258a','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `vital_sign_ref_value` where `vital_sign_ref_value`.`deleted_at` is null limit 1\",\"time\":\"6.12\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"0aca6898ed5f765c9c3079b6afa06066\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:08'),(169,'9c88efb1-4a53-4671-b88d-147224c98225','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `walking_client` limit 1\",\"time\":\"4.55\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"7414c13f11c533d52e05e0b3367ab3e4\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:08'),(170,'9c88efb1-51cf-45e7-a99b-5717fb282166','9c88efb1-97c2-4dbe-80bf-c5e238ceef88',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `working_days_by_template` where `working_days_by_template`.`deleted_at` is null limit 1\",\"time\":\"4.61\",\"slow\":false,\"file\":\"Command line code\",\"line\":1,\"hash\":\"9ac1ce6126bf2944e7f1a2045d0e5f14\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:08'),(171,'9c88efb3-0f4c-4618-aa5c-7d6a91dbfa2d','9c88efb3-17e0-471e-b328-800325f4466b',NULL,1,'command','{\"command\":\"list\",\"exit_code\":0,\"arguments\":{\"command\":\"list\",\"namespace\":null},\"options\":{\"raw\":false,\"format\":\"txt\",\"short\":false,\"help\":false,\"quiet\":false,\"verbose\":false,\"version\":false,\"ansi\":null,\"no-interaction\":false,\"env\":null},\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:09'),(172,'9c88efb3-1212-40cf-bd97-c9705699e261','9c88efb3-1c2c-48f1-a584-300966063373',NULL,1,'command','{\"command\":\"list\",\"exit_code\":0,\"arguments\":{\"command\":\"list\",\"namespace\":null},\"options\":{\"raw\":false,\"format\":\"txt\",\"short\":false,\"help\":false,\"quiet\":false,\"verbose\":false,\"version\":false,\"ansi\":null,\"no-interaction\":false,\"env\":null},\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:09'),(173,'9c88efb9-b92e-4801-97ca-b780ba8f3369','9c88efb9-e572-402d-9f90-398bee25e527',NULL,1,'command','{\"command\":\"list\",\"exit_code\":0,\"arguments\":{\"command\":\"list\",\"namespace\":null},\"options\":{\"raw\":false,\"format\":\"txt\",\"short\":false,\"help\":false,\"quiet\":false,\"verbose\":false,\"version\":false,\"ansi\":null,\"no-interaction\":false,\"env\":null},\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:14'),(174,'9c88efbe-4f91-4977-85e5-fa6c5579a789','9c88efbe-5bb6-478e-861f-950c567e0539',NULL,1,'command','{\"command\":\"list\",\"exit_code\":0,\"arguments\":{\"command\":\"list\",\"namespace\":null},\"options\":{\"raw\":false,\"format\":\"txt\",\"short\":false,\"help\":false,\"quiet\":false,\"verbose\":false,\"version\":false,\"ansi\":null,\"no-interaction\":false,\"env\":null},\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:17'),(175,'9c88eff8-3b4e-4023-986b-fc72faf57aff','9c88eff8-4595-4ebd-990e-6285f1f666c5',NULL,1,'command','{\"command\":\"list\",\"exit_code\":0,\"arguments\":{\"command\":\"list\",\"namespace\":null},\"options\":{\"raw\":false,\"format\":\"txt\",\"short\":false,\"help\":false,\"quiet\":false,\"verbose\":false,\"version\":false,\"ansi\":null,\"no-interaction\":false,\"env\":null},\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:45:55'),(176,'9c88f004-fd88-4f6d-89c3-2b714fb35f66','9c88f005-04f0-4620-b70b-79b3f0ca07d2',NULL,1,'command','{\"command\":\"list\",\"exit_code\":0,\"arguments\":{\"command\":\"list\",\"namespace\":null},\"options\":{\"raw\":false,\"format\":\"txt\",\"short\":false,\"help\":false,\"quiet\":false,\"verbose\":false,\"version\":false,\"ansi\":null,\"no-interaction\":false,\"env\":null},\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:46:03'),(177,'9c88f005-014d-4a4e-add7-094e77aedd54','9c88f005-2356-49a2-a93f-bd84b106787b',NULL,1,'command','{\"command\":\"list\",\"exit_code\":0,\"arguments\":{\"command\":\"list\",\"namespace\":null},\"options\":{\"raw\":false,\"format\":\"txt\",\"short\":false,\"help\":false,\"quiet\":false,\"verbose\":false,\"version\":false,\"ansi\":null,\"no-interaction\":false,\"env\":null},\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:46:03'),(178,'9c88f060-59c2-4779-96e7-76b5bd5d6a00','9c88f060-619e-4b33-acf1-e9ac275c455c',NULL,1,'command','{\"command\":\"list\",\"exit_code\":0,\"arguments\":{\"command\":\"list\",\"namespace\":null},\"options\":{\"raw\":false,\"format\":\"txt\",\"short\":false,\"help\":false,\"quiet\":false,\"verbose\":false,\"version\":false,\"ansi\":null,\"no-interaction\":false,\"env\":null},\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:47:03'),(179,'9c88f060-5927-4eb5-b2b4-4c6cffd1120b','9c88f060-7642-445a-854a-b569339f27db',NULL,1,'command','{\"command\":\"list\",\"exit_code\":0,\"arguments\":{\"command\":\"list\",\"namespace\":null},\"options\":{\"raw\":false,\"format\":\"txt\",\"short\":false,\"help\":false,\"quiet\":false,\"verbose\":false,\"version\":false,\"ansi\":null,\"no-interaction\":false,\"env\":null},\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:47:03'),(180,'9c88f083-5b52-4743-aa43-c25b586f5916','9c88f083-6bfa-4d35-87a8-c5a1876453d1',NULL,1,'request','{\"ip_address\":\"127.0.0.1\",\"uri\":\"\\/api\\/csrf-cookie\",\"method\":\"OPTIONS\",\"controller_action\":null,\"middleware\":[],\"headers\":{\"host\":\"localhost:8000\",\"connection\":\"keep-alive\",\"accept\":\"*\\/*\",\"access-control-request-method\":\"GET\",\"access-control-request-headers\":\"x-xsrf-token\",\"origin\":\"http:\\/\\/localhost:9000\",\"user-agent\":\"Mozilla\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\/537.36 (KHTML, like Gecko) Chrome\\/126.0.0.0 Safari\\/537.36\",\"sec-fetch-mode\":\"cors\",\"sec-fetch-site\":\"same-site\",\"sec-fetch-dest\":\"empty\",\"referer\":\"http:\\/\\/localhost:9000\\/\",\"accept-encoding\":\"gzip, deflate, br, zstd\",\"accept-language\":\"fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7\"},\"payload\":[],\"session\":[],\"response_status\":204,\"response\":\"Empty Response\",\"duration\":1038,\"memory\":22,\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:47:26'),(181,'9c88f084-b9fa-4566-92e1-170d86094db1','9c88f084-c00d-47ea-9bd1-d17bfd2cb10d',NULL,1,'request','{\"ip_address\":\"127.0.0.1\",\"uri\":\"\\/api\\/csrf-cookie\",\"method\":\"GET\",\"controller_action\":\"Laravel\\\\Sanctum\\\\Http\\\\Controllers\\\\CsrfCookieController@show\",\"middleware\":[\"web\"],\"headers\":{\"host\":\"localhost:8000\",\"connection\":\"keep-alive\",\"sec-ch-ua\":\"\\\"Not\\/A)Brand\\\";v=\\\"8\\\", \\\"Chromium\\\";v=\\\"126\\\", \\\"Google Chrome\\\";v=\\\"126\\\"\",\"accept\":\"application\\/json, text\\/plain, *\\/*\",\"x-xsrf-token\":\"eyJpdiI6IlpnRUtWUVU0MnpHYW9saGJBcW9oZlE9PSIsInZhbHVlIjoiRTVlbzBQMWNRcW9Hak56ak0zN3FJUGFXZTVONW5mRThJOTJEY0c0cXVSWG1kK08xS2U1TmRSckV2VTVLYjJwQ3BQV28wOXBKK1EybEJvU3N3c2R3cWE2ZlJMVk04YmtiZmVsZkp4VkJTYUtXbWxIcHYrR0RvUnFvWXhLeW1mUjQiLCJtYWMiOiI2ZjgwMjEyZTYyZDFkZDZiYTNlZjg1YjY2N2ExN2NkOTg2NDMyNjkwNzZiOGI0YzA5ZTU4MDU1MTgzNTg3ZmIxIiwidGFnIjoiIn0=\",\"sec-ch-ua-mobile\":\"?0\",\"user-agent\":\"Mozilla\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\/537.36 (KHTML, like Gecko) Chrome\\/126.0.0.0 Safari\\/537.36\",\"sec-ch-ua-platform\":\"\\\"Windows\\\"\",\"origin\":\"http:\\/\\/localhost:9000\",\"sec-fetch-site\":\"same-site\",\"sec-fetch-mode\":\"cors\",\"sec-fetch-dest\":\"empty\",\"referer\":\"http:\\/\\/localhost:9000\\/\",\"accept-encoding\":\"gzip, deflate, br, zstd\",\"accept-language\":\"fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7\",\"cookie\":\"Studio-99d0ba62=5b48f54f-6700-41a2-a846-66f6b501e1b9; XSRF-TOKEN=eyJpdiI6IlpnRUtWUVU0MnpHYW9saGJBcW9oZlE9PSIsInZhbHVlIjoiRTVlbzBQMWNRcW9Hak56ak0zN3FJUGFXZTVONW5mRThJOTJEY0c0cXVSWG1kK08xS2U1TmRSckV2VTVLYjJwQ3BQV28wOXBKK1EybEJvU3N3c2R3cWE2ZlJMVk04YmtiZmVsZkp4VkJTYUtXbWxIcHYrR0RvUnFvWXhLeW1mUjQiLCJtYWMiOiI2ZjgwMjEyZTYyZDFkZDZiYTNlZjg1YjY2N2ExN2NkOTg2NDMyNjkwNzZiOGI0YzA5ZTU4MDU1MTgzNTg3ZmIxIiwidGFnIjoiIn0%3D; laravel_session=eyJpdiI6IlhXUlUyZmZQOHR1Z2k4SmRqR3h3L1E9PSIsInZhbHVlIjoiWlJyaGw5bUxCTHBhdURWWTUyNVBZSnZQd3JLaHlvMlFSczY4aFNHbG9SbEFMT0NsNlk0UXI0VEtXd05NZzhaQVlJRW1SN1VkWHdlZXkrNmd2V2ZpaThFNkZaOHNIZnBsNytJTG5pVWtkVGh4SnlNU1JlUCtnZkxkZVo0THFza0oiLCJtYWMiOiI2Mjc3MGM4YzJiMWEyMDY2NzEyZjUzMGZmMTFkMDY5ZjA5NDNiODMxOTBjNzJkMDI0MWMzZDQwZTJhODFhOGU2IiwidGFnIjoiIn0%3D; io=QL09WWgumy-SOY3MAAAB\"},\"payload\":[],\"session\":{\"_token\":\"rTfeNLVBInMDocTBHqRiEKPwIQdX4ZDrKl9BkLsO\",\"_previous\":{\"url\":\"http:\\/\\/localhost:8000\\/api\\/csrf-cookie\"},\"_flash\":{\"old\":[],\"new\":[]},\"login_web_59ba36addc2b2f9401580f014c7f58ea4e30989d\":1},\"response_status\":204,\"response\":\"Empty Response\",\"duration\":517,\"memory\":22,\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:47:27'),(182,'9c88f085-6f0b-4de4-b56f-bbae3507cbf2','9c88f085-7570-434b-9ba9-d0c07e2b590f',NULL,1,'request','{\"ip_address\":\"127.0.0.1\",\"uri\":\"\\/api\\/login\",\"method\":\"OPTIONS\",\"controller_action\":null,\"middleware\":[],\"headers\":{\"host\":\"localhost:8000\",\"connection\":\"keep-alive\",\"accept\":\"*\\/*\",\"access-control-request-method\":\"POST\",\"access-control-request-headers\":\"content-type,x-xsrf-token\",\"origin\":\"http:\\/\\/localhost:9000\",\"user-agent\":\"Mozilla\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\/537.36 (KHTML, like Gecko) Chrome\\/126.0.0.0 Safari\\/537.36\",\"sec-fetch-mode\":\"cors\",\"sec-fetch-site\":\"same-site\",\"sec-fetch-dest\":\"empty\",\"referer\":\"http:\\/\\/localhost:9000\\/\",\"accept-encoding\":\"gzip, deflate, br, zstd\",\"accept-language\":\"fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7\"},\"payload\":[],\"session\":[],\"response_status\":204,\"response\":\"Empty Response\",\"duration\":414,\"memory\":22,\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:47:27'),(183,'9c88f086-d841-46d8-832a-31c40616b266','9c88f086-dda0-4bab-88bd-bb97399672f5','2d99be5edfb2092b2d5b911eab42abc2',1,'exception','{\"class\":\"ErrorException\",\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\app\\\\Http\\\\Controllers\\\\Auth\\\\AuthController.php\",\"line\":83,\"message\":\"Attempt to read property \\\"photo\\\" on null\",\"context\":{\"userId\":1},\"trace\":[{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Bootstrap\\\\HandleExceptions.php\",\"line\":270},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\app\\\\Http\\\\Controllers\\\\Auth\\\\AuthController.php\",\"line\":83},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Routing\\\\ControllerDispatcher.php\",\"line\":46},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Routing\\\\Route.php\",\"line\":259},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Routing\\\\Route.php\",\"line\":205},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Routing\\\\Router.php\",\"line\":798},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":141},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Routing\\\\Middleware\\\\SubstituteBindings.php\",\"line\":50},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\VerifyCsrfToken.php\",\"line\":78},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\View\\\\Middleware\\\\ShareErrorsFromSession.php\",\"line\":49},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Session\\\\Middleware\\\\StartSession.php\",\"line\":121},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Session\\\\Middleware\\\\StartSession.php\",\"line\":64},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Cookie\\\\Middleware\\\\AddQueuedCookiesToResponse.php\",\"line\":37},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Cookie\\\\Middleware\\\\EncryptCookies.php\",\"line\":67},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":116},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Routing\\\\Router.php\",\"line\":797},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Routing\\\\Router.php\",\"line\":776},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Routing\\\\Router.php\",\"line\":740},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Routing\\\\Router.php\",\"line\":729},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Http\\\\Kernel.php\",\"line\":190},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":141},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\TransformsRequest.php\",\"line\":21},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\ConvertEmptyStringsToNull.php\",\"line\":31},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\TransformsRequest.php\",\"line\":21},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\TrimStrings.php\",\"line\":40},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\ValidatePostSize.php\",\"line\":27},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\PreventRequestsDuringMaintenance.php\",\"line\":86},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Http\\\\Middleware\\\\HandleCors.php\",\"line\":62},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Http\\\\Middleware\\\\TrustProxies.php\",\"line\":39},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":116},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Http\\\\Kernel.php\",\"line\":165},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Http\\\\Kernel.php\",\"line\":134},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\public\\\\index.php\",\"line\":51},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\resources\\\\server.php\",\"line\":16}],\"line_preview\":{\"74\":\"                    ),\\r\",\"75\":\"                    \'permissions\' => $user->HasRole(RoleService::SUPER_ADMIN_ROLE_NAME) ? Permission::all()\\r\",\"76\":\"                        ->pluck(\'name\')\\r\",\"77\":\"                        : $user->getAllPermissions()->pluck(\'name\'),\\r\",\"78\":\"                    \\/\\/\'token\' => $token,\\r\",\"79\":\"                    \'config\' => $config,\\r\",\"80\":\"                    \'signature\' => $user->signature,\\r\",\"81\":\"                    \'language\' => $userLanguage != null ? $userLanguage : \'fr\',\\r\",\"82\":\"                    \\/\\/\'role_name\' => $roles[0]->role_name,\\r\",\"83\":\"                    \'photo\' => imageDecode($person->photo),\\r\",\"84\":\"                    \'default_page\' => count($roles) ? $roles[0]->default_page: null\\r\",\"85\":\"                ],\\r\",\"86\":\"            ]);\\r\",\"87\":\"        }\\r\",\"88\":\"\\r\",\"89\":\"        return response()->json([\'message\' => \'username_or_password_not_match\'], Response::HTTP_UNAUTHORIZED);\\r\",\"90\":\"    }\\r\",\"91\":\"\\r\",\"92\":\"    \\/**\\r\",\"93\":\"     * @param  Request  $request\\r\"},\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"},\"occurrences\":1}','2024-07-16 09:47:28'),(184,'9c88f086-4e46-4599-8170-3a52ae667ed4','9c88f086-dda0-4bab-88bd-bb97399672f5',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `user` where `username` = \'admin\' and `user`.`deleted_at` is null limit 1\",\"time\":\"8.41\",\"slow\":false,\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\app\\\\Http\\\\Controllers\\\\Auth\\\\AuthController.php\",\"line\":34,\"hash\":\"56f267c17974a18fe94bec013cf898c5\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:47:28'),(185,'9c88f086-51f5-46c8-8f05-029d5010bdc7','9c88f086-dda0-4bab-88bd-bb97399672f5',NULL,1,'model','{\"action\":\"retrieved\",\"model\":\"App\\\\Models\\\\User\",\"count\":2,\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:47:28'),(186,'9c88f086-562f-43aa-937d-e84803488c7e','9c88f086-dda0-4bab-88bd-bb97399672f5',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `user` where `username` = \'admin\' and `user`.`deleted_at` is null limit 1\",\"time\":\"1.45\",\"slow\":false,\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\app\\\\Http\\\\Controllers\\\\Auth\\\\AuthController.php\",\"line\":39,\"hash\":\"56f267c17974a18fe94bec013cf898c5\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:47:28'),(187,'9c88f086-9789-4eef-99c4-c0111cb4d047','9c88f086-dda0-4bab-88bd-bb97399672f5',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `location` where `location`.`location_id` = 1 and `location`.`deleted_at` is null limit 1\",\"time\":\"2.59\",\"slow\":false,\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\app\\\\Http\\\\Controllers\\\\Auth\\\\AuthController.php\",\"line\":44,\"hash\":\"871d673517b0f916a091abf3feb2091a\",\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"}}','2024-07-16 09:47:28'),(188,'9c88f086-9825-4f45-b777-d8bd238ec731','9c88f086-dda0-4bab-88bd-bb97399672f5',NULL,1,'model','{\"action\":\"retrieved\",\"model\":\"App\\\\Models\\\\Location\",\"count\":2,\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"}}','2024-07-16 09:47:28'),(189,'9c88f086-994e-4857-8e49-e65ca5f236e1','9c88f086-dda0-4bab-88bd-bb97399672f5',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `location` where `location`.`location_id` = 2 and `location`.`deleted_at` is null limit 1\",\"time\":\"1.58\",\"slow\":false,\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\app\\\\Http\\\\Controllers\\\\Auth\\\\AuthController.php\",\"line\":45,\"hash\":\"871d673517b0f916a091abf3feb2091a\",\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"}}','2024-07-16 09:47:28'),(190,'9c88f086-a5e8-4f9d-9b9a-897780ca548f','9c88f086-dda0-4bab-88bd-bb97399672f5',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"update `user` set `last_seen_at` = \'2024-07-16 09:47:28\', `last_seen_location_id` = 2, `updated_at` = \'2024-07-16 09:47:28\' where `user_id` = 1\",\"time\":\"29.95\",\"slow\":false,\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\app\\\\Http\\\\Controllers\\\\Auth\\\\AuthController.php\",\"line\":48,\"hash\":\"fa17ddf456af44873a9fa9ec3e562c8e\",\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"}}','2024-07-16 09:47:28'),(191,'9c88f086-a916-4b66-9077-5aada489b4bf','9c88f086-dda0-4bab-88bd-bb97399672f5',NULL,1,'model','{\"action\":\"updated\",\"model\":\"App\\\\Models\\\\User:1\",\"changes\":{\"last_seen_at\":\"2024-07-16 09:47:28\",\"last_seen_location_id\":2,\"updated_at\":\"2024-07-16T08:47:28.383829Z\"},\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"}}','2024-07-16 09:47:28'),(192,'9c88f086-aa68-4438-bc1f-c388a060fbc6','9c88f086-dda0-4bab-88bd-bb97399672f5',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `config_parameters` where `config_param` = \'auto_logout_time\' limit 1\",\"time\":\"1.53\",\"slow\":false,\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\app\\\\Http\\\\Controllers\\\\Auth\\\\AuthController.php\",\"line\":52,\"hash\":\"ac4ce9a792776a20e3f8dff5b7cada27\",\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"}}','2024-07-16 09:47:28'),(193,'9c88f086-ac38-4f15-9b73-b9085237a1df','9c88f086-dda0-4bab-88bd-bb97399672f5',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `person` where `person`.`person_id` is null and `person`.`deleted_at` is null limit 1\",\"time\":\"1.83\",\"slow\":false,\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\app\\\\Http\\\\Controllers\\\\Auth\\\\AuthController.php\",\"line\":57,\"hash\":\"e5687085d103d7b04b0f52950be7d1a2\",\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"}}','2024-07-16 09:47:28'),(194,'9c88f086-c74a-4fa4-80c1-73627ad2d459','9c88f086-dda0-4bab-88bd-bb97399672f5',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select `roles`.*, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` = 1 and `model_has_roles`.`model_type` = \'App\\\\Models\\\\User\'\",\"time\":\"3.18\",\"slow\":false,\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\app\\\\Http\\\\Controllers\\\\Auth\\\\AuthController.php\",\"line\":59,\"hash\":\"eb2635dbf27540ab6ab19dc9db8a2961\",\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"}}','2024-07-16 09:47:28'),(195,'9c88f086-d470-4b9d-bc0f-f69754e4ba15','9c88f086-dda0-4bab-88bd-bb97399672f5',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select `permissions`.*, `model_has_permissions`.`model_id` as `pivot_model_id`, `model_has_permissions`.`permission_id` as `pivot_permission_id`, `model_has_permissions`.`model_type` as `pivot_model_type` from `permissions` inner join `model_has_permissions` on `permissions`.`id` = `model_has_permissions`.`permission_id` where `model_has_permissions`.`model_id` = 1 and `model_has_permissions`.`model_type` = \'App\\\\Models\\\\User\'\",\"time\":\"3.09\",\"slow\":false,\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\app\\\\Http\\\\Controllers\\\\Auth\\\\AuthController.php\",\"line\":77,\"hash\":\"5b20d5268110993bb84c6c0fa17a15fc\",\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"}}','2024-07-16 09:47:28'),(196,'9c88f086-dc44-4adc-bc50-c2f54ffdee33','9c88f086-dda0-4bab-88bd-bb97399672f5',NULL,1,'request','{\"ip_address\":\"127.0.0.1\",\"uri\":\"\\/api\\/login\",\"method\":\"POST\",\"controller_action\":\"App\\\\Http\\\\Controllers\\\\Auth\\\\AuthController@authenticate\",\"middleware\":[\"web\"],\"headers\":{\"host\":\"localhost:8000\",\"connection\":\"keep-alive\",\"sec-ch-ua\":\"\\\"Not\\/A)Brand\\\";v=\\\"8\\\", \\\"Chromium\\\";v=\\\"126\\\", \\\"Google Chrome\\\";v=\\\"126\\\"\",\"accept\":\"application\\/json, text\\/plain, *\\/*\",\"content-type\":\"application\\/json\",\"x-xsrf-token\":\"eyJpdiI6IkduZ0lERFRxUlBaQXlvL1pyc3JDSGc9PSIsInZhbHVlIjoiTWFiQ2V0S1JBL2gyazBEWGwrZ0lOVktRekJjRWNoUExyU1ZrL2loYWdydkozUWtkblljTmNTbElEWUFVTzQwUjhQVmR3UW1PYmVTL3dNMFU0UndnRnByRTEwRlpQWkFSNlF0eW9HTThpVnEwTThkS0lwSTVwMHVXZ2lBTGZiUnkiLCJtYWMiOiI2YzZiYzI2YTQ3NzU4NTY1MTU0Yjk4NzA5ZjIyYWY5MDBkYWU4NGQwZTQ1OGI3YmI4OTAxYWMyNDg3Y2RiNDMwIiwidGFnIjoiIn0=\",\"sec-ch-ua-mobile\":\"?0\",\"user-agent\":\"Mozilla\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\/537.36 (KHTML, like Gecko) Chrome\\/126.0.0.0 Safari\\/537.36\",\"sec-ch-ua-platform\":\"\\\"Windows\\\"\",\"origin\":\"http:\\/\\/localhost:9000\",\"sec-fetch-site\":\"same-site\",\"sec-fetch-mode\":\"cors\",\"sec-fetch-dest\":\"empty\",\"referer\":\"http:\\/\\/localhost:9000\\/\",\"accept-encoding\":\"gzip, deflate, br, zstd\",\"accept-language\":\"fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7\",\"cookie\":\"Studio-99d0ba62=5b48f54f-6700-41a2-a846-66f6b501e1b9; io=QL09WWgumy-SOY3MAAAB; XSRF-TOKEN=eyJpdiI6IkduZ0lERFRxUlBaQXlvL1pyc3JDSGc9PSIsInZhbHVlIjoiTWFiQ2V0S1JBL2gyazBEWGwrZ0lOVktRekJjRWNoUExyU1ZrL2loYWdydkozUWtkblljTmNTbElEWUFVTzQwUjhQVmR3UW1PYmVTL3dNMFU0UndnRnByRTEwRlpQWkFSNlF0eW9HTThpVnEwTThkS0lwSTVwMHVXZ2lBTGZiUnkiLCJtYWMiOiI2YzZiYzI2YTQ3NzU4NTY1MTU0Yjk4NzA5ZjIyYWY5MDBkYWU4NGQwZTQ1OGI3YmI4OTAxYWMyNDg3Y2RiNDMwIiwidGFnIjoiIn0%3D; laravel_session=eyJpdiI6InY4YUFDaUcxTGgwdWhUTlJiVCtRSkE9PSIsInZhbHVlIjoiSDF3WjU1YytqYVFYeEJZRWorMHkzY09jeDVDaHlQSVpaYWFPVWZLTUtyTGtWVWNBZmFiZUwwN2tCZVVhaDU3czJsUVcrOVRxZEdZODQydFc4MCtmTGRjY05kaGV4VWgvY2t2REZqeXkyOVFTMmVzaUg3TmxQTzNYZ0JmN1F4NVMiLCJtYWMiOiIzYmMwODI2ZTNjNDcxM2YxNGRhMDcyYmQ1MWU1N2UwNjRhYmY2ZTYyYjJiN2I1MGZkOTAwMTRlYzZkODQ1NzFkIiwidGFnIjoiIn0%3D\",\"content-length\":\"45\"},\"payload\":{\"username\":\"admin\",\"password\":\"********\"},\"session\":{\"_token\":\"rTfeNLVBInMDocTBHqRiEKPwIQdX4ZDrKl9BkLsO\",\"_previous\":{\"url\":\"http:\\/\\/localhost:8000\\/api\\/csrf-cookie\"},\"_flash\":{\"old\":[],\"new\":[]},\"login_web_59ba36addc2b2f9401580f014c7f58ea4e30989d\":1},\"response_status\":500,\"response\":{\"message\":\"Attempt to read property \\\"photo\\\" on null\",\"exception\":\"ErrorException\",\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\app\\\\Http\\\\Controllers\\\\Auth\\\\AuthController.php\",\"line\":83,\"trace\":[{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Bootstrap\\\\HandleExceptions.php\",\"line\":270,\"function\":\"handleError\",\"class\":\"Illuminate\\\\Foundation\\\\Bootstrap\\\\HandleExceptions\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\app\\\\Http\\\\Controllers\\\\Auth\\\\AuthController.php\",\"line\":83,\"function\":\"Illuminate\\\\Foundation\\\\Bootstrap\\\\{closure}\",\"class\":\"Illuminate\\\\Foundation\\\\Bootstrap\\\\HandleExceptions\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Routing\\\\ControllerDispatcher.php\",\"line\":46,\"function\":\"authenticate\",\"class\":\"App\\\\Http\\\\Controllers\\\\Auth\\\\AuthController\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Routing\\\\Route.php\",\"line\":259,\"function\":\"dispatch\",\"class\":\"Illuminate\\\\Routing\\\\ControllerDispatcher\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Routing\\\\Route.php\",\"line\":205,\"function\":\"runController\",\"class\":\"Illuminate\\\\Routing\\\\Route\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Routing\\\\Router.php\",\"line\":798,\"function\":\"run\",\"class\":\"Illuminate\\\\Routing\\\\Route\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":141,\"function\":\"Illuminate\\\\Routing\\\\{closure}\",\"class\":\"Illuminate\\\\Routing\\\\Router\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Routing\\\\Middleware\\\\SubstituteBindings.php\",\"line\":50,\"function\":\"Illuminate\\\\Pipeline\\\\{closure}\",\"class\":\"Illuminate\\\\Pipeline\\\\Pipeline\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180,\"function\":\"handle\",\"class\":\"Illuminate\\\\Routing\\\\Middleware\\\\SubstituteBindings\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\VerifyCsrfToken.php\",\"line\":78,\"function\":\"Illuminate\\\\Pipeline\\\\{closure}\",\"class\":\"Illuminate\\\\Pipeline\\\\Pipeline\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180,\"function\":\"handle\",\"class\":\"Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\VerifyCsrfToken\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\View\\\\Middleware\\\\ShareErrorsFromSession.php\",\"line\":49,\"function\":\"Illuminate\\\\Pipeline\\\\{closure}\",\"class\":\"Illuminate\\\\Pipeline\\\\Pipeline\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180,\"function\":\"handle\",\"class\":\"Illuminate\\\\View\\\\Middleware\\\\ShareErrorsFromSession\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Session\\\\Middleware\\\\StartSession.php\",\"line\":121,\"function\":\"Illuminate\\\\Pipeline\\\\{closure}\",\"class\":\"Illuminate\\\\Pipeline\\\\Pipeline\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Session\\\\Middleware\\\\StartSession.php\",\"line\":64,\"function\":\"handleStatefulRequest\",\"class\":\"Illuminate\\\\Session\\\\Middleware\\\\StartSession\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180,\"function\":\"handle\",\"class\":\"Illuminate\\\\Session\\\\Middleware\\\\StartSession\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Cookie\\\\Middleware\\\\AddQueuedCookiesToResponse.php\",\"line\":37,\"function\":\"Illuminate\\\\Pipeline\\\\{closure}\",\"class\":\"Illuminate\\\\Pipeline\\\\Pipeline\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180,\"function\":\"handle\",\"class\":\"Illuminate\\\\Cookie\\\\Middleware\\\\AddQueuedCookiesToResponse\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Cookie\\\\Middleware\\\\EncryptCookies.php\",\"line\":67,\"function\":\"Illuminate\\\\Pipeline\\\\{closure}\",\"class\":\"Illuminate\\\\Pipeline\\\\Pipeline\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180,\"function\":\"handle\",\"class\":\"Illuminate\\\\Cookie\\\\Middleware\\\\EncryptCookies\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":116,\"function\":\"Illuminate\\\\Pipeline\\\\{closure}\",\"class\":\"Illuminate\\\\Pipeline\\\\Pipeline\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Routing\\\\Router.php\",\"line\":797,\"function\":\"then\",\"class\":\"Illuminate\\\\Pipeline\\\\Pipeline\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Routing\\\\Router.php\",\"line\":776,\"function\":\"runRouteWithinStack\",\"class\":\"Illuminate\\\\Routing\\\\Router\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Routing\\\\Router.php\",\"line\":740,\"function\":\"runRoute\",\"class\":\"Illuminate\\\\Routing\\\\Router\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Routing\\\\Router.php\",\"line\":729,\"function\":\"dispatchToRoute\",\"class\":\"Illuminate\\\\Routing\\\\Router\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Http\\\\Kernel.php\",\"line\":190,\"function\":\"dispatch\",\"class\":\"Illuminate\\\\Routing\\\\Router\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":141,\"function\":\"Illuminate\\\\Foundation\\\\Http\\\\{closure}\",\"class\":\"Illuminate\\\\Foundation\\\\Http\\\\Kernel\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\TransformsRequest.php\",\"line\":21,\"function\":\"Illuminate\\\\Pipeline\\\\{closure}\",\"class\":\"Illuminate\\\\Pipeline\\\\Pipeline\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\ConvertEmptyStringsToNull.php\",\"line\":31,\"function\":\"handle\",\"class\":\"Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\TransformsRequest\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180,\"function\":\"handle\",\"class\":\"Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\ConvertEmptyStringsToNull\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\TransformsRequest.php\",\"line\":21,\"function\":\"Illuminate\\\\Pipeline\\\\{closure}\",\"class\":\"Illuminate\\\\Pipeline\\\\Pipeline\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\TrimStrings.php\",\"line\":40,\"function\":\"handle\",\"class\":\"Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\TransformsRequest\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180,\"function\":\"handle\",\"class\":\"Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\TrimStrings\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\ValidatePostSize.php\",\"line\":27,\"function\":\"Illuminate\\\\Pipeline\\\\{closure}\",\"class\":\"Illuminate\\\\Pipeline\\\\Pipeline\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180,\"function\":\"handle\",\"class\":\"Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\ValidatePostSize\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\PreventRequestsDuringMaintenance.php\",\"line\":86,\"function\":\"Illuminate\\\\Pipeline\\\\{closure}\",\"class\":\"Illuminate\\\\Pipeline\\\\Pipeline\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180,\"function\":\"handle\",\"class\":\"Illuminate\\\\Foundation\\\\Http\\\\Middleware\\\\PreventRequestsDuringMaintenance\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Http\\\\Middleware\\\\HandleCors.php\",\"line\":62,\"function\":\"Illuminate\\\\Pipeline\\\\{closure}\",\"class\":\"Illuminate\\\\Pipeline\\\\Pipeline\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180,\"function\":\"handle\",\"class\":\"Illuminate\\\\Http\\\\Middleware\\\\HandleCors\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Http\\\\Middleware\\\\TrustProxies.php\",\"line\":39,\"function\":\"Illuminate\\\\Pipeline\\\\{closure}\",\"class\":\"Illuminate\\\\Pipeline\\\\Pipeline\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":180,\"function\":\"handle\",\"class\":\"Illuminate\\\\Http\\\\Middleware\\\\TrustProxies\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Pipeline\\\\Pipeline.php\",\"line\":116,\"function\":\"Illuminate\\\\Pipeline\\\\{closure}\",\"class\":\"Illuminate\\\\Pipeline\\\\Pipeline\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Http\\\\Kernel.php\",\"line\":165,\"function\":\"then\",\"class\":\"Illuminate\\\\Pipeline\\\\Pipeline\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Http\\\\Kernel.php\",\"line\":134,\"function\":\"sendRequestThroughRouter\",\"class\":\"Illuminate\\\\Foundation\\\\Http\\\\Kernel\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\public\\\\index.php\",\"line\":51,\"function\":\"handle\",\"class\":\"Illuminate\\\\Foundation\\\\Http\\\\Kernel\",\"type\":\"->\"},{\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\resources\\\\server.php\",\"line\":16,\"function\":\"require_once\"}]},\"duration\":881,\"memory\":26,\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"}}','2024-07-16 09:47:28'),(197,'9c88f0ba-5993-4e60-bbab-3e8f7d7b21cd','9c88f0ba-67cd-4699-9d77-7458befdbd40',NULL,1,'command','{\"command\":\"list\",\"exit_code\":0,\"arguments\":{\"command\":\"list\",\"namespace\":null},\"options\":{\"raw\":false,\"format\":\"txt\",\"short\":false,\"help\":false,\"quiet\":false,\"verbose\":false,\"version\":false,\"ansi\":null,\"no-interaction\":false,\"env\":null},\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:48:02'),(198,'9c88f0bb-bf77-4e46-a4a5-cc3eced06cc5','9c88f0bb-ca48-4384-9224-a06a51a0c839',NULL,1,'command','{\"command\":\"list\",\"exit_code\":0,\"arguments\":{\"command\":\"list\",\"namespace\":null},\"options\":{\"raw\":false,\"format\":\"txt\",\"short\":false,\"help\":false,\"quiet\":false,\"verbose\":false,\"version\":false,\"ansi\":null,\"no-interaction\":false,\"env\":null},\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:48:03'),(199,'9c88f0bb-bf08-481a-a11a-462309ec500a','9c88f0bb-f2c2-4a70-9df8-17a7de611c96',NULL,1,'command','{\"command\":\"list\",\"exit_code\":0,\"arguments\":{\"command\":\"list\",\"namespace\":null},\"options\":{\"raw\":false,\"format\":\"txt\",\"short\":false,\"help\":false,\"quiet\":false,\"verbose\":false,\"version\":false,\"ansi\":null,\"no-interaction\":false,\"env\":null},\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:48:03'),(200,'9c88f0bf-70eb-4eac-96e1-7208cfd16dd4','9c88f0bf-7ae8-4364-86e3-6b308055b62d',NULL,1,'request','{\"ip_address\":\"127.0.0.1\",\"uri\":\"\\/api\\/csrf-cookie\",\"method\":\"OPTIONS\",\"controller_action\":null,\"middleware\":[],\"headers\":{\"host\":\"localhost:8000\",\"connection\":\"keep-alive\",\"accept\":\"*\\/*\",\"access-control-request-method\":\"GET\",\"access-control-request-headers\":\"x-xsrf-token\",\"origin\":\"http:\\/\\/localhost:9000\",\"user-agent\":\"Mozilla\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\/537.36 (KHTML, like Gecko) Chrome\\/126.0.0.0 Safari\\/537.36\",\"sec-fetch-mode\":\"cors\",\"sec-fetch-site\":\"same-site\",\"sec-fetch-dest\":\"empty\",\"referer\":\"http:\\/\\/localhost:9000\\/\",\"accept-encoding\":\"gzip, deflate, br, zstd\",\"accept-language\":\"fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7\"},\"payload\":[],\"session\":[],\"response_status\":204,\"response\":\"Empty Response\",\"duration\":534,\"memory\":24,\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:48:05'),(201,'9c88f0c0-bb04-4dc1-8d67-eddb010ebaaf','9c88f0c0-c23c-4dcb-9846-e5105304e806',NULL,1,'request','{\"ip_address\":\"127.0.0.1\",\"uri\":\"\\/api\\/csrf-cookie\",\"method\":\"GET\",\"controller_action\":\"Laravel\\\\Sanctum\\\\Http\\\\Controllers\\\\CsrfCookieController@show\",\"middleware\":[\"web\"],\"headers\":{\"host\":\"localhost:8000\",\"connection\":\"keep-alive\",\"sec-ch-ua\":\"\\\"Not\\/A)Brand\\\";v=\\\"8\\\", \\\"Chromium\\\";v=\\\"126\\\", \\\"Google Chrome\\\";v=\\\"126\\\"\",\"accept\":\"application\\/json, text\\/plain, *\\/*\",\"x-xsrf-token\":\"eyJpdiI6InlsSVpseDNuZ0hHeGZMSnVrM0t5UGc9PSIsInZhbHVlIjoiNnFRYThwcDhrdXVYWUJLdTBvUU84MW54Wkt2L1FHdU9hVENXbGtLRFRvQlJrcStXR2c3MVR6MnVFZUw2UGNrdm1vZlhvSkpzcTdhZTNRZ1BEVHl6VUNFZE83d3JRTXNlRTVxWEc0VUYra2tSekxkS2I4b1M1SHNBc2hWWmdPSHMiLCJtYWMiOiI3MjRmZTA1YjgwYTU1YTI5NmE0NTE2NjM2YzBiZjc1OTM0OWZhNzkwNjA5NDdjNTUxM2JhZWUzZmYzOGY2YmNkIiwidGFnIjoiIn0=\",\"sec-ch-ua-mobile\":\"?0\",\"user-agent\":\"Mozilla\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\/537.36 (KHTML, like Gecko) Chrome\\/126.0.0.0 Safari\\/537.36\",\"sec-ch-ua-platform\":\"\\\"Windows\\\"\",\"origin\":\"http:\\/\\/localhost:9000\",\"sec-fetch-site\":\"same-site\",\"sec-fetch-mode\":\"cors\",\"sec-fetch-dest\":\"empty\",\"referer\":\"http:\\/\\/localhost:9000\\/\",\"accept-encoding\":\"gzip, deflate, br, zstd\",\"accept-language\":\"fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7\",\"cookie\":\"Studio-99d0ba62=5b48f54f-6700-41a2-a846-66f6b501e1b9; io=QL09WWgumy-SOY3MAAAB; XSRF-TOKEN=eyJpdiI6InlsSVpseDNuZ0hHeGZMSnVrM0t5UGc9PSIsInZhbHVlIjoiNnFRYThwcDhrdXVYWUJLdTBvUU84MW54Wkt2L1FHdU9hVENXbGtLRFRvQlJrcStXR2c3MVR6MnVFZUw2UGNrdm1vZlhvSkpzcTdhZTNRZ1BEVHl6VUNFZE83d3JRTXNlRTVxWEc0VUYra2tSekxkS2I4b1M1SHNBc2hWWmdPSHMiLCJtYWMiOiI3MjRmZTA1YjgwYTU1YTI5NmE0NTE2NjM2YzBiZjc1OTM0OWZhNzkwNjA5NDdjNTUxM2JhZWUzZmYzOGY2YmNkIiwidGFnIjoiIn0%3D; laravel_session=eyJpdiI6InJGMDhhNDg2NjljN0ZoaFpMc1VhK1E9PSIsInZhbHVlIjoiMjNCRGR3UC92eWtOSTNYclBJZDEraTlUMDJmaEl5TlBXQ1J4Y2FlbTN5Yk55R0xVektNTkRrNnNUb0JZMXM4SmJ1UzVZdkpZdFdoSDlrS2NQT3NxZmFMQzhtcHhhUWMzaTROZ3VZeU5GVkFlSXIyVDJxdUd3Q2llRGNtbWY1SDkiLCJtYWMiOiJmOWFlZjA4ZWY2ZTYyMWUwNjkwMjMwZmVhZDA4MTRkZmQ4MWE2NTdiZjIyZDNlOTVjMDRlY2FjYTM4NGZkZGFjIiwidGFnIjoiIn0%3D\"},\"payload\":[],\"session\":{\"_token\":\"rTfeNLVBInMDocTBHqRiEKPwIQdX4ZDrKl9BkLsO\",\"_previous\":{\"url\":\"http:\\/\\/localhost:8000\\/api\\/csrf-cookie\"},\"_flash\":{\"old\":[],\"new\":[]},\"login_web_59ba36addc2b2f9401580f014c7f58ea4e30989d\":1},\"response_status\":204,\"response\":\"Empty Response\",\"duration\":487,\"memory\":24,\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:48:06'),(202,'9c88f0c1-90bf-427e-b239-32236bba8d0f','9c88f0c1-9827-4bba-8b2c-9bfb6d85d926',NULL,1,'request','{\"ip_address\":\"127.0.0.1\",\"uri\":\"\\/api\\/login\",\"method\":\"OPTIONS\",\"controller_action\":null,\"middleware\":[],\"headers\":{\"host\":\"localhost:8000\",\"connection\":\"keep-alive\",\"accept\":\"*\\/*\",\"access-control-request-method\":\"POST\",\"access-control-request-headers\":\"content-type,x-xsrf-token\",\"origin\":\"http:\\/\\/localhost:9000\",\"user-agent\":\"Mozilla\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\/537.36 (KHTML, like Gecko) Chrome\\/126.0.0.0 Safari\\/537.36\",\"sec-fetch-mode\":\"cors\",\"sec-fetch-site\":\"same-site\",\"sec-fetch-dest\":\"empty\",\"referer\":\"http:\\/\\/localhost:9000\\/\",\"accept-encoding\":\"gzip, deflate, br, zstd\",\"accept-language\":\"fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7\"},\"payload\":[],\"session\":[],\"response_status\":204,\"response\":\"Empty Response\",\"duration\":483,\"memory\":24,\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:48:07'),(203,'9c88f0c2-614f-4e82-8e2c-03b04d90a7e2','9c88f0c2-c434-420e-ae32-61c0d8d46dff',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `user` where `username` = \'admin\' and `user`.`deleted_at` is null limit 1\",\"time\":\"10.44\",\"slow\":false,\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\app\\\\Http\\\\Controllers\\\\Auth\\\\AuthController.php\",\"line\":34,\"hash\":\"56f267c17974a18fe94bec013cf898c5\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:48:07'),(204,'9c88f0c2-65cc-4b37-8544-35e9f21d938c','9c88f0c2-c434-420e-ae32-61c0d8d46dff',NULL,1,'model','{\"action\":\"retrieved\",\"model\":\"App\\\\Models\\\\User\",\"count\":2,\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:48:07'),(205,'9c88f0c2-6a19-4162-99a7-e939b5a218a2','9c88f0c2-c434-420e-ae32-61c0d8d46dff',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `user` where `username` = \'admin\' and `user`.`deleted_at` is null limit 1\",\"time\":\"1.57\",\"slow\":false,\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\app\\\\Http\\\\Controllers\\\\Auth\\\\AuthController.php\",\"line\":39,\"hash\":\"56f267c17974a18fe94bec013cf898c5\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:48:07'),(206,'9c88f0c2-a516-4b74-8ec2-899b74b308b9','9c88f0c2-c434-420e-ae32-61c0d8d46dff',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `location` where `location`.`location_id` = 1 and `location`.`deleted_at` is null limit 1\",\"time\":\"1.65\",\"slow\":false,\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\app\\\\Http\\\\Controllers\\\\Auth\\\\AuthController.php\",\"line\":44,\"hash\":\"871d673517b0f916a091abf3feb2091a\",\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"}}','2024-07-16 09:48:07'),(207,'9c88f0c2-a56b-4382-b8a7-f106891dc586','9c88f0c2-c434-420e-ae32-61c0d8d46dff',NULL,1,'model','{\"action\":\"retrieved\",\"model\":\"App\\\\Models\\\\Location\",\"count\":2,\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"}}','2024-07-16 09:48:07'),(208,'9c88f0c2-a64a-47ef-a997-ccf724f8564b','9c88f0c2-c434-420e-ae32-61c0d8d46dff',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `location` where `location`.`location_id` = 2 and `location`.`deleted_at` is null limit 1\",\"time\":\"1.21\",\"slow\":false,\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\app\\\\Http\\\\Controllers\\\\Auth\\\\AuthController.php\",\"line\":45,\"hash\":\"871d673517b0f916a091abf3feb2091a\",\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"}}','2024-07-16 09:48:07'),(209,'9c88f0c2-ae13-4129-b821-f7bdc388298e','9c88f0c2-c434-420e-ae32-61c0d8d46dff',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"update `user` set `last_seen_at` = \'2024-07-16 09:48:07\', `updated_at` = \'2024-07-16 09:48:07\' where `user_id` = 1\",\"time\":\"17.64\",\"slow\":false,\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\app\\\\Http\\\\Controllers\\\\Auth\\\\AuthController.php\",\"line\":48,\"hash\":\"8e83990a86b9ac4a093300d785f4df71\",\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"}}','2024-07-16 09:48:07'),(210,'9c88f0c2-aeb3-4dbc-8887-2058e764d9db','9c88f0c2-c434-420e-ae32-61c0d8d46dff',NULL,1,'model','{\"action\":\"updated\",\"model\":\"App\\\\Models\\\\User:1\",\"changes\":{\"last_seen_at\":\"2024-07-16 09:48:07\",\"updated_at\":\"2024-07-16T08:48:07.738444Z\"},\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"}}','2024-07-16 09:48:07'),(211,'9c88f0c2-afdb-438f-ab7b-35d2477084cb','9c88f0c2-c434-420e-ae32-61c0d8d46dff',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `config_parameters` where `config_param` = \'auto_logout_time\' limit 1\",\"time\":\"1.42\",\"slow\":false,\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\app\\\\Http\\\\Controllers\\\\Auth\\\\AuthController.php\",\"line\":52,\"hash\":\"ac4ce9a792776a20e3f8dff5b7cada27\",\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"}}','2024-07-16 09:48:07'),(212,'9c88f0c2-b11f-4940-834b-8fe2c30877bf','9c88f0c2-c434-420e-ae32-61c0d8d46dff',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `person` where `person`.`person_id` is null and `person`.`deleted_at` is null limit 1\",\"time\":\"1.26\",\"slow\":false,\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\app\\\\Http\\\\Controllers\\\\Auth\\\\AuthController.php\",\"line\":57,\"hash\":\"e5687085d103d7b04b0f52950be7d1a2\",\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"}}','2024-07-16 09:48:07'),(213,'9c88f0c2-b7ae-48b3-b93a-3745f485140b','9c88f0c2-c434-420e-ae32-61c0d8d46dff',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select `roles`.*, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` = 1 and `model_has_roles`.`model_type` = \'App\\\\Models\\\\User\'\",\"time\":\"2.32\",\"slow\":false,\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\app\\\\Http\\\\Controllers\\\\Auth\\\\AuthController.php\",\"line\":59,\"hash\":\"eb2635dbf27540ab6ab19dc9db8a2961\",\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"}}','2024-07-16 09:48:07'),(214,'9c88f0c2-bbae-44f4-a129-36cb436fd962','9c88f0c2-c434-420e-ae32-61c0d8d46dff',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select `permissions`.*, `model_has_permissions`.`model_id` as `pivot_model_id`, `model_has_permissions`.`permission_id` as `pivot_permission_id`, `model_has_permissions`.`model_type` as `pivot_model_type` from `permissions` inner join `model_has_permissions` on `permissions`.`id` = `model_has_permissions`.`permission_id` where `model_has_permissions`.`model_id` = 1 and `model_has_permissions`.`model_type` = \'App\\\\Models\\\\User\'\",\"time\":\"2.68\",\"slow\":false,\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\app\\\\Http\\\\Controllers\\\\Auth\\\\AuthController.php\",\"line\":77,\"hash\":\"5b20d5268110993bb84c6c0fa17a15fc\",\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"}}','2024-07-16 09:48:07'),(215,'9c88f0c2-c13f-408c-a1e8-78fd0018221f','9c88f0c2-c434-420e-ae32-61c0d8d46dff',NULL,1,'request','{\"ip_address\":\"127.0.0.1\",\"uri\":\"\\/api\\/login\",\"method\":\"POST\",\"controller_action\":\"App\\\\Http\\\\Controllers\\\\Auth\\\\AuthController@authenticate\",\"middleware\":[\"web\"],\"headers\":{\"host\":\"localhost:8000\",\"connection\":\"keep-alive\",\"sec-ch-ua\":\"\\\"Not\\/A)Brand\\\";v=\\\"8\\\", \\\"Chromium\\\";v=\\\"126\\\", \\\"Google Chrome\\\";v=\\\"126\\\"\",\"accept\":\"application\\/json, text\\/plain, *\\/*\",\"content-type\":\"application\\/json\",\"x-xsrf-token\":\"eyJpdiI6IktvbjJnaXRuV0Z3S25IREFpSHlHOEE9PSIsInZhbHVlIjoiYTAvK0VNRE8zbFdVVGFVUUQzcXVlaXYxWmxteFFaaS9td29ueldBd3l4SGQwRTlHUk9zQ2srMXR1aFR0MTJJNVB2QktCZnpjdUJwbGhTa2NmeVZ5V1ROVFpNd2FkMGNzZklFNHNnU3QwWkllajAwR0JNMm56Z1pkR3RSWkhsbDUiLCJtYWMiOiI0YThmYzEzNWM1YjNjOGRmZjc4ZDYxNmEzMjBjZGQ0ZWU2OTI1YzFhZThkZWJhZjI3OTcyMTZjZmYwMDU5M2ZjIiwidGFnIjoiIn0=\",\"sec-ch-ua-mobile\":\"?0\",\"user-agent\":\"Mozilla\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\/537.36 (KHTML, like Gecko) Chrome\\/126.0.0.0 Safari\\/537.36\",\"sec-ch-ua-platform\":\"\\\"Windows\\\"\",\"origin\":\"http:\\/\\/localhost:9000\",\"sec-fetch-site\":\"same-site\",\"sec-fetch-mode\":\"cors\",\"sec-fetch-dest\":\"empty\",\"referer\":\"http:\\/\\/localhost:9000\\/\",\"accept-encoding\":\"gzip, deflate, br, zstd\",\"accept-language\":\"fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7\",\"cookie\":\"Studio-99d0ba62=5b48f54f-6700-41a2-a846-66f6b501e1b9; io=QL09WWgumy-SOY3MAAAB; XSRF-TOKEN=eyJpdiI6IktvbjJnaXRuV0Z3S25IREFpSHlHOEE9PSIsInZhbHVlIjoiYTAvK0VNRE8zbFdVVGFVUUQzcXVlaXYxWmxteFFaaS9td29ueldBd3l4SGQwRTlHUk9zQ2srMXR1aFR0MTJJNVB2QktCZnpjdUJwbGhTa2NmeVZ5V1ROVFpNd2FkMGNzZklFNHNnU3QwWkllajAwR0JNMm56Z1pkR3RSWkhsbDUiLCJtYWMiOiI0YThmYzEzNWM1YjNjOGRmZjc4ZDYxNmEzMjBjZGQ0ZWU2OTI1YzFhZThkZWJhZjI3OTcyMTZjZmYwMDU5M2ZjIiwidGFnIjoiIn0%3D; laravel_session=eyJpdiI6Im9YM3JYRENwNm9JSTI1YjF2c25RRGc9PSIsInZhbHVlIjoiRVI4VjFxNVdpaXFtOEp0ZTlPRlRiS2MzUzEzejczUmdiSzM5NzhGaVZaVG82VnBZTFY1RG9FanV0WDI5TTE5dDN3QWE3aGEyVzhLSk04RVpiOGhVM1psU001bjBqSW1tMEVnYytuV09aZTBxSnlhTGtjWW03RHVHQmVVblYzSWUiLCJtYWMiOiIwNDUzZjQ5N2I5YzgyODdjYTM1MDZkY2ZmM2VkZGRiNjgwNTE1ZmMwMTNiMTFjYWY2OTcyMWVhYzdmOGIyZDZmIiwidGFnIjoiIn0%3D\",\"content-length\":\"45\"},\"payload\":{\"username\":\"admin\",\"password\":\"********\"},\"session\":{\"_token\":\"rTfeNLVBInMDocTBHqRiEKPwIQdX4ZDrKl9BkLsO\",\"_previous\":{\"url\":\"http:\\/\\/localhost:8000\\/api\\/csrf-cookie\"},\"_flash\":{\"old\":[],\"new\":[]},\"login_web_59ba36addc2b2f9401580f014c7f58ea4e30989d\":1},\"response_status\":200,\"response\":{\"user\":{\"user_id\":1,\"username\":\"admin\",\"full_name\":\"admin\",\"email\":\"fideleplk@gmail.com\",\"person_id\":null,\"isFirstLogin\":true,\"subLocation\":{\"location_id\":2,\"location_name\":\"Ambulatoire\"},\"location\":{\"location_id\":1,\"location_name\":\"Delta Lubumbashi\"},\"permissions\":[],\"config\":{\"autoLogoutTime\":null,\"defaultLanguage\":\"fr\"},\"signature\":null,\"language\":\"fr\",\"default_page\":null}},\"duration\":740,\"memory\":26,\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"}}','2024-07-16 09:48:07'),(216,'9c88f0c4-308d-4477-8ce9-cb1612a15a93','9c88f0c4-398a-43cf-932c-6eb66f6161dc',NULL,1,'request','{\"ip_address\":\"127.0.0.1\",\"uri\":\"\\/api\\/config\\/parameter\",\"method\":\"OPTIONS\",\"controller_action\":null,\"middleware\":[],\"headers\":{\"host\":\"localhost:8000\",\"connection\":\"keep-alive\",\"accept\":\"*\\/*\",\"access-control-request-method\":\"GET\",\"access-control-request-headers\":\"x-xsrf-token\",\"origin\":\"http:\\/\\/localhost:9000\",\"user-agent\":\"Mozilla\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\/537.36 (KHTML, like Gecko) Chrome\\/126.0.0.0 Safari\\/537.36\",\"sec-fetch-mode\":\"cors\",\"sec-fetch-site\":\"same-site\",\"sec-fetch-dest\":\"empty\",\"referer\":\"http:\\/\\/localhost:9000\\/\",\"accept-encoding\":\"gzip, deflate, br, zstd\",\"accept-language\":\"fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7\"},\"payload\":[],\"session\":[],\"response_status\":204,\"response\":\"Empty Response\",\"duration\":538,\"memory\":24,\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:48:08'),(217,'9c88f0c5-90e9-48ee-b12b-792208881065','9c88f0c5-adf7-4add-a628-460d22f3eb64',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `user` where `user_id` = 1 and `user`.`deleted_at` is null limit 1\",\"time\":\"9.14\",\"slow\":false,\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\public\\\\index.php\",\"line\":51,\"hash\":\"e7a4eca25952663be2e8729f698454f2\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:48:09'),(218,'9c88f0c5-9699-4645-93d8-aac84d0f2f81','9c88f0c5-adf7-4add-a628-460d22f3eb64',NULL,1,'model','{\"action\":\"retrieved\",\"model\":\"App\\\\Models\\\\User\",\"count\":1,\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:48:09'),(219,'9c88f0c5-9af0-4059-bc10-2f83e549fa21','9c88f0c5-adf7-4add-a628-460d22f3eb64',NULL,1,'cache','{\"type\":\"missed\",\"key\":\"a75f3f172bfb296f2e10cbfc6dfc1883\",\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"}}','2024-07-16 09:48:09'),(220,'9c88f0c5-9b6e-4cb3-b252-142de9ac11f3','9c88f0c5-adf7-4add-a628-460d22f3eb64',NULL,1,'cache','{\"type\":\"missed\",\"key\":\"a75f3f172bfb296f2e10cbfc6dfc1883:timer\",\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"}}','2024-07-16 09:48:09'),(221,'9c88f0c5-9e14-423c-a138-40e4b7e418de','9c88f0c5-adf7-4add-a628-460d22f3eb64',NULL,1,'cache','{\"type\":\"set\",\"key\":\"a75f3f172bfb296f2e10cbfc6dfc1883:timer\",\"value\":1721119749,\"expiration\":60,\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"}}','2024-07-16 09:48:09'),(222,'9c88f0c5-9e76-47cf-9f7e-80830f657a8e','9c88f0c5-adf7-4add-a628-460d22f3eb64',NULL,1,'cache','{\"type\":\"missed\",\"key\":\"a75f3f172bfb296f2e10cbfc6dfc1883\",\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"}}','2024-07-16 09:48:09'),(223,'9c88f0c5-9ed4-4690-bf08-5f18034414b0','9c88f0c5-adf7-4add-a628-460d22f3eb64',NULL,1,'cache','{\"type\":\"set\",\"key\":\"a75f3f172bfb296f2e10cbfc6dfc1883\",\"value\":0,\"expiration\":60,\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"}}','2024-07-16 09:48:09'),(224,'9c88f0c5-a0ee-4b93-b79e-8816021ed6c1','9c88f0c5-adf7-4add-a628-460d22f3eb64',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `config_parameters`\",\"time\":\"1.54\",\"slow\":false,\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\app\\\\Http\\\\Controllers\\\\ConfigParameterController.php\",\"line\":37,\"hash\":\"a3230be7c98d95e315bdf69f0209224f\",\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"}}','2024-07-16 09:48:09'),(225,'9c88f0c5-aa4c-40ef-9581-ecde6fe8256d','9c88f0c5-adf7-4add-a628-460d22f3eb64',NULL,1,'cache','{\"type\":\"hit\",\"key\":\"a75f3f172bfb296f2e10cbfc6dfc1883\",\"value\":1,\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"}}','2024-07-16 09:48:09'),(226,'9c88f0c5-abf2-4d3c-bebf-8bb2e2e63180','9c88f0c5-adf7-4add-a628-460d22f3eb64',NULL,1,'request','{\"ip_address\":\"127.0.0.1\",\"uri\":\"\\/api\\/config\\/parameter\",\"method\":\"GET\",\"controller_action\":\"App\\\\Http\\\\Controllers\\\\ConfigParameterController@getConfigParameter\",\"middleware\":[\"api\",\"auth:sanctum\"],\"headers\":{\"host\":\"localhost:8000\",\"connection\":\"keep-alive\",\"sec-ch-ua\":\"\\\"Not\\/A)Brand\\\";v=\\\"8\\\", \\\"Chromium\\\";v=\\\"126\\\", \\\"Google Chrome\\\";v=\\\"126\\\"\",\"accept\":\"application\\/json, text\\/plain, *\\/*\",\"x-xsrf-token\":\"eyJpdiI6Ind1dS8zN3FmNFdySXpzUUlRN0EyWXc9PSIsInZhbHVlIjoiTjM5cGtVUWRRaVRmR1N6QnB6WUsvc2lPalN6NGN3NDBUNVI5UnJhQlJqYkhQeEZqWVFTd0RUOHJ5MGZMeisrY0NEWHV3eUxGNEQ5ZXF0eWRTZk1mcXpoUU9IcE5vTDdwYWhZSGlOZWdaMVVDbVlYRFczRjM3aDh2a3RMcE50QXMiLCJtYWMiOiI4Zjg1YjAwOWY5YjQxNTVkMTUxMmRjZmQ0ZGIxOWM1NjM0Y2ViYjc5N2MzNGJkM2Q5OTRlZmFjNDNkMjRmNjllIiwidGFnIjoiIn0=\",\"sec-ch-ua-mobile\":\"?0\",\"user-agent\":\"Mozilla\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\/537.36 (KHTML, like Gecko) Chrome\\/126.0.0.0 Safari\\/537.36\",\"sec-ch-ua-platform\":\"\\\"Windows\\\"\",\"origin\":\"http:\\/\\/localhost:9000\",\"sec-fetch-site\":\"same-site\",\"sec-fetch-mode\":\"cors\",\"sec-fetch-dest\":\"empty\",\"referer\":\"http:\\/\\/localhost:9000\\/\",\"accept-encoding\":\"gzip, deflate, br, zstd\",\"accept-language\":\"fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7\",\"cookie\":\"Studio-99d0ba62=5b48f54f-6700-41a2-a846-66f6b501e1b9; io=QL09WWgumy-SOY3MAAAB; XSRF-TOKEN=eyJpdiI6Ind1dS8zN3FmNFdySXpzUUlRN0EyWXc9PSIsInZhbHVlIjoiTjM5cGtVUWRRaVRmR1N6QnB6WUsvc2lPalN6NGN3NDBUNVI5UnJhQlJqYkhQeEZqWVFTd0RUOHJ5MGZMeisrY0NEWHV3eUxGNEQ5ZXF0eWRTZk1mcXpoUU9IcE5vTDdwYWhZSGlOZWdaMVVDbVlYRFczRjM3aDh2a3RMcE50QXMiLCJtYWMiOiI4Zjg1YjAwOWY5YjQxNTVkMTUxMmRjZmQ0ZGIxOWM1NjM0Y2ViYjc5N2MzNGJkM2Q5OTRlZmFjNDNkMjRmNjllIiwidGFnIjoiIn0%3D; laravel_session=eyJpdiI6IjZ4Uy9TU1JIOXhqdjRTTnl1QVhQOHc9PSIsInZhbHVlIjoidHMvakN4WEhGTDhaMXNuZE05RENld2NkUW82ckE2aDNINlBidFRSZDNUL050MWZNdnViZ1F1cjkrdEVIK3YyMWdNcnRWejRteDBtYitoRnFUYnFzRzc0MzFaaDVPOFdqMExZRVNmcFo0TWUxa01MNzFpaTNjWmI2L050OXFrT2IiLCJtYWMiOiI2OTQxODUxOTkyNjg4YzEyNzU4MjA5MGY4NzRjMDAwYzlkYWEyNjY2MzMyYWRmY2VkMjkyMTM2MmY1YjkwYWMxIiwidGFnIjoiIn0%3D\"},\"payload\":[],\"session\":{\"_token\":\"rTfeNLVBInMDocTBHqRiEKPwIQdX4ZDrKl9BkLsO\",\"_previous\":{\"url\":\"http:\\/\\/localhost:8000\\/api\\/config\\/parameter\"},\"_flash\":{\"old\":[],\"new\":[]},\"login_web_59ba36addc2b2f9401580f014c7f58ea4e30989d\":1},\"response_status\":201,\"response\":[],\"duration\":628,\"memory\":24,\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"}}','2024-07-16 09:48:09'),(227,'9c88f0fd-6709-4753-8a6d-5248f861c552','9c88f0fd-6e99-4688-9e96-e5a631bdfc95',NULL,1,'request','{\"ip_address\":\"127.0.0.1\",\"uri\":\"\\/api\\/changePassword\",\"method\":\"OPTIONS\",\"controller_action\":null,\"middleware\":[],\"headers\":{\"host\":\"localhost:8000\",\"connection\":\"keep-alive\",\"accept\":\"*\\/*\",\"access-control-request-method\":\"POST\",\"access-control-request-headers\":\"content-type,x-xsrf-token\",\"origin\":\"http:\\/\\/localhost:9000\",\"user-agent\":\"Mozilla\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\/537.36 (KHTML, like Gecko) Chrome\\/126.0.0.0 Safari\\/537.36\",\"sec-fetch-mode\":\"cors\",\"sec-fetch-site\":\"same-site\",\"sec-fetch-dest\":\"empty\",\"referer\":\"http:\\/\\/localhost:9000\\/\",\"accept-encoding\":\"gzip, deflate, br, zstd\",\"accept-language\":\"fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7\"},\"payload\":[],\"session\":[],\"response_status\":204,\"response\":\"Empty Response\",\"duration\":444,\"memory\":24,\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:48:46'),(228,'9c88f0fe-94a5-4c0f-887e-7881d2d7c09b','9c88f0ff-17d2-4e92-b9c6-82309664427f',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `user` where `user_id` = 1 and `user`.`deleted_at` is null limit 1\",\"time\":\"9.30\",\"slow\":false,\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\public\\\\index.php\",\"line\":51,\"hash\":\"e7a4eca25952663be2e8729f698454f2\",\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:48:47'),(229,'9c88f0fe-99b2-4ed4-812d-72cfaef3c804','9c88f0ff-17d2-4e92-b9c6-82309664427f',NULL,1,'model','{\"action\":\"retrieved\",\"model\":\"App\\\\Models\\\\User\",\"count\":2,\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:48:47'),(230,'9c88f0fe-9c50-450e-82f0-70eb4d512030','9c88f0ff-17d2-4e92-b9c6-82309664427f',NULL,1,'cache','{\"type\":\"missed\",\"key\":\"a75f3f172bfb296f2e10cbfc6dfc1883\",\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"}}','2024-07-16 09:48:47'),(231,'9c88f0fe-9cc9-4e1f-85e8-70bd5297a796','9c88f0ff-17d2-4e92-b9c6-82309664427f',NULL,1,'cache','{\"type\":\"missed\",\"key\":\"a75f3f172bfb296f2e10cbfc6dfc1883:timer\",\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"}}','2024-07-16 09:48:47'),(232,'9c88f0fe-9d47-4716-bfd0-8fd2a3dbd961','9c88f0ff-17d2-4e92-b9c6-82309664427f',NULL,1,'cache','{\"type\":\"set\",\"key\":\"a75f3f172bfb296f2e10cbfc6dfc1883:timer\",\"value\":1721119787,\"expiration\":60,\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"}}','2024-07-16 09:48:47'),(233,'9c88f0fe-9d7c-4aae-9224-6314480d7f8b','9c88f0ff-17d2-4e92-b9c6-82309664427f',NULL,1,'cache','{\"type\":\"missed\",\"key\":\"a75f3f172bfb296f2e10cbfc6dfc1883\",\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"}}','2024-07-16 09:48:47'),(234,'9c88f0fe-9db3-4f43-9f87-9d357ad200d5','9c88f0ff-17d2-4e92-b9c6-82309664427f',NULL,1,'cache','{\"type\":\"set\",\"key\":\"a75f3f172bfb296f2e10cbfc6dfc1883\",\"value\":0,\"expiration\":60,\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"}}','2024-07-16 09:48:47'),(235,'9c88f0fe-cadf-4333-aefc-5a10febcff6f','9c88f0ff-17d2-4e92-b9c6-82309664427f',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"select * from `user` where `username` = \'admin\' and `user`.`deleted_at` is null limit 1\",\"time\":\"1.72\",\"slow\":false,\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\app\\\\Http\\\\Controllers\\\\UserController.php\",\"line\":619,\"hash\":\"56f267c17974a18fe94bec013cf898c5\",\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"}}','2024-07-16 09:48:47'),(236,'9c88f0ff-0bef-4724-994a-0d06a57620ce','9c88f0ff-17d2-4e92-b9c6-82309664427f',NULL,1,'query','{\"connection\":\"mysql\",\"bindings\":[],\"sql\":\"update `user` set `password` = \'y$Ab\\/CBzW8uBnarB0g8TeRfetSfRmVdPisbaU7qzbmNY0IVOoA4Yf8G\', `is_first_login` = 0, `updated_at` = \'2024-07-16 09:48:47\' where `user_id` = 1\",\"time\":\"18.14\",\"slow\":false,\"file\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\app\\\\Http\\\\Controllers\\\\UserController.php\",\"line\":623,\"hash\":\"f2e657cd9b6e7c3484d13b0139ea36de\",\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"}}','2024-07-16 09:48:47'),(237,'9c88f0ff-0c78-4f2b-b2d0-72e566506d8d','9c88f0ff-17d2-4e92-b9c6-82309664427f',NULL,1,'model','{\"action\":\"updated\",\"model\":\"App\\\\Models\\\\User:1\",\"changes\":{\"password\":\"$2y$10$Ab\\/CBzW8uBnarB0g8TeRfetSfRmVdPisbaU7qzbmNY0IVOoA4Yf8G\",\"is_first_login\":0,\"updated_at\":\"2024-07-16T08:48:47.300036Z\"},\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"}}','2024-07-16 09:48:47'),(238,'9c88f0ff-1402-47c1-b9fd-b46de09351e3','9c88f0ff-17d2-4e92-b9c6-82309664427f',NULL,1,'cache','{\"type\":\"hit\",\"key\":\"a75f3f172bfb296f2e10cbfc6dfc1883\",\"value\":1,\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"}}','2024-07-16 09:48:47'),(239,'9c88f0ff-15cd-4ab9-9e1b-51296b80746c','9c88f0ff-17d2-4e92-b9c6-82309664427f',NULL,1,'request','{\"ip_address\":\"127.0.0.1\",\"uri\":\"\\/api\\/changePassword\",\"method\":\"POST\",\"controller_action\":\"App\\\\Http\\\\Controllers\\\\UserController@changePassword\",\"middleware\":[\"api\",\"auth:sanctum\"],\"headers\":{\"host\":\"localhost:8000\",\"connection\":\"keep-alive\",\"sec-ch-ua\":\"\\\"Not\\/A)Brand\\\";v=\\\"8\\\", \\\"Chromium\\\";v=\\\"126\\\", \\\"Google Chrome\\\";v=\\\"126\\\"\",\"accept\":\"application\\/json, text\\/plain, *\\/*\",\"content-type\":\"application\\/json\",\"x-xsrf-token\":\"eyJpdiI6ImtzSWlUK3JKRUtPYU5pcS85dUcyOFE9PSIsInZhbHVlIjoid1NLYzZaK3A1OWR5d2dXeDRPekpXUjY5WlVDK0Z1S1ZUNGhjcW9CRkhXbXB2djY2TWtBKzdJRXh1Ujl1d1ZmRWdLT2NyNXVSb0pVZi9JNS9mUXcxaEorMnFhRUx4bDhDdlhvUEpUd1NFSHBpQmZ1bUwxZ214VC9jOU1qL1FIZS8iLCJtYWMiOiJlMGUyZTMzOTJiMThhNWM5Y2RlMzEyNDM0YTE1MWY3ZjMwMzhmNmUxNjQ0M2I1MDJjYzY2M2NjZmUyN2Y2Y2VmIiwidGFnIjoiIn0=\",\"sec-ch-ua-mobile\":\"?0\",\"user-agent\":\"Mozilla\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\/537.36 (KHTML, like Gecko) Chrome\\/126.0.0.0 Safari\\/537.36\",\"sec-ch-ua-platform\":\"\\\"Windows\\\"\",\"origin\":\"http:\\/\\/localhost:9000\",\"sec-fetch-site\":\"same-site\",\"sec-fetch-mode\":\"cors\",\"sec-fetch-dest\":\"empty\",\"referer\":\"http:\\/\\/localhost:9000\\/\",\"accept-encoding\":\"gzip, deflate, br, zstd\",\"accept-language\":\"fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7\",\"cookie\":\"Studio-99d0ba62=5b48f54f-6700-41a2-a846-66f6b501e1b9; io=QL09WWgumy-SOY3MAAAB; XSRF-TOKEN=eyJpdiI6ImtzSWlUK3JKRUtPYU5pcS85dUcyOFE9PSIsInZhbHVlIjoid1NLYzZaK3A1OWR5d2dXeDRPekpXUjY5WlVDK0Z1S1ZUNGhjcW9CRkhXbXB2djY2TWtBKzdJRXh1Ujl1d1ZmRWdLT2NyNXVSb0pVZi9JNS9mUXcxaEorMnFhRUx4bDhDdlhvUEpUd1NFSHBpQmZ1bUwxZ214VC9jOU1qL1FIZS8iLCJtYWMiOiJlMGUyZTMzOTJiMThhNWM5Y2RlMzEyNDM0YTE1MWY3ZjMwMzhmNmUxNjQ0M2I1MDJjYzY2M2NjZmUyN2Y2Y2VmIiwidGFnIjoiIn0%3D; laravel_session=eyJpdiI6InJHeHhhdXp6SDhydWZmRk5YYUVPbWc9PSIsInZhbHVlIjoiSFJNK1VVZy9pRHdlbnp4dFF4ci9paUxISVEwSzBqMmFvQzdmOWkvSkJHWmVBa1BKRzZDYjFlWVFEc2Rjd1QxZ0VBUEw2dWxqaWxCa0lLQUw5VGgxd1ozNUltNW9SSk00SUVldzdNM1hGTFhlS29sVW1FRGVBM3djRHlUdkwreWkiLCJtYWMiOiJkZmZiMmQyY2JmY2JhZDUwMDgyOGNkNjRlZTE1OTkxZGY1OTc3MmE3YjNmMGRlNjNjMWQ3MjA1ZjI5MzA3NzIyIiwidGFnIjoiIn0%3D\",\"content-length\":\"67\"},\"payload\":{\"password\":\"********\",\"passwordConfirmation\":\"188085296@Plk\"},\"session\":{\"_token\":\"rTfeNLVBInMDocTBHqRiEKPwIQdX4ZDrKl9BkLsO\",\"_previous\":{\"url\":\"http:\\/\\/localhost:8000\\/api\\/config\\/parameter\"},\"_flash\":{\"old\":[],\"new\":[]},\"login_web_59ba36addc2b2f9401580f014c7f58ea4e30989d\":1},\"response_status\":200,\"response\":{\"message\":\"Success\"},\"duration\":1034,\"memory\":26,\"hostname\":\"DESKTOP-0H8R58O\",\"user\":{\"id\":1,\"name\":null,\"email\":\"fideleplk@gmail.com\"}}','2024-07-16 09:48:47'),(240,'9c88f117-2fcc-4b17-b30d-7cd67daa0555','9c88f117-370f-4459-bcf4-b3f3ff5f1714',NULL,1,'command','{\"command\":\"list\",\"exit_code\":0,\"arguments\":{\"command\":\"list\",\"namespace\":null},\"options\":{\"raw\":false,\"format\":\"txt\",\"short\":false,\"help\":false,\"quiet\":false,\"verbose\":false,\"version\":false,\"ansi\":null,\"no-interaction\":false,\"env\":null},\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:49:03'),(241,'9c88f117-2f9c-4cc2-9fda-d3b6c62f6f3c','9c88f117-4eaa-4cf4-8ffa-b8cfd8e75c9c',NULL,1,'command','{\"command\":\"list\",\"exit_code\":0,\"arguments\":{\"command\":\"list\",\"namespace\":null},\"options\":{\"raw\":false,\"format\":\"txt\",\"short\":false,\"help\":false,\"quiet\":false,\"verbose\":false,\"version\":false,\"ansi\":null,\"no-interaction\":false,\"env\":null},\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:49:03'),(242,'9c88f172-ba2d-4ea6-aa39-912a1b0cbc9c','9c88f172-c5db-43bd-89fd-9036a73739c1',NULL,1,'command','{\"command\":\"list\",\"exit_code\":0,\"arguments\":{\"command\":\"list\",\"namespace\":null},\"options\":{\"raw\":false,\"format\":\"txt\",\"short\":false,\"help\":false,\"quiet\":false,\"verbose\":false,\"version\":false,\"ansi\":null,\"no-interaction\":false,\"env\":null},\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:50:03'),(243,'9c88f172-b814-4066-8a9e-b551bb1a0c63','9c88f172-ec48-4a09-b024-531b01b526f7',NULL,1,'command','{\"command\":\"list\",\"exit_code\":0,\"arguments\":{\"command\":\"list\",\"namespace\":null},\"options\":{\"raw\":false,\"format\":\"txt\",\"short\":false,\"help\":false,\"quiet\":false,\"verbose\":false,\"version\":false,\"ansi\":null,\"no-interaction\":false,\"env\":null},\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:50:03'),(244,'9c88f1ce-52da-4076-a7d4-7077250a8814','9c88f1ce-5df7-49fa-844c-a59400abd817',NULL,1,'command','{\"command\":\"list\",\"exit_code\":0,\"arguments\":{\"command\":\"list\",\"namespace\":null},\"options\":{\"raw\":false,\"format\":\"txt\",\"short\":false,\"help\":false,\"quiet\":false,\"verbose\":false,\"version\":false,\"ansi\":null,\"no-interaction\":false,\"env\":null},\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:51:03'),(245,'9c88f1ce-52c8-4748-8a35-b9dc9864dd64','9c88f1ce-820d-4b4e-ba58-5dc995ce05f1',NULL,1,'command','{\"command\":\"list\",\"exit_code\":0,\"arguments\":{\"command\":\"list\",\"namespace\":null},\"options\":{\"raw\":false,\"format\":\"txt\",\"short\":false,\"help\":false,\"quiet\":false,\"verbose\":false,\"version\":false,\"ansi\":null,\"no-interaction\":false,\"env\":null},\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:51:03'),(246,'9c88f229-e34f-4819-bba0-19436eced4cc','9c88f229-e866-4c80-90c3-62ad4da79cf9',NULL,1,'command','{\"command\":\"list\",\"exit_code\":0,\"arguments\":{\"command\":\"list\",\"namespace\":null},\"options\":{\"raw\":false,\"format\":\"txt\",\"short\":false,\"help\":false,\"quiet\":false,\"verbose\":false,\"version\":false,\"ansi\":null,\"no-interaction\":false,\"env\":null},\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:52:03'),(247,'9c88f229-e354-4008-8ea1-04078a453925','9c88f229-f671-4442-80bb-b321515f034e',NULL,1,'command','{\"command\":\"list\",\"exit_code\":0,\"arguments\":{\"command\":\"list\",\"namespace\":null},\"options\":{\"raw\":false,\"format\":\"txt\",\"short\":false,\"help\":false,\"quiet\":false,\"verbose\":false,\"version\":false,\"ansi\":null,\"no-interaction\":false,\"env\":null},\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:52:03'),(248,'9c88f285-7a8f-4f45-9149-6914a4f308c4','9c88f285-800a-4524-ae7e-4fb859e97f35',NULL,1,'command','{\"command\":\"list\",\"exit_code\":0,\"arguments\":{\"command\":\"list\",\"namespace\":null},\"options\":{\"raw\":false,\"format\":\"txt\",\"short\":false,\"help\":false,\"quiet\":false,\"verbose\":false,\"version\":false,\"ansi\":null,\"no-interaction\":false,\"env\":null},\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:53:03'),(249,'9c88f285-7a85-4d5f-b1b8-169c7a02fc81','9c88f285-9198-43aa-a122-51ca29103f1d',NULL,1,'command','{\"command\":\"list\",\"exit_code\":0,\"arguments\":{\"command\":\"list\",\"namespace\":null},\"options\":{\"raw\":false,\"format\":\"txt\",\"short\":false,\"help\":false,\"quiet\":false,\"verbose\":false,\"version\":false,\"ansi\":null,\"no-interaction\":false,\"env\":null},\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:53:03'),(250,'9c88f2e1-02bc-4fbe-9241-a684cc788eb2','9c88f2e1-06b8-4cfc-b62e-1cb0bb58db2c',NULL,1,'command','{\"command\":\"list\",\"exit_code\":0,\"arguments\":{\"command\":\"list\",\"namespace\":null},\"options\":{\"raw\":false,\"format\":\"txt\",\"short\":false,\"help\":false,\"quiet\":false,\"verbose\":false,\"version\":false,\"ansi\":null,\"no-interaction\":false,\"env\":null},\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:54:03'),(251,'9c88f2e1-0674-41ca-83f8-4ce564a0f964','9c88f2e1-1817-4000-a844-28c27483eee6',NULL,1,'command','{\"command\":\"list\",\"exit_code\":0,\"arguments\":{\"command\":\"list\",\"namespace\":null},\"options\":{\"raw\":false,\"format\":\"txt\",\"short\":false,\"help\":false,\"quiet\":false,\"verbose\":false,\"version\":false,\"ansi\":null,\"no-interaction\":false,\"env\":null},\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:54:03'),(252,'9c88f33c-bb36-42fc-ae58-2c6a32848ed0','9c88f33c-c04d-4a5d-852b-0b4bae0cae9f',NULL,1,'command','{\"command\":\"list\",\"exit_code\":0,\"arguments\":{\"command\":\"list\",\"namespace\":null},\"options\":{\"raw\":false,\"format\":\"txt\",\"short\":false,\"help\":false,\"quiet\":false,\"verbose\":false,\"version\":false,\"ansi\":null,\"no-interaction\":false,\"env\":null},\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:55:03'),(253,'9c88f33c-c43b-4dda-9bbf-26b723fb901a','9c88f33c-caed-4f59-8296-820ff47c8537',NULL,1,'command','{\"command\":\"list\",\"exit_code\":0,\"arguments\":{\"command\":\"list\",\"namespace\":null},\"options\":{\"raw\":false,\"format\":\"txt\",\"short\":false,\"help\":false,\"quiet\":false,\"verbose\":false,\"version\":false,\"ansi\":null,\"no-interaction\":false,\"env\":null},\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:55:03'),(254,'9c88f33c-bdb6-4262-8a02-a363dcebc94b','9c88f33c-d212-41c9-884e-81c43688fd48',NULL,1,'command','{\"command\":\"list\",\"exit_code\":0,\"arguments\":{\"command\":\"list\",\"namespace\":null},\"options\":{\"raw\":false,\"format\":\"txt\",\"short\":false,\"help\":false,\"quiet\":false,\"verbose\":false,\"version\":false,\"ansi\":null,\"no-interaction\":false,\"env\":null},\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:55:03'),(255,'9c88f398-3298-4705-8a24-00e8669b981e','9c88f398-37a2-4b5a-98d1-d1ad2769480e',NULL,1,'command','{\"command\":\"list\",\"exit_code\":0,\"arguments\":{\"command\":\"list\",\"namespace\":null},\"options\":{\"raw\":false,\"format\":\"txt\",\"short\":false,\"help\":false,\"quiet\":false,\"verbose\":false,\"version\":false,\"ansi\":null,\"no-interaction\":false,\"env\":null},\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:56:03'),(256,'9c88f398-3290-418c-9f77-5ba0575fc9cd','9c88f398-476b-420e-87f6-e1673f7eabb8',NULL,1,'command','{\"command\":\"list\",\"exit_code\":0,\"arguments\":{\"command\":\"list\",\"namespace\":null},\"options\":{\"raw\":false,\"format\":\"txt\",\"short\":false,\"help\":false,\"quiet\":false,\"verbose\":false,\"version\":false,\"ansi\":null,\"no-interaction\":false,\"env\":null},\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:56:03'),(257,'9c88f3bd-fd8d-4bd5-be20-52b7c285563e','9c88f3be-0a29-4f39-8efa-0890ae3c4ef2',NULL,1,'view','{\"name\":\"welcome\",\"path\":\"\\\\resources\\\\views\\/welcome.blade.php\",\"data\":[],\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:56:28'),(258,'9c88f3be-07de-43d6-989e-4a81447f88c2','9c88f3be-0a29-4f39-8efa-0890ae3c4ef2',NULL,1,'request','{\"ip_address\":\"127.0.0.1\",\"uri\":\"\\/\",\"method\":\"GET\",\"controller_action\":\"Closure\",\"middleware\":[\"web\"],\"headers\":{\"host\":\"localhost:8000\",\"connection\":\"keep-alive\",\"sec-ch-ua\":\"\\\"Not\\/A)Brand\\\";v=\\\"8\\\", \\\"Chromium\\\";v=\\\"126\\\", \\\"Google Chrome\\\";v=\\\"126\\\"\",\"purpose\":\"prefetch\",\"sec-ch-ua-mobile\":\"?0\",\"upgrade-insecure-requests\":\"1\",\"user-agent\":\"Mozilla\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\/537.36 (KHTML, like Gecko) Chrome\\/126.0.0.0 Safari\\/537.36\",\"accept\":\"text\\/html,application\\/xhtml+xml,application\\/xml;q=0.9,image\\/avif,image\\/webp,image\\/apng,*\\/*;q=0.8,application\\/signed-exchange;v=b3;q=0.7\",\"sec-purpose\":\"prefetch;prerender\",\"sec-ch-ua-platform\":\"\\\"Windows\\\"\",\"sec-fetch-site\":\"same-origin\",\"sec-fetch-mode\":\"navigate\",\"sec-fetch-dest\":\"empty\",\"accept-encoding\":\"gzip, deflate, br, zstd\",\"accept-language\":\"fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7\",\"cookie\":\"Studio-99d0ba62=5b48f54f-6700-41a2-a846-66f6b501e1b9; XSRF-TOKEN=eyJpdiI6ImFqYkVKbDV5SStET3dvSGJpdkVWU0E9PSIsInZhbHVlIjoiTjcydUZQRnFCbVhvWU1FaWViRG9WeTFYbWVxdlIxNkFxZmxndnNXWEdVMVYxd3FKY1R5bldiVWdGQlBNOFhnK0tFbUJyeFhZKzBKbEhMZmlZaXZKa0NrQXRYQVoyMHBadjNLWnpGdHhjczdVRGNsakpzcVYvdXNuWVh4dUFkU3AiLCJtYWMiOiJkOWFkYjE1ZDkzOTYxMDYwMjI5ODA5NzgxNDZmZTBmMDY4OGEwNDI2NzMwMjBiMDE1MTQ1Zjk2MGY4YWQ0NGMwIiwidGFnIjoiIn0%3D; laravel_session=eyJpdiI6InAweXBJS1JwcHovM0ZDbmFTRlA4ZlE9PSIsInZhbHVlIjoiSzZzUnFjdFdNOTZ2bXYxcEtNU1A1cFdSOTkrUnNQeGo5QXFkL3o3ZEJacWgyTzh1TDVsazhwUithdWUrVlNKUDBHOXBETTdheXg3R1FGRFlzK20xeXcyTFZjSmpoOEhvdHBxa1N6MFozS0JRcFBzcTNEaDB3N3RVV3YzTjA1MTEiLCJtYWMiOiIwZGZkZDRlMjM5NGM4MzA1ZjUyNjJlZDg4ZWFlOWY5ZGEwMmM4MTA3MmZkNzIzZWQ3YmExZGU5ZmY1NTY1NjBhIiwidGFnIjoiIn0%3D; io=3AcJK9daGo8GruViAAAG\"},\"payload\":[],\"session\":{\"_token\":\"rTfeNLVBInMDocTBHqRiEKPwIQdX4ZDrKl9BkLsO\",\"_previous\":{\"url\":\"http:\\/\\/localhost:8000\\/api\\/config\\/parameter\"},\"_flash\":{\"old\":[],\"new\":[]},\"login_web_59ba36addc2b2f9401580f014c7f58ea4e30989d\":1},\"response_status\":200,\"response\":{\"view\":\"C:\\\\xampp\\\\htdocs\\\\ehealth_back\\\\resources\\\\views\\/welcome.blade.php\",\"data\":[]},\"duration\":711,\"memory\":24,\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:56:28'),(259,'9c88f3c2-6930-462d-ae88-c311fe04c330','9c88f3c2-767d-4b9e-8ef2-2e8755b35d9d',NULL,1,'view','{\"name\":\"errors::404\",\"path\":\"\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Exceptions\\/views\\/404.blade.php\",\"data\":[\"exception\"],\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:56:30'),(260,'9c88f3c2-7149-4ff2-a6b5-5a06a9522751','9c88f3c2-767d-4b9e-8ef2-2e8755b35d9d',NULL,1,'view','{\"name\":\"errors::minimal\",\"path\":\"\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Exceptions\\/views\\/minimal.blade.php\",\"data\":[\"exception\"],\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:56:30'),(261,'9c88f3c2-74e1-44b0-99e3-78f0d2356f88','9c88f3c2-767d-4b9e-8ef2-2e8755b35d9d',NULL,1,'request','{\"ip_address\":\"127.0.0.1\",\"uri\":\"\\/serviceworker.js\",\"method\":\"GET\",\"controller_action\":null,\"middleware\":[],\"headers\":{\"host\":\"localhost:8000\",\"connection\":\"keep-alive\",\"cache-control\":\"max-age=0\",\"accept\":\"*\\/*\",\"service-worker\":\"script\",\"sec-fetch-site\":\"same-origin\",\"sec-fetch-mode\":\"same-origin\",\"sec-fetch-dest\":\"serviceworker\",\"referer\":\"http:\\/\\/localhost:8000\\/serviceworker.js\",\"user-agent\":\"Mozilla\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\/537.36 (KHTML, like Gecko) Chrome\\/126.0.0.0 Safari\\/537.36\",\"accept-encoding\":\"gzip, deflate, br, zstd\",\"accept-language\":\"fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7\",\"cookie\":\"Studio-99d0ba62=5b48f54f-6700-41a2-a846-66f6b501e1b9; io=3AcJK9daGo8GruViAAAG; XSRF-TOKEN=eyJpdiI6Im5tNXVCaHB4Q3VaUDVSNFQ2TFJ0WFE9PSIsInZhbHVlIjoiRFhoVEx1ZHNWalJsS25jLzRRYStkUmN5YVowQS9NeEUxbzdFV2lsUVoyNWVROEx4V3lIVnJRQ0cyalBTN2l0YXM5ak1PMkJTaE82Z0E3cE0vdjVBZWloMnl5RzM2NnJrSDBlTkZFbUE2OVdIQjlQQysrTFJydnc3blVBL2dkWDgiLCJtYWMiOiJjYTJmOWJhOTc3OTJmOWI3M2JkZWFlZDUxMGY1YzVhYTI1MDllN2RlMGIxMTlmYTlhNDc4ZWIyYzA0MWY1NGE0IiwidGFnIjoiIn0%3D; laravel_session=eyJpdiI6InlWZDJZVWlMWVZ5WkYzTXJ3c1BJcEE9PSIsInZhbHVlIjoic0VXLzJvbFZETkRJV2dCS0JTYTJvbmk0QkpxaEhxV1hNdnBJN1BmWkNmOHU3b25OeEtzL1JiS2cya0R2TTFVdDNLaDZLUjFvRVNqRXZ4aDZ4REpDVFdYdmlLTlVnVU5lNlFzM3FzdUd1K0NFUHNwdHoyTEtwU3VkTFpRZUhHNG4iLCJtYWMiOiI0ZWNmYzczZjk0Y2VmZTI0M2Q0OThhOTMzYjljYTUwMTk0NWY1MDdjMDY1M2VlODZhNDE0NzM2ODU3ZjM0Y2VjIiwidGFnIjoiIn0%3D\"},\"payload\":[],\"session\":[],\"response_status\":404,\"response\":\"HTML Response\",\"duration\":593,\"memory\":24,\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:56:30'),(262,'9c88f3c5-4eee-43ad-8fd7-123d3b24fee0','9c88f3c5-573a-4eb9-8f92-34abb57c1089',NULL,1,'view','{\"name\":\"errors::404\",\"path\":\"\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Exceptions\\/views\\/404.blade.php\",\"data\":[\"exception\"],\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:56:32'),(263,'9c88f3c5-54f0-4891-9829-fa007614cc3c','9c88f3c5-573a-4eb9-8f92-34abb57c1089',NULL,1,'view','{\"name\":\"errors::minimal\",\"path\":\"\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Exceptions\\/views\\/minimal.blade.php\",\"data\":[\"exception\"],\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:56:32'),(264,'9c88f3c5-55a0-4008-989a-43f685e1ed6f','9c88f3c5-573a-4eb9-8f92-34abb57c1089',NULL,1,'request','{\"ip_address\":\"127.0.0.1\",\"uri\":\"\\/login\",\"method\":\"GET\",\"controller_action\":null,\"middleware\":[],\"headers\":{\"host\":\"localhost:8000\",\"connection\":\"keep-alive\",\"sec-ch-ua\":\"\\\"Not\\/A)Brand\\\";v=\\\"8\\\", \\\"Chromium\\\";v=\\\"126\\\", \\\"Google Chrome\\\";v=\\\"126\\\"\",\"purpose\":\"prefetch\",\"sec-ch-ua-mobile\":\"?0\",\"upgrade-insecure-requests\":\"1\",\"user-agent\":\"Mozilla\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\/537.36 (KHTML, like Gecko) Chrome\\/126.0.0.0 Safari\\/537.36\",\"accept\":\"text\\/html,application\\/xhtml+xml,application\\/xml;q=0.9,image\\/avif,image\\/webp,image\\/apng,*\\/*;q=0.8,application\\/signed-exchange;v=b3;q=0.7\",\"sec-purpose\":\"prefetch;prerender\",\"sec-ch-ua-platform\":\"\\\"Windows\\\"\",\"sec-fetch-site\":\"same-origin\",\"sec-fetch-mode\":\"navigate\",\"sec-fetch-dest\":\"empty\",\"accept-encoding\":\"gzip, deflate, br, zstd\",\"accept-language\":\"fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7\",\"cookie\":\"Studio-99d0ba62=5b48f54f-6700-41a2-a846-66f6b501e1b9; io=3AcJK9daGo8GruViAAAG; XSRF-TOKEN=eyJpdiI6Im5tNXVCaHB4Q3VaUDVSNFQ2TFJ0WFE9PSIsInZhbHVlIjoiRFhoVEx1ZHNWalJsS25jLzRRYStkUmN5YVowQS9NeEUxbzdFV2lsUVoyNWVROEx4V3lIVnJRQ0cyalBTN2l0YXM5ak1PMkJTaE82Z0E3cE0vdjVBZWloMnl5RzM2NnJrSDBlTkZFbUE2OVdIQjlQQysrTFJydnc3blVBL2dkWDgiLCJtYWMiOiJjYTJmOWJhOTc3OTJmOWI3M2JkZWFlZDUxMGY1YzVhYTI1MDllN2RlMGIxMTlmYTlhNDc4ZWIyYzA0MWY1NGE0IiwidGFnIjoiIn0%3D; laravel_session=eyJpdiI6InlWZDJZVWlMWVZ5WkYzTXJ3c1BJcEE9PSIsInZhbHVlIjoic0VXLzJvbFZETkRJV2dCS0JTYTJvbmk0QkpxaEhxV1hNdnBJN1BmWkNmOHU3b25OeEtzL1JiS2cya0R2TTFVdDNLaDZLUjFvRVNqRXZ4aDZ4REpDVFdYdmlLTlVnVU5lNlFzM3FzdUd1K0NFUHNwdHoyTEtwU3VkTFpRZUhHNG4iLCJtYWMiOiI0ZWNmYzczZjk0Y2VmZTI0M2Q0OThhOTMzYjljYTUwMTk0NWY1MDdjMDY1M2VlODZhNDE0NzM2ODU3ZjM0Y2VjIiwidGFnIjoiIn0%3D\"},\"payload\":[],\"session\":[],\"response_status\":404,\"response\":\"HTML Response\",\"duration\":493,\"memory\":26,\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:56:32'),(265,'9c88f3c7-bb66-40b0-8435-9e0292e2731b','9c88f3c7-c37d-4b28-9364-d1798e9d9c0a',NULL,1,'view','{\"name\":\"errors::404\",\"path\":\"\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Exceptions\\/views\\/404.blade.php\",\"data\":[\"exception\"],\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:56:34'),(266,'9c88f3c7-c101-4914-89ba-17d9b6eaaaed','9c88f3c7-c37d-4b28-9364-d1798e9d9c0a',NULL,1,'view','{\"name\":\"errors::minimal\",\"path\":\"\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Exceptions\\/views\\/minimal.blade.php\",\"data\":[\"exception\"],\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:56:34'),(267,'9c88f3c7-c1b1-4081-907b-94ad8d1110fe','9c88f3c7-c37d-4b28-9364-d1798e9d9c0a',NULL,1,'request','{\"ip_address\":\"127.0.0.1\",\"uri\":\"\\/serviceworker.js\",\"method\":\"GET\",\"controller_action\":null,\"middleware\":[],\"headers\":{\"host\":\"localhost:8000\",\"connection\":\"keep-alive\",\"cache-control\":\"max-age=0\",\"accept\":\"*\\/*\",\"service-worker\":\"script\",\"sec-fetch-site\":\"same-origin\",\"sec-fetch-mode\":\"same-origin\",\"sec-fetch-dest\":\"serviceworker\",\"referer\":\"http:\\/\\/localhost:8000\\/serviceworker.js\",\"user-agent\":\"Mozilla\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\/537.36 (KHTML, like Gecko) Chrome\\/126.0.0.0 Safari\\/537.36\",\"accept-encoding\":\"gzip, deflate, br, zstd\",\"accept-language\":\"fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7\",\"cookie\":\"Studio-99d0ba62=5b48f54f-6700-41a2-a846-66f6b501e1b9; io=3AcJK9daGo8GruViAAAG; XSRF-TOKEN=eyJpdiI6Im5tNXVCaHB4Q3VaUDVSNFQ2TFJ0WFE9PSIsInZhbHVlIjoiRFhoVEx1ZHNWalJsS25jLzRRYStkUmN5YVowQS9NeEUxbzdFV2lsUVoyNWVROEx4V3lIVnJRQ0cyalBTN2l0YXM5ak1PMkJTaE82Z0E3cE0vdjVBZWloMnl5RzM2NnJrSDBlTkZFbUE2OVdIQjlQQysrTFJydnc3blVBL2dkWDgiLCJtYWMiOiJjYTJmOWJhOTc3OTJmOWI3M2JkZWFlZDUxMGY1YzVhYTI1MDllN2RlMGIxMTlmYTlhNDc4ZWIyYzA0MWY1NGE0IiwidGFnIjoiIn0%3D; laravel_session=eyJpdiI6InlWZDJZVWlMWVZ5WkYzTXJ3c1BJcEE9PSIsInZhbHVlIjoic0VXLzJvbFZETkRJV2dCS0JTYTJvbmk0QkpxaEhxV1hNdnBJN1BmWkNmOHU3b25OeEtzL1JiS2cya0R2TTFVdDNLaDZLUjFvRVNqRXZ4aDZ4REpDVFdYdmlLTlVnVU5lNlFzM3FzdUd1K0NFUHNwdHoyTEtwU3VkTFpRZUhHNG4iLCJtYWMiOiI0ZWNmYzczZjk0Y2VmZTI0M2Q0OThhOTMzYjljYTUwMTk0NWY1MDdjMDY1M2VlODZhNDE0NzM2ODU3ZjM0Y2VjIiwidGFnIjoiIn0%3D\"},\"payload\":[],\"session\":[],\"response_status\":404,\"response\":\"HTML Response\",\"duration\":525,\"memory\":26,\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:56:34'),(268,'9c88f3c8-c988-480d-a667-f525443692a8','9c88f3c8-d20e-4a18-b81b-046699156a0e',NULL,1,'view','{\"name\":\"errors::404\",\"path\":\"\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Exceptions\\/views\\/404.blade.php\",\"data\":[\"exception\"],\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:56:35'),(269,'9c88f3c8-cf91-42e2-af52-df5f6e8aef5e','9c88f3c8-d20e-4a18-b81b-046699156a0e',NULL,1,'view','{\"name\":\"errors::minimal\",\"path\":\"\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Exceptions\\/views\\/minimal.blade.php\",\"data\":[\"exception\"],\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:56:35'),(270,'9c88f3c8-d05c-491e-8d60-43b4fad172ba','9c88f3c8-d20e-4a18-b81b-046699156a0e',NULL,1,'request','{\"ip_address\":\"127.0.0.1\",\"uri\":\"\\/logout\",\"method\":\"GET\",\"controller_action\":null,\"middleware\":[],\"headers\":{\"host\":\"localhost:8000\",\"connection\":\"keep-alive\",\"sec-ch-ua\":\"\\\"Not\\/A)Brand\\\";v=\\\"8\\\", \\\"Chromium\\\";v=\\\"126\\\", \\\"Google Chrome\\\";v=\\\"126\\\"\",\"accept\":\"text\\/html,application\\/xhtml+xml,application\\/xml;q=0.9,image\\/avif,image\\/webp,image\\/apng,*\\/*;q=0.8,application\\/signed-exchange;v=b3;q=0.7\",\"sec-ch-ua-mobile\":\"?0\",\"upgrade-insecure-requests\":\"1\",\"user-agent\":\"Mozilla\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\/537.36 (KHTML, like Gecko) Chrome\\/126.0.0.0 Safari\\/537.36\",\"sec-ch-ua-platform\":\"\\\"Windows\\\"\",\"sec-fetch-site\":\"same-origin\",\"sec-fetch-mode\":\"navigate\",\"sec-fetch-dest\":\"empty\",\"accept-encoding\":\"gzip, deflate, br, zstd\",\"accept-language\":\"fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7\",\"cookie\":\"Studio-99d0ba62=5b48f54f-6700-41a2-a846-66f6b501e1b9; io=3AcJK9daGo8GruViAAAG; XSRF-TOKEN=eyJpdiI6Im5tNXVCaHB4Q3VaUDVSNFQ2TFJ0WFE9PSIsInZhbHVlIjoiRFhoVEx1ZHNWalJsS25jLzRRYStkUmN5YVowQS9NeEUxbzdFV2lsUVoyNWVROEx4V3lIVnJRQ0cyalBTN2l0YXM5ak1PMkJTaE82Z0E3cE0vdjVBZWloMnl5RzM2NnJrSDBlTkZFbUE2OVdIQjlQQysrTFJydnc3blVBL2dkWDgiLCJtYWMiOiJjYTJmOWJhOTc3OTJmOWI3M2JkZWFlZDUxMGY1YzVhYTI1MDllN2RlMGIxMTlmYTlhNDc4ZWIyYzA0MWY1NGE0IiwidGFnIjoiIn0%3D; laravel_session=eyJpdiI6InlWZDJZVWlMWVZ5WkYzTXJ3c1BJcEE9PSIsInZhbHVlIjoic0VXLzJvbFZETkRJV2dCS0JTYTJvbmk0QkpxaEhxV1hNdnBJN1BmWkNmOHU3b25OeEtzL1JiS2cya0R2TTFVdDNLaDZLUjFvRVNqRXZ4aDZ4REpDVFdYdmlLTlVnVU5lNlFzM3FzdUd1K0NFUHNwdHoyTEtwU3VkTFpRZUhHNG4iLCJtYWMiOiI0ZWNmYzczZjk0Y2VmZTI0M2Q0OThhOTMzYjljYTUwMTk0NWY1MDdjMDY1M2VlODZhNDE0NzM2ODU3ZjM0Y2VjIiwidGFnIjoiIn0%3D\"},\"payload\":[],\"session\":[],\"response_status\":404,\"response\":\"HTML Response\",\"duration\":547,\"memory\":26,\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:56:35'),(271,'9c88f3cc-d9e6-4a02-b423-f7882cb89b8a','9c88f3cc-e2b0-40dc-a69f-62d3fc277184',NULL,1,'view','{\"name\":\"errors::404\",\"path\":\"\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Exceptions\\/views\\/404.blade.php\",\"data\":[\"exception\"],\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:56:37'),(272,'9c88f3cc-e04c-4c3e-9d41-5dd9b734b277','9c88f3cc-e2b0-40dc-a69f-62d3fc277184',NULL,1,'view','{\"name\":\"errors::minimal\",\"path\":\"\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Exceptions\\/views\\/minimal.blade.php\",\"data\":[\"exception\"],\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:56:37'),(273,'9c88f3cc-e117-4150-b42e-608c297d24b2','9c88f3cc-e2b0-40dc-a69f-62d3fc277184',NULL,1,'request','{\"ip_address\":\"127.0.0.1\",\"uri\":\"\\/serviceworker.js\",\"method\":\"GET\",\"controller_action\":null,\"middleware\":[],\"headers\":{\"host\":\"localhost:8000\",\"connection\":\"keep-alive\",\"cache-control\":\"max-age=0\",\"accept\":\"*\\/*\",\"service-worker\":\"script\",\"sec-fetch-site\":\"same-origin\",\"sec-fetch-mode\":\"same-origin\",\"sec-fetch-dest\":\"serviceworker\",\"referer\":\"http:\\/\\/localhost:8000\\/serviceworker.js\",\"user-agent\":\"Mozilla\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\/537.36 (KHTML, like Gecko) Chrome\\/126.0.0.0 Safari\\/537.36\",\"accept-encoding\":\"gzip, deflate, br, zstd\",\"accept-language\":\"fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7\",\"cookie\":\"Studio-99d0ba62=5b48f54f-6700-41a2-a846-66f6b501e1b9; io=3AcJK9daGo8GruViAAAG; XSRF-TOKEN=eyJpdiI6Im5tNXVCaHB4Q3VaUDVSNFQ2TFJ0WFE9PSIsInZhbHVlIjoiRFhoVEx1ZHNWalJsS25jLzRRYStkUmN5YVowQS9NeEUxbzdFV2lsUVoyNWVROEx4V3lIVnJRQ0cyalBTN2l0YXM5ak1PMkJTaE82Z0E3cE0vdjVBZWloMnl5RzM2NnJrSDBlTkZFbUE2OVdIQjlQQysrTFJydnc3blVBL2dkWDgiLCJtYWMiOiJjYTJmOWJhOTc3OTJmOWI3M2JkZWFlZDUxMGY1YzVhYTI1MDllN2RlMGIxMTlmYTlhNDc4ZWIyYzA0MWY1NGE0IiwidGFnIjoiIn0%3D; laravel_session=eyJpdiI6InlWZDJZVWlMWVZ5WkYzTXJ3c1BJcEE9PSIsInZhbHVlIjoic0VXLzJvbFZETkRJV2dCS0JTYTJvbmk0QkpxaEhxV1hNdnBJN1BmWkNmOHU3b25OeEtzL1JiS2cya0R2TTFVdDNLaDZLUjFvRVNqRXZ4aDZ4REpDVFdYdmlLTlVnVU5lNlFzM3FzdUd1K0NFUHNwdHoyTEtwU3VkTFpRZUhHNG4iLCJtYWMiOiI0ZWNmYzczZjk0Y2VmZTI0M2Q0OThhOTMzYjljYTUwMTk0NWY1MDdjMDY1M2VlODZhNDE0NzM2ODU3ZjM0Y2VjIiwidGFnIjoiIn0%3D\"},\"payload\":[],\"session\":[],\"response_status\":404,\"response\":\"HTML Response\",\"duration\":476,\"memory\":24,\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:56:37'),(274,'9c88f3d7-6a35-49d5-ad4f-db83995194d3','9c88f3d7-7038-453b-be9e-cdbc7e5c1a0d',NULL,1,'request','{\"ip_address\":\"127.0.0.1\",\"uri\":\"\\/api\\/logout\",\"method\":\"GET\",\"controller_action\":null,\"middleware\":[],\"headers\":{\"host\":\"localhost:8000\",\"connection\":\"keep-alive\",\"sec-ch-ua\":\"\\\"Not\\/A)Brand\\\";v=\\\"8\\\", \\\"Chromium\\\";v=\\\"126\\\", \\\"Google Chrome\\\";v=\\\"126\\\"\",\"accept\":\"text\\/html,application\\/xhtml+xml,application\\/xml;q=0.9,image\\/avif,image\\/webp,image\\/apng,*\\/*;q=0.8,application\\/signed-exchange;v=b3;q=0.7\",\"sec-ch-ua-mobile\":\"?0\",\"upgrade-insecure-requests\":\"1\",\"user-agent\":\"Mozilla\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\/537.36 (KHTML, like Gecko) Chrome\\/126.0.0.0 Safari\\/537.36\",\"sec-ch-ua-platform\":\"\\\"Windows\\\"\",\"sec-fetch-site\":\"same-origin\",\"sec-fetch-mode\":\"navigate\",\"sec-fetch-dest\":\"empty\",\"accept-encoding\":\"gzip, deflate, br, zstd\",\"accept-language\":\"fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7\",\"cookie\":\"Studio-99d0ba62=5b48f54f-6700-41a2-a846-66f6b501e1b9; io=3AcJK9daGo8GruViAAAG; XSRF-TOKEN=eyJpdiI6Im5tNXVCaHB4Q3VaUDVSNFQ2TFJ0WFE9PSIsInZhbHVlIjoiRFhoVEx1ZHNWalJsS25jLzRRYStkUmN5YVowQS9NeEUxbzdFV2lsUVoyNWVROEx4V3lIVnJRQ0cyalBTN2l0YXM5ak1PMkJTaE82Z0E3cE0vdjVBZWloMnl5RzM2NnJrSDBlTkZFbUE2OVdIQjlQQysrTFJydnc3blVBL2dkWDgiLCJtYWMiOiJjYTJmOWJhOTc3OTJmOWI3M2JkZWFlZDUxMGY1YzVhYTI1MDllN2RlMGIxMTlmYTlhNDc4ZWIyYzA0MWY1NGE0IiwidGFnIjoiIn0%3D; laravel_session=eyJpdiI6InlWZDJZVWlMWVZ5WkYzTXJ3c1BJcEE9PSIsInZhbHVlIjoic0VXLzJvbFZETkRJV2dCS0JTYTJvbmk0QkpxaEhxV1hNdnBJN1BmWkNmOHU3b25OeEtzL1JiS2cya0R2TTFVdDNLaDZLUjFvRVNqRXZ4aDZ4REpDVFdYdmlLTlVnVU5lNlFzM3FzdUd1K0NFUHNwdHoyTEtwU3VkTFpRZUhHNG4iLCJtYWMiOiI0ZWNmYzczZjk0Y2VmZTI0M2Q0OThhOTMzYjljYTUwMTk0NWY1MDdjMDY1M2VlODZhNDE0NzM2ODU3ZjM0Y2VjIiwidGFnIjoiIn0%3D\"},\"payload\":[],\"session\":[],\"response_status\":405,\"response\":\"HTML Response\",\"duration\":1351,\"memory\":28,\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:56:44'),(275,'9c88f3db-76f9-4363-ad78-9f5f843c7907','9c88f3db-7f13-4847-bbe6-1cc76552aa9b',NULL,1,'view','{\"name\":\"errors::404\",\"path\":\"\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Exceptions\\/views\\/404.blade.php\",\"data\":[\"exception\"],\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:56:47'),(276,'9c88f3db-7cfb-4146-8d27-c4557037eb98','9c88f3db-7f13-4847-bbe6-1cc76552aa9b',NULL,1,'view','{\"name\":\"errors::minimal\",\"path\":\"\\\\vendor\\\\laravel\\\\framework\\\\src\\\\Illuminate\\\\Foundation\\\\Exceptions\\/views\\/minimal.blade.php\",\"data\":[\"exception\"],\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:56:47'),(277,'9c88f3db-7dad-44c6-b94b-00f211e316a0','9c88f3db-7f13-4847-bbe6-1cc76552aa9b',NULL,1,'request','{\"ip_address\":\"127.0.0.1\",\"uri\":\"\\/serviceworker.js\",\"method\":\"GET\",\"controller_action\":null,\"middleware\":[],\"headers\":{\"host\":\"localhost:8000\",\"connection\":\"keep-alive\",\"cache-control\":\"max-age=0\",\"accept\":\"*\\/*\",\"service-worker\":\"script\",\"sec-fetch-site\":\"same-origin\",\"sec-fetch-mode\":\"same-origin\",\"sec-fetch-dest\":\"serviceworker\",\"referer\":\"http:\\/\\/localhost:8000\\/serviceworker.js\",\"user-agent\":\"Mozilla\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\/537.36 (KHTML, like Gecko) Chrome\\/126.0.0.0 Safari\\/537.36\",\"accept-encoding\":\"gzip, deflate, br, zstd\",\"accept-language\":\"fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7\",\"cookie\":\"Studio-99d0ba62=5b48f54f-6700-41a2-a846-66f6b501e1b9; io=3AcJK9daGo8GruViAAAG; XSRF-TOKEN=eyJpdiI6Im5tNXVCaHB4Q3VaUDVSNFQ2TFJ0WFE9PSIsInZhbHVlIjoiRFhoVEx1ZHNWalJsS25jLzRRYStkUmN5YVowQS9NeEUxbzdFV2lsUVoyNWVROEx4V3lIVnJRQ0cyalBTN2l0YXM5ak1PMkJTaE82Z0E3cE0vdjVBZWloMnl5RzM2NnJrSDBlTkZFbUE2OVdIQjlQQysrTFJydnc3blVBL2dkWDgiLCJtYWMiOiJjYTJmOWJhOTc3OTJmOWI3M2JkZWFlZDUxMGY1YzVhYTI1MDllN2RlMGIxMTlmYTlhNDc4ZWIyYzA0MWY1NGE0IiwidGFnIjoiIn0%3D; laravel_session=eyJpdiI6InlWZDJZVWlMWVZ5WkYzTXJ3c1BJcEE9PSIsInZhbHVlIjoic0VXLzJvbFZETkRJV2dCS0JTYTJvbmk0QkpxaEhxV1hNdnBJN1BmWkNmOHU3b25OeEtzL1JiS2cya0R2TTFVdDNLaDZLUjFvRVNqRXZ4aDZ4REpDVFdYdmlLTlVnVU5lNlFzM3FzdUd1K0NFUHNwdHoyTEtwU3VkTFpRZUhHNG4iLCJtYWMiOiI0ZWNmYzczZjk0Y2VmZTI0M2Q0OThhOTMzYjljYTUwMTk0NWY1MDdjMDY1M2VlODZhNDE0NzM2ODU3ZjM0Y2VjIiwidGFnIjoiIn0%3D\"},\"payload\":[],\"session\":[],\"response_status\":404,\"response\":\"HTML Response\",\"duration\":553,\"memory\":24,\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:56:47'),(278,'9c88f3f3-99a1-4e45-acda-eddb4c12fa6d','9c88f3f3-9f6c-4476-9e78-26df677f380e',NULL,1,'command','{\"command\":\"list\",\"exit_code\":0,\"arguments\":{\"command\":\"list\",\"namespace\":null},\"options\":{\"raw\":false,\"format\":\"txt\",\"short\":false,\"help\":false,\"quiet\":false,\"verbose\":false,\"version\":false,\"ansi\":null,\"no-interaction\":false,\"env\":null},\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:57:03'),(279,'9c88f3f3-9a00-4772-a528-5d8ef096e960','9c88f3f3-ae60-47cd-9ef7-00e9624609f0',NULL,1,'command','{\"command\":\"list\",\"exit_code\":0,\"arguments\":{\"command\":\"list\",\"namespace\":null},\"options\":{\"raw\":false,\"format\":\"txt\",\"short\":false,\"help\":false,\"quiet\":false,\"verbose\":false,\"version\":false,\"ansi\":null,\"no-interaction\":false,\"env\":null},\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:57:03'),(280,'9c88f44f-4bc2-4146-8abc-574599eb7bbe','9c88f44f-50d6-4a90-902c-b9731ee70f9a',NULL,1,'command','{\"command\":\"list\",\"exit_code\":0,\"arguments\":{\"command\":\"list\",\"namespace\":null},\"options\":{\"raw\":false,\"format\":\"txt\",\"short\":false,\"help\":false,\"quiet\":false,\"verbose\":false,\"version\":false,\"ansi\":null,\"no-interaction\":false,\"env\":null},\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:58:03'),(281,'9c88f44f-466e-450f-b49d-ef80b95aa2c4','9c88f44f-5c22-47f6-8ca5-551ddfe79e14',NULL,1,'command','{\"command\":\"list\",\"exit_code\":0,\"arguments\":{\"command\":\"list\",\"namespace\":null},\"options\":{\"raw\":false,\"format\":\"txt\",\"short\":false,\"help\":false,\"quiet\":false,\"verbose\":false,\"version\":false,\"ansi\":null,\"no-interaction\":false,\"env\":null},\"hostname\":\"DESKTOP-0H8R58O\"}','2024-07-16 09:58:03');

--
-- Table structure for table `telescope_entries_tags`
--

CREATE TABLE `telescope_entries_tags` (
  `entry_uuid` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
  `tag` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  KEY `telescope_entries_tags_entry_uuid_tag_index` (`entry_uuid`,`tag`),
  KEY `telescope_entries_tags_tag_index` (`tag`),
  CONSTRAINT `telescope_entries_tags_entry_uuid_foreign` FOREIGN KEY (`entry_uuid`) REFERENCES `telescope_entries` (`uuid`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `telescope_entries_tags`
--

INSERT INTO `telescope_entries_tags` VALUES ('9c88ef66-f429-467a-8a9e-be367661cafd','App\\Models\\User'),('9c88ef67-40bc-4fc0-b59f-e781f7ecac71','Auth:1'),('9c88ef67-416f-4361-ad19-49a0d3976410','Auth:1'),('9c88ef67-5e3b-405e-9b9b-2ce3a1ce889d','Auth:1'),('9c88ef67-6344-46cf-b228-d3816226709b','Auth:1'),('9c88efb0-fb54-4eeb-be5a-49a6632d9dea','App\\Models\\User'),('9c88f086-51f5-46c8-8f05-029d5010bdc7','App\\Models\\User'),('9c88f086-9789-4eef-99c4-c0111cb4d047','Auth:1'),('9c88f086-9825-4f45-b777-d8bd238ec731','App\\Models\\Location'),('9c88f086-9825-4f45-b777-d8bd238ec731','Auth:1'),('9c88f086-994e-4857-8e49-e65ca5f236e1','Auth:1'),('9c88f086-a5e8-4f9d-9b9a-897780ca548f','Auth:1'),('9c88f086-a916-4b66-9077-5aada489b4bf','App\\Models\\User:1'),('9c88f086-a916-4b66-9077-5aada489b4bf','Auth:1'),('9c88f086-aa68-4438-bc1f-c388a060fbc6','Auth:1'),('9c88f086-ac38-4f15-9b73-b9085237a1df','Auth:1'),('9c88f086-c74a-4fa4-80c1-73627ad2d459','Auth:1'),('9c88f086-d470-4b9d-bc0f-f69754e4ba15','Auth:1'),('9c88f086-d841-46d8-832a-31c40616b266','Auth:1'),('9c88f086-dc44-4adc-bc50-c2f54ffdee33','Auth:1'),('9c88f0c2-65cc-4b37-8544-35e9f21d938c','App\\Models\\User'),('9c88f0c2-a516-4b74-8ec2-899b74b308b9','Auth:1'),('9c88f0c2-a56b-4382-b8a7-f106891dc586','App\\Models\\Location'),('9c88f0c2-a56b-4382-b8a7-f106891dc586','Auth:1'),('9c88f0c2-a64a-47ef-a997-ccf724f8564b','Auth:1'),('9c88f0c2-ae13-4129-b821-f7bdc388298e','Auth:1'),('9c88f0c2-aeb3-4dbc-8887-2058e764d9db','App\\Models\\User:1'),('9c88f0c2-aeb3-4dbc-8887-2058e764d9db','Auth:1'),('9c88f0c2-afdb-438f-ab7b-35d2477084cb','Auth:1'),('9c88f0c2-b11f-4940-834b-8fe2c30877bf','Auth:1'),('9c88f0c2-b7ae-48b3-b93a-3745f485140b','Auth:1'),('9c88f0c2-bbae-44f4-a129-36cb436fd962','Auth:1'),('9c88f0c2-c13f-408c-a1e8-78fd0018221f','Auth:1'),('9c88f0c5-9699-4645-93d8-aac84d0f2f81','App\\Models\\User'),('9c88f0c5-9af0-4059-bc10-2f83e549fa21','Auth:1'),('9c88f0c5-9b6e-4cb3-b252-142de9ac11f3','Auth:1'),('9c88f0c5-9e14-423c-a138-40e4b7e418de','Auth:1'),('9c88f0c5-9e76-47cf-9f7e-80830f657a8e','Auth:1'),('9c88f0c5-9ed4-4690-bf08-5f18034414b0','Auth:1'),('9c88f0c5-a0ee-4b93-b79e-8816021ed6c1','Auth:1'),('9c88f0c5-aa4c-40ef-9581-ecde6fe8256d','Auth:1'),('9c88f0c5-abf2-4d3c-bebf-8bb2e2e63180','Auth:1'),('9c88f0fe-99b2-4ed4-812d-72cfaef3c804','App\\Models\\User'),('9c88f0fe-9c50-450e-82f0-70eb4d512030','Auth:1'),('9c88f0fe-9cc9-4e1f-85e8-70bd5297a796','Auth:1'),('9c88f0fe-9d47-4716-bfd0-8fd2a3dbd961','Auth:1'),('9c88f0fe-9d7c-4aae-9224-6314480d7f8b','Auth:1'),('9c88f0fe-9db3-4f43-9f87-9d357ad200d5','Auth:1'),('9c88f0fe-cadf-4333-aefc-5a10febcff6f','Auth:1'),('9c88f0ff-0bef-4724-994a-0d06a57620ce','Auth:1'),('9c88f0ff-0c78-4f2b-b2d0-72e566506d8d','App\\Models\\User:1'),('9c88f0ff-0c78-4f2b-b2d0-72e566506d8d','Auth:1'),('9c88f0ff-1402-47c1-b9fd-b46de09351e3','Auth:1'),('9c88f0ff-15cd-4ab9-9e1b-51296b80746c','Auth:1');

--
-- Table structure for table `telescope_monitoring`
--

CREATE TABLE `telescope_monitoring` (
  `tag` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `telescope_monitoring`
--


--
-- Table structure for table `template_working_day`
--

CREATE TABLE `template_working_day` (
  `template_id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int NOT NULL,
  `updated_by` int DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`template_id`),
  KEY `template_working_day_created_by_foreign` (`created_by`),
  KEY `template_working_day_updated_by_foreign` (`updated_by`),
  CONSTRAINT `template_working_day_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `template_working_day_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `template_working_day`
--


--
-- Table structure for table `th_family`
--

CREATE TABLE `th_family` (
  `th_family_id` int NOT NULL AUTO_INCREMENT,
  `th_family_name` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `hide` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`th_family_id`),
  UNIQUE KEY `th_family_th_family_name_unique` (`th_family_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `th_family`
--


--
-- Table structure for table `treatment_plan_config`
--

CREATE TABLE `treatment_plan_config` (
  `treatment_plan_config_id` int NOT NULL AUTO_INCREMENT,
  `treatment_plan_template_id` int NOT NULL,
  `medical_service_id` int DEFAULT NULL,
  `doctor_specialty_id` int DEFAULT NULL,
  `frequency` tinyint NOT NULL,
  `unit` tinyint NOT NULL COMMENT '1=minute, 2=hour, 3=day, 4=month, 5=year',
  `type` tinyint NOT NULL COMMENT '1=consultation, 2=request',
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`treatment_plan_config_id`),
  KEY `treatment_plan_config_template_id_foreign` (`treatment_plan_template_id`),
  KEY `treatment_plan_config_medical_service_id_foreign` (`medical_service_id`),
  KEY `treatment_plan_config_doctor_specialty_id_foreign` (`doctor_specialty_id`),
  KEY `treatment_plan_config_created_by_foreign` (`created_by`),
  KEY `treatment_plan_config_updated_by_foreign` (`updated_by`),
  CONSTRAINT `treatment_plan_config_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `treatment_plan_config_doctor_specialty_id_foreign` FOREIGN KEY (`doctor_specialty_id`) REFERENCES `doctor_specialty` (`doctor_specialty_id`) ON UPDATE CASCADE,
  CONSTRAINT `treatment_plan_config_medical_service_id_foreign` FOREIGN KEY (`medical_service_id`) REFERENCES `medical_service` (`medical_service_id`) ON UPDATE CASCADE,
  CONSTRAINT `treatment_plan_config_treatment_plan_template_id_foreign` FOREIGN KEY (`treatment_plan_template_id`) REFERENCES `treatment_plan_template` (`treatment_plan_template_id`) ON UPDATE CASCADE,
  CONSTRAINT `treatment_plan_config_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Config for treatment plan templates';

--
-- Dumping data for table `treatment_plan_config`
--


--
-- Table structure for table `treatment_plan_template`
--

CREATE TABLE `treatment_plan_template` (
  `treatment_plan_template_id` int NOT NULL AUTO_INCREMENT,
  `treatment_plan_template_name` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`treatment_plan_template_id`),
  KEY `template_treatment_plan_template_created_by_foreign` (`created_by`),
  KEY `template_treatment_plan_template_updated_by_foreign` (`updated_by`),
  CONSTRAINT `treatment_plan_template_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `treatment_plan_template_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='List of templates for treatment plans';

--
-- Dumping data for table `treatment_plan_template`
--


--
-- Table structure for table `user`
--

CREATE TABLE `user` (
  `user_id` int NOT NULL AUTO_INCREMENT,
  `person_id` int DEFAULT NULL,
  `username` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
  `full_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'name show for medical user report actions',
  `password` varchar(250) COLLATE utf8mb4_unicode_ci NOT NULL,
  `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `default_language` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'fr',
  `signature` text COLLATE utf8mb4_unicode_ci,
  `is_first_login` tinyint(1) NOT NULL DEFAULT '0',
  `pw_renew_email` tinyint(1) NOT NULL DEFAULT '0',
  `pw_renew_sent_time` datetime DEFAULT NULL,
  `pwd_string_forgot` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `last_seen_at` datetime DEFAULT NULL,
  `last_seen_location_id` int DEFAULT NULL,
  `created_by` int DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `deleted_by` int DEFAULT NULL,
  PRIMARY KEY (`user_id`),
  KEY `user_person_id_foreign` (`person_id`),
  KEY `user_last_seen_location_id_foreign` (`last_seen_location_id`),
  KEY `user_created_by_foreign` (`created_by`),
  KEY `user_updated_by_foreign` (`updated_by`),
  KEY `user_deleted_by_foreign` (`deleted_by`),
  CONSTRAINT `user_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `user_deleted_by_foreign` FOREIGN KEY (`deleted_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `user_last_seen_location_id_foreign` FOREIGN KEY (`last_seen_location_id`) REFERENCES `location` (`location_id`) ON UPDATE CASCADE,
  CONSTRAINT `user_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `person` (`person_id`) ON UPDATE CASCADE,
  CONSTRAINT `user_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `user`
--

INSERT INTO `user` VALUES (1,NULL,'admin','admin','$2y$10$Ab/CBzW8uBnarB0g8TeRfetSfRmVdPisbaU7qzbmNY0IVOoA4Yf8G','fideleplk@gmail.com','fr',NULL,0,0,NULL,NULL,'2024-07-16 09:48:07',2,NULL,'2024-07-13 22:00:00','2024-07-16 07:48:47',NULL,NULL,NULL);

--
-- Table structure for table `visit`
--

CREATE TABLE `visit` (
  `visit_id` int NOT NULL AUTO_INCREMENT,
  `billing_category_id` int NOT NULL,
  `doctor_id` int NOT NULL,
  `bill_id` int DEFAULT NULL,
  `cost` decimal(5,2) NOT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`visit_id`),
  KEY `visit_billing_category_id_foreign` (`billing_category_id`),
  KEY `visit_doctor_id_foreign` (`doctor_id`),
  KEY `visit_bill_id_foreign` (`bill_id`),
  KEY `visit_created_by_foreign` (`created_by`),
  KEY `visit_updated_by_foreign` (`updated_by`),
  CONSTRAINT `visit_bill_id_foreign` FOREIGN KEY (`bill_id`) REFERENCES `bill` (`bill_id`) ON UPDATE CASCADE,
  CONSTRAINT `visit_billing_category_id_foreign` FOREIGN KEY (`billing_category_id`) REFERENCES `billing_category` (`billing_category_id`) ON UPDATE CASCADE,
  CONSTRAINT `visit_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `visit_doctor_id_foreign` FOREIGN KEY (`doctor_id`) REFERENCES `doctor` (`doctor_id`) ON UPDATE CASCADE,
  CONSTRAINT `visit_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `visit`
--


--
-- Table structure for table `visit_diagnostic`
--

CREATE TABLE `visit_diagnostic` (
  `visit_diagnostic_id` int NOT NULL AUTO_INCREMENT,
  `visit_note_id` int DEFAULT NULL,
  `diagnostic_id` int NOT NULL,
  `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0=hypothesis, 1=confirmed',
  `is_critic` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0=not critic, 1=critic',
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`visit_diagnostic_id`),
  KEY `visit_diagnostic_visit_note_id_foreign` (`visit_note_id`),
  KEY `visit_diagnostic_diagnostic_id_foreign` (`diagnostic_id`),
  KEY `visit_diagnostic_created_by_foreign` (`created_by`),
  KEY `visit_diagnostic_updated_by_foreign` (`updated_by`),
  CONSTRAINT `visit_diagnostic_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `visit_diagnostic_diagnostic_id_foreign` FOREIGN KEY (`diagnostic_id`) REFERENCES `diagnostic` (`diagnostic_code_id`) ON UPDATE CASCADE,
  CONSTRAINT `visit_diagnostic_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `visit_diagnostic_visit_note_id_foreign` FOREIGN KEY (`visit_note_id`) REFERENCES `visit_note` (`visit_note_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `visit_diagnostic`
--


--
-- Table structure for table `visit_note`
--

CREATE TABLE `visit_note` (
  `visit_note_id` int NOT NULL AUTO_INCREMENT,
  `visit_id` int NOT NULL,
  `note_category_id` int NOT NULL,
  `type` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT 'text' COMMENT 'type of visit_note: text, file or link',
  `free_text` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`visit_note_id`),
  KEY `visit_note_visit_id_foreign` (`visit_id`),
  KEY `visit_note_note_category_id_foreign` (`note_category_id`),
  KEY `visit_note_created_by_foreign` (`created_by`),
  KEY `visit_note_updated_by_foreign` (`updated_by`),
  CONSTRAINT `visit_note_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `visit_note_note_category_id_foreign` FOREIGN KEY (`note_category_id`) REFERENCES `note_category` (`note_category_id`) ON UPDATE CASCADE,
  CONSTRAINT `visit_note_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `visit_note_visit_id_foreign` FOREIGN KEY (`visit_id`) REFERENCES `visit` (`visit_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `visit_note`
--


--
-- Table structure for table `visit_scan`
--

CREATE TABLE `visit_scan` (
  `visit_scan_id` int NOT NULL AUTO_INCREMENT,
  `visit_id` int NOT NULL,
  `note_category_id` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int NOT NULL,
  `updated_by` int DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`visit_scan_id`),
  KEY `fk_visit_scans_1` (`visit_id`),
  KEY `fk_visit_scans_category` (`note_category_id`),
  KEY `fk_visit_scan_created_by` (`created_by`),
  KEY `fk_visit_scan_updated_by` (`updated_by`),
  CONSTRAINT `fk_visit_scan_created_by` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_visit_scan_updated_by` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_visit_scans_1` FOREIGN KEY (`visit_id`) REFERENCES `visit` (`visit_id`) ON UPDATE CASCADE,
  CONSTRAINT `fk_visit_scans_category` FOREIGN KEY (`note_category_id`) REFERENCES `note_category` (`note_category_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `visit_scan`
--


--
-- Table structure for table `visit_scan_image`
--

CREATE TABLE `visit_scan_image` (
  `visit_scan_image_id` int NOT NULL AUTO_INCREMENT,
  `visit_scan_id` int NOT NULL,
  `order` int NOT NULL,
  `scan_path` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`visit_scan_image_id`),
  KEY `fk_visit_scan_images_1` (`visit_scan_id`),
  CONSTRAINT `fk_visit_scan_images_1` FOREIGN KEY (`visit_scan_id`) REFERENCES `visit_scan` (`visit_scan_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `visit_scan_image`
--


--
-- Table structure for table `vital_sign_ref_value`
--

CREATE TABLE `vital_sign_ref_value` (
  `id` int NOT NULL AUTO_INCREMENT,
  `vital_sign_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `age` smallint NOT NULL COMMENT 'in days',
  `max_age` smallint NOT NULL COMMENT 'in days',
  `min_value` decimal(8,2) NOT NULL,
  `max_value` decimal(8,2) NOT NULL,
  `color` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `gender` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_by` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `vital_sign_ref_value_created_by_foreign` (`created_by`),
  CONSTRAINT `vital_sign_ref_value_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `vital_sign_ref_value`
--


--
-- Table structure for table `walking_client`
--

CREATE TABLE `walking_client` (
  `walking_client_id` int NOT NULL AUTO_INCREMENT,
  `first_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `middle_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `last_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `gender` varchar(1) COLLATE utf8mb4_unicode_ci NOT NULL,
  `dob` date NOT NULL,
  `phone_number` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
  `email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `external_doctor` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`walking_client_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `walking_client`
--


--
-- Table structure for table `whatsapp_surveys`
--

CREATE TABLE `whatsapp_surveys` (
  `id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `whatsapp_surveys`
--


--
-- Table structure for table `working_days_by_template`
--

CREATE TABLE `working_days_by_template` (
  `working_day_id` int NOT NULL AUTO_INCREMENT,
  `template_id` int NOT NULL,
  `location_id` int NOT NULL,
  `day` tinyint NOT NULL COMMENT '0 = Sunday, 1 = Monday, 2 = Tuesday, 3 = Wednesday, 4 = Thursday, 5 = Friday, 6 = Saturday',
  `start_time` time NOT NULL,
  `end_time` time NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int NOT NULL,
  `updated_by` int DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`working_day_id`),
  KEY `fk_working_days_by_template` (`template_id`),
  KEY `working_days_by_template_created_by_foreign` (`created_by`),
  KEY `working_days_by_template_updated_by_foreign` (`updated_by`),
  KEY `working_days_by_template_location_id_foreign` (`location_id`),
  CONSTRAINT `fk_working_days_by_template_template` FOREIGN KEY (`template_id`) REFERENCES `template_working_day` (`template_id`) ON UPDATE CASCADE,
  CONSTRAINT `working_days_by_template_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE,
  CONSTRAINT `working_days_by_template_location_id_foreign` FOREIGN KEY (`location_id`) REFERENCES `location` (`location_id`) ON UPDATE CASCADE,
  CONSTRAINT `working_days_by_template_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `working_days_by_template`
--


--
-- Table structure for table `ws_patient_responses`
--

CREATE TABLE `ws_patient_responses` (
  `id` int NOT NULL AUTO_INCREMENT,
  `ws_patient_id` int NOT NULL,
  `whatsappMessageId` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `templateName` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `text` text COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `ws_patient_responses_ws_patient_id_foreign` (`ws_patient_id`),
  CONSTRAINT `ws_patient_responses_ws_patient_id_foreign` FOREIGN KEY (`ws_patient_id`) REFERENCES `ws_patients` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ws_patient_responses`
--


--
-- Table structure for table `ws_patients`
--

CREATE TABLE `ws_patients` (
  `id` int NOT NULL AUTO_INCREMENT,
  `whatsapp_survey_id` int NOT NULL,
  `patient_id` int NOT NULL,
  `dossier_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `patient_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `phone_number` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `ws_patients_whatsapp_survey_id_foreign` (`whatsapp_survey_id`),
  KEY `ws_patients_patient_id_foreign` (`patient_id`),
  CONSTRAINT `ws_patients_patient_id_foreign` FOREIGN KEY (`patient_id`) REFERENCES `patient` (`patient_id`) ON DELETE RESTRICT ON UPDATE CASCADE,
  CONSTRAINT `ws_patients_whatsapp_survey_id_foreign` FOREIGN KEY (`whatsapp_survey_id`) REFERENCES `whatsapp_surveys` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ws_patients`
--


--
-- Dumping routines for database 'emedsol'
--
/*!50003 DROP FUNCTION IF EXISTS `BIN_TO_UUID` */;
DELIMITER ;;
CREATE DEFINER=`root`@`%` FUNCTION `BIN_TO_UUID`(b BINARY(16), f BOOLEAN) RETURNS char(36) CHARSET utf8mb4 COLLATE utf8mb4_general_ci
    DETERMINISTIC
BEGIN
   DECLARE hexStr CHAR(32);
   SET hexStr = HEX(b);
   RETURN LOWER(CONCAT(
        IF(f,SUBSTR(hexStr, 9, 8),SUBSTR(hexStr, 1, 8)), '-',
        IF(f,SUBSTR(hexStr, 5, 4),SUBSTR(hexStr, 9, 4)), '-',
        IF(f,SUBSTR(hexStr, 1, 4),SUBSTR(hexStr, 13, 4)), '-',
        SUBSTR(hexStr, 17, 4), '-',
        SUBSTR(hexStr, 21)
    ));
END ;;
DELIMITER ;


