-- phpMyAdmin SQL Dump
-- version 3.4.5
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Jul 02, 2014 at 12:05 AM
-- Server version: 5.5.16
-- PHP Version: 5.3.8

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 utf8 */;

--
-- Database: `ci_dev_07`
--

-- --------------------------------------------------------

--
-- Table structure for table `ci_sessions`
--

CREATE TABLE IF NOT EXISTS `ci_sessions` (
  `session_id` varchar(40) NOT NULL DEFAULT '0',
  `ip_address` varchar(45) NOT NULL DEFAULT '0',
  `user_agent` varchar(120) NOT NULL,
  `last_activity` int(10) unsigned NOT NULL DEFAULT '0',
  `user_data` text NOT NULL,
  KEY `session_id` (`session_id`),
  KEY `last_activity_idx` (`last_activity`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `kz_permissions`
--

CREATE TABLE IF NOT EXISTS `kz_permissions` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `key` varchar(80) COLLATE utf8_unicode_ci NOT NULL,
  `description` varchar(160) COLLATE utf8_unicode_ci DEFAULT NULL,
  `is_system` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `key` (`key`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=16 ;

--
-- Dumping data for table `kz_permissions`
--

INSERT INTO `kz_permissions` (`id`, `key`, `description`, `is_system`) VALUES
(2, 'create_roles', 'Create new roles', 1),
(3, 'retrieve_roles', 'View existing roles', 1),
(4, 'update_roles', 'Update existing roles', 1),
(5, 'delete_roles', 'Delete existing roles', 1),
(6, 'create_permissions', 'Create new permissions', 1),
(7, 'retrieve_permissions', 'View existing permissions', 1),
(8, 'update_permissions', 'Update existing permissions', 1),
(9, 'delete_permissions', 'Delete existing permissions', 1),
(10, 'create_users', 'Create new users', 1),
(11, 'retrieve_users', 'View existing users', 1),
(12, 'update_users', 'Update existing users', 1),
(13, 'delete_users', 'Delete existing users', 1),
(14, 'ban_users', 'Ban and Unban existing users', 1),
(15, 'password_reset_users', 'Force user to reset password upon next login', 1);

-- --------------------------------------------------------

--
-- Table structure for table `kz_posts`
--

CREATE TABLE IF NOT EXISTS `kz_posts` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `published` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `slug` varchar(200) NOT NULL DEFAULT '',
  `title` text NOT NULL,
  `content` longtext NOT NULL,
  `excerpt` text NOT NULL,
  `type` varchar(20) NOT NULL DEFAULT 'post',
  `status` varchar(20) NOT NULL DEFAULT 'publish',
  `parent_id` bigint(20) unsigned NOT NULL DEFAULT '0',
  `menu_order` int(11) NOT NULL DEFAULT '0',
  `template` varchar(200) NOT NULL DEFAULT '',
  `user_id` bigint(20) unsigned NOT NULL DEFAULT '0',
  `comment_status` varchar(20) NOT NULL DEFAULT 'open',
  `comment_count` bigint(20) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=14 ;

--
-- Dumping data for table `kz_posts`
--

INSERT INTO `kz_posts` (`id`, `published`, `created`, `updated`, `slug`, `title`, `content`, `excerpt`, `type`, `status`, `parent_id`, `menu_order`, `template`, `user_id`, `comment_status`, `comment_count`) VALUES
(1, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '2014-07-01 23:53:49', 'slug11aa', 'title 122', 'content 1 qweqwe 234234 aa bbb 22 33', '', 'post', 'publish', 0, 0, '', 0, 'open', 0),
(2, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'slug22', 'title 2', 'content 2', '', 'post', 'publish', 0, 0, '', 0, 'open', 0),
(4, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'wewerweraaa', 'new test post222', 'df dfg dfg 2222', '', 'post', 'publish', 0, 0, '', 0, 'open', 0),
(5, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'new333', 'new 333', 'new 333 333', '', 'post', 'publish', 0, 0, '', 0, 'open', 0),
(9, '2014-05-13 21:59:35', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'new-post', 'new post', 'new post new post new post', '', 'post', 'publish', 0, 0, '', 0, 'open', 0),
(10, '2014-05-13 22:00:11', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'newpost', 'new post', 'new post new post new post', '', 'post', 'publish', 0, 0, '', 0, 'open', 0),
(11, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'newpost2', 'new post', 'cfgb dfg b', '', 'post', 'publish', 0, 0, '', 0, 'open', 0),
(12, '2014-05-13 22:10:03', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'dfghdgh88', 'dfhdfgh', 'dfghdfg hdfg h', '', 'post', 'publish', 0, 0, '', 0, 'open', 0),
(13, '2014-05-13 22:36:04', '2014-05-13 22:36:28', '2014-05-13 22:37:11', 'post date4', 'post date', 'post date test', '', 'post', 'publish', 0, 0, '', 0, 'open', 0);

-- --------------------------------------------------------

--
-- Table structure for table `kz_roles`
--

CREATE TABLE IF NOT EXISTS `kz_roles` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(80) COLLATE utf8_unicode_ci NOT NULL,
  `description` varchar(160) COLLATE utf8_unicode_ci DEFAULT NULL,
  `is_system` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `role_name` (`name`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=3 ;

--
-- Dumping data for table `kz_roles`
--

INSERT INTO `kz_roles` (`id`, `name`, `description`, `is_system`) VALUES
(1, 'Admin', 'Website Administrator', 1),
(2, 'User', 'Website user', 0);

-- --------------------------------------------------------

--
-- Table structure for table `kz_role_permission`
--

CREATE TABLE IF NOT EXISTS `kz_role_permission` (
  `role_id` bigint(20) unsigned NOT NULL,
  `permission_id` bigint(20) unsigned NOT NULL,
  PRIMARY KEY (`role_id`,`permission_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `kz_role_permission`
--

INSERT INTO `kz_role_permission` (`role_id`, `permission_id`) VALUES
(1, 2),
(1, 3),
(1, 4),
(1, 5),
(1, 6),
(1, 7),
(1, 8),
(1, 9),
(1, 10),
(1, 11),
(1, 12),
(1, 13),
(1, 14),
(1, 15),
(2, 2);

-- --------------------------------------------------------

--
-- Table structure for table `kz_users`
--

CREATE TABLE IF NOT EXISTS `kz_users` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `username` varchar(100) NOT NULL,
  `email` varchar(100) NOT NULL,
  `password` varchar(128) NOT NULL,
  `name` varchar(100) NOT NULL,
  KEY `id` (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;

--
-- Dumping data for table `kz_users`
--

INSERT INTO `kz_users` (`id`, `username`, `email`, `password`, `name`) VALUES
(1, 'admin', 'admin@mail.com', '21232f297a57a5a743894a0e4a801fc3', 'administrator'),
(2, 'user', 'user@mail.com', 'ee11cbb19052e40b07aac0ca060c23ee', 'user0'),
(3, 'moderator', 'moderator@site.com', '0408f3c997f309c03b08bf3a4bc7b730', '');

-- --------------------------------------------------------

--
-- Table structure for table `kz_user_role`
--

CREATE TABLE IF NOT EXISTS `kz_user_role` (
  `user_id` bigint(20) unsigned NOT NULL,
  `role_id` bigint(20) unsigned NOT NULL,
  PRIMARY KEY (`user_id`,`role_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `kz_user_role`
--

INSERT INTO `kz_user_role` (`user_id`, `role_id`) VALUES
(1, 1),
(2, 1),
(3, 2);

-- --------------------------------------------------------

--
-- Table structure for table `migrations`
--

CREATE TABLE IF NOT EXISTS `migrations` (
  `version` int(3) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

/*!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 */;
