-
Notifications
You must be signed in to change notification settings - Fork 3
/
sms.sql
160 lines (129 loc) · 4.39 KB
/
sms.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
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Mar 31, 2022 at 11:54 AM
-- Server version: 10.4.21-MariaDB
-- PHP Version: 8.0.12
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: `sms`
--
-- --------------------------------------------------------
--
-- Table structure for table `admin`
--
CREATE TABLE `admin` (
`admin_id` varchar(11) NOT NULL,
`name` text NOT NULL,
`email` varchar(50) NOT NULL,
`password` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `admin`
--
INSERT INTO `admin` (`admin_id`, `name`, `email`, `password`) VALUES
('Ad 1', 'Admin', 'admin@gmail.com', 'admin123');
-- --------------------------------------------------------
--
-- Table structure for table `results`
--
CREATE TABLE `results` (
`student_Id` text NOT NULL,
`name` text NOT NULL,
`bangla` int(3) NOT NULL,
`math` int(3) NOT NULL,
`science` int(3) NOT NULL,
`ict` int(3) NOT NULL,
`social_science` int(3) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `results`
--
INSERT INTO `results` (`student_Id`, `name`, `bangla`, `math`, `science`, `ict`, `social_science`) VALUES
('CSE 1001', 'Johirul islam', 85, 73, 67, 41, 55),
('CSE 1002', 'Abdul Islam', 70, 65, 85, 63, 57),
('cse 1004', 'Asif Uddin', 90, 85, 78, 87, 73);
-- --------------------------------------------------------
--
-- Table structure for table `students`
--
CREATE TABLE `students` (
`s_no` int(50) NOT NULL,
`student_Id` text NOT NULL,
`name` text NOT NULL,
`semester` text NOT NULL,
`father_name` text NOT NULL,
`mother_name` text NOT NULL,
`email` text NOT NULL,
`mobile` int(11) NOT NULL,
`password` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `students`
--
INSERT INTO `students` (`s_no`, `student_Id`, `name`, `semester`, `father_name`, `mother_name`, `email`, `mobile`, `password`) VALUES
(1, 'CSE 1001', 'Johirul islam', '2nd', 'Jabed Ahmmed', 'Roksana Akter', 'johirulislam@gmail.com', 1858754178, 'johirul123'),
(2, 'CSE 1002', 'Abdul Islam', '2nd', 'Abdul Islam', 'Abdul Islam', 'abdul@gmail.com', 1858754124, 'abdul123'),
(3, 'CSE 1003', 'Harun Rashid', '1st', 'Kashem Ali', 'Amina Katun', 'harun@gmail.com', 1672349842, 'harun123'),
(4, 'cse 1004', 'Asif uddin', '2nd', 'Akbor Uddin', 'Sharmin Akter', 'asif@gmail.com', 1845789541, 'asif123');
-- --------------------------------------------------------
--
-- Table structure for table `teachers`
--
CREATE TABLE `teachers` (
`s_no` int(11) NOT NULL,
`teachers_id` varchar(11) NOT NULL,
`name` text NOT NULL,
`department` text NOT NULL,
`father_name` text NOT NULL,
`mother_name` text NOT NULL,
`email` varchar(50) NOT NULL,
`Mobile` int(11) NOT NULL,
`password` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `teachers`
--
INSERT INTO `teachers` (`s_no`, `teachers_id`, `name`, `department`, `father_name`, `mother_name`, `email`, `Mobile`, `password`) VALUES
(1, 'TT 001', 'Abid Uddin', 'TT', 'Abul Bosor', 'Sokina Begum', 'abid@gmail.com', 1526374515, 'abid123'),
(2, 'cse 201', 'Selim Uddin', 'cse', 'Rofiqul Islam', 'Rehena Begum', 'selim@gmail.com', 1545795421, 'selim123'),
(4, 'BAN 2001', 'Soriful Hoq', 'BAN', 'Miraj Khan', 'Raina Begum', 'shoriful@gmail.com', 1845789541, 'shoriful123');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `students`
--
ALTER TABLE `students`
ADD UNIQUE KEY `s_no` (`s_no`);
--
-- Indexes for table `teachers`
--
ALTER TABLE `teachers`
ADD PRIMARY KEY (`s_no`),
ADD UNIQUE KEY `teachers_id` (`teachers_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `students`
--
ALTER TABLE `students`
MODIFY `s_no` int(50) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;
--
-- AUTO_INCREMENT for table `teachers`
--
ALTER TABLE `teachers`
MODIFY `s_no` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
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 */;