-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathatiweb.sql
113 lines (91 loc) · 3.04 KB
/
atiweb.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
-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Dec 15, 2023 at 03:23 PM
-- Server version: 10.4.32-MariaDB
-- PHP Version: 8.2.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: `atiweb`
--
-- --------------------------------------------------------
--
-- Table structure for table `course`
--
CREATE TABLE `course` (
`CourseID` int(11) NOT NULL,
`Title` varchar(255) DEFAULT NULL,
`TitleInShort` varchar(50) DEFAULT NULL,
`Description` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
--
-- Dumping data for table `course`
--
INSERT INTO `course` (`CourseID`, `Title`, `TitleInShort`, `Description`) VALUES
(1, 'HND In Information Technology', 'HNDIT', 'it a It course'),
(2, 'HND in Accontancy', 'HNDA', 'accounting course digree'),
(3, 'HND in Tourism', 'HNDTHM', 'Tourism Course'),
(4, 'HND in English', 'HNDE', 'English Diploma');
-- --------------------------------------------------------
--
-- Table structure for table `lecturer`
--
CREATE TABLE `lecturer` (
`LecID` int(11) NOT NULL,
`Name` varchar(255) DEFAULT NULL,
`Email` varchar(255) DEFAULT NULL,
`Designation` varchar(50) DEFAULT NULL,
`CourseID` int(11) DEFAULT NULL,
`Gender` varchar(10) DEFAULT NULL,
`Password` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
--
-- Dumping data for table `lecturer`
--
INSERT INTO `lecturer` (`LecID`, `Name`, `Email`, `Designation`, `CourseID`, `Gender`, `Password`) VALUES
(2, 'SAFNI mj', 'mjsafnimax@gmail.com', 'Assistant Lecturer', 1, 'Male', '$2y$10$KvVyCgNit29NMThiTRl1teNJOJSYrM.cZlqAJbc/eGl5Pxaev9KEC'),
(3, 'Tevarooban', 'teva@ati.lk', 'Senior Lecturer II', 1, 'Male', '$2y$10$spvXyvpglbA2Qqod5MrZWOBVDNltZC4bQuNr3k3AGnLX8MaAv1UDW'),
(4, 'jayapalan', 'jaya@ati.lk', 'Senior Lecturer II', 3, 'Male', '$2y$10$hP6syU2c706A6hWszNIUtu8BevL.uItbGljN96YAb4UWDrykhzggK');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `course`
--
ALTER TABLE `course`
ADD PRIMARY KEY (`CourseID`);
--
-- Indexes for table `lecturer`
--
ALTER TABLE `lecturer`
ADD PRIMARY KEY (`LecID`),
ADD UNIQUE KEY `Email` (`Email`),
ADD KEY `CourseID` (`CourseID`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `lecturer`
--
ALTER TABLE `lecturer`
MODIFY `LecID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `lecturer`
--
ALTER TABLE `lecturer`
ADD CONSTRAINT `lecturer_ibfk_1` FOREIGN KEY (`CourseID`) REFERENCES `course` (`CourseID`);
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 */;