-- MySQL dump 10.13  Distrib 8.0.33, for Win64 (x86_64)
--
-- Host: localhost    Database: medvista
-- ------------------------------------------------------
-- Server version	8.0.33

/*!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 utf8 */;
/*!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 `visits`
--

DROP TABLE IF EXISTS `visits`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `visits` (
  `id` int NOT NULL AUTO_INCREMENT,
  `fk_patients` int DEFAULT NULL,
  `visitdate` date NOT NULL,
  `reasonforvisit` text COLLATE utf8mb4_general_ci NOT NULL,
  `symptoms` text COLLATE utf8mb4_general_ci NOT NULL,
  `bloodpressure` varchar(20) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `height` float DEFAULT NULL,
  `weight` float DEFAULT NULL,
  `BMI` float DEFAULT NULL,
  `glucoselevel` float DEFAULT NULL,
  `pulseoximetry` float DEFAULT NULL,
  `recentillnessesorinjuries` text COLLATE utf8mb4_general_ci,
  `additionalnotesorcomments` text COLLATE utf8mb4_general_ci,
  `fk_doctor` int DEFAULT NULL,
  `possible_cause` tinyint DEFAULT NULL,
  `diagnostics` tinyint DEFAULT NULL,
  `medications` tinyint DEFAULT NULL,
  `diet` tinyint DEFAULT NULL,
  `food_type` enum('veg','non-veg','mix') COLLATE utf8mb4_general_ci DEFAULT 'veg',
  PRIMARY KEY (`id`),
  KEY `fk_patients` (`fk_patients`),
  CONSTRAINT `visits_ibfk_1` FOREIGN KEY (`fk_patients`) REFERENCES `patients` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `visits`
--

LOCK TABLES `visits` WRITE;
/*!40000 ALTER TABLE `visits` DISABLE KEYS */;
INSERT INTO `visits` VALUES (5,5,'2024-08-20','Consultation for flu symptoms','Cough, fever, sore throat','118/78',175,71,23.2,NULL,NULL,NULL,NULL,2,1,1,1,1,'veg'),(6,5,'2024-08-15','Follow-up on hypertension','Headache, dizziness','130/85',175,72,23.5,NULL,NULL,NULL,NULL,2,1,1,0,0,'veg'),(9,5,'2024-07-30','Consultation for back pain','Lower back pain','122/79',175,73,23.8,NULL,NULL,NULL,NULL,2,NULL,NULL,NULL,NULL,'veg'),(10,5,'2024-07-25','Check-up after surgery','Pain at surgical site','118/76',175,71,23.2,NULL,NULL,NULL,NULL,2,NULL,NULL,NULL,NULL,'veg'),(11,5,'2024-07-20','Consultation for fatigue','Persistent tiredness','117/75',175,72,23.5,NULL,NULL,NULL,NULL,2,NULL,NULL,NULL,NULL,'veg'),(12,5,'2024-07-15','Visit for skin rash','Itchy red rash on arms','120/80',175,70,22.9,NULL,NULL,NULL,NULL,2,NULL,NULL,NULL,NULL,'veg'),(13,5,'2024-07-10','Follow-up on diabetes management','Increased thirst, frequent urination','130/85',175,74,24.1,NULL,NULL,NULL,NULL,2,NULL,NULL,NULL,NULL,'veg');
/*!40000 ALTER TABLE `visits` 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-09-13 20:12:11
