--
-- Table structure for table `doctor_tb`
--

CREATE TABLE `doctor_tb` (
  `doctor_id` int(11) NOT NULL,
  `doctor_name` varchar(100) NOT NULL,
  `mobile_no` varchar(15) NOT NULL,
  `doctor_email` varchar(255) NOT NULL,
  `language` varchar(100) NOT NULL,
  `doctor_password` varchar(255) NOT NULL,
  `role` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `healthcare_worker_tb`
--

CREATE TABLE `healthcare_worker_tb` (
  `hworker_id` int(11) NOT NULL,
  `healthcare` enum('0','1') NOT NULL DEFAULT '0',
  `role` varchar(100) NOT NULL,
  `healthcare_other` varchar(200) NOT NULL,
  `healthcat` varchar(100) NOT NULL,
  `covidexp` varchar(100) NOT NULL,
  `facility` varchar(200) NOT NULL,
  `mnumber` varchar(20) NOT NULL,
  `email` varchar(200) NOT NULL,
  `firstname` varchar(200) NOT NULL,
  `lastname` varchar(200) NOT NULL,
  `dob` varchar(30) NOT NULL,
  `state` varchar(100) NOT NULL,
  `city` varchar(100) NOT NULL,
  `sex` varchar(20) NOT NULL,
  `language` varchar(200) NOT NULL,
  `feeling` varchar(100) NOT NULL,
  `positive` enum('0','1') NOT NULL DEFAULT '0',
  `familytest` enum('0','1') NOT NULL DEFAULT '0',
  `vaccinate` enum('0','1') NOT NULL DEFAULT '0',
  `vaccination` varchar(50) NOT NULL,
  `othervacci` varchar(50) NOT NULL,
  `doseval` enum('0','1') NOT NULL DEFAULT '0',
  `v1date` date NOT NULL,
  `v2date` date NOT NULL,
  `hours` varchar(30) NOT NULL,
  `frequently` varchar(30) NOT NULL,
  `sec1boan` int(11) NOT NULL,
  `sec1aoan` int(11) NOT NULL,
  `sec2boan` int(11) NOT NULL,
  `sec2aoan` int(11) NOT NULL,
  `sec3boan` int(11) NOT NULL,
  `sec3aoan` int(11) NOT NULL,
  `sec4boan` int(11) NOT NULL,
  `sec4aoan` int(11) NOT NULL,
  `apppanval` varchar(255) NOT NULL,
  `appother` varchar(50) NOT NULL,
  `remarks` longtext NOT NULL,
  `status` enum('0','1','2') NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `patient_tb`
--

CREATE TABLE `patient_tb` (
  `patient_id` int(11) NOT NULL,
  `patient_name` varchar(255) NOT NULL,
  `gender` varchar(7) NOT NULL,
  `address` text NOT NULL,
  `symptoms` varchar(255) NOT NULL,
  `spo2` varchar(3) NOT NULL,
  `testresult` varchar(20) NOT NULL,
  `language` varchar(100) NOT NULL,
  `comorbid` varchar(100) NOT NULL,
  `isoxygen` varchar(3) NOT NULL,
  `searchsince` varchar(100) NOT NULL,
  `listhospital` text NOT NULL,
  `preferedhospital` varchar(100) NOT NULL,
  `bedtype` varchar(100) NOT NULL,
  `attendermobile` varchar(15) NOT NULL,
  `relation` varchar(100) NOT NULL,
  `doctorname` varchar(100) NOT NULL,
  `otherremark` text NOT NULL,
  `isattented` int(11) NOT NULL COMMENT '0-not_attended, 1-attended',
  `doctorremark` text NOT NULL,
  `registrationdate` datetime NOT NULL,
  `final_status` int(11) NOT NULL COMMENT '0-needs doctor,1-no doctor'
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Table structure for table `language_tb`
--

CREATE TABLE `language_tb` (
  `language_id` int(11) NOT NULL,
  `language_name` varchar(255) NOT NULL,
  `isDeleted` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `language_tb`
--

INSERT INTO `language_tb` (`language_id`, `language_name`, `isDeleted`) VALUES
(1, 'English', 0),
(2, 'Marathi', 0),
(3, 'Hindi', 0),
(4, 'Tamil', 0);

--
-- Indexes for dumped tables
--

--
-- Indexes for table `doctor_tb`
--
ALTER TABLE `doctor_tb`
  ADD PRIMARY KEY (`doctor_id`);

--
-- Indexes for table `healthcare_worker_tb`
--
ALTER TABLE `healthcare_worker_tb`
  ADD PRIMARY KEY (`hworker_id`);

--
-- Indexes for table `patient_tb`
--
ALTER TABLE `patient_tb`
  ADD PRIMARY KEY (`patient_id`);

--
-- Indexes for table `language_tb`
--
ALTER TABLE `language_tb`
  ADD PRIMARY KEY (`language_id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `doctor_tb`
--
ALTER TABLE `doctor_tb`
  MODIFY `doctor_id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `healthcare_worker_tb`
--
ALTER TABLE `healthcare_worker_tb`
  MODIFY `hworker_id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `language_tb`
--
ALTER TABLE `language_tb`
  MODIFY `language_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `patient_tb`
--
ALTER TABLE `patient_tb`
  MODIFY `patient_id` int(11) NOT NULL AUTO_INCREMENT;
COMMIT;