72aed9d99a
database file uploaded
389 lines
12 KiB
SQL
389 lines
12 KiB
SQL
-- phpMyAdmin SQL Dump
|
|
-- version 5.2.0
|
|
-- https://www.phpmyadmin.net/
|
|
--
|
|
-- Host: 127.0.0.1
|
|
-- Generation Time: Jan 06, 2023 at 08:39 AM
|
|
-- Server version: 10.4.24-MariaDB
|
|
-- PHP Version: 7.4.29
|
|
|
|
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: `mcgans`
|
|
--
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `department`
|
|
--
|
|
|
|
CREATE TABLE `department` (
|
|
`id` int(11) NOT NULL,
|
|
`name` text NOT NULL,
|
|
`code` varchar(100) NOT NULL,
|
|
`createdBy` int(11) NOT NULL,
|
|
`updatedBy` int(11) NOT NULL,
|
|
`createdOn` date NOT NULL,
|
|
`updatedOn` date NOT NULL,
|
|
`status` int(11) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
--
|
|
-- Dumping data for table `department`
|
|
--
|
|
|
|
INSERT INTO `department` (`id`, `name`, `code`, `createdBy`, `updatedBy`, `createdOn`, `updatedOn`, `status`) VALUES
|
|
(4, 'suji', '1', 1, 1, '0000-00-00', '0000-00-00', 0),
|
|
(5, 'ram', '2', 1, 0, '0000-00-00', '0000-00-00', 0),
|
|
(6, 'suji', '2', 1, 0, '0000-00-00', '0000-00-00', 0),
|
|
(7, 'ram', '2', 1, 0, '0000-00-00', '0000-00-00', 0),
|
|
(8, 'suji', '1', 1, 0, '0000-00-00', '0000-00-00', 0),
|
|
(9, 'suji', '3', 1, 0, '0000-00-00', '0000-00-00', 0),
|
|
(10, 'suji', '3', 1, 0, '0000-00-00', '0000-00-00', 0),
|
|
(11, 'ram', 'STDO123', 1, 1, '0000-00-00', '0000-00-00', 1),
|
|
(12, 'sujid', '10', 1, 1, '0000-00-00', '0000-00-00', 0),
|
|
(13, 'ram', '3', 1, 0, '0000-00-00', '0000-00-00', 0),
|
|
(14, 'noora', '6', 1, 0, '0000-00-00', '0000-00-00', 0),
|
|
(15, '', '', 1, 0, '0000-00-00', '0000-00-00', 0),
|
|
(16, '', '', 1, 0, '0000-00-00', '0000-00-00', 0),
|
|
(17, 'kala', '10', 1, 1, '0000-00-00', '0000-00-00', 0),
|
|
(18, 'kala', '2', 1, 0, '0000-00-00', '0000-00-00', 1),
|
|
(19, 'ECE', 'ECE123', 1, 0, '0000-00-00', '0000-00-00', 1);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `departmentdetail`
|
|
--
|
|
|
|
CREATE TABLE `departmentdetail` (
|
|
`id` int(11) NOT NULL,
|
|
`departmentId` int(11) NOT NULL,
|
|
`year` int(11) NOT NULL,
|
|
`totalSemester` int(11) NOT NULL,
|
|
`type` int(11) NOT NULL COMMENT '1="odd",2="even"',
|
|
`status` int(11) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `employee`
|
|
--
|
|
|
|
CREATE TABLE `employee` (
|
|
`id` int(11) NOT NULL,
|
|
`roleId` int(11) NOT NULL,
|
|
`name` text NOT NULL,
|
|
`mobileNumber` int(11) NOT NULL,
|
|
`address` text NOT NULL,
|
|
`email` text NOT NULL,
|
|
`image` text NOT NULL,
|
|
`pincode` int(11) NOT NULL,
|
|
`username` text NOT NULL,
|
|
`password` text NOT NULL,
|
|
`createdOn` date NOT NULL,
|
|
`updatedOn` date NOT NULL,
|
|
`createdBy` int(11) NOT NULL,
|
|
`updatedBy` int(11) NOT NULL,
|
|
`status` int(1) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
--
|
|
-- Dumping data for table `employee`
|
|
--
|
|
|
|
INSERT INTO `employee` (`id`, `roleId`, `name`, `mobileNumber`, `address`, `email`, `image`, `pincode`, `username`, `password`, `createdOn`, `updatedOn`, `createdBy`, `updatedBy`, `status`) VALUES
|
|
(21, 0, 'kala k', 2147483647, 'VKR', 'jeni@gmail.com', '', 114232, 'suji', '1234', '2023-01-02', '2023-01-03', 1, 1, 0),
|
|
(22, 0, 'monu', 739876, 'RRR', 'demo1@gmail.com', '', 234567, 'xfgd', '1234', '2023-01-03', '0000-00-00', 1, 0, 0),
|
|
(23, 0, 'kala', 2147483647, 'kkk', 'dotwingss@gmail.com', '', 114232, 'fsd', 'sds', '2023-01-03', '2023-01-05', 1, 1, 0),
|
|
(24, 0, 'monu', 739876, 'VKR', 'demo1@gmail.com', '0-4.png', 4564567, 'suji', '1234', '2023-01-05', '0000-00-00', 1, 0, 1),
|
|
(25, 0, 'monu', 234567890, 'a\\szdxfc', 'sasikala@dotwings.in', '3.jpg', 114232, 'xfgd', '123456', '2023-01-05', '0000-00-00', 1, 0, 1);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `faculty`
|
|
--
|
|
|
|
CREATE TABLE `faculty` (
|
|
`id` int(11) NOT NULL,
|
|
`code` varchar(100) NOT NULL,
|
|
`name` text NOT NULL,
|
|
`email` varchar(100) NOT NULL,
|
|
`dob` int(11) NOT NULL,
|
|
`address` varchar(100) NOT NULL,
|
|
`gender` text NOT NULL,
|
|
`mobile` int(11) NOT NULL,
|
|
`designation` text NOT NULL,
|
|
`image` text NOT NULL,
|
|
`createdBy` int(11) NOT NULL,
|
|
`createdOn` date NOT NULL,
|
|
`updatedOn` date NOT NULL,
|
|
`updatedBy` int(11) NOT NULL,
|
|
`status` int(11) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
--
|
|
-- Dumping data for table `faculty`
|
|
--
|
|
|
|
INSERT INTO `faculty` (`id`, `code`, `name`, `email`, `dob`, `address`, `gender`, `mobile`, `designation`, `image`, `createdBy`, `createdOn`, `updatedOn`, `updatedBy`, `status`) VALUES
|
|
(1, 'STO1234', 'sasi', 'sasikala@dotwings.in', 0, 'hru', 'Category 1', 0, 'hi welcome', '0-4.png', 1, '2023-01-04', '0000-00-00', 0, 1),
|
|
(2, 'STO1234', 'sasi', 'sasikala@dotwings.in', 0, 'vjf', 'Category 2', 0, 'hi welcome', '3.jpg', 1, '2023-01-04', '0000-00-00', 0, 1),
|
|
(3, 'STO1236', 'sasikala k', 'demo1@gmail.com', 0, 'hgfx', 'Category 1', 739876, 'Do Want', '3.jpg', 1, '2023-01-04', '0000-00-00', 0, 1),
|
|
(4, '', 'sasi', 'sasikala@dotwings.in', 0, '', '', 739876, 'sdfg', '', 1, '2023-01-05', '2023-01-05', 1, 1),
|
|
(5, '114232', 'sasi', 'sasikala@dotwings.in', 0, 'sdfg', 'Category 2', 2147483647, 'sdfg', '0-4.png', 1, '2023-01-05', '0000-00-00', 0, 1);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `role`
|
|
--
|
|
|
|
CREATE TABLE `role` (
|
|
`id` int(11) NOT NULL,
|
|
`name` text NOT NULL,
|
|
`status` int(11) NOT NULL,
|
|
`createdBy` int(11) NOT NULL,
|
|
`createdOn` date NOT NULL,
|
|
`updatedBy` int(11) NOT NULL,
|
|
`updatedOn` date NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
--
|
|
-- Dumping data for table `role`
|
|
--
|
|
|
|
INSERT INTO `role` (`id`, `name`, `status`, `createdBy`, `createdOn`, `updatedBy`, `updatedOn`) VALUES
|
|
(1, 'admink', 0, 1, '2022-12-30', 1, '2022-12-30'),
|
|
(2, 'admins', 0, 1, '2022-12-30', 1, '2022-12-30'),
|
|
(3, 'adminf', 0, 1, '2022-12-30', 1, '2023-01-02'),
|
|
(4, 'adminss', 0, 1, '2022-12-30', 1, '2022-12-30'),
|
|
(6, 'admins', 0, 1, '2022-12-30', 0, '0000-00-00'),
|
|
(7, 'Userf', 0, 1, '2022-12-31', 1, '2023-01-05'),
|
|
(8, 'admin', 0, 1, '2023-01-02', 0, '0000-00-00'),
|
|
(9, 'admin', 1, 1, '2023-01-02', 1, '2023-01-02'),
|
|
(10, 'adminh', 0, 1, '2023-01-02', 1, '2023-01-02'),
|
|
(11, 'admink', 0, 1, '2023-01-02', 0, '0000-00-00');
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `semester`
|
|
--
|
|
|
|
CREATE TABLE `semester` (
|
|
`id` int(11) NOT NULL,
|
|
`name` text NOT NULL,
|
|
`createdBy` int(11) NOT NULL,
|
|
`createdOn` date NOT NULL,
|
|
`updatedOn` date NOT NULL,
|
|
`updatedBy` int(11) NOT NULL,
|
|
`status` int(11) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
--
|
|
-- Dumping data for table `semester`
|
|
--
|
|
|
|
INSERT INTO `semester` (`id`, `name`, `createdBy`, `createdOn`, `updatedOn`, `updatedBy`, `status`) VALUES
|
|
(1, 'sasi k', 1, '2023-01-02', '0000-00-00', 0, 0),
|
|
(3, 'Even', 1, '2023-01-02', '0000-00-00', 0, 0),
|
|
(4, 'sasi k', 1, '2023-01-03', '0000-00-00', 0, 0),
|
|
(5, 'sasi', 1, '2023-01-03', '0000-00-00', 0, 0),
|
|
(6, 'sasi', 1, '2023-01-05', '0000-00-00', 0, 0),
|
|
(7, 'E2024', 1, '2023-01-05', '0000-00-00', 0, 1),
|
|
(8, 'E2021', 1, '2023-01-05', '0000-00-00', 0, 1),
|
|
(9, 'E2022', 1, '2023-01-05', '0000-00-00', 0, 1);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `student`
|
|
--
|
|
|
|
CREATE TABLE `student` (
|
|
`id` int(11) NOT NULL,
|
|
`code` int(11) NOT NULL,
|
|
`name` text NOT NULL,
|
|
`gender` text NOT NULL,
|
|
`Email` varchar(100) NOT NULL,
|
|
`address` varchar(120) NOT NULL,
|
|
`department` text NOT NULL,
|
|
`number` int(11) NOT NULL,
|
|
`dob` int(11) NOT NULL,
|
|
`image` text NOT NULL,
|
|
`updatedOn` date NOT NULL,
|
|
`updatedBy` int(11) NOT NULL,
|
|
`createdBy` int(11) NOT NULL,
|
|
`createdOn` date NOT NULL,
|
|
`status` int(11) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
--
|
|
-- Dumping data for table `student`
|
|
--
|
|
|
|
INSERT INTO `student` (`id`, `code`, `name`, `gender`, `Email`, `address`, `department`, `number`, `dob`, `image`, `updatedOn`, `updatedBy`, `createdBy`, `createdOn`, `status`) VALUES
|
|
(1, 0, 'sasikala ', 'Female', '', 'df', 'B.com', 739876, 0, '', '0000-00-00', 0, 1, '2023-01-05', 1),
|
|
(2, 0, 'sasi', 'Male', '', 'afgb', 'BCA', 739876, 0, '3.jpg', '0000-00-00', 0, 1, '2023-01-05', 0),
|
|
(3, 0, 'sasi', 'Male', '', 'dfg', 'BCA', 739876, 0, '4-inch-Silenced-Water-Pump-550x413.jpg', '0000-00-00', 0, 1, '2023-01-05', 1);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `subject`
|
|
--
|
|
|
|
CREATE TABLE `subject` (
|
|
`id` int(11) NOT NULL,
|
|
`code` varchar(120) NOT NULL,
|
|
`subject` text NOT NULL,
|
|
`department` text NOT NULL,
|
|
`semester` varchar(120) NOT NULL,
|
|
`image` text NOT NULL,
|
|
`createdBy` int(11) NOT NULL,
|
|
`updatedBy` int(11) NOT NULL,
|
|
`createdOn` date NOT NULL,
|
|
`updatedOn` date NOT NULL,
|
|
`status` int(11) NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
--
|
|
-- Dumping data for table `subject`
|
|
--
|
|
|
|
INSERT INTO `subject` (`id`, `code`, `subject`, `department`, `semester`, `image`, `createdBy`, `updatedBy`, `createdOn`, `updatedOn`, `status`) VALUES
|
|
(1, 'sasi', 'mail', '', '', '', 1, 0, '2023-01-02', '0000-00-00', 0),
|
|
(2, 'sasikala k', 'Tamil', '', '', '', 1, 0, '2023-01-02', '0000-00-00', 0),
|
|
(3, 'sasi', 'gh', '', '', '', 1, 0, '2023-01-03', '0000-00-00', 0),
|
|
(4, 'demo', 'Tamil', '', '', '', 1, 0, '2023-01-03', '0000-00-00', 0),
|
|
(5, 'sasi', 'gh', '', '', '', 1, 0, '2023-01-03', '0000-00-00', 0),
|
|
(6, 'sasi k', 'mail', '', '', '', 1, 0, '2023-01-03', '2023-01-03', 0),
|
|
(7, '114232', 'mail', 'BCA', '', '', 1, 0, '2023-01-03', '0000-00-00', 0),
|
|
(8, '114232', 'mail', 'BCA', '', '', 1, 0, '2023-01-03', '0000-00-00', 0),
|
|
(9, '234567', 'English', 'B.com', '', '', 1, 0, '2023-01-03', '0000-00-00', 0),
|
|
(10, '114232', 'English', 'BCA', '1', '', 1, 0, '2023-01-03', '2023-01-05', 1),
|
|
(11, '642001', 'English', 'MCA', '2', '', 1, 0, '2023-01-05', '2023-01-05', 1),
|
|
(12, '114232', 'mail', 'BCA', '2', '', 1, 0, '2023-01-05', '2023-01-05', 0);
|
|
|
|
--
|
|
-- Indexes for dumped tables
|
|
--
|
|
|
|
--
|
|
-- Indexes for table `department`
|
|
--
|
|
ALTER TABLE `department`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `departmentdetail`
|
|
--
|
|
ALTER TABLE `departmentdetail`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `employee`
|
|
--
|
|
ALTER TABLE `employee`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `faculty`
|
|
--
|
|
ALTER TABLE `faculty`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `role`
|
|
--
|
|
ALTER TABLE `role`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `semester`
|
|
--
|
|
ALTER TABLE `semester`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `student`
|
|
--
|
|
ALTER TABLE `student`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- Indexes for table `subject`
|
|
--
|
|
ALTER TABLE `subject`
|
|
ADD PRIMARY KEY (`id`);
|
|
|
|
--
|
|
-- AUTO_INCREMENT for dumped tables
|
|
--
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `department`
|
|
--
|
|
ALTER TABLE `department`
|
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `departmentdetail`
|
|
--
|
|
ALTER TABLE `departmentdetail`
|
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `employee`
|
|
--
|
|
ALTER TABLE `employee`
|
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `faculty`
|
|
--
|
|
ALTER TABLE `faculty`
|
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `role`
|
|
--
|
|
ALTER TABLE `role`
|
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `semester`
|
|
--
|
|
ALTER TABLE `semester`
|
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `student`
|
|
--
|
|
ALTER TABLE `student`
|
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `subject`
|
|
--
|
|
ALTER TABLE `subject`
|
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
|
|
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 */;
|