-
Notifications
You must be signed in to change notification settings - Fork 1
/
training_center.sql
137 lines (114 loc) · 3.94 KB
/
training_center.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.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Mar 17, 2016 at 11:52 AM
-- Server version: 10.1.8-MariaDB
-- PHP Version: 5.6.14
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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: `training_center`
--
-- --------------------------------------------------------
--
-- Table structure for table `tbl_courses`
--
CREATE TABLE `tbl_courses` (
`id` int(11) NOT NULL,
`course_name` varchar(100) NOT NULL,
`course_description` text NOT NULL,
`fees` decimal(12,2) NOT NULL,
`duration` int(11) NOT NULL,
`duration_type` varchar(100) NOT NULL,
`added_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`modified_date` timestamp NULL DEFAULT NULL,
`status` tinyint(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `tbl_courses`
--
INSERT INTO `tbl_courses` (`id`, `course_name`, `course_description`, `fees`, `duration`, `duration_type`, `added_date`, `modified_date`, `status`) VALUES
(1, 'Bachelor of Engineering in IT', 'An engineering study in It', '834000.00', 4, 'years', '2015-12-12 10:37:01', NULL, 1);
-- --------------------------------------------------------
--
-- Table structure for table `tbl_enquiries`
--
CREATE TABLE `tbl_enquiries` (
`id` int(11) NOT NULL,
`first_name` varchar(100) NOT NULL,
`last_name` varchar(100) NOT NULL,
`email` varchar(100) NOT NULL,
`contact_no` varchar(100) NOT NULL,
`course_id` int(11) DEFAULT NULL,
`message` text NOT NULL,
`enquiry_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`is_read` tinyint(1) NOT NULL DEFAULT '0',
`parent_id` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `tbl_enquiries`
--
INSERT INTO `tbl_enquiries` (`id`, `first_name`, `last_name`, `email`, `contact_no`, `course_id`, `message`, `enquiry_date`, `is_read`, `parent_id`) VALUES
(1, '', '', '', '', 1, '', '2015-12-27 05:33:12', 0, 0),
(2, 'ramaesh', 'gcc', 'ramesh@gmail.com', '9849699072', 1, 'hey this is atom', '2016-03-01 02:50:24', 0, 0),
(3, 'Rabin Atom', 'Dulal', 'dulalatom@gmail.com', '9849699072', 1, 'plz mail me', '2016-03-01 03:00:23', 0, 0),
(4, '', '', '', '', 1, '', '2016-03-13 16:54:40', 0, 0),
(5, 'rupesh', 'dulal', 'rabin.dulal.11483@ncit.edu.np', '984969525', 1, 'please provide me scholarship', '2016-03-17 10:11:19', 0, 0);
-- --------------------------------------------------------
--
-- Table structure for table `tbl_users`
--
CREATE TABLE `tbl_users` (
`id` int(11) NOT NULL,
`email` varchar(200) NOT NULL,
`password` varchar(200) NOT NULL,
`created_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`modified_date` timestamp NULL DEFAULT NULL,
`role` enum('Admin','User') NOT NULL,
`status` tinyint(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `tbl_courses`
--
ALTER TABLE `tbl_courses`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `tbl_enquiries`
--
ALTER TABLE `tbl_enquiries`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `tbl_users`
--
ALTER TABLE `tbl_users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `tbl_courses`
--
ALTER TABLE `tbl_courses`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `tbl_enquiries`
--
ALTER TABLE `tbl_enquiries`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `tbl_users`
--
ALTER TABLE `tbl_users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
/*!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 */;