diff --git a/hmmsdb.sql b/hmmsdb.sql new file mode 100644 index 0000000..4eedf1c --- /dev/null +++ b/hmmsdb.sql @@ -0,0 +1,279 @@ +-- phpMyAdmin SQL Dump +-- version 4.9.7deb1 +-- https://www.phpmyadmin.net/ +-- +-- Host: localhost:3306 +-- Generation Time: Apr 30, 2021 at 04:57 PM +-- Server version: 10.3.25-MariaDB-0ubuntu1 +-- PHP Version: 7.3.27-9+ubuntu20.10.1+deb.sury.org+1 + +SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; +SET AUTOCOMMIT = 0; +START TRANSACTION; +SET time_zone = "+00:00"; + + +/*!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 */; +/*!40101 SET NAMES utf8mb4 */; + +-- +-- Database: `hmmsdb` +-- + +-- -------------------------------------------------------- + +-- +-- Table structure for table `tbladmin` +-- + +CREATE TABLE `tbladmin` ( + `ID` int(10) NOT NULL, + `AdminName` varchar(200) DEFAULT NULL, + `UserName` varchar(200) DEFAULT NULL, + `MobileNumber` bigint(10) DEFAULT NULL, + `Email` varchar(200) DEFAULT NULL, + `Password` varchar(200) DEFAULT NULL, + `AdminRegdate` timestamp NULL DEFAULT current_timestamp() +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; + +-- +-- Dumping data for table `tbladmin` +-- + +INSERT INTO `tbladmin` (`ID`, `AdminName`, `UserName`, `MobileNumber`, `Email`, `Password`, `AdminRegdate`) VALUES +(1, 'Doctor1', 'admin', 7382129279, 'doctor1@gmail.com', 'f925916e2754e5e03f75dd58a5733251', '2020-05-25 12:16:24'); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `tblbp` +-- + +CREATE TABLE `tblbp` ( + `ID` int(10) NOT NULL, + `MemberID` int(5) DEFAULT NULL, + `SYS` int(5) DEFAULT NULL, + `DIA` int(10) DEFAULT NULL, + `Pulses` int(10) DEFAULT NULL, + `EnterDate` timestamp NULL DEFAULT current_timestamp() +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; + +-- +-- Dumping data for table `tblbp` +-- + +INSERT INTO `tblbp` (`ID`, `MemberID`, `SYS`, `DIA`, `Pulses`, `EnterDate`) VALUES +(1, 1, 120, 78, 84, '2020-05-26 16:15:33'), +(6, 1, 44, 54, 77, '2021-04-30 15:53:27'); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `tblmember` +-- + +CREATE TABLE `tblmember` ( + `ID` int(10) NOT NULL, + `UserID` int(5) NOT NULL, + `FullName` varchar(200) DEFAULT NULL, + `Gender` varchar(50) DEFAULT NULL, + `Age` int(5) DEFAULT NULL, + `Weight` varchar(50) DEFAULT NULL, + `Relation` varchar(45) DEFAULT NULL, + `CreationDate` timestamp NULL DEFAULT current_timestamp() +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; + +-- +-- Dumping data for table `tblmember` +-- + +INSERT INTO `tblmember` (`ID`, `UserID`, `FullName`, `Gender`, `Age`, `Weight`, `Relation`, `CreationDate`) VALUES +(1, 1, 'Manoj Mike', 'Male', 21, '60', 'Other', '2021-04-26 05:49:02'); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `tblrange` +-- + +CREATE TABLE `tblrange` ( + `ID` int(10) NOT NULL, + `TestName` varchar(200) DEFAULT NULL, + `Description` mediumtext DEFAULT NULL, + `CreationDate` timestamp NULL DEFAULT current_timestamp() +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; + +-- +-- Dumping data for table `tblrange` +-- + +INSERT INTO `tblrange` (`ID`, `TestName`, `Description`, `CreationDate`) VALUES +(1, 'Blood Pressure', 'SYS/DIA

', '2020-05-28 05:33:49'), +(2, 'Blood Sugar', 'Fasting Blood Sugar 
 Post Meal Blood Sugar 
', '2020-05-28 05:47:23'), +(3, 'Body Temparature', 'Body Temperature 
 98.6°F-97 °F - Normal Temp 
 > 98.6°F -High Temp
