-- phpMyAdmin SQL Dump
-- version 5.0.3
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Oct 12, 2023 at 04:36 PM
-- Server version: 10.5.13-MariaDB
-- PHP Version: 7.4.26

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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: `suretele_rms`
--

-- --------------------------------------------------------

--
-- Table structure for table `admin`
--

CREATE TABLE `admin` (
  `uname` varchar(25) NOT NULL,
  `pass` varchar(16) NOT NULL,
  `email` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `admin`
--

INSERT INTO `admin` (`uname`, `pass`, `email`) VALUES
('sure', '1000', 'surescan@gmail.com');

-- --------------------------------------------------------

--
-- Table structure for table `centres`
--

CREATE TABLE `centres` (
  `cname` varchar(60) NOT NULL,
  `pname` varchar(25) NOT NULL,
  `mob` bigint(12) NOT NULL,
  `adr` varchar(70) NOT NULL,
  `email` varchar(50) NOT NULL,
  `pass` varchar(16) NOT NULL,
  `img` longblob NOT NULL,
  `dt` varchar(15) NOT NULL,
  `sts` enum('Activate','Deactivate') NOT NULL,
  `cid` int(5) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `centres`
--

INSERT INTO `centres` (`cname`, `pname`, `mob`, `adr`, `email`, `pass`, `img`, `dt`, `sts`, `cid`) VALUES
('Krishna Hospital Kharora', 'Rahul Sahu', 7800000001, 'H.No.365, Sector-1, Kharora, Raipur1', 'rahul@gmail.com', '1000', 0x70726f66696c652e6a7067, '25-10-2021', 'Activate', 10006),
('Balaji Medical Institute of Science', 'Dinesh Gupta', 7800000002, 'Plot. No.265, Sector-2, Mova , Raipur', 'balaji@gmail.com', '1000', 0x646f776e6c6f61642e6a7067, '25-10-2021', 'Activate', 10007),
('Sankalp Hospital Sarona', 'Dinesh Gupta', 7898484348, 'Sector-2, Shankar Nagar', 'dinesh@gmail.com', '1000', 0x70726f66696c652e6a7067, '30-10-2021', 'Activate', 10008);

-- --------------------------------------------------------

--
-- Table structure for table `doctors`
--

CREATE TABLE `doctors` (
  `dname` varchar(40) NOT NULL,
  `mob` bigint(12) NOT NULL,
  `adr` varchar(50) NOT NULL,
  `email` varchar(50) NOT NULL,
  `pass` varchar(20) NOT NULL,
  `img` blob NOT NULL,
  `dt` varchar(15) NOT NULL,
  `sts` enum('Activate','Deactivate') NOT NULL,
  `did` int(5) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `doctors`
--

INSERT INTO `doctors` (`dname`, `mob`, `adr`, `email`, `pass`, `img`, `dt`, `sts`, `did`) VALUES
('Satish Mishra', 7898484222, 'LIG-90, SECTOR-2, SHANKAR NAGAR, RAIPUR', 'satish@gmail.com', '2222', 0x7369676e6e312e6a7067, '25-09-2021', 'Activate', 1000);

-- --------------------------------------------------------

--
-- Table structure for table `notice`
--

CREATE TABLE `notice` (
  `ntc` longtext NOT NULL,
  `dt` varchar(15) NOT NULL,
  `cid` varchar(5) NOT NULL,
  `nid` bigint(8) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `notice`
--

INSERT INTO `notice` (`ntc`, `dt`, `cid`, `nid`) VALUES
('tomorrow office closed', '01-12-2021', 'All', 1);

-- --------------------------------------------------------

--
-- Table structure for table `qns`
--

CREATE TABLE `qns` (
  `qry` longtext NOT NULL,
  `dt` varchar(15) NOT NULL,
  `pby` varchar(12) NOT NULL,
  `cid` varchar(7) NOT NULL,
  `sts` enum('No','Yes','rep') NOT NULL,
  `nid` bigint(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `qns`
--

INSERT INTO `qns` (`qry`, `dt`, `pby`, `cid`, `sts`, `nid`) VALUES
('Hell sir, Please check report of Mr. Amit kumar', '27-10-2021', 'Me', '10007', 'Yes', 1),
('Ok, I will check it as possible as earliest.', '30-10-2021', 'Admin', '10007', 'rep', 2),
('welcome sir', '01-12-2021', 'Me', '10007', 'Yes', 3),
('thank you', '01-12-2021', 'Admin', '10007', 'rep', 4),
('trtrt', '18-12-2021', 'Me', '10007', 'Yes', 5),
('ghghgh', '18-12-2021', 'Admin', '10007', 'rep', 6),
('jikkjk', '18-12-2021', 'Me', '10007', 'Yes', 7),
('fggfgf', '18-12-2021', 'Admin', '10007', 'rep', 8);

-- --------------------------------------------------------

--
-- Table structure for table `reports`
--

CREATE TABLE `reports` (
  `pid` bigint(8) NOT NULL,
  `pname` varchar(25) NOT NULL,
  `age` varchar(8) NOT NULL,
  `sex` varchar(6) NOT NULL,
  `prb` varchar(100) NOT NULL,
  `rname` varchar(35) NOT NULL,
  `cdt` varchar(15) NOT NULL,
  `rdt` varchar(15) NOT NULL,
  `cid` bigint(8) NOT NULL,
  `did` varchar(8) NOT NULL,
  `rem` longtext NOT NULL,
  `rdes` longtext NOT NULL,
  `rcheck` varchar(10) NOT NULL,
  `urgent` varchar(10) NOT NULL,
  `rsts` enum('Pending','Reported','Done') NOT NULL,
  `repid` varchar(40) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `reports`
--

INSERT INTO `reports` (`pid`, `pname`, `age`, `sex`, `prb`, `rname`, `cdt`, `rdt`, `cid`, `did`, `rem`, `rdes`, `rcheck`, `urgent`, `rsts`, `repid`) VALUES
(26, 'Vikash Yadav', '25', 'Male', 'Pain in stomack', '8', '09-12-2021', '', 10007, '1000', '', '<p><strong>Chest X-ray Report &acirc;&euro;&ldquo; No active disease&nbsp;</strong><br />\r\nNo evidence of active tuberculosis .The individual listed above has no symptoms<br />\r\nor radiographic findings compatible with active tuberculosis.The individual is free<br />\r\nof tuberculosis in a communicable form. 1</p>\r\n', '', 'Urgent', 'Done', '100072021_12_09_14_27_39'),
(27, 'Dinesh Gupta', '22', 'Male', 'Pain in stomach', '7', '09-12-2021', '', 10007, '1000', '', '<p><strong>Chest X-ray Report &acirc;&euro;&ldquo; No active disease&nbsp;</strong><br />\r\nNo evidence of active tuberculosis .The individual listed above has no symptoms<br />\r\nor radiographic findings compatible with active tuberculosis.The individual is free<br />\r\nof tuberculosis in a communicable form. 1</p>\r\n', '', '', 'Done', '100072021_12_09_14_28_25'),
(28, 'Priya Singh', '30', 'Female', 'Pain in Chest', '8', '09-12-2021', '', 10007, '1000', '', '<p><strong>Chest X-ray Report &acirc;&euro;&ldquo; No active disease&nbsp;</strong><br />\r\nNo evidence of active tuberculosis .The individual listed above has no symptoms<br />\r\nor radiographic findings compatible with active tuberculosis.The individual is free<br />\r\nof tuberculosis in a communicable form. 1</p>\r\n', '', '', 'Done', '100072021_12_09_14_29_34'),
(29, 'Himanshu Pandey', '33', 'Male', 'Pain in stomach', '8', '09-12-2021', '', 10007, '1000', '', '', '', '', 'Pending', '100072021_12_09_14_40_45'),
(30, 'Yatnesh Kumar', '25', 'Male', 'Pain in stomach', '8', '09-12-2021', '18-12-2021', 10007, '1000', 'iuyuyuy', '<p><strong>Chest X-ray Report &ndash; No active disease&nbsp;</strong><br />\r\n<br />\r\nNo evidence of active tuberculosis .The individual listed above has no symptoms<br />\r\n<br />\r\nor radiographic findings compatible with active tuberculosis.The individual is free<br />\r\n<br />\r\nof tuberculosis in a communicable form.2</p>\r\n\r\n<p>&nbsp;</p>\r\n', '', '', 'Done', '100072021_12_09_14_44_25'),
(35, 'Manoj Kumar', '25', 'Male', 'Pain in chest', '6', '19-12-2021', '19-12-2021', 10007, '1000', '', '<p><strong>Chest X-ray Report &ndash; No active disease&nbsp;</strong><br />\r\n<br />\r\nNo evidence of active tuberculosis .The individual listed above has no symptoms<br />\r\n<br />\r\nor radiographic findings compatible with active tuberculosis.The individual is free<br />\r\n<br />\r\nof tuberculosis in a communicable form.</p>\r\n\r\n<p>&nbsp;</p>\r\n', '', '', 'Done', '100072021_12_19_02_39_48');

-- --------------------------------------------------------

--
-- Table structure for table `reports_img`
--

CREATE TABLE `reports_img` (
  `repid` varchar(40) NOT NULL,
  `img` blob NOT NULL,
  `mid` bigint(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `reports_img`
--

INSERT INTO `reports_img` (`repid`, `img`, `mid`) VALUES
('100072021_12_09_14_27_39', 0x313131322e6a7067, 35),
('100072021_12_09_14_27_39', 0x6368657374312e706e67, 36),
('100072021_12_09_14_28_25', 0x3131322e6a7067, 37),
('100072021_12_09_14_29_34', 0x636865737431312e706e67, 38),
('100072021_12_09_14_40_45', 0x31313132332e6a7067, 39),
('100072021_12_09_14_44_25', 0x3131313233342e6a7067, 40),
('100072021_12_18_11_25_46', 0x3131323334352e6a7067, 41),
('100072021_12_18_11_26_23', 0x313132333435362e6a7067, 42),
('100072021_12_18_11_30_39', 0x31313233343536372e6a7067, 43),
('100072021_12_18_11_31_02', 0x3131323334353637382e6a7067, 44),
('100072021_12_18_11_35_15', 0x313132333435363738392e6a7067, 45),
('100072021_12_18_11_38_15', 0x313131323334352e6a7067, 46),
('100072021_12_18_11_38_21', 0x31313132333435362e6a7067, 47),
('100072021_12_18_11_39_58', 0x3131323334353637383931302e6a7067, 48),
('100072021_12_18_11_44_41', 0x31313233343536373839313031312e6a7067, 49),
('100072021_12_18_11_45_01', 0x313132333435363738393130313131322e6a7067, 50),
('100072021_12_18_11_45_57', 0x3131323334353637383931303131313231332e6a7067, 51),
('100072021_12_18_11_46_25', 0x31313233343536373839313031313132313331342e6a7067, 52),
('100072021_12_18_11_50_25', 0x3131313233343536372e6a7067, 53),
('100072021_12_18_11_50_32', 0x313131323334353637382e6a7067, 54),
('100072021_12_18_11_50_47', 0x31313132333435363738392e6a7067, 55),
('100072021_12_18_11_50_47', 0x313131323334312e6a7067, 56),
('100072021_12_18_11_50_55', 0x313131323334353637383931302e6a7067, 57),
('100072021_12_18_11_51_54', 0x313132333435363738393130313131323133313431352e6a7067, 58),
('100072021_12_18_11_52_07', 0x3131323334353637383931303131313231333134313531362e6a7067, 59),
('100072021_12_18_11_52_17', 0x31313233343536373839313031313132313331343135313631372e6a7067, 60),
('100072021_12_18_11_53_41', 0x313132333435363738393130313131323133313431353136313731382e6a7067, 61),
('100072021_12_18_11_55_12', 0x646f635f64656661756c742e6a7067, 62),
('100072021_12_18_12_00_25', 0x3131323334353637383931303131313231333134313531363137313831392e6a7067, 63),
('100072021_12_18_12_00_32', 0x31313233343536373839313031313132313331343135313631373138313932302e6a7067, 64),
('100072021_12_18_12_04_48', 0x313132333435363738393130313131323133313431353136313731383139323032312e6a7067, 65),
('100072021_12_18_12_13_03', 0x3131323334353637383931303131313231333134313531363137313831393230323132322e6a7067, 66),
('100072021_12_19_02_39_48', 0x313132333435363738393130313131323133313431353136313731383139323032313232323332343235323632373238323933302e6a7067, 68);

-- --------------------------------------------------------

--
-- Table structure for table `report_price`
--

CREATE TABLE `report_price` (
  `rname` varchar(50) NOT NULL,
  `nprice` int(6) NOT NULL,
  `uprice` int(6) NOT NULL,
  `rid` int(5) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `report_price`
--

INSERT INTO `report_price` (`rname`, `nprice`, `uprice`, `rid`) VALUES
('Right Chest X-Ray PA View', 25, 30, 6),
('Left Chest X-Ray PA View', 25, 30, 7),
('Chest X-Ray PA View', 25, 30, 8);

-- --------------------------------------------------------

--
-- Table structure for table `template`
--

CREATE TABLE `template` (
  `tname` varchar(50) NOT NULL,
  `tdes` longtext NOT NULL,
  `tid` int(5) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `template`
--

INSERT INTO `template` (`tname`, `tdes`, `tid`) VALUES
('Xray Pa View', '<b>Chest X-ray Report â€“ No active disease&nbsp;</b><br>No evidence of active tuberculosis .The individual listed above has no symptoms <br>or radiographic findings compatible with active tuberculosis.The individual is free <br>of tuberculosis in a communicable form.', 3);

-- --------------------------------------------------------

--
-- Table structure for table `transaction`
--

CREATE TABLE `transaction` (
  `did` varchar(10) NOT NULL,
  `cid` varchar(10) NOT NULL,
  `repid` varchar(30) NOT NULL,
  `cname` varchar(40) NOT NULL,
  `pid` varchar(10) NOT NULL,
  `pname` varchar(25) NOT NULL,
  `rname` varchar(35) NOT NULL,
  `price` bigint(6) NOT NULL,
  `dt` varchar(15) NOT NULL,
  `sts` enum('Unpaid','Paid') NOT NULL,
  `tid` bigint(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `transaction`
--

INSERT INTO `transaction` (`did`, `cid`, `repid`, `cname`, `pid`, `pname`, `rname`, `price`, `dt`, `sts`, `tid`) VALUES
('1000', '10007', '100072021_12_09_14_27_39', 'Balaji Medical Institute of Science', '26', 'Vikash Yadav', 'Chest X-Ray PA View', 30, '09-12-2021', 'Paid', 15),
('1000', '10007', '100072021_12_09_14_28_25', 'Balaji Medical Institute of Science', '27', 'Dinesh Gupta', 'Left Chest X-Ray PA View', 25, '09-12-2021', 'Paid', 16),
('1000', '10007', '100072021_12_09_14_29_34', 'Balaji Medical Institute of Science', '28', 'Priya Singh', 'Chest X-Ray PA View', 25, '18-12-2021', 'Paid', 17),
('', '10007', '100072021_12_09_14_40_45', 'Balaji Medical Institute of Science', '', 'Himanshu Pandey', 'Chest X-Ray PA View', 25, '', 'Unpaid', 18),
('1000', '10007', '100072021_12_09_14_44_25', 'Balaji Medical Institute of Science', '30', 'Yatnesh Kumar', 'Chest X-Ray PA View', 25, '18-12-2021', 'Paid', 19),
('', '10007', '100072021_12_18_12_54_28', 'Balaji Medical Institute of Science', '', 'Dinesh Gupta1', 'Left Chest X-Ray PA View', 25, '', 'Unpaid', 20),
('1000', '10007', '100072021_12_19_02_39_48', 'Balaji Medical Institute of Science', '35', 'Manoj Kumar', 'Right Chest X-Ray PA View', 25, '19-12-2021', 'Paid', 25);

--
-- Indexes for dumped tables
--

--
-- Indexes for table `admin`
--
ALTER TABLE `admin`
  ADD PRIMARY KEY (`email`);

--
-- Indexes for table `centres`
--
ALTER TABLE `centres`
  ADD PRIMARY KEY (`cid`);

--
-- Indexes for table `doctors`
--
ALTER TABLE `doctors`
  ADD PRIMARY KEY (`did`);

--
-- Indexes for table `notice`
--
ALTER TABLE `notice`
  ADD PRIMARY KEY (`nid`);

--
-- Indexes for table `qns`
--
ALTER TABLE `qns`
  ADD PRIMARY KEY (`nid`);

--
-- Indexes for table `reports`
--
ALTER TABLE `reports`
  ADD PRIMARY KEY (`pid`);

--
-- Indexes for table `reports_img`
--
ALTER TABLE `reports_img`
  ADD PRIMARY KEY (`mid`);

--
-- Indexes for table `report_price`
--
ALTER TABLE `report_price`
  ADD PRIMARY KEY (`rid`);

--
-- Indexes for table `template`
--
ALTER TABLE `template`
  ADD PRIMARY KEY (`tid`);

--
-- Indexes for table `transaction`
--
ALTER TABLE `transaction`
  ADD PRIMARY KEY (`tid`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `centres`
--
ALTER TABLE `centres`
  MODIFY `cid` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10010;

--
-- AUTO_INCREMENT for table `doctors`
--
ALTER TABLE `doctors`
  MODIFY `did` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1003;

--
-- AUTO_INCREMENT for table `notice`
--
ALTER TABLE `notice`
  MODIFY `nid` bigint(8) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `qns`
--
ALTER TABLE `qns`
  MODIFY `nid` bigint(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `reports`
--
ALTER TABLE `reports`
  MODIFY `pid` bigint(8) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=36;

--
-- AUTO_INCREMENT for table `reports_img`
--
ALTER TABLE `reports_img`
  MODIFY `mid` bigint(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=69;

--
-- AUTO_INCREMENT for table `report_price`
--
ALTER TABLE `report_price`
  MODIFY `rid` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;

--
-- AUTO_INCREMENT for table `template`
--
ALTER TABLE `template`
  MODIFY `tid` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `transaction`
--
ALTER TABLE `transaction`
  MODIFY `tid` bigint(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;
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 */;
