-
Notifications
You must be signed in to change notification settings - Fork 5
/
nsec_db.sql
137 lines (109 loc) · 3.02 KB
/
nsec_db.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
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 10, 2021 at 10:35 AM
-- Server version: 10.1.38-MariaDB
-- PHP Version: 7.3.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
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: `nsec_db`
--
CREATE DATABASE IF NOT EXISTS `nsec_db` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `nsec_db`;
-- --------------------------------------------------------
--
-- Table structure for table `company_list`
--
DROP TABLE IF EXISTS `company_list`;
CREATE TABLE `company_list` (
`name` varchar(30) NOT NULL,
`dept` text NOT NULL,
`year` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `employee_table`
--
DROP TABLE IF EXISTS `employee_table`;
CREATE TABLE `employee_table` (
`id` char(5) DEFAULT NULL,
`name` char(30) NOT NULL,
`desg` char(15) NOT NULL,
`dept` char(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `global_values`
--
DROP TABLE IF EXISTS `global_values`;
CREATE TABLE `global_values` (
`x` char(10) NOT NULL,
`y` char(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `global_values`
--
INSERT INTO `global_values` (`x`, `y`) VALUES
('admin', 'admin');
-- --------------------------------------------------------
--
-- Table structure for table `notice_board`
--
DROP TABLE IF EXISTS `notice_board`;
CREATE TABLE `notice_board` (
`id` char(5) NOT NULL,
`topic` char(20) NOT NULL,
`description` longtext NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `student_table`
--
DROP TABLE IF EXISTS `student_table`;
CREATE TABLE `student_table` (
`id` char(5) DEFAULT NULL,
`name` char(30) NOT NULL,
`sem` int(11) NOT NULL,
`stream` char(5) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `company_list`
--
ALTER TABLE `company_list`
ADD UNIQUE KEY `name` (`name`);
--
-- Indexes for table `employee_table`
--
ALTER TABLE `employee_table`
ADD UNIQUE KEY `id` (`id`);
--
-- Indexes for table `global_values`
--
ALTER TABLE `global_values`
ADD UNIQUE KEY `x` (`x`);
--
-- Indexes for table `notice_board`
--
ALTER TABLE `notice_board`
ADD UNIQUE KEY `id` (`id`);
--
-- Indexes for table `student_table`
--
ALTER TABLE `student_table`
ADD UNIQUE KEY `id` (`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 */;