FuelPHP Bin
-- phpMyAdmin SQL Dump -- version 4.0.7 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Oct 12, 2014 at 01:08 PM -- Server version: 5.5.39-MariaDB -- PHP Version: 5.5.17 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `DEV_AppFramework` -- -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE IF NOT EXISTS `users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(50) NOT NULL, `password` varchar(255) NOT NULL, `group_id` int(11) NOT NULL DEFAULT '1', `email` varchar(255) NOT NULL, `last_login` varchar(25) NOT NULL, `previous_login` varchar(25) NOT NULL DEFAULT '0', `login_hash` varchar(255) NOT NULL, `user_id` int(11) NOT NULL DEFAULT '0', `created_at` int(11) NOT NULL DEFAULT '0', `updated_at` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `username` (`username`,`email`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `username`, `password`, `group_id`, `email`, `last_login`, `previous_login`, `login_hash`, `user_id`, `created_at`, `updated_at`) VALUES (0, 'guest', 'YOU CAN NOT USE THIS TO LOGIN', 2, '', '0', '0', '', 0, 1372366629, 0), (2, 'admin', 'anE5Xee9raxpgY/1aWcGenbIc1YUfGAJn5H0vAJJz4A=', 6, 'admin@example.org', '1413112010', '1412238403', '64452bc22c09bc31400f61aae6f6dd812ca61d83', 2, 1372366629, 1413112010), (3, 'moderator', 'anE5Xee9raxpgY/1aWcGenbIc1YUfGAJn5H0vAJJz4A=', 4, 'moderator@example.org', '1385816242', '1385815764', '24bd14372db8c2f7f8a699dcb4876d64e602bc1b', 3, 1372366629, 1385816242), (4, 'test', 'n0GUBbBIlo9iPr0entNVBeFWzz9z1MYqotDvmXH7XgM=', 3, 'test@example.org', '1387563984', '1387563666', 'd67e0174a41dc360974c324e363e79c9bd52b181', 4, 1387560142, 1387563984); -- -------------------------------------------------------- -- -- Table structure for table `users_groups` -- CREATE TABLE IF NOT EXISTS `users_groups` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `user_id` int(11) NOT NULL DEFAULT '0', `created_at` int(11) NOT NULL DEFAULT '0', `updated_at` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ; -- -- Dumping data for table `users_groups` -- INSERT INTO `users_groups` (`id`, `name`, `user_id`, `created_at`, `updated_at`) VALUES (1, 'Banned', 0, 0, 0), (2, 'Guests', 0, 0, 0), (3, 'Users', 0, 0, 0), (4, 'Moderators', 0, 0, 0), (5, 'Administrators', 0, 0, 0), (6, 'Super Admins', 0, 0, 0); -- -------------------------------------------------------- -- -- Table structure for table `users_group_permissions` -- CREATE TABLE IF NOT EXISTS `users_group_permissions` ( `id` int(11) NOT NULL AUTO_INCREMENT, `group_id` int(11) NOT NULL, `perms_id` int(11) NOT NULL, `actions` text, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ; -- -- Dumping data for table `users_group_permissions` -- INSERT INTO `users_group_permissions` (`id`, `group_id`, `perms_id`, `actions`) VALUES (6, 4, 16, 'a:1:{i:0;s:1:"1";}'); -- -------------------------------------------------------- -- -- Table structure for table `users_group_roles` -- CREATE TABLE IF NOT EXISTS `users_group_roles` ( `group_id` int(11) NOT NULL, `role_id` int(11) NOT NULL, PRIMARY KEY (`group_id`,`role_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `users_group_roles` -- INSERT INTO `users_group_roles` (`group_id`, `role_id`) VALUES (1, 1), (2, 2), (3, 3), (4, 3), (4, 4), (5, 3), (5, 4), (5, 5), (6, 6); -- -------------------------------------------------------- -- -- Table structure for table `users_metadata` -- CREATE TABLE IF NOT EXISTS `users_metadata` ( `id` int(11) NOT NULL AUTO_INCREMENT, `parent_id` int(11) NOT NULL DEFAULT '0', `key` varchar(20) NOT NULL, `value` varchar(100) NOT NULL, `user_id` int(11) NOT NULL DEFAULT '0', `created_at` int(11) NOT NULL DEFAULT '0', `updated_at` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ; -- -- Dumping data for table `users_metadata` -- INSERT INTO `users_metadata` (`id`, `parent_id`, `key`, `value`, `user_id`, `created_at`, `updated_at`) VALUES (1, 0, 'fullname', 'Guest', 0, 0, 0), (2, 2, 'fullname', 'System administrator', 0, 1372366629, 0), (3, 4, 'fullname', 'Test User', 2, 1387560142, 0); -- -------------------------------------------------------- -- -- Table structure for table `users_permissions` -- CREATE TABLE IF NOT EXISTS `users_permissions` ( `id` int(11) NOT NULL AUTO_INCREMENT, `area` varchar(25) NOT NULL, `permission` varchar(25) NOT NULL, `description` varchar(255) NOT NULL, `actions` text, `user_id` int(11) NOT NULL DEFAULT '0', `created_at` int(11) NOT NULL DEFAULT '0', `updated_at` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `permission` (`area`,`permission`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=19 ; -- -- Dumping data for table `users_permissions` -- INSERT INTO `users_permissions` (`id`, `area`, `permission`, `description`, `actions`, `user_id`, `created_at`, `updated_at`) VALUES (9, 'admin', 'users', 'User account administration', 'a:0:{}', 2, 1382098861, 0), (10, 'admin', 'groups', 'User group administration', 'a:0:{}', 2, 1382098861, 0), (11, 'admin', 'roles', 'User role administration', 'a:0:{}', 2, 1382098861, 0), (12, 'finance', 'invoices', 'Invoice management', 'a:0:{}', 2, 1382098861, 0), (13, 'finance', 'manual', 'Manually add invoices', 'a:0:{}', 2, 1382098861, 0), (14, 'finance', 'systemtables', 'Maintenance of financial system tables', 'a:0:{}', 2, 1382098861, 0), (15, 'finance', 'search', 'Quick search via the dashboard', 'a:0:{}', 2, 1382098861, 0), (16, 'finance', 'test', 'test', 'a:4:{i:0;i:0;i:1;i:1;i:2;i:2;i:3;i:3;}', 2, 1382098861, 0), (17, 'admin', 'user', 'User', 'a:3:{i:0;s:4:"list";i:1;s:3:"add";i:2;s:4:"edit";}', 2, 0, 0), (18, 'admin', 'banner', 'Banner', 'a:3:{i:0;s:4:"list";i:1;s:3:"add";i:2;s:4:"edit";}', 2, 0, 0); -- -------------------------------------------------------- -- -- Table structure for table `users_roles` -- CREATE TABLE IF NOT EXISTS `users_roles` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `lookup` varchar(255) DEFAULT NULL, `filter` enum('','A','D','R') NOT NULL DEFAULT '', `user_id` int(11) NOT NULL DEFAULT '0', `created_at` int(11) NOT NULL DEFAULT '0', `updated_at` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ; -- -- Dumping data for table `users_roles` -- INSERT INTO `users_roles` (`id`, `name`, `lookup`, `filter`, `user_id`, `created_at`, `updated_at`) VALUES (1, 'banned', 'BANNED', 'D', 0, 0, 0), (2, 'public', 'PUBLIC', '', 0, 0, 0), (3, 'user', 'USER', '', 0, 0, 0), (4, 'moderator', 'MODERATOR', '', 0, 0, 0), (5, 'administrator', 'ADMINISTRATOR', '', 0, 0, 0), (6, 'superadmin', 'SUPERADMIN', 'A', 0, 0, 0); -- -------------------------------------------------------- -- -- Table structure for table `users_role_permissions` -- CREATE TABLE IF NOT EXISTS `users_role_permissions` ( `id` int(11) NOT NULL AUTO_INCREMENT, `role_id` int(11) NOT NULL, `perms_id` int(11) NOT NULL, `actions` text, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `users_user_permissions` -- CREATE TABLE IF NOT EXISTS `users_user_permissions` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `perms_id` int(11) NOT NULL, `actions` text, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=18 ; -- -- Dumping data for table `users_user_permissions` -- INSERT INTO `users_user_permissions` (`id`, `user_id`, `perms_id`, `actions`) VALUES (13, 3, 16, 'a:1:{i:0;s:1:"1";}'), (16, 4, 18, 'a:1:{i:0;s:1:"0";}'), (17, 4, 17, 'a:2:{i:0;s:1:"0";i:1;s:1:"1";}'); -- -------------------------------------------------------- -- -- Table structure for table `users_user_roles` -- CREATE TABLE IF NOT EXISTS `users_user_roles` ( `user_id` int(11) NOT NULL, `role_id` int(11) NOT NULL, PRIMARY KEY (`user_id`,`role_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;