-- phpMyAdmin SQL Dump
-- version 4.8.4
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Mar 15, 2019 at 04:28 AM
-- Server version: 10.1.37-MariaDB
-- PHP Version: 7.3.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: `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 CT-PPP', '%', 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', 0, '2019-02-28 14:38:08', '0000-00-00 00:00:00'),
(18, 'Hospital Percentage', '30', '%', 0, '2019-02-28 14:38:08', '0000-00-00 00:00:00'),
(19, 'Maintenance Fee', '5', '%', 0, '2019-02-28 14:38:08', '0000-00-00 00:00:00'),
(20, 'Foresight Percentage', '65', '%', 0, '2019-02-28 14:38:08', '0000-00-00 00:00:00'),
(21, 'Running Cost', '300000', 'Fixed', 1, '2019-03-11 04:19:27', '0000-00-00 00:00:00'),
(22, 'Maintenance Fees', '5', 'Fixed%', 1, '2019-03-11 04:19:27', '0000-00-00 00:00:00'),
(23, 'Management Fees', '5', '2 %', 1, '2019-03-11 04:19:27', '0000-00-00 00:00:00'),
(24, 'uduth', '20', '1 %', 1, '2019-03-11 04:19:27', '0000-00-00 00:00:00'),
(25, 'CMD', '2.5', '1 %', 1, '2019-03-11 04:19:27', '0000-00-00 00:00:00'),
(26, 'Director Admin', '2.5', '1 %', 1, '2019-03-11 04:19:27', '0000-00-00 00:00:00'),
(27, 'Radiology Department', '2.5', '1 %', 1, '2019-03-11 04:19:27', '0000-00-00 00:00:00'),
(28, 'Foresight', '70', '3 %', 1, '2019-03-11 04:19:27', '0000-00-00 00:00:00'),
(29, 'Khalifa', '30', '3 %', 1, '2019-03-11 04:19:27', '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),
(4, 'UDUTH11/19/0004', 'Abdurrahman Lawan Zailani', '2019-03-23', 'Male', 'Zaria', '08135067070', 'smenuwa@yahoo.com', 'Mohd Inuwa', NULL, NULL, 1, '', 11, '2019-03-03 22:01:48', '0000-00-00 00:00:00', 1),
(5, 'UDUTH24/19/0005', 'Sunusi Mohd Inuwa', '2019-03-17', 'Male', 'Zaria', '08135067070', 'sminuwa@yahoo.com', 'Mohd Inuwa', NULL, NULL, 1, 'UDUTH/P/190', 24, '2019-03-15 03:21:37', '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, ''),
(45, 4, ''),
(46, 5, '');

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

--
-- 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),
(15, 4, 1, 1, 1, 11, '2019-03-03 22:01:48', 15, 0),
(16, 5, 1, 1, 1, 24, '2019-03-15 03:21:37', 16, 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,
  `reportSyncStatus` int(100) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

INSERT INTO `udut_reports` (`reportId`, `userId`, `reportName`, `reportDateAdded`, `reportSubject`, `reportSyncStatus`) 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', '', 1),
(7, 1, '<strong>Me: </strong>Hello', '2019-02-05 15:13:52', '', 1),
(8, 1, 'jjjjnjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj', '2019-02-06 15:18:53', '', 0),
(9, 1, 'There is network issues today so we cannot present to unline', '2019-03-03 20:40:33', 'Network issue', 0);

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

--
-- Table structure for table `udut_revenues`
--

CREATE TABLE `udut_revenues` (
  `revenueId` int(11) NOT NULL,
  `revenueDetails` text NOT NULL,
  `revenueDateAdded` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- 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`
--

