-
Notifications
You must be signed in to change notification settings - Fork 0
/
citemplate.sql
138 lines (113 loc) · 4.64 KB
/
citemplate.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
-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1:3306
-- Generation Time: Mar 12, 2018 at 10:52 AM
-- Server version: 5.7.19
-- PHP Version: 7.1.9
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: `citemplate`
--
-- --------------------------------------------------------
--
-- Table structure for table `ci_sessions`
--
DROP TABLE IF EXISTS `ci_sessions`;
CREATE TABLE IF NOT EXISTS `ci_sessions` (
`id` varchar(128) COLLATE utf8_unicode_ci NOT NULL,
`ip_address` varchar(45) COLLATE utf8_unicode_ci NOT NULL,
`timestamp` int(10) UNSIGNED NOT NULL DEFAULT '0',
`data` blob NOT NULL,
KEY `ci_sessions_timestamp` (`timestamp`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `ci_sessions`
--
INSERT INTO `ci_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES
('1kjoid1rs26maeh8p9eknhsonnble43r', '202.142.96.32', 1519386165, 0x5f5f63695f6c6173745f726567656e65726174657c693a313531393338363136353b),
('eo51jtgm6u9i16ve55ofo7dbu3d9dgqi', '202.142.96.32', 1519386380, 0x5f5f63695f6c6173745f726567656e65726174657c693a313531393338363136353b);
-- --------------------------------------------------------
--
-- Table structure for table `examples`
--
DROP TABLE IF EXISTS `examples`;
CREATE TABLE IF NOT EXISTS `examples` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`details` text NOT NULL,
`status` tinyint(1) NOT NULL DEFAULT '0',
`created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`modified` datetime DEFAULT NULL,
`created_by` int(11) NOT NULL DEFAULT '0',
`modified_by` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `examples`
--
INSERT INTO `examples` (`id`, `name`, `details`, `status`, `created`, `modified`, `created_by`, `modified_by`) VALUES
(1, 'Example 1', 'Example 1', 1, '2018-02-19 20:19:17', '2018-02-26 18:16:45', 2, 2),
(4, 'Example 2', 'This is a sample test', 1, '2018-02-26 18:16:33', NULL, 2, 0);
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
DROP TABLE IF EXISTS `users`;
CREATE TABLE IF NOT EXISTS `users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`full_name` varchar(255) NOT NULL,
`username` varchar(45) CHARACTER SET latin1 NOT NULL,
`password` varchar(255) CHARACTER SET latin1 NOT NULL,
`email` varchar(100) CHARACTER SET latin1 NOT NULL,
`phone` varchar(20) CHARACTER SET latin1 DEFAULT NULL,
`image` varchar(100) NOT NULL DEFAULT 'default.jpg',
`user_role` int(11) NOT NULL,
`last_login_time` datetime DEFAULT NULL,
`last_login_ip` varchar(20) NOT NULL,
`status` tinyint(1) NOT NULL DEFAULT '0',
`created` datetime NOT NULL,
`modified` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`),
UNIQUE KEY `email` (`email`),
UNIQUE KEY `phone` (`phone`),
KEY `user_role` (`user_role`)
) ENGINE=MyISAM AUTO_INCREMENT=12 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `full_name`, `username`, `password`, `email`, `phone`, `image`, `user_role`, `last_login_time`, `last_login_ip`, `status`, `created`, `modified`) VALUES
(2, 'Administrator', 'admin', '$2a$04$Q0NBRor3Gxp16hRPcfbSK.CdCsWGEYapDC75wOWQRvXvSm07rfpW6', 'admin@gmail.com', '9475889878', '1519042074.jpg', 1, '2018-02-28 19:02:41', '::1', 1, '2018-02-01 15:32:36', '2018-02-19 17:37:54');
-- --------------------------------------------------------
--
-- Table structure for table `user_roles`
--
DROP TABLE IF EXISTS `user_roles`;
CREATE TABLE IF NOT EXISTS `user_roles` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`role_name` varchar(45) NOT NULL,
`admin` tinyint(1) NOT NULL DEFAULT '0',
`status` tinyint(1) NOT NULL DEFAULT '0',
`created` datetime NOT NULL,
`modified` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `user_roles`
--
INSERT INTO `user_roles` (`id`, `role_name`, `admin`, `status`, `created`, `modified`) VALUES
(1, 'Super Admin', 1, 1, '2018-02-01 16:26:24', NULL),
(2, 'Student', 0, 1, '2018-02-05 07:46:17', '2018-02-05 17:13:37');
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 */;