-- https://www.phpmyadmin.net/
--




--
-- Database: `udutppp`
--

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

--
-- Table structure for table `udut_appointments`
--

CREATE TABLE `udut_appointments` (
  `appointmentId` int(11) NOT NULL,
  `patientId` int(11) NOT NULL,
  `doctorId` int(11) NOT NULL,
  `departmentId` int(11) NOT NULL,
  `appointmentNo` int(11) NOT NULL,
  `appointmentDescription` varchar(250) NOT NULL,
  `appointmentDate` date NOT NULL,
  `appointmentTime` time NOT NULL,
  `appointmentDateAdded` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `appointmentDateModified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `udut_configurations`
--

CREATE TABLE `udut_configurations` (
  `configId` int(11) NOT NULL,
  `configName` varchar(100) NOT NULL,
  `configValue` varchar(100) NOT NULL,
  `configType` varchar(100) NOT NULL DEFAULT '%',
  `configStatus` int(11) NOT NULL,
  `configDateAdded` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `configDateModified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `udut_configurations`
--

INSERT INTO `udut_configurations` (`configId`, `configName`, `configValue`, `configType`, `configStatus`, `configDateAdded`, `configDateModified`) VALUES
(1, 'siteName', 'UDUTH PPP Partners Project', '%', 0, '2019-01-01 17:59:25', '2019-01-01 17:59:25'),
(2, 'siteLogo', 'logo-dark.png', '%', 0, '2019-01-01 17:59:25', '2019-01-01 17:59:25'),
(3, 'runningCost', '300000', '%', 0, '2019-01-01 18:01:15', '2019-01-01 18:01:15'),
(4, 'hosAccPer', '30', '%', 0, '2019-01-01 18:10:45', '2019-01-01 18:10:45'),
(5, 'manAccPer', '5', '%', 0, '2019-01-01 18:10:45', '2019-01-01 18:10:45'),
(6, 'hosHosAccPer', '15', '%', 0, '2019-01-01 18:13:32', '2019-01-01 18:13:32'),
(7, 'hosAdmFee', '5', '%', 0, '2019-01-01 18:13:32', '2019-01-01 18:13:32'),
(8, 'hosCMD', '5', '%', 0, '2019-01-01 18:14:09', '2019-01-01 18:14:09'),
(9, 'hosDrAdm', '2.5', '%', 0, '2019-01-01 18:14:09', '2019-01-01 18:14:09'),
(10, 'hosRadDep', '2.5', '%', 0, '2019-01-01 18:14:36', '2019-01-01 18:14:36'),
(11, 'foresightPer', '70', '%', 0, '2019-01-01 18:16:55', '2019-01-01 18:16:55'),
(12, 'kalifaPer', '30', '%', 0, '2019-01-01 18:16:55', '2019-01-01 18:16:55'),
(13, 'patternPatientUId', 'UDUTH', '%', 0, '2019-01-24 22:52:47', '2019-01-24 21:52:52'),
(14, 'udutAddress', 'Usmanu Danfodiyo University Teaching Hospital, Sokoto <br>P.M.B. 2370 <br>Sokoto. <br>Nigeria', '%', 0, '2019-01-28 20:29:38', '0000-00-00 00:00:00'),
(17, 'Running Cost', '300000', 'Fixed', 1, '2019-02-28 14:38:08', '0000-00-00 00:00:00'),
(18, 'Hospital Percentage', '30', '%', 1, '2019-02-28 14:38:08', '0000-00-00 00:00:00'),
(19, 'Maintenance Fee', '5', '%', 1, '2019-02-28 14:38:08', '0000-00-00 00:00:00'),
(20, 'Foresight Percentage', '65', '%', 1, '2019-02-28 14:38:08', '0000-00-00 00:00:00');

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

--
-- Table structure for table `udut_departments`
--

CREATE TABLE `udut_departments` (
  `departmentId` int(11) NOT NULL,
  `departmentName` varchar(100) NOT NULL,
  `departmentDateAdded` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `departmentDateModified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `udut_doctors`
--

CREATE TABLE `udut_doctors` (
  `doctorId` int(11) NOT NULL,
  `doctorUId` varchar(100) NOT NULL,
  `doctorName` varchar(100) NOT NULL,
  `doctorDateOfBirth` date DEFAULT NULL,
  `doctorGender` varchar(100) NOT NULL,
  `doctorEmail` varchar(100) NOT NULL,
  `doctorPhone` varchar(100) NOT NULL,
  `doctorAddress` varchar(250) DEFAULT NULL,
  `doctorExperience` varchar(100) DEFAULT NULL,
  `doctorSpecialization` varchar(100) DEFAULT NULL,
  `doctorDateAdded` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `doctorDateModified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `udut_doctors_activities`
--

CREATE TABLE `udut_doctors_activities` (
  `activityId` int(11) NOT NULL,
  `doctorId` int(11) NOT NULL,
  `patientId` int(11) NOT NULL,
  `injuryId` int(11) NOT NULL,
  `visitId` int(11) NOT NULL,
  `visitStatusId` int(11) NOT NULL,
  `activityDateAdded` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `activityDateModified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `udut_injuries`
--

CREATE TABLE `udut_injuries` (
  `injuryId` int(11) NOT NULL,
  `injuryName` varchar(100) NOT NULL,
  `injuryDateAdded` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `injuryDateModified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `udut_injuries`
--

INSERT INTO `udut_injuries` (`injuryId`, `injuryName`, `injuryDateAdded`, `injuryDateModified`) VALUES
(1, 'Viral fever', '2018-12-30 14:34:00', '0000-00-00 00:00:00'),
(2, 'Hand Fracture', '2018-12-30 14:34:00', '0000-00-00 00:00:00'),
(3, 'Dengue', '2018-12-30 15:04:43', '0000-00-00 00:00:00'),
(4, 'Malayria', '2018-12-30 15:04:43', '0000-00-00 00:00:00');

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

--
-- Table structure for table `udut_patients`
--

CREATE TABLE `udut_patients` (
  `patientId` int(11) NOT NULL,
  `patientUId` varchar(100) NOT NULL,
  `patientName` varchar(100) DEFAULT NULL,
  `patientDob` varchar(100) DEFAULT NULL,
  `patientGender` varchar(100) DEFAULT NULL,
  `patientAddress` varchar(100) DEFAULT NULL,
  `patientPhone` varchar(100) DEFAULT NULL,
  `patientEmail` varchar(100) DEFAULT NULL,
  `patientCompanion` varchar(100) DEFAULT NULL,
  `patientHospitalReferredName` varchar(100) DEFAULT NULL,
  `patientReferredPaper` varchar(250) DEFAULT NULL,
  `patientTypeId` int(11) NOT NULL,
  `patientFileNo` varchar(100) DEFAULT NULL,
  `userId` int(11) NOT NULL,
  `patientDateAdded` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `patientDateModified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `patientSyncStatus` int(11) DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `udut_patients`
--

INSERT INTO `udut_patients` (`patientId`, `patientUId`, `patientName`, `patientDob`, `patientGender`, `patientAddress`, `patientPhone`, `patientEmail`, `patientCompanion`, `patientHospitalReferredName`, `patientReferredPaper`, `patientTypeId`, `patientFileNo`, `userId`, `patientDateAdded`, `patientDateModified`, `patientSyncStatus`) VALUES
(1, 'UDUTH11/19/0001', 'Sunusi Mohd Inuwa', '2019-02-02', 'Male', 'Zaria', '08135067070', 'sminuwa@yahoo.com', 'Mohd Inuwa', NULL, NULL, 1, '', 11, '2019-02-28 11:47:23', '0000-00-00 00:00:00', 1),
(2, 'UDUTH1/19/0002', 'Sunusi Mohd Inuwa', '2019-02-16', 'Male', 'Zaria', '08135067070', 'sminuwa@yahoo.com', 'Mohd Inuwa', NULL, NULL, 1, '', 1, '2019-02-28 14:45:55', '0000-00-00 00:00:00', 1),
(3, 'UDUTH1/19/0003', 'Ibrahim Musa', '2019-02-17', 'Male', 'Kano', '08035067070', 'smenuwa@yahoo.com', 'Mohd Inuwa', NULL, NULL, 2, '', 1, '2019-02-28 14:48:36', '0000-00-00 00:00:00', 1);

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

--
-- Table structure for table `udut_patients_referral_docs`
--

CREATE TABLE `udut_patients_referral_docs` (
  `referralDocId` int(11) NOT NULL,
  `patientId` int(11) NOT NULL,
  `referralDoc` varchar(250) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `udut_patients_referral_docs`
--

INSERT INTO `udut_patients_referral_docs` (`referralDocId`, `patientId`, `referralDoc`) VALUES
(1, 1, 'sample.jpg'),
(2, 9, 'iasda.jpg'),
(3, 10, 'iasda.jpg'),
(4, 11, 'iasda.jpg'),
(5, 12, 'iasda.jpg'),
(6, 13, 'iasda.jpg'),
(7, 14, 'iasda.jpg'),
(8, 15, 'iasda.jpg'),
(9, 16, 'iasda.jpg'),
(10, 17, 'iasda.jpg'),
(12, 19, '2060205v1-5b9c1b1146e0fb0024254fef.png'),
(13, 20, 'Screenshot 2019-01-29 at 10.52.02.png'),
(18, 2, 'Screenshot 2019-01-31 at 23.00.38.png'),
(19, 3, 'Screenshot 2019-01-31 at 23.00.38.png'),
(20, 4, 'Screenshot 2019-01-31 at 23.00.38.png'),
(21, 5, 'Screenshot 2019-01-29 at 10.52.02.png'),
(22, 6, ''),
(23, 7, ''),
(24, 8, ''),
(25, 9, ''),
(26, 10, ''),
(27, 11, ''),
(28, 12, ''),
(29, 13, ''),
(30, 14, ''),
(31, 15, ''),
(32, 16, ''),
(33, 1, ''),
(34, 1, ''),
(35, 1, ''),
(36, 1, ''),
(37, 5, ''),
(38, 1, ''),
(39, 2, ''),
(40, 3, ''),
(41, 1, ''),
(42, 1, ''),
(43, 2, ''),
(44, 3, '');

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

--
-- Table structure for table `udut_patients_types`
--

CREATE TABLE `udut_patients_types` (
  `patientTypeId` int(11) NOT NULL,
  `patientTypeName` varchar(100) NOT NULL,
  `patientTypeDateAdded` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `udut_patients_types`
--

INSERT INTO `udut_patients_types` (`patientTypeId`, `patientTypeName`, `patientTypeDateAdded`) VALUES
(1, 'Local', '2019-02-03 11:44:49'),
(2, 'Others', '2019-02-03 11:44:49');

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

--
-- Table structure for table `udut_payments`
--

CREATE TABLE `udut_payments` (
  `paymentId` int(11) NOT NULL,
  `patientId` int(11) NOT NULL,
  `paymentTypeId` int(11) NOT NULL,
  `typeId` int(11) NOT NULL,
  `paymentStatusId` int(11) NOT NULL,
  `userId` int(11) NOT NULL,
  `paymentDateAdded` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `receiptNo` int(11) DEFAULT NULL,
  `paymentSyncStatus` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `udut_payments`
--

INSERT INTO `udut_payments` (`paymentId`, `patientId`, `paymentTypeId`, `typeId`, `paymentStatusId`, `userId`, `paymentDateAdded`, `receiptNo`, `paymentSyncStatus`) VALUES
(1, 1, 1, 1, 1, 11, '2019-02-28 11:47:23', 1, 0),
(2, 2, 1, 1, 1, 1, '2019-02-28 14:45:55', 2, 0),
(3, 2, 2, 2, 1, 1, '2019-02-28 14:46:19', 3, 0),
(4, 2, 1, 1, 1, 1, '2019-02-28 14:46:34', 4, 0),
(5, 2, 1, 1, 1, 1, '2019-02-28 14:47:24', 5, 0),
(6, 2, 1, 1, 1, 1, '2019-02-28 14:47:59', 6, 0),
(7, 3, 1, 1, 1, 1, '2019-02-28 14:48:36', 7, 0),
(8, 3, 4, 1, 1, 1, '2019-02-28 14:48:43', 8, 0),
(9, 3, 4, 1, 1, 1, '2019-02-28 14:48:43', 8, 0),
(10, 2, 1, 1, 1, 1, '2019-02-28 14:47:24', 5, 0),
(11, 2, 1, 1, 1, 1, '2019-02-28 14:46:34', 4, 0),
(12, 3, 4, 1, 1, 1, '2019-02-28 14:48:43', 8, 0),
(13, 3, 4, 1, 1, 1, '2019-02-28 14:48:43', 8, 0),
(14, 1, 1, 1, 1, 11, '2019-02-28 11:47:23', 1, 0);

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

--
-- Table structure for table `udut_payments_status`
--

CREATE TABLE `udut_payments_status` (
  `paymentStatusId` int(11) NOT NULL,
  `paymentStatusName` varchar(100) NOT NULL,
  `paymentStatusDateAdded` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `udut_payments_status`
--

INSERT INTO `udut_payments_status` (`paymentStatusId`, `paymentStatusName`, `paymentStatusDateAdded`) VALUES
(1, 'Complete', '2019-01-30 23:52:48'),
(2, 'Pending', '2019-01-30 23:52:48'),
(3, 'Cancelled', '2019-01-30 23:53:03'),
(4, 'Refunded', '2019-01-30 23:53:03');

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

--
-- Table structure for table `udut_payments_types`
--

CREATE TABLE `udut_payments_types` (
  `paymentTypeId` int(11) NOT NULL,
  `paymentTypeName` varchar(100) NOT NULL,
  `PaymentTypeDateAdded` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `udut_payments_types`
--

INSERT INTO `udut_payments_types` (`paymentTypeId`, `paymentTypeName`, `PaymentTypeDateAdded`) VALUES
(1, 'CASH', '2018-12-30 11:32:40'),
(2, 'POS', '2018-12-30 11:32:40'),
(3, 'Check', '2018-12-30 11:32:59'),
(4, 'Bank Transfer', '2018-12-30 11:32:59'),
(5, 'NHIS', '2018-12-30 11:32:40');

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

--
-- Table structure for table `udut_reports`
--

CREATE TABLE `udut_reports` (
  `reportId` int(11) NOT NULL,
  `userId` int(11) NOT NULL,
  `reportName` text NOT NULL,
  `reportDateAdded` datetime NOT NULL,
  `reportSubject` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `udut_reports`
--

INSERT INTO `udut_reports` (`reportId`, `userId`, `reportName`, `reportDateAdded`, `reportSubject`) VALUES
(6, 1, 'We have problem of light today and therefore we can&#039;t connect to the software', '2019-02-04 17:09:44', ''),
(7, 1, '<strong>Me: </strong>Hello', '2019-02-05 15:13:52', ''),
(8, 1, 'jjjjnjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj', '2019-02-06 15:18:53', ''),
(9, 1, 'There is network issues today so we cannot present to unline', '2019-03-03 20:40:33', 'Network issue');

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

--
-- Table structure for table `udut_scan_types`
--

CREATE TABLE `udut_scan_types` (
  `typeId` int(11) NOT NULL,
  `typeName` varchar(100) DEFAULT NULL,
  `typeAmount` varchar(100) DEFAULT NULL,
  `typeUserAdded` varchar(100) DEFAULT NULL,
  `typeDateAdded` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `udut_scan_types`
--

INSERT INTO `udut_scan_types` (`typeId`, `typeName`, `typeAmount`, `typeUserAdded`, `typeDateAdded`) VALUES
(1, 'Adult', '30000', '1', '2018-12-29 13:16:52'),
(2, 'Minor', '15000', '1', '2018-12-29 13:16:52');

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

--
-- Table structure for table `udut_services`
--

CREATE TABLE `udut_services` (
  `serviceId` int(11) NOT NULL,
  `serviceName` varchar(100) NOT NULL,
  `serviceDateAdded` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `serviceDateModified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `udut_services`
--

INSERT INTO `udut_services` (`serviceId`, `serviceName`, `serviceDateAdded`, `serviceDateModified`) VALUES
(1, 'X-ray', '2019-01-01 13:59:18', '2019-01-01 13:59:18'),
(2, 'ECG', '2019-01-01 13:59:18', '2019-01-01 13:59:18'),
(3, 'Dental', '2019-01-01 13:59:38', '2019-01-01 13:59:38');

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

--
-- Table structure for table `udut_users_privileges`
--

CREATE TABLE `udut_users_privileges` (
  `privilegeId` int(11) NOT NULL,
  `roleId` int(11) NOT NULL,
  `createUser` int(11) NOT NULL DEFAULT '0',
  `updateUser` int(11) NOT NULL DEFAULT '0',
  `deleteUser` int(11) NOT NULL DEFAULT '0',
  `hospitalAccountPercentage` int(11) NOT NULL DEFAULT '0',
  `managementAccountPercentage` int(11) NOT NULL DEFAULT '0',
  `foresightAccountPercentage` int(11) NOT NULL DEFAULT '0',
  `kalifaAccountPercentage` int(11) NOT NULL DEFAULT '0',
  `privilegeDateAdded` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `privilegeDateModified` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `udut_users_privileges`
--

INSERT INTO `udut_users_privileges` (`privilegeId`, `roleId`, `createUser`, `updateUser`, `deleteUser`, `hospitalAccountPercentage`, `managementAccountPercentage`, `foresightAccountPercentage`, `kalifaAccountPercentage`, `privilegeDateAdded`, `privilegeDateModified`) VALUES
(1, 1, 0, 0, 0, 0, 0, 0, 0, '2019-01-23 00:57:02', '0000-00-00 00:00:00'),
(2, 2, 0, 0, 0, 0, 0, 0, 0, '2019-01-23 00:57:02', '0000-00-00 00:00:00'),
(3, 3, 1, 1, 1, 1, 1, 1, 1, '2019-01-23 00:57:02', '0000-00-00 00:00:00'),
(4, 4, 0, 0, 0, 0, 0, 0, 0, '2019-01-23 00:57:02', '0000-00-00 00:00:00'),
(5, 5, 1, 1, 1, 1, 1, 1, 1, '2019-01-23 00:57:02', '0000-00-00 00:00:00'),
(9, 12, 0, 0, 0, 0, 0, 0, 0, '2019-03-02 21:38:11', '0000-00-00 00:00:00'),
(10, 13, 0, 0, 0, 0, 0, 0, 0, '2019-03-03 11:03:55', '0000-00-00 00:00:00');

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

--
-- Table structure for table `udut_users_roles`
--

CREATE TABLE `udut_users_roles` (
  `roleId` int(11) NOT NULL,
  `userId` int(11) NOT NULL,
  `roleName` varchar(100) DEFAULT NULL,
  `roleLocation` varchar(100) NOT NULL,
  `roleDateAdded` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `roleDateModified` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `udut_users_roles`
--

INSERT INTO `udut_users_roles` (`roleId`, `userId`, `roleName`, `roleLocation`, `roleDateAdded`, `roleDateModified`) VALUES
(1, 1, 'user', 'users/', '2019-01-02 12:36:03', '2019-01-02 13:36:03'),
(2, 2, 'user', 'users/', '2019-01-02 12:36:03', '2019-01-02 14:09:51'),
(3, 3, 'admin', 'admin/', '2019-01-02 12:36:03', '2019-01-02 14:11:33'),
(4, 4, 'user', 'users/', '2019-01-02 12:36:03', '2019-01-02 14:11:33'),
(5, 5, 'admin', 'admin/', '2019-01-02 12:36:03', '2019-01-02 14:11:33'),
(12, 12, 'Admin', 'admin/', '2019-03-02 21:38:11', '0000-00-00 00:00:00'),
(13, 13, 'User', 'users/', '2019-03-03 11:03:55', '0000-00-00 00:00:00');

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

--
-- Table structure for table `udut_visits`
--

CREATE TABLE `udut_visits` (
  `visitId` int(11) NOT NULL,
  `paymentId` int(11) NOT NULL,
  `visitDateAdded` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `visitStatusId` int(11) DEFAULT '0',
  `patientId` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `udut_visits`
--

INSERT INTO `udut_visits` (`visitId`, `paymentId`, `visitDateAdded`, `visitStatusId`, `patientId`) VALUES
(8, 2, '2019-02-28 14:45:55', 0, 2),
(9, 3, '2019-02-28 14:46:19', 0, 2),
(10, 4, '2019-02-28 14:46:34', 0, 2),
(11, 5, '2019-02-28 14:47:24', 0, 2),
(12, 6, '2019-02-28 14:47:59', 0, 2),
(13, 7, '2019-02-28 14:48:36', 0, 3),
(14, 8, '2019-02-28 14:48:43', 0, 3);

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

--
-- Table structure for table `udut_visits_status`
--

CREATE TABLE `udut_visits_status` (
  `visitStatusId` int(11) NOT NULL,
  `visitStatusName` varchar(100) CHARACTER SET latin1 NOT NULL,
  `visitStatusDateAdded` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `udut_visits_status`
--

INSERT INTO `udut_visits_status` (`visitStatusId`, `visitStatusName`, `visitStatusDateAdded`) VALUES
(1, 'Resheduled', '2018-12-30 10:45:29'),
(2, 'Operation', '2018-12-30 10:45:29'),
(3, 'Ortho', '2018-12-30 11:02:08'),
(4, 'General Check-up', '2018-12-30 11:02:08'),
(5, 'Injury', '2018-12-30 11:02:44');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `udut_appointments`
--
ALTER TABLE `udut_appointments`
  ADD PRIMARY KEY (`appointmentId`);

--
-- Indexes for table `udut_configurations`
--
ALTER TABLE `udut_configurations`
  ADD PRIMARY KEY (`configId`);

--
-- Indexes for table `udut_departments`
--
ALTER TABLE `udut_departments`
  ADD PRIMARY KEY (`departmentId`);

--
-- Indexes for table `udut_doctors`
--
ALTER TABLE `udut_doctors`
  ADD PRIMARY KEY (`doctorId`);

--
-- Indexes for table `udut_doctors_activities`
--
ALTER TABLE `udut_doctors_activities`
  ADD PRIMARY KEY (`activityId`);

--
-- Indexes for table `udut_injuries`
--
ALTER TABLE `udut_injuries`
  ADD PRIMARY KEY (`injuryId`);

--
-- Indexes for table `udut_patients`
--
ALTER TABLE `udut_patients`
  ADD PRIMARY KEY (`patientId`);

--
-- Indexes for table `udut_patients_referral_docs`
--
ALTER TABLE `udut_patients_referral_docs`
  ADD PRIMARY KEY (`referralDocId`);

--
-- Indexes for table `udut_patients_types`
--
ALTER TABLE `udut_patients_types`
  ADD PRIMARY KEY (`patientTypeId`);

--
-- Indexes for table `udut_payments`
--
ALTER TABLE `udut_payments`
  ADD PRIMARY KEY (`paymentId`);

--
-- Indexes for table `udut_payments_status`
--
ALTER TABLE `udut_payments_status`
  ADD PRIMARY KEY (`paymentStatusId`);

--
-- Indexes for table `udut_payments_types`
--
ALTER TABLE `udut_payments_types`
  ADD PRIMARY KEY (`paymentTypeId`);

--
-- Indexes for table `udut_reports`
--
ALTER TABLE `udut_reports`
  ADD PRIMARY KEY (`reportId`);

--
-- Indexes for table `udut_scan_types`
--
ALTER TABLE `udut_scan_types`
  ADD PRIMARY KEY (`typeId`);

--
-- Indexes for table `udut_services`
--
ALTER TABLE `udut_services`
  ADD PRIMARY KEY (`serviceId`);

--
-- Indexes for table `udut_users_privileges`
--
ALTER TABLE `udut_users_privileges`
  ADD PRIMARY KEY (`privilegeId`);

--
-- Indexes for table `udut_users_roles`
--
ALTER TABLE `udut_users_roles`
  ADD PRIMARY KEY (`roleId`);

--
-- Indexes for table `udut_visits`
--
ALTER TABLE `udut_visits`
  ADD PRIMARY KEY (`visitId`);

--
-- Indexes for table `udut_visits_status`
--
ALTER TABLE `udut_visits_status`
  ADD PRIMARY KEY (`visitStatusId`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `udut_appointments`
--
ALTER TABLE `udut_appointments`
  MODIFY `appointmentId` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `udut_configurations`
--
ALTER TABLE `udut_configurations`
  MODIFY `configId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21;
--
-- AUTO_INCREMENT for table `udut_departments`
--
ALTER TABLE `udut_departments`
  MODIFY `departmentId` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `udut_doctors`
--
ALTER TABLE `udut_doctors`
  MODIFY `doctorId` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `udut_doctors_activities`
--
ALTER TABLE `udut_doctors_activities`
  MODIFY `activityId` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `udut_injuries`
--
ALTER TABLE `udut_injuries`
  MODIFY `injuryId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `udut_patients`
--
ALTER TABLE `udut_patients`
  MODIFY `patientId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `udut_patients_referral_docs`
--
ALTER TABLE `udut_patients_referral_docs`
  MODIFY `referralDocId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=45;
--
-- AUTO_INCREMENT for table `udut_patients_types`
--
ALTER TABLE `udut_patients_types`
  MODIFY `patientTypeId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `udut_payments`
--
ALTER TABLE `udut_payments`
  MODIFY `paymentId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;
--
-- AUTO_INCREMENT for table `udut_payments_status`
--
ALTER TABLE `udut_payments_status`
  MODIFY `paymentStatusId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `udut_payments_types`
--
ALTER TABLE `udut_payments_types`
  MODIFY `paymentTypeId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `udut_reports`
--
ALTER TABLE `udut_reports`
  MODIFY `reportId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `udut_scan_types`
--
ALTER TABLE `udut_scan_types`
  MODIFY `typeId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `udut_services`
--
ALTER TABLE `udut_services`
  MODIFY `serviceId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `udut_users_privileges`
--
ALTER TABLE `udut_users_privileges`
  MODIFY `privilegeId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `udut_users_roles`
--
ALTER TABLE `udut_users_roles`
  MODIFY `roleId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;
--
-- AUTO_INCREMENT for table `udut_visits`
--
ALTER TABLE `udut_visits`
  MODIFY `visitId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;
--
-- AUTO_INCREMENT for table `udut_visits_status`
--
ALTER TABLE `udut_visits_status`
  MODIFY `visitStatusId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
