-
Notifications
You must be signed in to change notification settings - Fork 1
/
vet_sql.sql
229 lines (184 loc) · 6.98 KB
/
vet_sql.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Dec 06, 2017 at 11:27 PM
-- Server version: 10.1.28-MariaDB
-- PHP Version: 7.1.10
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: `vet.sql`
--
-- --------------------------------------------------------
--
-- Table structure for table `client`
--
CREATE TABLE `client` (
`clientid` int(10) NOT NULL,
`name` varchar(25) NOT NULL,
`address` varchar(100) NOT NULL,
`phone` varchar(15) NOT NULL,
`email` varchar(40) NOT NULL,
`password` varchar(70) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `client`
--
INSERT INTO `client` (`clientid`, `name`, `address`, `phone`, `email`, `password`) VALUES
(1234505, 'huhuhuhu', '345 Hudsen Street', '451-562-8956', 'abckkd.lll@gmail.com', '536dfe066da9e2ff025bc952e15c9394'),
(1234506, 'abbbjkj', '245 Greety Dr', '154-562-8956', 'asas.lok@gmail.com', '536dfe066da9e2ff025bc952e15c9394'),
(1234507, 'Arnav K', '1516 simon street', '111-111-1111', 'arnav.k@gmail.com', '$2y$12$D8OBe7CeeE.eYrwsz1qBseHp5LlEjEHKRaBdXF8iG6qSghNSbausW'),
(1234509, '[removed]tap[removed]', '1516 simon street', '154-562-8956', 'yogi.sadu@gmail.com', '32d9a979e601ddcdfc2da6584ddad9ad');
-- --------------------------------------------------------
--
-- Table structure for table `contact`
--
CREATE TABLE `contact` (
`name` varchar(25) NOT NULL,
`email` varchar(25) NOT NULL,
`comments` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `contact`
--
INSERT INTO `contact` (`name`, `email`, `comments`) VALUES
('sarah powell', 'sarah.powell@gmail.com', 'what are your working hours?'),
('amy oliver', 'amy.oliver@gmail.com', 'How to cancel an appointment?'),
('priddy p', 'priddy.pp@gmail.com', 'How to contact hospital in case of emergency?'),
('jo ryan', 'jo.ryan@gmail.com', 'Is it okay if my dog eats peanuts?'),
('[removed]tap[removed]', 'aaaaaaaaaa.a@gmail.com', 'komfkf mklefla');
-- --------------------------------------------------------
--
-- Table structure for table `pet`
--
CREATE TABLE `pet` (
`petid` int(10) NOT NULL,
`petname` varchar(25) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `pet`
--
INSERT INTO `pet` (`petid`, `petname`) VALUES
(1, 'Dog'),
(2, 'Cat'),
(3, 'Pig'),
(4, 'Rabbit');
-- --------------------------------------------------------
--
-- Table structure for table `question`
--
CREATE TABLE `question` (
`questionid` int(10) NOT NULL,
`question` varchar(100) NOT NULL,
`answer` varchar(500) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `question`
--
INSERT INTO `question` (`questionid`, `question`, `answer`) VALUES
(1, 'What are the hours of operation?', 'The hospital is open to receive clients from 8 am to 5 pm M-F, and on Saturday from 8 a.m. to 1 p.m. for discharges only.Few services are available for Saturday appointments. Please call for more information.'),
(2, 'Is the Hospital open 24 hours a day for emergencies?', 'Yes,the Hospital is open for emergencies 24 hours a day. Afterhours calls are answered by an onsite emergency clinician or ICU technician. In addition, we provide 24/7 care to hospitalized patients.'),
(3, 'Do I need to do anything before my appointment?', 'If applicable, please have your pets veterinarian fax any/all records pertaining to the reason (diagnosis) for your appointment. We will also need a copy of your pets current vaccine records.'),
(4, 'How do I receive a copy of my pets medical record?', 'You may contact the Medical Records Department to request copies of your pets medical record.Medical Records staff will indicate the charges for processing photo copies and they will fax and/or mail a Release of Information consent form to you to be completed prior to processing your request.');
-- --------------------------------------------------------
--
-- Table structure for table `service`
--
CREATE TABLE `service` (
`serviceid` int(10) NOT NULL,
`servicename` varchar(25) NOT NULL,
`description` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `service`
--
INSERT INTO `service` (`serviceid`, `servicename`, `description`) VALUES
(1, 'Medical Service', 'We offer state-ot-the-art equipment and technology.'),
(2, 'Surgical Services', 'Full range of surgical procedures including orthopedics and emergency sugerries.'),
(3, 'Dental Care', 'A dental exam can determine whether your pet needs preventive dental care such as scaling and polishing.'),
(4, 'House Calls', 'The elderly,physcically challanged, and multiple pet households often find our in-home veterinary service helpful and convenient.'),
(5, 'Emergencies', 'At least one of our doctors is on call every day and night.');
-- --------------------------------------------------------
--
-- Table structure for table `subscription`
--
CREATE TABLE `subscription` (
`clientid` int(10) NOT NULL,
`serviceid` int(10) NOT NULL,
`petid` int(10) NOT NULL,
`date` varchar(15) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `subscription`
--
INSERT INTO `subscription` (`clientid`, `serviceid`, `petid`, `date`) VALUES
(1234481, 4, 3, '2017-11-20'),
(1234484, 3, 4, '2017-11-20'),
(1234483, 1, 3, '2017-11-20'),
(1234486, 2, 2, '2017-11-21'),
(1234484, 2, 3, '2017-11-22'),
(1234505, 5, 4, '2017-12-06'),
(1234505, 5, 4, '2017-12-06'),
(1234506, 3, 3, '2017-12-06'),
(1234492, 5, 4, '2017-12-06'),
(1234507, 2, 2, '2017-12-06'),
(1234508, 3, 3, '2017-12-06'),
(1234509, 3, 2, '2017-12-06');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `client`
--
ALTER TABLE `client`
ADD KEY `clientid` (`clientid`);
--
-- Indexes for table `pet`
--
ALTER TABLE `pet`
ADD PRIMARY KEY (`petid`);
--
-- Indexes for table `question`
--
ALTER TABLE `question`
ADD PRIMARY KEY (`questionid`);
--
-- Indexes for table `service`
--
ALTER TABLE `service`
ADD PRIMARY KEY (`serviceid`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `client`
--
ALTER TABLE `client`
MODIFY `clientid` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1234510;
--
-- AUTO_INCREMENT for table `pet`
--
ALTER TABLE `pet`
MODIFY `petid` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `question`
--
ALTER TABLE `question`
MODIFY `questionid` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `service`
--
ALTER TABLE `service`
MODIFY `serviceid` int(10) 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 */;