', '2020-05-28 05:50:43'); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `tblsugar` +-- + +CREATE TABLE `tblsugar` ( + `ID` int(10) NOT NULL, + `MemberID` int(5) DEFAULT NULL, + `Typeoftest` varchar(50) DEFAULT NULL, + `BloodSugar` int(10) DEFAULT NULL, + `EnterDate` timestamp NULL DEFAULT current_timestamp() +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; + +-- +-- Dumping data for table `tblsugar` +-- + +INSERT INTO `tblsugar` (`ID`, `MemberID`, `Typeoftest`, `BloodSugar`, `EnterDate`) VALUES +(1, 1, 'FBS', 88, '2020-05-27 04:25:12'); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `tbltemp` +-- + +CREATE TABLE `tbltemp` ( + `ID` int(10) NOT NULL, + `MemberID` int(5) DEFAULT NULL, + `BodyTemparture` int(50) DEFAULT NULL, + `EnterDate` timestamp NULL DEFAULT current_timestamp() +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; + +-- +-- Dumping data for table `tbltemp` +-- + +INSERT INTO `tbltemp` (`ID`, `MemberID`, `BodyTemparture`, `EnterDate`) VALUES +(1, 1, 99, '2020-05-27 05:12:19'); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `tbluser` +-- + +CREATE TABLE `tbluser` ( + `ID` int(10) NOT NULL, + `FullName` varchar(200) DEFAULT NULL, + `MobileNumber` bigint(10) DEFAULT NULL, + `Email` varchar(200) DEFAULT NULL, + `Password` varchar(200) DEFAULT NULL, + `RegDate` timestamp NULL DEFAULT current_timestamp() +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; + +-- +-- Dumping data for table `tbluser` +-- + +INSERT INTO `tbluser` (`ID`, `FullName`, `MobileNumber`, `Email`, `Password`, `RegDate`) VALUES +(1, 'Manoj', 225554565, 'manojmanike@gmail.com', '9023c79c5febdea65f227944c9b84b1a', '2021-04-26 03:28:17'); + +-- +-- Indexes for dumped tables +-- + +-- +-- Indexes for table `tbladmin` +-- +ALTER TABLE `tbladmin` + ADD PRIMARY KEY (`ID`); + +-- +-- Indexes for table `tblbp` +-- +ALTER TABLE `tblbp` + ADD PRIMARY KEY (`ID`), + ADD KEY `MemberID` (`MemberID`); + +-- +-- Indexes for table `tblmember` +-- +ALTER TABLE `tblmember` + ADD PRIMARY KEY (`ID`), + ADD KEY `UserID` (`UserID`); + +-- +-- Indexes for table `tblrange` +-- +ALTER TABLE `tblrange` + ADD PRIMARY KEY (`ID`); + +-- +-- Indexes for table `tblsugar` +-- +ALTER TABLE `tblsugar` + ADD PRIMARY KEY (`ID`), + ADD KEY `MemberID` (`MemberID`); + +-- +-- Indexes for table `tbltemp` +-- +ALTER TABLE `tbltemp` + ADD PRIMARY KEY (`ID`), + ADD KEY `MemberID` (`MemberID`); + +-- +-- Indexes for table `tbluser` +-- +ALTER TABLE `tbluser` + ADD PRIMARY KEY (`ID`); + +-- +-- AUTO_INCREMENT for dumped tables +-- + +-- +-- AUTO_INCREMENT for table `tbladmin` +-- +ALTER TABLE `tbladmin` + MODIFY `ID` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; + +-- +-- AUTO_INCREMENT for table `tblbp` +-- +ALTER TABLE `tblbp` + MODIFY `ID` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; + +-- +-- AUTO_INCREMENT for table `tblmember` +-- +ALTER TABLE `tblmember` + MODIFY `ID` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17; + +-- +-- AUTO_INCREMENT for table `tblrange` +-- +ALTER TABLE `tblrange` + MODIFY `ID` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; + +-- +-- AUTO_INCREMENT for table `tblsugar` +-- +ALTER TABLE `tblsugar` + MODIFY `ID` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; + +-- +-- AUTO_INCREMENT for table `tbltemp` +-- +ALTER TABLE `tbltemp` + MODIFY `ID` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; + +-- +-- AUTO_INCREMENT for table `tbluser` +-- +ALTER TABLE `tbluser` + MODIFY `ID` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; +COMMIT; + +/*!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 */;