-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmedico.sql
156 lines (125 loc) · 5.41 KB
/
medico.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
-- phpMyAdmin SQL Dump
-- version 5.0.4
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: May 27, 2021 at 01:56 PM
-- Server version: 8.0.22
-- PHP Version: 8.0.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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: `medico`
--
-- --------------------------------------------------------
--
-- Table structure for table `consult`
--
CREATE TABLE `consult` (
`doctor_id` varchar(40) COLLATE utf8mb4_unicode_ci NOT NULL,
`patient_mail` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
`status` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'request not accepted',
`timing` varchar(40) COLLATE utf8mb4_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `consult`
--
INSERT INTO `consult` (`doctor_id`, `patient_mail`, `status`, `timing`) VALUES
('101', '[email protected]', 'Accepted', '2021-05-2915:55'),
('101', '[email protected]', 'Accepted', '2021-06-04 14:43'),
('101', '[email protected]', 'Accepted', '2021-06-04 15:50');
-- --------------------------------------------------------
--
-- Table structure for table `doctor`
--
CREATE TABLE `doctor` (
`id` varchar(40) COLLATE utf8mb4_unicode_ci NOT NULL,
`name` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL,
`dept` varchar(40) COLLATE utf8mb4_unicode_ci NOT NULL,
`image` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL,
`timing` varchar(60) COLLATE utf8mb4_unicode_ci NOT NULL,
`mail` varchar(40) COLLATE utf8mb4_unicode_ci NOT NULL,
`pwd` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`link` varchar(40) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `doctor`
--
INSERT INTO `doctor` (`id`, `name`, `dept`, `image`, `timing`, `mail`, `pwd`, `link`) VALUES
('101', 'Dr Charakara varthy', 'General', 'doctor1', 'Monday to Friday Timing 2:00 - 6.00 pm ', '[email protected]', 'chakra12', 'meet.google.com/njs-xhvy-yuw'),
('102', 'Dr Ramesh', 'Cardiologist', 'doctor2', 'Monday to Friday Timing 2:00 - 6.00 pm', '[email protected]', 'ramesh12', 'meet.google.com/aip-zvup-rok'),
('103', 'Dr Tarun', 'Neurologist', 'doctor3', 'Monday to Friday Timing 2:00 - 6.00 pm', '[email protected]', 'tarun12', 'meet.google.com/aip-zvup-rok'),
('104', 'Dr Hemant Kumar', 'ENT', 'doctor4', 'Monday to Friday Timing 2:00 - 6.00 pm', '[email protected]', 'hemanth12', 'meet.google.com/sov-ritm-ehp'),
('105', 'Dr Krishnan', 'Dermitologist', 'doctor5', 'Monday to Friday Timing 2:00 - 6.00 pm', '[email protected]', 'krishna12', 'meet.google.com/sov-ritm-ehp');
-- --------------------------------------------------------
--
-- Table structure for table `patient`
--
CREATE TABLE `patient` (
`name` varchar(40) COLLATE utf8mb4_unicode_ci NOT NULL,
`mail` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`pwd` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
`age` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT 'Not yet set',
`BMI` varchar(30) COLLATE utf8mb4_unicode_ci DEFAULT 'Not yet set',
`location` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'Not yet set',
`gender` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'Not yet set'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `patient`
--
INSERT INTO `patient` (`name`, `mail`, `pwd`, `age`, `BMI`, `location`, `gender`) VALUES
('Vikram c', '[email protected]', '123', '23', '100', 'Theni', 'Male'),
('BARATH', '[email protected]', '123', '23', '100', 'coimbatore', 'Male'),
('Dhanush', '[email protected]', 'dhanush', 'Not yet set', 'Not yet set', 'Not yet set', 'Not yet set');
-- --------------------------------------------------------
--
-- Table structure for table `queries`
--
CREATE TABLE `queries` (
`sno` int NOT NULL,
`question` varchar(500) COLLATE utf8mb4_unicode_ci NOT NULL,
`answer` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'Nil',
`status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'Nil'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `queries`
--
INSERT INTO `queries` (`sno`, `question`, `answer`, `status`) VALUES
(4, 'How to do firstaid for Snake bit', 'Wash the wound with water and tie with cloth', 'answered'),
(5, 'what to do as precaution when black fungus detected', 'Be clam and take anti fugus medicine and get first aid', 'answered'),
(6, 'how to do first aid for heat burns', 'Nil', 'Nil');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `doctor`
--
ALTER TABLE `doctor`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `patient`
--
ALTER TABLE `patient`
ADD PRIMARY KEY (`mail`);
--
-- Indexes for table `queries`
--
ALTER TABLE `queries`
ADD PRIMARY KEY (`sno`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `queries`
--
ALTER TABLE `queries`
MODIFY `sno` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
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 */;