CREATE TABLE `udut_users` (
  `userId` int(11) NOT NULL,
  `userUsername` varchar(100) NOT NULL,
  `userPassword` varchar(100) NOT NULL DEFAULT '123456',
  `userFullname` varchar(100) NOT NULL,
  `userDateOfBirth` varchar(100) DEFAULT NULL,
  `userGender` varchar(100) DEFAULT NULL,
  `userEmail` varchar(100) DEFAULT NULL,
  `userPhone` varchar(100) DEFAULT NULL,
  `userPicture` varchar(250) DEFAULT 'user.jpg',
  `userAccountName` varchar(100) DEFAULT NULL,
  `userAccountNumber` varchar(100) DEFAULT NULL,
  `userAccountType` varchar(100) DEFAULT NULL,
  `userDateAdded` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `userDateModified` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `udut_users`
--

INSERT INTO `udut_users` (`userId`, `userUsername`, `userPassword`, `userFullname`, `userDateOfBirth`, `userGender`, `userEmail`, `userPhone`, `userPicture`, `userAccountName`, `userAccountNumber`, `userAccountType`, `userDateAdded`, `userDateModified`) VALUES
(3, 'uduth', '123456', 'UDUTH', '2019-01-01', 'Male', '', '', 'user.jpg', '', '', '', '2019-01-01 14:12:31', '2019-01-01 15:12:31'),
(5, 'khalifa', '123456', 'Khalifa', '2019-01-01', 'Male', '', '', 'user.jpg', '', '', '', '2019-01-01 14:12:31', '2019-01-01 15:12:31'),
(14, 'foresight', '123456', 'foresight', '2019-01-01', 'Male', '', '', '', '', '', '', '2019-03-10 16:48:46', '0000-00-00 00:00:00'),
(23, 'user66', '123456', 'Nuraddeen Saidu', '2019-01-02', 'Male', '', '09031884003', '', '', '', '', '2019-03-10 17:44:28', '0000-00-00 00:00:00'),
(24, 'AB2019001', 'A123456', 'Abdulmalik Bashir', '2019-01-01', 'Male', '', '08035144100', '', '', '', '', '2019-03-12 18:54:34', ''),
(25, 'JW2019004', 'J123456', 'Jalaludeen Waziri', '2019-01-01', 'Male', '', '07032075048', '', '', '', '', '2019-03-12 18:57:51', ''),
(26, 'NS2019003', 'N123456', 'Nuraddeen Said', '2019-01-01', 'Male', '', '09031884003', '', '', '', '', '2019-03-12 18:59:20', ''),
(27, 'AI2019002', 'A123456', 'Anas Ishaq', '2019-01-01', 'Male', '', '07069612191', '', '', '', '', '2019-03-12 19:00:43', '');

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

--
-- 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'),
(10, 13, 0, 0, 0, 0, 0, 0, 0, '2019-03-03 11:03:55', '0000-00-00 00:00:00'),
(11, 14, 0, 0, 0, 0, 0, 0, 0, '2019-03-10 16:48:46', '0000-00-00 00:00:00'),
(20, 23, 0, 0, 0, 0, 0, 0, 0, '2019-03-10 17:44:28', '0000-00-00 00:00:00'),
(25, 24, 0, 0, 0, 0, 0, 0, 0, '2019-03-12 18:54:34', ''),
(26, 25, 0, 0, 0, 0, 0, 0, 0, '2019-03-12 18:57:51', ''),
(27, 26, 0, 0, 0, 0, 0, 0, 0, '2019-03-12 18:59:20', ''),
(28, 27, 0, 0, 0, 0, 0, 0, 0, '2019-03-12 19:00:43', '');

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

--
-- 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
(3, 3, 'admin', 'admin/', '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'),
(14, 14, 'admin', 'admin/', '2019-03-10 16:48:46', '0000-00-00 00:00:00'),
(23, 23, 'user', 'disabled', '2019-03-10 17:44:28', '0000-00-00 00:00:00'),
(24, 24, 'User', 'users/', '2019-03-12 18:54:34', ''),
(25, 25, 'User', 'users/', '2019-03-12 18:57:51', ''),
(26, 26, 'User', 'users/', '2019-03-12 18:59:20', ''),
(27, 27, 'User', 'users/', '2019-03-12 19:00:43', '');

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

--
-- 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),
(15, 15, '2019-03-03 22:01:48', 0, 4),
(16, 16, '2019-03-15 03:21:37', 0, 5);

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

--
-- 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_revenues`
--
ALTER TABLE `udut_revenues`
  ADD PRIMARY KEY (`revenueId`);

--
-- 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`
--
ALTER TABLE `udut_users`
  ADD PRIMARY KEY (`userId`);

--
-- 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=30;

--
-- 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=6;

--
-- AUTO_INCREMENT for table `udut_patients_referral_docs`
--
ALTER TABLE `udut_patients_referral_docs`
  MODIFY `referralDocId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=47;

--
-- 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=17;

--
-- 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_revenues`
--
ALTER TABLE `udut_revenues`
  MODIFY `revenueId` int(11) NOT NULL AUTO_INCREMENT;

--
-- 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`
--
ALTER TABLE `udut_users`
  MODIFY `userId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=28;

--
-- AUTO_INCREMENT for table `udut_users_privileges`
--
ALTER TABLE `udut_users_privileges`
  MODIFY `privilegeId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29;

--
-- AUTO_INCREMENT for table `udut_users_roles`
--
ALTER TABLE `udut_users_roles`
  MODIFY `roleId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=28;

--
-- AUTO_INCREMENT for table `udut_visits`
--
ALTER TABLE `udut_visits`
  MODIFY `visitId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;

--
-- AUTO_INCREMENT for table `udut_visits_status`
--
ALTER TABLE `udut_visits_status`
  MODIFY `visitStatusId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
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 */;
