-
Notifications
You must be signed in to change notification settings - Fork 2
/
project_5th.sql
119 lines (95 loc) · 2.99 KB
/
project_5th.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
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jan 10, 2022 at 08:40 AM
-- Server version: 10.4.20-MariaDB
-- PHP Version: 8.0.8
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: `project_5th`
--
-- --------------------------------------------------------
--
-- Table structure for table `courses`
--
CREATE TABLE `courses` (
`course_code` varchar(20) NOT NULL,
`semester` int(2) NOT NULL,
`department` varchar(40) NOT NULL,
`section` varchar(2) NOT NULL,
`teacher_id` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `courses`
--
INSERT INTO `courses` (`course_code`, `semester`, `department`, `section`, `teacher_id`) VALUES
('18CS51', 5, 'CSE', 'A', 'RVITIS001'),
('18CS51', 5, 'ISE', 'A', 'RVITIS001'),
('18CS52', 5, 'ISE', 'A', 'RVITIS002');
-- --------------------------------------------------------
--
-- Table structure for table `login_details`
--
CREATE TABLE `login_details` (
`type` varchar(20) NOT NULL,
`userid` varchar(20) NOT NULL,
`email` varchar(40) NOT NULL,
`password` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `login_details`
--
INSERT INTO `login_details` (`type`, `userid`, `email`, `password`) VALUES
('student', '1RF19IS001', '[email protected]', 'zxcvbnm'),
('student', '1RF19IS002', '[email protected]', 'xhsjsksk'),
('student', '1RF19IS003', '[email protected]', 'zxssaaa'),
('student', '1RF19IS004', '[email protected]', 'zxczxcdss'),
('teacher', 'RVITIS001', '[email protected]', 'klopi'),
('teacher', 'RVITIS002', '[email protected]', 'abcdsq'),
('teacher', 'RVITIS003', '[email protected]', 'zxcvb');
-- --------------------------------------------------------
--
-- Table structure for table `teacher_info`
--
CREATE TABLE `teacher_info` (
`name` varchar(60) NOT NULL,
`teacher_id` varchar(20) NOT NULL,
`department` varchar(40) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `teacher_info`
--
INSERT INTO `teacher_info` (`name`, `teacher_id`, `department`) VALUES
('Ram', 'RVITIS001', 'ISE'),
('Sita', 'RVITIS002', 'ISE'),
('Laxman', 'RVITIS003', 'CSE');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `courses`
--
ALTER TABLE `courses`
ADD PRIMARY KEY (`course_code`,`department`,`section`,`teacher_id`);
--
-- Indexes for table `login_details`
--
ALTER TABLE `login_details`
ADD PRIMARY KEY (`userid`);
--
-- Indexes for table `teacher_info`
--
ALTER TABLE `teacher_info`
ADD PRIMARY KEY (`teacher_id`);
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 */;