McGansWebsite/mcgans.sql
dotwingssoftware f2a40c268b 20230207
1. Have to test and deploy in server.  2. add faculty detail into employee table and student detail  into employee table, 3. Change Teaching Assistant into multiple select 4. User Profile
2023-02-07 18:41:26 +05:30

517 lines
18 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- phpMyAdmin SQL Dump
-- version 5.2.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Feb 07, 2023 at 02:10 PM
-- 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 `degree`
--
CREATE TABLE `degree` (
`id` int(11) NOT NULL,
`departmentId` int(11) NOT NULL,
`name` varchar(225) NOT NULL,
`createdBy` int(11) NOT NULL,
`createdOn` date NOT NULL,
`upadatedOn` date NOT NULL,
`updatedBy` int(11) NOT NULL,
`status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `degree`
--
INSERT INTO `degree` (`id`, `departmentId`, `name`, `createdBy`, `createdOn`, `upadatedOn`, `updatedBy`, `status`) VALUES
(1, 1, 'Bachelors in Architecture', 1, '2023-02-06', '0000-00-00', 0, 1),
(2, 1, 'Master of Architecture', 1, '2023-02-06', '0000-00-00', 0, 1);
-- --------------------------------------------------------
--
-- Table structure for table `department`
--
CREATE TABLE `department` (
`id` int(11) NOT NULL,
`name` varchar(225) NOT NULL,
`code` varchar(100) NOT NULL,
`image` varchar(225) NOT NULL,
`year` int(11) 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`, `image`, `year`, `createdBy`, `updatedBy`, `createdOn`, `updatedOn`, `status`) VALUES
(1, 'Architecture', 'AR001', '230206081440.webp', 4, 1, 0, '2023-02-06', '0000-00-00', 1);
-- --------------------------------------------------------
--
-- Table structure for table `employee`
--
CREATE TABLE `employee` (
`id` int(11) NOT NULL,
`roleId` int(11) NOT NULL,
`typeId` int(11) NOT NULL COMMENT 'typeId= faculty id and student Id',
`name` varchar(120) NOT NULL,
`mobileNumber` varchar(225) NOT NULL,
`address` text NOT NULL,
`email` varchar(225) NOT NULL,
`image` varchar(225) NOT NULL,
`username` varchar(225) NOT NULL,
`password` varchar(225) 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`, `typeId`, `name`, `mobileNumber`, `address`, `email`, `image`, `username`, `password`, `createdOn`, `updatedOn`, `createdBy`, `updatedBy`, `status`) VALUES
(1, 1, 0, 'mcgans', '9344511168', 'Perar, Kotagiri Road, Ooty, Tamil Nadu 643002', 'ootyarchitecture@gmail.com', 'image.png', 'demo@mcgans.com', '2d1c52a7d892a6f0a189392152584268', '0000-00-00', '0000-00-00', 0, 1, 1),
(2, 1, 0, 'Suriya Kannan', '9876543210', 'Ooty', 'suriyakannan@gmail.com', '2301250205.png', 'test', '202cb962ac59075b964b07152d234b70', '2023-01-25', '2023-01-25', 1, 1, 1),
(3, 3, 3, 'tes', '9876546432', 'test', 'tes@gmamil.com', '2302070807.png', 'tes', '9876546432', '2023-02-07', '0000-00-00', 1, 0, 1),
(4, 3, 4, 'tes', '07402411774', 'Vkr strret', 'tes@gmamil.com', '2302070809.png', 'tes', '384305a654a1f7121c31e631ace0452a', '2023-02-07', '0000-00-00', 1, 0, 1),
(5, 3, 5, 'test', '07402411774', 'Vkr strret', 'tes@gmamil.com', '2302070811.png', 'test', '384305a654a1f7121c31e631ace0452a', '2023-02-07', '0000-00-00', 1, 0, 1);
-- --------------------------------------------------------
--
-- Table structure for table `faculty`
--
CREATE TABLE `faculty` (
`id` int(11) NOT NULL,
`facultyId` varchar(225) NOT NULL,
`name` varchar(225) NOT NULL,
`email` varchar(100) NOT NULL,
`dob` date NOT NULL,
`address` text NOT NULL,
`gender` int(11) NOT NULL,
`mobileNumber` varchar(225) NOT NULL,
`designation` varchar(225) 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`, `facultyId`, `name`, `email`, `dob`, `address`, `gender`, `mobileNumber`, `designation`, `image`, `createdBy`, `createdOn`, `updatedOn`, `updatedBy`, `status`) VALUES
(1, 'MCGANS0001', 'Saranya SK ', 'mcgans@gmail.com', '2023-02-06', 'Ooty', 2, '7904257993', 'Staff', '2302060915.webp', 1, '2023-02-06', '0000-00-00', 0, 1),
(2, 'MCGANS0002', 'Kshirabdhi Tanaya P Sahu', 'mcgans@gmail.com', '2023-02-06', 'Ooty', 2, '7904257993', 'Staff', '2302061153.webp', 1, '2023-02-06', '0000-00-00', 0, 1),
(3, 'test', 'tes', 'tes@gmamil.com', '2023-02-07', 'test', 2, '9876546432', 'tes', '2302070807.png', 1, '2023-02-07', '0000-00-00', 0, 1),
(4, 'test', 'tes', 'tes@gmamil.com', '2023-02-07', 'Vkr strret', 2, '07402411774', 'fds', '2302070809.png', 1, '2023-02-07', '0000-00-00', 0, 1),
(5, 'test', 'test', 'tes@gmamil.com', '2023-02-07', 'Vkr strret', 2, '07402411774', 'tes', '2302070811.png', 1, '2023-02-07', '0000-00-00', 0, 1);
-- --------------------------------------------------------
--
-- Table structure for table `project`
--
CREATE TABLE `project` (
`id` int(11) NOT NULL,
`projectName` varchar(225) NOT NULL,
`date` date NOT NULL,
`studentId` int(11) NOT NULL,
`code` varchar(225) NOT NULL,
`semesterId` int(11) NOT NULL,
`departmentId` int(11) NOT NULL,
`description` text NOT NULL,
`subjectId` int(11) NOT NULL,
`image` text NOT NULL,
`vedio` varchar(300) NOT NULL,
`driveLink` varchar(300) NOT NULL,
`createdBy` int(11) NOT NULL,
`createdOn` date NOT NULL,
`updatedBy` int(11) NOT NULL,
`updatedOn` date NOT NULL,
`status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `project`
--
INSERT INTO `project` (`id`, `projectName`, `date`, `studentId`, `code`, `semesterId`, `departmentId`, `description`, `subjectId`, `image`, `vedio`, `driveLink`, `createdBy`, `createdOn`, `updatedBy`, `updatedOn`, `status`) VALUES
(1, 'test', '2023-02-06', 1, 'di77456', 2, 1, 'asdfg', 1, 'title230206093459.jpg', 'dfgh', 'sdfg', 1, '2023-02-06', 1, '2023-02-06', 0),
(2, 'Dotwings ', '2023-02-06', 1, 'POR001', 2, 1, 'The Bhasha Linguistic Institute functions as a forum to safeguard, protect and propagate regional languages, dialects and Literatures. The institute celebrates the diversity of linguistic cultures and dives deep into them with the help common people with similar interests.', 1, 'title230206103736.jpg', 'https://www.pexels.com/videos/', 'https://www.youtube.com/watch?v=oyA7Ucnmje4', 1, '2023-02-06', 1, '2023-02-06', 1);
-- --------------------------------------------------------
--
-- Table structure for table `projectdetail`
--
CREATE TABLE `projectdetail` (
`id` int(11) NOT NULL,
`projectId` int(11) NOT NULL,
`title` varchar(225) NOT NULL,
`description` text NOT NULL,
`image` varchar(225) NOT NULL,
`status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `projectdetail`
--
INSERT INTO `projectdetail` (`id`, `projectId`, `title`, `description`, `image`, `status`) VALUES
(1, 1, 'sdw', 'test', '1.4.4.jpg', 0),
(2, 2, 'Terrain and Architecture', 'The Bhasha Linguistic Institute functions as a forum to safeguard, protect and propagate regional languages, dialects and Literatures. The institute celebrates the diversity of linguistic cultures and dives deep into them with the help common people with similar interests.', '2.5.5.jpg', 1);
-- --------------------------------------------------------
--
-- Table structure for table `role`
--
CREATE TABLE `role` (
`id` int(11) NOT NULL,
`name` varchar(120) 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, 'Super Admin', 1, 1, '2023-01-23', 0, '0000-00-00'),
(2, 'Admin', 1, 2, '2023-01-26', 0, '0000-00-00'),
(3, 'Faculty', 1, 2, '2023-01-26', 0, '0000-00-00'),
(4, 'Student', 1, 2, '2023-01-26', 0, '0000-00-00'),
(5, 'Test', 1, 1, '2023-02-07', 0, '0000-00-00');
-- --------------------------------------------------------
--
-- Table structure for table `semester`
--
CREATE TABLE `semester` (
`id` int(11) NOT NULL,
`name` varchar(225) NOT NULL,
`year` int(11) 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`, `year`, `createdBy`, `createdOn`, `updatedOn`, `updatedBy`, `status`) VALUES
(1, 'EVEN', 2023, 1, '2023-02-06', '0000-00-00', 0, 1),
(2, 'ODD', 2023, 1, '2023-02-06', '0000-00-00', 0, 1);
-- --------------------------------------------------------
--
-- Table structure for table `semesterdetail`
--
CREATE TABLE `semesterdetail` (
`id` int(11) NOT NULL,
`semesterId` int(11) NOT NULL,
`degreeId` int(11) NOT NULL,
`subjectId` varchar(225) NOT NULL,
`status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `semesterdetail`
--
INSERT INTO `semesterdetail` (`id`, `semesterId`, `degreeId`, `subjectId`, `status`) VALUES
(1, 1, 1, '1', 1);
-- --------------------------------------------------------
--
-- Table structure for table `student`
--
CREATE TABLE `student` (
`id` int(11) NOT NULL,
`studentId` varchar(225) NOT NULL,
`name` varchar(225) NOT NULL,
`gender` int(11) NOT NULL,
`email` varchar(100) NOT NULL,
`address` text NOT NULL,
`department` varchar(225) NOT NULL,
`mobileNumber` varchar(225) NOT NULL,
`dob` date NOT NULL,
`image` varchar(225) 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`, `studentId`, `name`, `gender`, `email`, `address`, `department`, `mobileNumber`, `dob`, `image`, `updatedOn`, `updatedBy`, `createdBy`, `createdOn`, `status`) VALUES
(1, '712120251001', 'ABDUL QAYOOM A', 1, 'phanikashyar@gmail.com', 'MCGANS OOTY SCHOOL OF ARCHITECTURE, PERAR, OOTY.', '1', '9894934786', '2023-02-06', '2302060923.png', '0000-00-00', 0, 1, '2023-02-06', 1);
-- --------------------------------------------------------
--
-- Table structure for table `subject`
--
CREATE TABLE `subject` (
`id` int(11) NOT NULL,
`degreeId` int(11) NOT NULL,
`name` varchar(225) NOT NULL,
`subtitle` varchar(225) NOT NULL,
`code` varchar(225) NOT NULL,
`facultyId` varchar(225) NOT NULL,
`teachingAssistant` varchar(225) NOT NULL,
`image` varchar(225) NOT NULL,
`description` longtext 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`, `degreeId`, `name`, `subtitle`, `code`, `facultyId`, `teachingAssistant`, `image`, `description`, `createdBy`, `updatedBy`, `createdOn`, `updatedOn`, `status`) VALUES
(1, 1, 'Planning and Organizing', 'Terrain and Architecture', 'MCL2001', '1', 'test', '230206092017.webp', 'The Anthropogenic Activities which require Space Making on any parcel of land, in terms of Open & Built Volumes has an interference with the existing natural landscape and the ecology connected therewith. Also in the current day context, the Virtue of a Terrain and its primary role of sustaining an ecosystem in order is often ignored while designing, organizing and constructing a Building. Critical Re-thinking on the Spatial Planning & Organization in any given Terrain is essential, today. Therefore, standard practice of Grading and Sitting Buildings on a Landscape by considering it to be an independent entity, needs to be recast to create a meaningful articulation of Spaces with respect to a Terrain. In this project we will deal with two Sites in the context of The Nilgiris District which are different from one another primarily in terms of Altitude & Gradient and other related aspects of Climate & Geography. Thus, comparing and demonstrating how planning strategies vary.', 1, 1, '2023-02-06', '2023-02-06', 1),
(2, 1, 'Planning and Organizing ', 'Spatial organization in Architecture', 'MCL2002', '2', 'Kshirabdhi Tanaya P Sahu', '230206115740.webp', 'Spatial Organization is a way to tie the spaces together to create a collective and organized whole. This can be done both on the micro-level with the floor plan zoning and at the macro level on the site. In the period of 14 weeks, the first 3 weeks the student will work on design thinking module and remaining weeks develop continuously their design project. The design process make use of 5 steps design process (problem analysis, idea generation, idea evaluation and selection and the realization of ideas). The design studio aims to create a plan with these 5 steps to address concrete spatial issues on different scales and layouts in a predefined project site. For every building, there are specific needs that need to be fulfilled. Spatial organization can aid in problem-solving to come up with effective design solutions in terms of: • Zoning based on the needs of the site. • Functional segregation of spaces in the design. • Dimensional requirements of each space. • Organization based on the significance of each space.', 1, 0, '2023-02-06', '0000-00-00', 1),
(3, 1, 'test', 'test', 'test0001', '1,2', '3', '230207110552.png', 'test', 1, 1, '2023-02-07', '2023-02-07', 1);
-- --------------------------------------------------------
--
-- Table structure for table `subjectdetail`
--
CREATE TABLE `subjectdetail` (
`id` int(11) NOT NULL,
`subjectId` int(11) NOT NULL,
`title` varchar(225) NOT NULL,
`image` varchar(225) NOT NULL,
`status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `subjectdetail`
--
INSERT INTO `subjectdetail` (`id`, `subjectId`, `title`, `image`, `status`) VALUES
(1, 1, 'Terrain and Architecture', '1..1.jpg', 1),
(2, 2, ' ORGANIZATION IN ARCHITECTURE', '2.4.4.jpg', 1),
(3, 3, 'test', '3.logo.png', 1);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `degree`
--
ALTER TABLE `degree`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `department`
--
ALTER TABLE `department`
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 `project`
--
ALTER TABLE `project`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `projectdetail`
--
ALTER TABLE `projectdetail`
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 `semesterdetail`
--
ALTER TABLE `semesterdetail`
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`);
--
-- Indexes for table `subjectdetail`
--
ALTER TABLE `subjectdetail`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `degree`
--
ALTER TABLE `degree`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `department`
--
ALTER TABLE `department`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `employee`
--
ALTER TABLE `employee`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `faculty`
--
ALTER TABLE `faculty`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `project`
--
ALTER TABLE `project`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `projectdetail`
--
ALTER TABLE `projectdetail`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `role`
--
ALTER TABLE `role`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `semester`
--
ALTER TABLE `semester`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `semesterdetail`
--
ALTER TABLE `semesterdetail`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `student`
--
ALTER TABLE `student`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `subject`
--
ALTER TABLE `subject`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `subjectdetail`
--
ALTER TABLE `subjectdetail`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
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 */;