Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
theunknownsky committed Jul 21, 2023
1 parent 16bc1ec commit f6b24a2
Showing 1 changed file with 95 additions and 2 deletions.
97 changes: 95 additions & 2 deletions SQL_Database_edoc.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jul 17, 2023 at 02:52 PM
-- Generation Time: Jul 21, 2023 at 11:26 AM
-- Server version: 10.4.28-MariaDB
-- PHP Version: 8.2.4

Expand Down Expand Up @@ -67,6 +67,28 @@ INSERT INTO `appointment` (`appoid`, `pid`, `apponum`, `scheduleid`, `appodate`)

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

--
-- Table structure for table `breed`
--

CREATE TABLE `breed` (
`breedId` int(11) NOT NULL,
`speId` int(11) NOT NULL,
`name` varchar(64) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `breed`
--

INSERT INTO `breed` (`breedId`, `speId`, `name`) VALUES
(1, 1, 'Husky'),
(2, 1, 'Jack Russel Terrier'),
(3, 2, 'Orenj'),
(4, 2, 'Pusakal');

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

--
-- Table structure for table `customer`
--
Expand Down Expand Up @@ -192,7 +214,7 @@ CREATE TABLE `patient` (
`status` varchar(10) NOT NULL DEFAULT 'Active',
`createdOn` timestamp NOT NULL DEFAULT current_timestamp(),
`password` varchar(72) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `patient`
Expand All @@ -209,6 +231,21 @@ INSERT INTO `patient` (`pid`, `pemail`, `pname`, `ppassword`, `paddress`, `pnic`

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

--
-- Table structure for table `pet`
--

CREATE TABLE `pet` (
`petId` int(11) NOT NULL,
`pid` int(11) NOT NULL,
`name` varchar(32) NOT NULL,
`birthday` date NOT NULL,
`speId` int(11) NOT NULL,
`breedId` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Table structure for table `purchase`
--
Expand Down Expand Up @@ -393,6 +430,26 @@ INSERT INTO `specialties` (`id`, `sname`) VALUES

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

--
-- Table structure for table `species`
--

CREATE TABLE `species` (
`speId` int(11) NOT NULL,
`name` varchar(64) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `species`
--

INSERT INTO `species` (`speId`, `name`) VALUES
(22, 'Dog'),
(23, 'Cat'),
(26, 'Horse');

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

--
-- Table structure for table `user`
--
Expand Down Expand Up @@ -489,6 +546,12 @@ ALTER TABLE `appointment`
ADD KEY `pid` (`pid`),
ADD KEY `scheduleid` (`scheduleid`);

--
-- Indexes for table `breed`
--
ALTER TABLE `breed`
ADD PRIMARY KEY (`breedId`);

--
-- Indexes for table `customer`
--
Expand All @@ -514,6 +577,12 @@ ALTER TABLE `item`
ALTER TABLE `patient`
ADD PRIMARY KEY (`pid`);

--
-- Indexes for table `pet`
--
ALTER TABLE `pet`
ADD PRIMARY KEY (`petId`);

--
-- Indexes for table `purchase`
--
Expand All @@ -539,6 +608,12 @@ ALTER TABLE `schedule`
ALTER TABLE `specialties`
ADD PRIMARY KEY (`id`);

--
-- Indexes for table `species`
--
ALTER TABLE `species`
ADD PRIMARY KEY (`speId`);

--
-- Indexes for table `user`
--
Expand Down Expand Up @@ -567,6 +642,12 @@ ALTER TABLE `webuser`
ALTER TABLE `appointment`
MODIFY `appoid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

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

--
-- AUTO_INCREMENT for table `customer`
--
Expand All @@ -591,6 +672,12 @@ ALTER TABLE `item`
ALTER TABLE `patient`
MODIFY `pid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;

--
-- AUTO_INCREMENT for table `pet`
--
ALTER TABLE `pet`
MODIFY `petId` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `purchase`
--
Expand All @@ -609,6 +696,12 @@ ALTER TABLE `sale`
ALTER TABLE `schedule`
MODIFY `scheduleid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `species`
--
ALTER TABLE `species`
MODIFY `speId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=27;

--
-- AUTO_INCREMENT for table `user`
--
Expand Down

0 comments on commit f6b24a2

Please sign in to comment.