generated from RamiSJ12/RamiSJ12
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pharmacy.sql
435 lines (381 loc) · 16.8 KB
/
pharmacy.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
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Apr 03, 2018 at 09:09 PM
-- Server version: 10.1.16-MariaDB
-- PHP Version: 5.6.24
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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: `pharmacy`
--
-- --------------------------------------------------------
--
-- Table structure for table `company`
--
CREATE TABLE `company` (
`NAME` varchar(50) NOT NULL,
`ADDRESS` varchar(50) NOT NULL,
`PHONE` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `company`
--
INSERT INTO `company` (`NAME`, `ADDRESS`, `PHONE`) VALUES
('Cipla', 'Mumbai', '12903'),
('Sun Pharma', 'Mysore', '01289078443'),
('Med_City', 'Nellore', '010114367832');
-- --------------------------------------------------------
--
-- Table structure for table `drugs`
--
CREATE TABLE `drugs` (
`NAME` varchar(50) NOT NULL,
`TYPE` varchar(20) NOT NULL,
`BARCODE` varchar(20) NOT NULL,
`DOSE` varchar(10) NOT NULL,
`CODE` varchar(10) NOT NULL,
`COST_PRICE` double NOT NULL,
`SELLING_PRICE` double NOT NULL,
`EXPIRY` varchar(20) NOT NULL,
`COMPANY_NAME` varchar(50) NOT NULL,
`PRODUCTION_DATE` date NOT NULL,
`EXPIRATION_DATE` date NOT NULL,
`PLACE` varchar(20) NOT NULL,
`QUANTITY` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `drugs`
--
INSERT INTO `drugs` (`NAME`, `TYPE`, `BARCODE`, `DOSE`, `CODE`, `COST_PRICE`, `SELLING_PRICE`, `EXPIRY`, `COMPANY_NAME`, `PRODUCTION_DATE`, `EXPIRATION_DATE`, `PLACE`, `QUANTITY`) VALUES
('Novalo', 'Bills', 'fsdgjfihjorodsf', 'normal', '3d00', 2, 3, 'Available for use', 'Med_City', '2017-03-03', '2019-03-03', 'N-Right', 40),
('novafol', 'Bills', 'ftrkl432432md', 'normal', '2xaa', 33, 40, 'Available for use', 'Med_City', '2016-01-01', '2017-01-01', 'N-Left', 27);
-- --------------------------------------------------------
--
-- Table structure for table `expiry`
--
CREATE TABLE `expiry` (
`PRODUCT_NAME` varchar(50) NOT NULL,
`PRODUCT_CODE` varchar(20) NOT NULL,
`DATE_OF_EXPIRY` varchar(10) NOT NULL,
`QUANTITY_REMAIN` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `history_sales`
--
CREATE TABLE `history_sales` (
`USER_NAME` varchar(20) NOT NULL,
`BARCODE` varchar(20) NOT NULL,
`NAME` varchar(50) NOT NULL,
`TYPE` varchar(10) NOT NULL,
`DOSE` varchar(10) NOT NULL,
`QUANTITY` int(11) NOT NULL,
`PRICE` double NOT NULL,
`AMOUNT` double NOT NULL,
`DATE` varchar(15) NOT NULL,
`TIME` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `history_sales`
--
INSERT INTO `history_sales` (`USER_NAME`, `BARCODE`, `NAME`, `TYPE`, `DOSE`, `QUANTITY`, `PRICE`, `AMOUNT`, `DATE`, `TIME`) VALUES
('Syed Ibrahim', 'sgnfsjkfnsdjfkb', 'Breofin', 'Bills', ' Free used', 2, 6, 12, '12-02-2017', '05:02:06'),
('Syed Ibrahim', 'sgnfsjkfnsdjfkb', 'Breofin', 'Bills', ' Free used', 2, 6, 12, '12-02-2017', '05:02:26'),
('Syed Ibrahim', 'sgnfsjkfnsdjfkb', 'Breofin', 'Bills', ' Free used', 4, 6, 24, '12-02-2017', '05:02:40'),
('Syed Ibrahim', 'nbhdl4978549', 'Morfin', 'Injection', '1 (Day)', 2, 14, 28, '13-02-2017', '01:38:00'),
('Syed Ibrahim', 'nbhdl4978549', 'Morfin', 'Injection', '1 (Day)', 2, 14, 28, '13-02-2017', '01:38:10'),
('Syed Ibrahim', 'nbhdl4978549', 'Morfin', 'Injection', '1 (Day)', 7, 14, 98, '13-02-2017', '01:38:28'),
('Syed Ibrahim', 'nbhdl4978549', 'Morfin', 'Injection', '1 (Day)', 1, 14, 14, '13-02-2017', '01:38:46'),
('Surya', 'sgnfsjkfnsdjfkb', 'Breofin', 'Bills', ' Free used', 2, 6, 12, '13-02-2017', '01:59:34'),
('Surya', 'sgnfsjkfnsdjfkb', 'Breofin', 'Bills', ' Free used', 5, 6, 30, '13-02-2017', '01:59:43'),
('Syed Ibrahim', 'sgnfsjkfnsdjfkb', 'Breofin', 'Bills', ' Free used', 1, 6, 6, '13-02-2017', '02:12:33'),
('Syed Ibrahim', 'fsdjkbdfjkffds', 'Declofien', 'Injection', 'Free', 2, 14, 28, '17-02-2017', '09:55:43'),
('Syed Ibrahim', 'fsdjkbdfjkffds', 'Declofien', 'Injection', 'Free', 2, 14, 28, '17-02-2017', '09:55:58'),
('Syed Ibrahim', 'fsdjkbdfjkffds', 'Declofien', 'Injection', 'Free', 5, 14, 70, '17-02-2017', '09:56:11'),
('Syed Ibrahim', 'fsdjkbdfjkffds', 'Declofien', 'Injection', 'Free', 2, 17, 34, '17-02-2017', '10:04:58'),
('Syed Ibrahim', 'fsdjkbdfjkffds', 'Declofien', 'Injection', 'Free', 2, 17, 34, '17-02-2017', '10:05:15'),
('Syed Ibrahim', 'fsdjkbdfjkffds', 'Declofien', 'Injection', 'Free', 5, 17, 85, '17-02-2017', '10:05:26'),
('Syed Ibrahim', 'fsdjkbdfjkffds', 'Declofien', 'Injection', 'Free', 4, 20, 80, '18-02-2017', '11:16:08'),
('Syed Ibrahim', 'fsdjkbdfjkffds', 'Declofien', 'Injection', 'Free', 4, 20, 80, '18-02-2017', '11:16:28'),
('Syed Ibrahim', 'AnyBarcodedaf', 'AnyName', 'Drink', '2 Days', 4, 14, 56, '18-02-2017', '11:17:06'),
('Syed Ibrahim', 'AnyBarcodedaf', 'AnyName', 'Drink', '2 Days', 4, 14, 56, '18-02-2017', '11:17:15'),
('Syed Ibrahim', 'AnyBarcodedaf', 'AnyName', 'Drink', '2 Days', 7, 14, 98, '18-02-2017', '11:17:24'),
('Surya', 'AnyBarcodedaf', 'AnyName', 'Drink', '2 Days', 6, 14, 84, '18-02-2017', '11:18:29'),
('Surya', 'AnyBarcodedaf', 'AnyName', 'Drink', '2 Days', 2, 14, 28, '18-02-2017', '11:18:41'),
('Surya', 'AnyBarcodedaf', 'AnyName', 'Drink', '2 Days', 2, 14, 28, '18-02-2017', '11:18:45'),
('Syed Ibrahim', 'ftrkl432432md', 'novafol', 'Bills', 'normal', 2, 40, 80, '14-04-2017', '04:50:32'),
('Syed Ibrahim', 'ftrkl432432md', 'novafol', 'Bills', 'normal', 2, 40, 80, '14-04-2017', '04:50:53'),
('Syed Ibrahim', 'ftrkl432432md', 'novafol', 'Bills', 'normal', 6, 40, 240, '14-04-2017', '04:51:01'),
('Syed Ibrahim', 'ftrkl432432md', 'novafol', 'Bills', 'normal', 1, 40, 40, '03-05-2017', '03:33:30'),
('Syed Ibrahim', 'ftrkl432432md', 'novafol', 'Bills', 'normal', 1, 40, 40, '03-05-2017', '03:33:36'),
('Syed Ibrahim', 'ftrkl432432md', 'novafol', 'Bills', 'normal', 1, 40, 40, '03-05-2017', '03:33:41');
-- --------------------------------------------------------
--
-- Table structure for table `inbox`
--
CREATE TABLE `inbox` (
`MESSAGE_FROM` varchar(20) NOT NULL,
`MESSAGE_TO` varchar(20) NOT NULL,
`MESSAGE_TEXT` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `inbox`
--
INSERT INTO `inbox` (`MESSAGE_FROM`, `MESSAGE_TO`, `MESSAGE_TEXT`) VALUES
('Syed Ibrahim', 'Surya', 'Welcome surya'),
('Surya', 'Syed Ibrahim', 'Welcome sir'),
('Syed Ibrahim', 'Surya', 'Hay , Surya '),
('Surya', 'Syed Ibrahim', 'Hay '),
('Surya', 'Syed Ibrahim', 'Welcome'),
('Syed Ibrahim', 'Surya', 'Hello , surya'),
('Syed Ibrahim', 'Surya', 'surya , Please go and update\nthe drug roof '),
('Syed Ibrahim', 'Tony', 'Welcome'),
('Syed Ibrahim', 'Surya', 'This is your salary on the disk , \n3000 , close in 12 ; good luck'),
('Syed Ibrahim', 'Surya', 'good job meet me in five'),
('Surya', 'Syed Ibrahim', 'Ok i will '),
('Syed Ibrahim', 'Surya', 'gdfgfdgfdgfdg'),
('Syed Ibrahim', 'Surya', 'haaaaaaaaaaaaaaaai'),
('Syed Ibrahim', 'Surya', 'What is wrong ? '),
('Surya', 'Syed Ibrahim', 'I am okay thanks ');
-- --------------------------------------------------------
--
-- Table structure for table `login`
--
CREATE TABLE `login` (
`NAME` varchar(50) NOT NULL,
`TYPE` varchar(20) NOT NULL,
`DATE` varchar(20) NOT NULL,
`TIME` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `login`
--
INSERT INTO `login` (`NAME`, `TYPE`, `DATE`, `TIME`) VALUES
('Syed Ibrahim', 'Admin', '17-02-2017', '10:30:24'),
('Syed Ibrahim', 'Admin', '17-02-2017', '10:32:48'),
('Surya', 'Employee', '17-02-2017', '10:32:56'),
('Syed Ibrahim', 'Admin', '17-02-2017', '10:33:10'),
('Surya', 'Employee', '17-02-2017', '10:33:37'),
('Syed Ibrahim', 'Admin', '17-02-2017', '10:36:21'),
('Syed Ibrahim', 'Admin', '17-02-2017', '10:36:53'),
('Syed Ibrahim', 'Admin', '17-02-2017', '10:49:27'),
('Syed Ibrahim', 'Admin', '17-02-2017', '11:02:23'),
('Syed Ibrahim', 'Admin', '17-02-2017', '01:40:08'),
('Syed Ibrahim', 'Admin', '18-02-2017', '10:50:29'),
('Syed Ibrahim', 'Admin', '18-02-2017', '10:51:50'),
('Syed Ibrahim', 'Admin', '18-02-2017', '10:53:33'),
('Syed Ibrahim', 'Admin', '18-02-2017', '10:58:41'),
('Syed Ibrahim', 'Admin', '18-02-2017', '11:15:39'),
('Surya', 'Employee', '18-02-2017', '11:18:19'),
('Syed Ibrahim', 'Admin', '18-02-2017', '11:23:25'),
('Surya', 'Employee', '18-02-2017', '11:24:19'),
('Syed Ibrahim', 'Admin', '04-04-2017', '06:32:57'),
('Surya', 'Employee', '04-04-2017', '06:39:00'),
('Syed Ibrahim', 'Admin', '13-04-2017', '02:57:26'),
('Syed Ibrahim', 'Admin', '13-04-2017', '03:06:11'),
('Syed Ibrahim', 'Admin', '13-04-2017', '03:08:31'),
('Syed Ibrahim', 'Admin', '13-04-2017', '03:09:40'),
('Syed Ibrahim', 'Admin', '13-04-2017', '03:13:24'),
('Syed Ibrahim', 'Admin', '13-04-2017', '05:04:26'),
('Syed Ibrahim', 'Admin', '13-04-2017', '05:07:20'),
('Syed Ibrahim', 'Admin', '13-04-2017', '05:10:11'),
('Syed Ibrahim', 'Admin', '13-04-2017', '05:21:53'),
('Syed Ibrahim', 'Admin', '14-04-2017', '05:11:57'),
('Syed Ibrahim', 'Admin', '14-04-2017', '05:13:44'),
('Syed Ibrahim', 'Admin', '14-04-2017', '05:17:42'),
('Syed Ibrahim', 'Admin', '14-04-2017', '05:19:38'),
('Syed Ibrahim', 'Admin', '14-04-2017', '05:22:00'),
('Syed Ibrahim', 'Admin', '14-04-2017', '05:28:37'),
('Syed Ibrahim', 'Admin', '14-04-2017', '05:30:48'),
('Syed Ibrahim', 'Admin', '14-04-2017', '05:35:00'),
('Syed Ibrahim', 'Admin', '14-04-2017', '05:39:54'),
('Syed Ibrahim', 'Admin', '14-04-2017', '05:41:53'),
('Syed Ibrahim', 'Admin', '14-04-2017', '05:44:29'),
('Syed Ibrahim', 'Admin', '14-04-2017', '05:47:08'),
('Syed Ibrahim', 'Admin', '14-04-2017', '05:48:24'),
('Syed Ibrahim', 'Admin', '14-04-2017', '05:49:36'),
('Syed Ibrahim', 'Admin', '14-04-2017', '05:51:28'),
('Syed Ibrahim', 'Admin', '14-04-2017', '05:53:15'),
('Syed Ibrahim', 'Admin', '14-04-2017', '06:22:53'),
('Syed Ibrahim', 'Admin', '14-04-2017', '06:30:59'),
('Syed Ibrahim', 'Admin', '14-04-2017', '02:32:24'),
('Syed Ibrahim', 'Admin', '14-04-2017', '02:40:18'),
('Syed Ibrahim', 'Admin', '14-04-2017', '02:43:43'),
('Syed Ibrahim', 'Admin', '14-04-2017', '02:46:41'),
('Syed Ibrahim', 'Admin', '14-04-2017', '02:48:26'),
('Syed Ibrahim', 'Admin', '14-04-2017', '02:49:19'),
('Surya', 'Employee', '14-04-2017', '02:52:01'),
('Syed Ibrahim', 'Admin', '14-04-2017', '02:58:36'),
('Syed Ibrahim', 'Admin', '14-04-2017', '03:14:22'),
('Syed Ibrahim', 'Admin', '14-04-2017', '03:17:23'),
('Syed Ibrahim', 'Admin', '14-04-2017', '03:19:28'),
('Syed Ibrahim', 'Admin', '14-04-2017', '03:27:34'),
('Syed Ibrahim', 'Admin', '14-04-2017', '04:49:24'),
('Surya', 'Employee', '14-04-2017', '04:55:06'),
('Surya', 'Employee', '14-04-2017', '05:01:50'),
('Surya', 'Employee', '14-04-2017', '05:03:59'),
('Surya', 'Employee', '14-04-2017', '05:14:50'),
('Surya', 'Employee', '14-04-2017', '05:17:01'),
('Surya', 'Employee', '14-04-2017', '05:17:50'),
('Surya', 'Employee', '14-04-2017', '05:21:19'),
('Surya', 'Employee', '14-04-2017', '05:23:30'),
('Surya', 'Employee', '14-04-2017', '05:26:03'),
('Surya', 'Employee', '14-04-2017', '05:28:53'),
('Surya', 'Employee', '14-04-2017', '05:32:36'),
('Surya', 'Employee', '14-04-2017', '05:35:04'),
('Surya', 'Employee', '14-04-2017', '05:37:17'),
('Syed Ibrahim', 'Admin', '14-04-2017', '07:19:33'),
('Surya', 'Employee', '15-04-2017', '02:03:12'),
('Syed Ibrahim', 'Admin', '15-04-2017', '02:47:28'),
('Syed Ibrahim', 'Admin', '15-04-2017', '02:56:16'),
('Syed Ibrahim', 'Admin', '15-04-2017', '03:06:20'),
('Syed Ibrahim', 'Admin', '15-04-2017', '03:36:58'),
('Syed Ibrahim', 'Admin', '15-04-2017', '03:42:44'),
('Syed Ibrahim', 'Admin', '03-05-2017', '01:23:14'),
('Syed Ibrahim', 'Admin', '03-05-2017', '01:51:20'),
('Syed Ibrahim', 'Admin', '03-05-2017', '01:52:35'),
('Syed Ibrahim', 'Admin', '03-05-2017', '03:31:40'),
('Syed Ibrahim', 'Admin', '03-05-2017', '03:47:32'),
('Syed Ibrahim', 'Admin', '05-05-2017', '01:24:00'),
('Syed Ibrahim', 'Admin', '05-05-2017', '03:06:19'),
('Syed Ibrahim', 'Admin', '05-05-2017', '07:54:02'),
('Surya', 'Employee', '05-05-2017', '07:55:52'),
('Syed Ibrahim', 'Admin', '05-05-2017', '08:01:50'),
('Syed Ibrahim', 'Admin', '05-05-2017', '08:02:44'),
('Syed Ibrahim', 'Admin', '05-05-2017', '08:05:37'),
('Syed Ibrahim', 'Admin', '05-05-2017', '08:07:37'),
('Surya', 'Employee', '05-05-2017', '08:09:23'),
('Syed Ibrahim', 'Admin', '05-05-2017', '08:14:18'),
('Surya', 'Employee', '05-05-2017', '08:15:44'),
('Syed Ibrahim', 'Admin', '05-05-2017', '08:16:15'),
('Syed Ibrahim', 'Admin', '06-05-2017', '09:51:33'),
('Surya', 'Employee', '06-05-2017', '09:52:46'),
('Surya', 'Employee', '06-05-2017', '09:54:33'),
('Syed Ibrahim', 'Admin', '07-05-2017', '04:44:39'),
('Syed Ibrahim', 'Admin', '07-05-2017', '10:02:15'),
('Syed Ibrahim', 'Admin', '07-05-2017', '10:12:11'),
('Syed Ibrahim', 'Admin', '27-05-2017', '03:53:36'),
('Syed Ibrahim', 'Admin', '27-05-2017', '03:54:05'),
('Syed Ibrahim', 'Admin', '27-05-2017', '04:05:04'),
('Surya', 'Employee', '27-05-2017', '04:06:02'),
('Syed Ibrahim', 'Admin', '30-05-2017', '03:13:41'),
('Syed Ibrahim', 'Admin', '31-05-2017', '10:57:35'),
('Syed Ibrahim', 'Admin', '31-05-2017', '11:00:02'),
('Syed Ibrahim', 'Admin', '31-05-2017', '11:06:32'),
('Syed Ibrahim', 'Admin', '07-06-2017', '08:38:00'),
('Syed Ibrahim', 'Admin', '07-06-2017', '08:40:43'),
('Syed Ibrahim', 'Admin', '07-06-2017', '08:41:28'),
('Surya', 'Employee', '19-09-2017', '06:10:07'),
('Syed Ibrahim', 'Admin', '07-10-2017', '04:39:50'),
('Syed Ibrahim', 'Admin', '07-10-2017', '04:40:39'),
('Syed Ibrahim', 'Admin', '21-11-2017', '09:06:10'),
('Syed Ibrahim', 'Admin', '21-11-2017', '09:15:39'),
('Surya', 'Employee', '14-12-2017', '02:56:45'),
('Syed Ibrahim', 'Admin', '24-03-2018', '07:20:36'),
('Syed Ibrahim', 'Admin', '24-03-2018', '08:47:14'),
('Syed Ibrahim', 'Admin', '24-03-2018', '08:51:01'),
('Surya', 'Employee', '24-03-2018', '08:52:17'),
('Syed Ibrahim', 'Admin', '24-03-2018', '08:52:50');
-- --------------------------------------------------------
--
-- Table structure for table `message_history`
--
CREATE TABLE `message_history` (
`MESSAGE_FROM` varchar(20) NOT NULL,
`MESSAGE_TO` varchar(20) NOT NULL,
`MESSAGE_TEXT` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `purchase`
--
CREATE TABLE `purchase` (
`BARCODE` varchar(20) NOT NULL,
`NAME` varchar(50) NOT NULL,
`TYPE` varchar(20) NOT NULL,
`COMPANY_NAME` varchar(20) NOT NULL,
`QUANTITY` int(11) NOT NULL,
`PRICE` double NOT NULL,
`AMOUNT` double NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `purchase`
--
INSERT INTO `purchase` (`BARCODE`, `NAME`, `TYPE`, `COMPANY_NAME`, `QUANTITY`, `PRICE`, `AMOUNT`) VALUES
('fsdgjfihjorodsf', 'Novalo', 'Bills', 'Med_City', 40, 2, 80);
-- --------------------------------------------------------
--
-- Table structure for table `sales`
--
CREATE TABLE `sales` (
`BARCODE` varchar(20) NOT NULL,
`NAME` varchar(50) NOT NULL,
`TYPE` varchar(10) NOT NULL,
`DOSE` varchar(10) NOT NULL,
`QUANTITY` int(11) NOT NULL,
`PRICE` double NOT NULL,
`AMOUNT` double NOT NULL,
`DATE` varchar(15) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`ID` int(11) NOT NULL,
`NAME` varchar(50) NOT NULL,
`DOB` varchar(20) NOT NULL,
`ADDRESS` varchar(100) NOT NULL,
`PHONE` varchar(20) NOT NULL,
`SALARY` double NOT NULL,
`PASSWORD` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`ID`, `NAME`, `DOB`, `ADDRESS`, `PHONE`, `SALARY`, `PASSWORD`) VALUES
(1, 'Syed Ibrahim', '23-12-1995', 'Kanakapura Ramanagaram', '9880755666', 50000, 'ibrahim'),
(2, 'Surya', '3-2-1972', 'Bangalore India', '01290789432', 2000, 'surya'),
(3, 'Suleman', '3-2-1971', 'Nowhere Earth-616', '01147893423', 4000, 'rootaccess'),
(4, 'Tont Stark', '7-8-1977', ' 10880 Malibu Point, Malibu, California', '011804368743', 3000, 'rootaccess');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `company`
--
ALTER TABLE `company`
ADD PRIMARY KEY (`NAME`);
--
-- Indexes for table `drugs`
--
ALTER TABLE `drugs`
ADD PRIMARY KEY (`BARCODE`);
--
-- Indexes for table `purchase`
--
ALTER TABLE `purchase`
ADD PRIMARY KEY (`BARCODE`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`ID`);
--
-- Indexes for table `purchase`
--
ALTER TABLE purchase
add constraint fkr3
foreign key(company_name)
references company(name)
on update cascade on delete cascade;
/*!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 */;