-
Notifications
You must be signed in to change notification settings - Fork 0
/
database.sql
88 lines (71 loc) · 2.49 KB
/
database.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
-- phpMyAdmin SQL Dump
-- version 4.4.15.5
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Jun 06, 2016 at 04:41 PM
-- Server version: 5.6.30
-- PHP Version: 7.0.6
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Database: `codeigniter`
--
-- --------------------------------------------------------
--
-- Table structure for table `admins`
--
CREATE TABLE IF NOT EXISTS `admins` (
`id` bigint(10) PRIMARY KEY NOT NULL AUTO_INCREMENT,
`username` varchar(120) NOT NULL,
`first_name` varchar(200) DEFAULT NULL,
`last_name` varchar(200) DEFAULT NULL,
`email` varchar(255) NOT NULL,
`password` varchar(100) NOT NULL,
`token` text,
`date_create` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`date_update` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
`status` varchar(40) NOT NULL DEFAULT 'pending',
`role` varchar(100) DEFAULT 'unknown',
UNIQUE KEY `username` (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE IF NOT EXISTS `users` (
`id` bigint(10) PRIMARY KEY NOT NULL AUTO_INCREMENT,
`username` varchar(120) NOT NULL,
`first_name` varchar(200) DEFAULT NULL,
`last_name` varchar(200) DEFAULT NULL,
`email` varchar(255) NOT NULL,
`password` varchar(100) NOT NULL,
`token` text,
`date_create` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`date_update` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
`status` varchar(40) NOT NULL DEFAULT 'pending',
`role` varchar(100) DEFAULT 'subscriber',
UNIQUE KEY `username` (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `options`
--
CREATE TABLE IF NOT EXISTS `options` (
`id` bigint(10) PRIMARY KEY NOT NULL AUTO_INCREMENT,
`options_name` varchar(255) NOT NULL,
`options_value` longtext NOT NULL,
`options_autoload` varchar(3) NOT NULL DEFAULT 'no',
UNIQUE KEY `options_name` (`options_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `sessions`
--
CREATE TABLE IF NOT EXISTS `sessions` (
`id` varchar(40) PRIMARY KEY NOT NULL,
`ip_address` varchar(45) NOT NULL,
`timestamp` int(10) unsigned NOT NULL DEFAULT '0',
`data` blob NOT NULL,
KEY `sessions_timestamp` (`timestamp`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;