-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.sql
144 lines (130 loc) · 4.99 KB
/
test.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
138
139
140
141
142
143
144
-- --------------------------------------------------------
-- Host: 127.0.0.1
-- Server version: 5.7.17-log - MySQL Community Server (GPL)
-- Server OS: Win64
-- HeidiSQL Version: 9.4.0.5125
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-- Dumping database structure for test
CREATE DATABASE IF NOT EXISTS `test` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `test`;
-- Dumping structure for table test.admin
CREATE TABLE IF NOT EXISTS `admin` (
`USER_ID` varchar(100) DEFAULT NULL,
`PASSWORD` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Data exporting was unselected.
-- Dumping structure for table test.administrator
CREATE TABLE IF NOT EXISTS `administrator` (
`sno` int(11) NOT NULL,
`name` varchar(50) DEFAULT NULL,
`password` varchar(50) DEFAULT NULL,
PRIMARY KEY (`sno`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Data exporting was unselected.
-- Dumping structure for table test.batch2003
CREATE TABLE IF NOT EXISTS `batch2003` (
`En_no` varchar(10) NOT NULL,
`Name` varchar(30) DEFAULT NULL,
`Discipline` varchar(30) DEFAULT NULL,
`Fathers_Name` varchar(30) DEFAULT NULL,
`Description` longblob,
`Semester` varchar(50) DEFAULT NULL,
`Image` varchar(255) DEFAULT NULL,
PRIMARY KEY (`En_no`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Data exporting was unselected.
-- Dumping structure for table test.contact
CREATE TABLE IF NOT EXISTS `contact` (
`first_name` varchar(50) DEFAULT NULL,
`last_name` varchar(50) DEFAULT NULL,
`emailid` varchar(50) NOT NULL,
`subject` varchar(100) DEFAULT NULL,
`msg` longblob,
PRIMARY KEY (`emailid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Data exporting was unselected.
-- Dumping structure for table test.details
CREATE TABLE IF NOT EXISTS `details` (
`eno` int(11) NOT NULL,
`name` varchar(50) DEFAULT NULL,
`branch` varchar(50) DEFAULT NULL,
`sem` varchar(50) DEFAULT NULL,
`sub1` float DEFAULT NULL,
`sub2` float DEFAULT NULL,
`sub3` float DEFAULT NULL,
`sub4` float DEFAULT NULL,
`sub5` float DEFAULT NULL,
`sub6` float DEFAULT NULL,
`a1` int(11) DEFAULT NULL,
`a2` int(11) DEFAULT NULL,
`a3` int(11) DEFAULT NULL,
`a4` int(11) DEFAULT NULL,
`a5` int(11) DEFAULT NULL,
`a6` int(11) DEFAULT NULL,
PRIMARY KEY (`eno`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Data exporting was unselected.
-- Dumping structure for table test.employee
CREATE TABLE IF NOT EXISTS `employee` (
`EMP_ID` varchar(100) DEFAULT NULL,
`F_NAME` varchar(50) DEFAULT NULL,
`L_NAME` varchar(50) DEFAULT NULL,
`GEN` varchar(10) DEFAULT NULL,
`ADDR` varchar(100) DEFAULT NULL,
`PHONE` varchar(20) DEFAULT NULL,
`DOB` date DEFAULT NULL,
`DOJ` date DEFAULT NULL,
`EXPR` varchar(50) DEFAULT NULL,
`LICENSE` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Data exporting was unselected.
-- Dumping structure for table test.join1
CREATE TABLE IF NOT EXISTS `join1` (
`eno` int(11) DEFAULT NULL,
`name` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Data exporting was unselected.
-- Dumping structure for table test.signup
CREATE TABLE IF NOT EXISTS `signup` (
`name` varchar(50) DEFAULT NULL,
`gender` varchar(50) DEFAULT NULL,
`fathersname` varchar(50) DEFAULT NULL,
`mobile` varchar(50) DEFAULT NULL,
`email` varchar(50) NOT NULL,
`pass` varchar(50) DEFAULT NULL,
PRIMARY KEY (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Data exporting was unselected.
-- Dumping structure for table test.user
CREATE TABLE IF NOT EXISTS `user` (
`USER_ID` varchar(100) DEFAULT NULL,
`F_NAME` varchar(50) DEFAULT NULL,
`L_NAME` varchar(50) DEFAULT NULL,
`ADDR` varchar(100) DEFAULT NULL,
`EMAIL` varchar(50) DEFAULT NULL,
`PHONE` varchar(20) DEFAULT NULL,
`PASSWORD` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Data exporting was unselected.
-- Dumping structure for table test.userbooking
CREATE TABLE IF NOT EXISTS `userbooking` (
`USER_ID` varchar(100) DEFAULT NULL,
`NAME` varchar(100) DEFAULT NULL,
`PIC_ADD` varchar(100) DEFAULT NULL,
`PHONE` varchar(20) DEFAULT NULL,
`BOOK_DATE` date DEFAULT NULL,
`CAR` varchar(30) DEFAULT NULL,
`FROM_ADD` varchar(50) DEFAULT NULL,
`TO_ADD` varchar(50) DEFAULT NULL,
`J_DATE` date DEFAULT NULL,
`J_TIME` time DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Data exporting was unselected.
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;