-- phpMyAdmin SQL Dump
-- version 4.8.4
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Feb 27, 2019 at 07:58 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,
  `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`, `configStatus`, `configDateAdded`, `configDateModified`) VALUES
(1, 'siteName', 'UDUTH PPP Partners Project', 1, '2019-01-01 17:59:25', '2019-01-01 17:59:25'),
(2, 'siteLogo', 'logo-dark.png', 1, '2019-01-01 17:59:25', '2019-01-01 17:59:25'),
(3, 'runningCost', '300000', 1, '2019-01-01 18:01:15', '2019-01-01 18:01:15'),
(4, 'hosAccPer', '30', 1, '2019-01-01 18:10:45', '2019-01-01 18:10:45'),
(5, 'manAccPer', '5', 1, '2019-01-01 18:10:45', '2019-01-01 18:10:45'),
(6, 'hosHosAccPer', '15', 1, '2019-01-01 18:13:32', '2019-01-01 18:13:32'),
(7, 'hosAdmFee', '5', 1, '2019-01-01 18:13:32', '2019-01-01 18:13:32'),
(8, 'hosCMD', '5', 1, '2019-01-01 18:14:09', '2019-01-01 18:14:09'),
(9, 'hosDrAdm', '2.5', 1, '2019-01-01 18:14:09', '2019-01-01 18:14:09'),
(10, 'hosRadDep', '2.5', 1, '2019-01-01 18:14:36', '2019-01-01 18:14:36'),
(11, 'foresightPer', '70', 1, '2019-01-01 18:16:55', '2019-01-01 18:16:55'),
(12, 'kalifaPer', '30', 1, '2019-01-01 18:16:55', '2019-01-01 18:16:55'),
(13, 'patternPatientUId', 'UDUTH', 1, '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', 1, '2019-01-28 20:29:38', '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;

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

--
-- 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, '');

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

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

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

--
-- 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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

INSERT INTO `udut_reports` (`reportId`, `userId`, `reportName`, `reportDateAdded`) 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');

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

--
-- 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', '0', '1', '2018-12-29 13:16:52'),
(3, 'Minor', '0', '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` date 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` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) 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
(1, 'user1', 'asf2wasf234132ada', 'user1', '2019-01-01', 'Male', 'user1@user1.com', '07032075048', 'user.jpg', '', '', '', '2019-01-01 14:12:31', '2019-01-01 14:12:31');

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

--
-- 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,
  `updateUser` int(11) NOT NULL,
  `deleteUser` int(11) NOT NULL,
  `hospitalAccountPercentage` int(11) NOT NULL,
  `managementAccountPercentage` int(11) NOT NULL,
  `foresightAccountPercentage` int(11) NOT NULL,
  `kalifaAccountPercentage` int(11) NOT NULL,
  `privilegeDateAdded` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `privilegeDateModified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) 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, 0, 0, 0, 0, 0, 0, 0, 0, '2019-01-23 00:57:02', '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,
  `roleLocation` varchar(100) NOT NULL,
  `roleDateAdded` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `roleDateModified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `roleName` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

INSERT INTO `udut_users_roles` (`roleId`, `userId`, `roleLocation`, `roleDateAdded`, `roleDateModified`, `roleName`) VALUES
(1, 0, 'users/', '2019-01-02 12:36:03', '2019-01-02 12:36:03', 'user');

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

--
-- 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
(1, 1, '2019-02-22 12:32:52', 0, 1),
(2, 2, '2019-02-22 12:33:13', 0, 2),
(3, 3, '2019-02-22 17:17:25', 0, 1),
(4, 4, '2019-02-23 16:17:54', 0, 3),
(5, 1, '2019-02-27 05:30:05', 0, 1),
(6, 2, '2019-02-27 05:33:04', 0, 1);

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

--
-- 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`
--
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=15;

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

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

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

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

--
-- AUTO_INCREMENT for table `udut_scan_types`
--
ALTER TABLE `udut_scan_types`
  MODIFY `typeId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

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

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

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

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

--
-- 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 */;
