--
-- Host: localhost    Database: topappkw_pharmacy
-- ------------------------------------------------------


--
-- Current Database: `topappkw_pharmacy`
--


--
-- Table structure for table `contact_forms`
--

CREATE TABLE `contact_forms` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `message` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `contact_forms`
--

INSERT INTO `contact_forms` (`id`, `name`, `email`, `message`, `created_at`, `updated_at`) VALUES (3,'samer','sameraboda@gmail.com','this new message','2023-04-03 23:10:28','2023-04-03 23:10:28'),(4,'samer','samds@gmail.com','test message','2023-04-14 08:52:27','2023-04-14 08:52:27');

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

CREATE TABLE `failed_jobs` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `uuid` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `connection` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `queue` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `payload` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `exception` longtext CHARACTER SET utf8mb4 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 `general_settings`
--

CREATE TABLE `general_settings` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `phrase` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `general_settings`
--

INSERT INTO `general_settings` (`id`, `phone`, `phrase`, `created_at`, `updated_at`) VALUES (1,'00965 6666666','Health is a crown on the heads of the healthy that only the sick can see','2023-03-26 05:30:42','2023-03-26 05:30:42');

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

CREATE TABLE `medicines` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `quantity` int NOT NULL,
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `expiry_date` date NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `medicines`
--

INSERT INTO `medicines` (`id`, `quantity`, `name`, `expiry_date`, `created_at`, `updated_at`) VALUES (1,10,'pandol','2024-01-30','2023-04-03 23:12:24','2023-05-27 02:41:08'),(2,10,'pandol2','2023-11-08','2023-04-03 23:12:42','2023-05-27 02:41:08'),(3,10,'Alph','2023-12-27','2023-05-05 11:20:54','2023-05-27 02:41:08'),(4,10,'Adol','2023-09-24','2023-05-05 11:21:34','2023-05-27 02:41:08');

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

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

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

INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (1,'2014_10_12_000000_create_users_table',1),(2,'2014_10_12_100000_create_password_reset_tokens_table',1),(3,'2019_08_19_000000_create_failed_jobs_table',1),(4,'2019_12_14_000001_create_personal_access_tokens_table',1),(5,'2023_03_23_140908_create_general_settings_table',1),(6,'2023_03_23_155254_create_medicines_table',1),(7,'2023_03_23_164330_create_patients_table',1),(8,'2023_03_24_005931_create_patient_medicines_table',1),(9,'2023_03_25_004301_create_contact_forms_table',1);

--
-- Table structure for table `patient_medicines`
--

CREATE TABLE `patient_medicines` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `medicine_id` int NOT NULL,
  `dose` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `times` int NOT NULL,
  `patient_id` int NOT NULL,
  `batch` int NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `patient_medicines`
--

INSERT INTO `patient_medicines` (`id`, `medicine_id`, `dose`, `times`, `patient_id`, `batch`, `created_at`, `updated_at`) VALUES (1,1,'2.5 ml',3,1,1,'2023-04-03 23:14:01','2023-04-03 23:14:01'),(2,2,'10 ml',4,1,1,'2023-04-03 23:14:01','2023-04-03 23:14:01'),(3,1,'2.5 ml',2,2,1,'2023-04-14 08:59:30','2023-04-14 08:59:30'),(4,2,'2.5 ml',2,2,1,'2023-04-14 08:59:30','2023-04-14 08:59:30'),(5,3,'2.5 ml',4,2,1,'2023-04-14 08:59:30','2023-04-14 08:59:30'),(6,1,'2.5 ml',1,1,2,'2023-04-27 12:01:03','2023-04-27 12:01:03'),(7,2,'10 ml',2,1,3,'2023-05-05 11:22:27','2023-05-05 11:22:27'),(8,4,'2.5 ml',4,1,3,'2023-05-05 11:22:27','2023-05-05 11:22:27'),(9,2,'2.5 ml',1,1,3,'2023-05-05 11:22:27','2023-05-05 11:22:27'),(10,2,'2.5 ml',1,1,4,'2023-05-05 11:24:53','2023-05-05 11:24:53'),(11,4,'2.5 ml',1,1,4,'2023-05-05 11:24:53','2023-05-05 11:24:53'),(12,3,'10 ml',1,1,5,'2023-05-05 11:25:27','2023-05-05 11:25:27'),(13,4,'2.5 ml',3,1,5,'2023-05-05 11:25:27','2023-05-05 11:25:27'),(14,1,'2.5 ml',1,1,6,'2023-05-05 11:26:17','2023-05-05 11:26:17'),(15,2,'5 ml',2,1,6,'2023-05-05 11:26:17','2023-05-05 11:26:17'),(16,3,'15 ml',3,1,6,'2023-05-05 11:26:17','2023-05-05 11:26:17'),(17,1,'2.5 ml',2,1,7,'2023-05-18 14:17:05','2023-05-18 14:17:05'),(18,2,'2.5 ml',1,1,7,'2023-05-18 14:17:05','2023-05-18 14:17:05'),(19,4,'2.5 ml',1,1,7,'2023-05-18 14:17:05','2023-05-18 14:17:05'),(20,1,'2.5 ml',2,1,8,'2023-05-18 14:19:39','2023-05-18 14:19:39'),(21,3,'2.5 ml',1,1,8,'2023-05-18 14:19:39','2023-05-18 14:19:39'),(22,2,'2.5 ml',1,1,9,'2023-05-18 14:22:38','2023-05-18 14:22:38'),(23,4,'2.5 ml',1,1,9,'2023-05-18 14:22:38','2023-05-18 14:22:38'),(24,1,'2.5 ml',1,1,10,'2023-05-18 14:24:29','2023-05-18 14:24:29'),(25,4,'2.5 ml',1,1,10,'2023-05-18 14:24:29','2023-05-18 14:24:29'),(26,1,'2.5 ml',1,1,11,'2023-05-19 08:14:32','2023-05-19 08:14:32'),(27,1,'5 ml',1,1,12,'2023-05-26 04:58:30','2023-05-26 04:58:30');

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

CREATE TABLE `patients` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `civil_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `age` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `temp` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `blood` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sugar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `patients`
--

INSERT INTO `patients` (`id`, `name`, `civil_id`, `phone`, `age`, `temp`, `blood`, `sugar`, `created_at`, `updated_at`) VALUES (1,'ahmed','123123','90907789','22','37','21','7','2023-04-03 23:13:09','2023-04-27 11:37:56');

--
-- Dumping events for database 'topappkw_pharmacy'
--

--
-- Dumping routines for database 'topappkw_pharmacy'
--


