-
Notifications
You must be signed in to change notification settings - Fork 0
/
studentmangement.sql
195 lines (155 loc) · 4.78 KB
/
studentmangement.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
-- phpMyAdmin SQL Dump
-- version 5.0.3
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Dec 22, 2021 at 03:58 PM
-- Server version: 10.4.14-MariaDB
-- PHP Version: 7.2.34
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: `bctnn`
--
-- --------------------------------------------------------
--
-- Table structure for table `admin`
--
CREATE TABLE `admin` (
`username` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`last_login` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `admin`
--
INSERT INTO `admin` (`username`, `password`, `last_login`) VALUES
('admin', 'admin', '');
-- --------------------------------------------------------
--
-- Table structure for table `certificate`
--
CREATE TABLE `certificate` (
`id` int(255) NOT NULL,
`certificateName` varchar(255) NOT NULL,
`class` varchar(255) NOT NULL,
`roll` int(100) NOT NULL,
`student` varchar(255) NOT NULL,
`file` varchar(255) NOT NULL,
`status` int(35) NOT NULL,
`date` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `certificate`
--
INSERT INTO `certificate` (`id`, `certificateName`, `class`, `roll`, `student`, `file`, `status`, `date`) VALUES
(16, 'result', 'LKG', 1, 'rohan', 'certificate/aaa.pdf', 1, '2021-12-14 20:01:08');
-- --------------------------------------------------------
--
-- Table structure for table `certificatedetails`
--
CREATE TABLE `certificatedetails` (
`id` int(255) NOT NULL,
`certificateName` varchar(255) NOT NULL,
`certificateDetails` text NOT NULL,
`stamp` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `certificatedetails`
--
INSERT INTO `certificatedetails` (`id`, `certificateName`, `certificateDetails`, `stamp`) VALUES
(7, 'result', 'Download result', '2021-12-14 19:47:10');
-- --------------------------------------------------------
--
-- Table structure for table `class`
--
CREATE TABLE `class` (
`id` int(255) NOT NULL,
`className` varchar(255) NOT NULL,
`classDetails` text NOT NULL,
`fees` int(255) NOT NULL,
`date` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `class`
--
INSERT INTO `class` (`id`, `className`, `classDetails`, `fees`, `date`) VALUES
(12, 'LKG', 'This is Kinder Garden class', 350, '2021-12-14 19:43:24');
-- --------------------------------------------------------
--
-- Table structure for table `students`
--
CREATE TABLE `students` (
`id` int(255) NOT NULL,
`name` varchar(255) NOT NULL,
`parents` varchar(255) NOT NULL,
`dob` date NOT NULL,
`photo` varchar(255) NOT NULL,
`gender` text NOT NULL,
`phone` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`address` longtext NOT NULL,
`class` varchar(255) NOT NULL,
`roll` varchar(155) NOT NULL,
`date` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `students`
--
INSERT INTO `students` (`id`, `name`, `parents`, `dob`, `photo`, `gender`, `phone`, `email`, `address`, `class`, `roll`, `date`) VALUES
(42, 'Rock lee', 'rahul', '2021-12-22', 'students/lee.jfif', 'male', '+918145873319', '[email protected]', 'india', 'LKG', '1', '2021-12-14 19:46:33');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `certificate`
--
ALTER TABLE `certificate`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `certificatedetails`
--
ALTER TABLE `certificatedetails`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `class`
--
ALTER TABLE `class`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `students`
--
ALTER TABLE `students`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `certificate`
--
ALTER TABLE `certificate`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;
--
-- AUTO_INCREMENT for table `certificatedetails`
--
ALTER TABLE `certificatedetails`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `class`
--
ALTER TABLE `class`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `students`
--
ALTER TABLE `students`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=43;
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 */;