-- MySQL dump 10.13  Distrib 8.0.36, for Linux (x86_64)
--
-- Host: localhost    Database: QMS
-- ------------------------------------------------------
-- Server version	8.0.36-0ubuntu0.22.04.1

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `doctor_master`
--

DROP TABLE IF EXISTS `doctor_master`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `doctor_master` (
  `id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(50) NOT NULL,
  `status` tinyint NOT NULL,
  `created_on` datetime NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `doctor_master`
--

LOCK TABLES `doctor_master` WRITE;
/*!40000 ALTER TABLE `doctor_master` DISABLE KEYS */;
INSERT INTO `doctor_master` VALUES (1,'Dr. Shalaka',1,'2024-03-04 23:15:10'),(2,'Dr. Sanjay Mankar',1,'2024-03-04 23:15:10');
/*!40000 ALTER TABLE `doctor_master` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `patient_master`
--

DROP TABLE IF EXISTS `patient_master`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `patient_master` (
  `id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(50) NOT NULL,
  `qr_code` varchar(30) DEFAULT NULL,
  `mobile` varchar(15) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `birthdate` date DEFAULT NULL,
  `age` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `height` int DEFAULT NULL,
  `head` int DEFAULT '0',
  `weight` int DEFAULT NULL,
  `d_id` int DEFAULT '1',
  `t_id` int NOT NULL DEFAULT '1',
  `status` tinyint NOT NULL,
  `updated_on` datetime DEFAULT NULL,
  `created_on` datetime NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mobile` (`mobile`),
  UNIQUE KEY `qr_code` (`qr_code`)
) ENGINE=InnoDB AUTO_INCREMENT=129 DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `patient_master`
--

LOCK TABLES `patient_master` WRITE;
/*!40000 ALTER TABLE `patient_master` DISABLE KEYS */;
INSERT INTO `patient_master` VALUES (1,'Aayaan Dhekale','1','1234567890','1989-11-10','11',1,2,3,1,2,1,'2024-04-07 23:00:13','2024-03-09 23:57:05'),(2,'Rudra Dhekale','2','1111111113','1989-11-12','11',4,5,6,1,2,1,'2024-04-12 22:57:29','2024-03-09 23:57:05'),(3,'Kajal Dhekale',NULL,'2222222221','1989-11-13','11',7,8,9,1,2,1,'2024-04-07 23:01:11','2024-03-09 23:57:05'),(7,'Ajay Bhalke',NULL,'7709979469','1989-11-11','11',2,11,10,1,2,1,'2024-04-07 14:19:30','2024-03-15 21:45:16'),(71,'sheetal',NULL,'474747574848','2024-03-23','11',8,0,6,1,2,1,'2024-04-07 14:19:57','2024-03-23 00:45:54'),(72,'sanjay',NULL,'346798654457','2024-03-23','11',6,0,8,1,2,1,'2024-04-07 14:20:09','2024-03-23 00:55:11'),(73,'sajat',NULL,'7855455','2024-03-23','11',8,0,9,1,2,1,'2024-03-23 00:58:11','2024-03-23 00:58:11'),(78,'anupama',NULL,'45858888855','2024-03-23','11',9,0,8,1,2,1,'2024-04-07 14:19:45','2024-03-23 01:05:41');
/*!40000 ALTER TABLE `patient_master` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `queue`
--

DROP TABLE IF EXISTS `queue`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `queue` (
  `id` int NOT NULL AUTO_INCREMENT,
  `p_id` int NOT NULL,
  `d_id` int NOT NULL,
  `t_id` int NOT NULL,
  `q_date` date NOT NULL,
  `status` tinyint DEFAULT NULL COMMENT '0 - Reqested | 1 - Reported | 2 - OPD | 3 - Completed',
  `in_time` datetime DEFAULT NULL,
  `out_time` datetime DEFAULT NULL,
  `updated_on` datetime DEFAULT NULL,
  `created_on` datetime NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `p_id` (`p_id`,`d_id`,`t_id`,`q_date`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `queue`
--

LOCK TABLES `queue` WRITE;
/*!40000 ALTER TABLE `queue` DISABLE KEYS */;
INSERT INTO `queue` VALUES (1,1,1,2,'2024-04-07',1,'2024-04-07 16:25:36','2024-04-07 16:25:52','2024-04-07 23:00:13','2024-04-07 14:19:09'),(2,78,1,2,'2024-04-07',3,'2024-04-07 16:25:52','2024-04-07 16:26:10','2024-04-07 14:19:46','2024-04-07 14:19:22'),(3,7,1,2,'2024-04-07',3,'2024-04-07 16:26:10','2024-04-07 16:26:23','2024-04-07 14:19:30','2024-04-07 14:19:30'),(5,71,1,2,'2024-04-07',3,'2024-04-07 16:26:23','2024-04-07 16:26:32','2024-04-07 14:19:58','2024-04-07 14:19:58'),(6,72,1,2,'2024-04-07',3,'2024-04-07 16:26:32','2024-04-07 16:26:39','2024-04-07 14:20:10','2024-04-07 14:20:10'),(11,2,1,2,'2024-04-07',1,NULL,NULL,'2024-04-07 23:00:59','2024-04-07 23:00:59'),(12,3,1,2,'2024-04-07',1,NULL,NULL,'2024-04-07 23:01:12','2024-04-07 23:01:12'),(13,2,1,2,'2024-04-12',1,NULL,NULL,'2024-04-12 22:57:30','2024-04-12 22:57:30');
/*!40000 ALTER TABLE `queue` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `timeslot_master`
--

DROP TABLE IF EXISTS `timeslot_master`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `timeslot_master` (
  `id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(100) NOT NULL,
  `slot_time_start` time NOT NULL,
  `slot_time_end` time NOT NULL,
  `status` tinyint NOT NULL,
  `creared_on` datetime NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `timeslot_master`
--

LOCK TABLES `timeslot_master` WRITE;
/*!40000 ALTER TABLE `timeslot_master` DISABLE KEYS */;
INSERT INTO `timeslot_master` VALUES (1,'Morning','10:00:00','14:00:00',1,'2024-03-09 16:52:59'),(2,'Evening','18:00:00','23:59:41',1,'2024-03-09 16:52:59');
/*!40000 ALTER TABLE `timeslot_master` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2024-04-13 14:01:02
