-
Notifications
You must be signed in to change notification settings - Fork 0
/
SDAM_CP.sql
182 lines (146 loc) · 5.13 KB
/
SDAM_CP.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
-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 28, 2024 at 08:37 PM
-- Server version: 10.4.32-MariaDB
-- PHP Version: 8.0.30
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: `hospitalmanagementsystem`
--
-- --------------------------------------------------------
--
-- Table structure for table `admin`
--
CREATE TABLE `admin` (
`first_name` varchar(30) NOT NULL,
`last_name` varchar(30) NOT NULL,
`email` varchar(30) NOT NULL,
`phone_no` bigint(20) NOT NULL,
`designation` varchar(30) NOT NULL,
`password` varchar(200) NOT NULL,
`salary` bigint(20) NOT NULL,
`address` varchar(30) NOT NULL,
`admin_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
--
-- Dumping data for table `admin`
--
INSERT INTO `admin` (`first_name`, `last_name`, `email`, `phone_no`, `designation`, `password`, `salary`, `address`, `admin_id`) VALUES
('John', 'Doe', '[email protected]', 1234567890, 'Administrator', '123', 50000, '123 Main st ', 1),
('Tanmayee', 'Suryawanshi', '[email protected]', 1234567890, 'Administrator', '$2b$10$Zo6BoPYZOA3MqrBMOcQC7ez4gsx3eQBv1lVe8tlIGVfEm7LyWDROC', 40000, 'Hadpasar,Pune', 2);
-- --------------------------------------------------------
--
-- Table structure for table `assign_doctor`
--
CREATE TABLE `assign_doctor` (
`patient_id` int(11) NOT NULL,
`doctor_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
--
-- Dumping data for table `assign_doctor`
--
INSERT INTO `assign_doctor` (`patient_id`, `doctor_id`) VALUES
(0, 0);
-- --------------------------------------------------------
--
-- Table structure for table `doctors`
--
CREATE TABLE `doctors` (
`first_name` varchar(30) NOT NULL,
`last_name` varchar(30) NOT NULL,
`address` varchar(30) NOT NULL,
`email` varchar(30) NOT NULL,
`salary` bigint(20) NOT NULL,
`specialisation` varchar(30) NOT NULL,
`shift_time` varchar(30) NOT NULL,
`password` varchar(400) NOT NULL,
`doctor_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
--
-- Dumping data for table `doctors`
--
INSERT INTO `doctors` (`first_name`, `last_name`, `address`, `email`, `salary`, `specialisation`, `shift_time`, `password`, `doctor_id`) VALUES
('Yash', 'Sonawane', 'Ved Colony , Kotamgaon Road , ', '[email protected]', 50000, 'Cardiologist', '10:00 - 02:00', '$2b$10$9zeLQK31ahifXhtv1jpLqu8aVo4/UH6RY4ZPe4x.K5CW7ioBk7eUa', 0);
-- --------------------------------------------------------
--
-- Table structure for table `patient`
--
CREATE TABLE `patient` (
`first_name` varchar(30) NOT NULL,
`last_name` varchar(30) NOT NULL,
`address` varchar(30) NOT NULL,
`email` varchar(30) NOT NULL,
`phone_no` bigint(20) NOT NULL,
`password` varchar(200) NOT NULL,
`disease` varchar(30) NOT NULL,
`patient_id` int(11) NOT NULL,
`medicine_cost` bigint(20) NOT NULL,
`misc_charge` bigint(20) NOT NULL,
`room_charge` bigint(20) NOT NULL,
`operation_charge` bigint(20) NOT NULL,
`prescription` varchar(100) DEFAULT 'Nothing Prescribed'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
--
-- Dumping data for table `patient`
--
INSERT INTO `patient` (`first_name`, `last_name`, `address`, `email`, `phone_no`, `password`, `disease`, `patient_id`, `medicine_cost`, `misc_charge`, `room_charge`, `operation_charge`, `prescription`) VALUES
('Aditya', 'Suryawanshi', 'Near darak hospital,latur', '[email protected]', 8421693107, '$2b$10$4Aipxkw5NK.Rl8p45Oby7.7ZcgWjZ4hvoekcjiKk.vp7exYLo/vBa', 'High Blood Pressure', 0, 0, 0, 0, 0, 'null');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`firstname` varchar(30) NOT NULL,
`lastname` varchar(30) NOT NULL,
`email` varchar(30) NOT NULL,
`password` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `admin`
--
ALTER TABLE `admin`
ADD PRIMARY KEY (`admin_id`);
--
-- Indexes for table `doctors`
--
ALTER TABLE `doctors`
ADD PRIMARY KEY (`doctor_id`);
--
-- Indexes for table `patient`
--
ALTER TABLE `patient`
ADD PRIMARY KEY (`patient_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `admin`
--
ALTER TABLE `admin`
MODIFY `admin_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `doctors`
--
ALTER TABLE `doctors`
MODIFY `doctor_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `patient`
--
ALTER TABLE `patient`
MODIFY `patient_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
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 */;