Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Adminer 4.2.4 MySQL dump
- SET NAMES utf8;
- SET time_zone = '+00:00';
- SET foreign_key_checks = 0;
- SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
- DROP TABLE IF EXISTS `ads`;
- CREATE TABLE `ads` (
- `ads_id` int(10) NOT NULL AUTO_INCREMENT,
- `title` varchar(255) NOT NULL,
- `place` varchar(255) NOT NULL,
- `code` text NOT NULL,
- `time` datetime NOT NULL,
- PRIMARY KEY (`ads_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- DROP TABLE IF EXISTS `conversations`;
- CREATE TABLE `conversations` (
- `conversation_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `last_message_id` int(10) unsigned NOT NULL,
- PRIMARY KEY (`conversation_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
- DROP TABLE IF EXISTS `conversations_messages`;
- CREATE TABLE `conversations_messages` (
- `message_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `conversation_id` int(10) unsigned NOT NULL,
- `user_id` int(10) unsigned NOT NULL,
- `message` longtext NOT NULL,
- `image` varchar(255) NOT NULL,
- `time` datetime NOT NULL,
- PRIMARY KEY (`message_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
- DROP TABLE IF EXISTS `conversations_users`;
- CREATE TABLE `conversations_users` (
- `conversation_id` int(10) unsigned NOT NULL,
- `user_id` int(10) unsigned NOT NULL,
- `seen` enum('0','1') NOT NULL DEFAULT '0',
- `deleted` enum('0','1') NOT NULL DEFAULT '0',
- UNIQUE KEY `conversation_id_user_id` (`conversation_id`,`user_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED;
- DROP TABLE IF EXISTS `followings`;
- CREATE TABLE `followings` (
- `user_id` int(10) unsigned NOT NULL,
- `following_id` int(10) unsigned NOT NULL,
- UNIQUE KEY `user_id_following_id` (`user_id`,`following_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED;
- INSERT INTO `followings` (`user_id`, `following_id`) VALUES
- (2, 1);
- DROP TABLE IF EXISTS `friends`;
- CREATE TABLE `friends` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `user_one_id` int(10) unsigned NOT NULL,
- `user_two_id` int(10) unsigned NOT NULL,
- `status` tinyint(1) NOT NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `user_one_id_user_two_id` (`user_one_id`,`user_two_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- INSERT INTO `friends` (`id`, `user_one_id`, `user_two_id`, `status`) VALUES
- (1, 2, 1, 0);
- DROP TABLE IF EXISTS `games`;
- CREATE TABLE `games` (
- `game_id` int(10) NOT NULL AUTO_INCREMENT,
- `title` varchar(255) NOT NULL,
- `description` text NOT NULL,
- `source` text NOT NULL,
- `thumbnail` varchar(255) NOT NULL,
- PRIMARY KEY (`game_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
- DROP TABLE IF EXISTS `groups`;
- CREATE TABLE `groups` (
- `group_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `group_admin` int(10) unsigned NOT NULL,
- `group_name` varchar(50) NOT NULL,
- `group_title` varchar(255) NOT NULL,
- `group_picture` varchar(255) NOT NULL,
- `group_cover` varchar(255) NOT NULL,
- `group_description` text NOT NULL,
- `group_members` int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`group_id`),
- UNIQUE KEY `username` (`group_name`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
- DROP TABLE IF EXISTS `groups_members`;
- CREATE TABLE `groups_members` (
- `group_id` int(10) unsigned NOT NULL,
- `user_id` int(10) unsigned NOT NULL,
- UNIQUE KEY `group_id_user_id` (`group_id`,`user_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED;
- DROP TABLE IF EXISTS `notifications`;
- CREATE TABLE `notifications` (
- `notification_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `to_user_id` int(10) unsigned NOT NULL,
- `from_user_id` int(10) unsigned NOT NULL,
- `action` varchar(50) NOT NULL,
- `node_type` varchar(50) NOT NULL,
- `node_url` varchar(255) NOT NULL,
- `time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `seen` enum('0','1') NOT NULL DEFAULT '0',
- PRIMARY KEY (`notification_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- INSERT INTO `notifications` (`notification_id`, `to_user_id`, `from_user_id`, `action`, `node_type`, `node_url`, `time`, `seen`) VALUES
- (1, 1, 2, 'follow', '', '', '2016-10-16 11:06:49', '0'),
- (2, 1, 2, 'like', 'post', '1', '2016-10-16 11:07:00', '0');
- DROP TABLE IF EXISTS `pages`;
- CREATE TABLE `pages` (
- `page_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `page_admin` int(10) unsigned NOT NULL,
- `page_category` int(10) unsigned NOT NULL,
- `page_name` varchar(50) NOT NULL,
- `page_title` varchar(255) NOT NULL,
- `page_picture` varchar(255) NOT NULL,
- `page_cover` varchar(255) NOT NULL,
- `page_description` text NOT NULL,
- `page_verified` enum('0','1') NOT NULL DEFAULT '0',
- `page_likes` int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`page_id`),
- UNIQUE KEY `username` (`page_name`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- DROP TABLE IF EXISTS `pages_categories`;
- CREATE TABLE `pages_categories` (
- `category_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `category_name` varchar(255) NOT NULL,
- PRIMARY KEY (`category_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- INSERT INTO `pages_categories` (`category_id`, `category_name`) VALUES
- (1, 'Service'),
- (2, 'Musician/Band'),
- (3, 'Brand or Product'),
- (4, 'Company, Organization or Institution'),
- (5, 'Artist, Public figure'),
- (6, 'Entertainment'),
- (7, 'Cause or Community');
- DROP TABLE IF EXISTS `pages_likes`;
- CREATE TABLE `pages_likes` (
- `page_id` int(10) unsigned NOT NULL,
- `user_id` int(10) unsigned NOT NULL,
- UNIQUE KEY `page_id_user_id` (`page_id`,`user_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED;
- DROP TABLE IF EXISTS `posts`;
- CREATE TABLE `posts` (
- `post_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `user_id` int(10) unsigned NOT NULL,
- `user_type` enum('user','page') NOT NULL,
- `in_group` enum('0','1') NOT NULL DEFAULT '0',
- `group_id` int(10) unsigned DEFAULT NULL,
- `post_type` varchar(50) NOT NULL,
- `origin_id` int(10) unsigned DEFAULT NULL,
- `time` datetime NOT NULL,
- `location` varchar(50) NOT NULL,
- `privacy` enum('friends','public') NOT NULL,
- `text` longtext NOT NULL,
- `likes` int(10) unsigned NOT NULL DEFAULT '0',
- `comments` int(10) unsigned NOT NULL DEFAULT '0',
- `shares` int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`post_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- INSERT INTO `posts` (`post_id`, `user_id`, `user_type`, `in_group`, `group_id`, `post_type`, `origin_id`, `time`, `location`, `privacy`, `text`, `likes`, `comments`, `shares`) VALUES
- (1, 1, 'user', '0', 0, '', NULL, '2016-10-15 09:37:58', '', 'public', 'Mantaf :v', 2, 0, 0);
- DROP TABLE IF EXISTS `posts_comments`;
- CREATE TABLE `posts_comments` (
- `comment_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `node_id` int(10) unsigned NOT NULL,
- `node_type` enum('post','photo') NOT NULL,
- `user_id` int(10) unsigned NOT NULL,
- `user_type` enum('user','page') NOT NULL,
- `text` longtext NOT NULL,
- `image` varchar(255) DEFAULT NULL,
- `time` datetime NOT NULL,
- `likes` int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`comment_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- DROP TABLE IF EXISTS `posts_comments_likes`;
- CREATE TABLE `posts_comments_likes` (
- `user_id` int(10) unsigned NOT NULL,
- `comment_id` int(10) unsigned NOT NULL,
- UNIQUE KEY `comment_id_user_id` (`comment_id`,`user_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
- DROP TABLE IF EXISTS `posts_hidden`;
- CREATE TABLE `posts_hidden` (
- `user_id` int(10) unsigned NOT NULL,
- `post_id` int(10) unsigned NOT NULL,
- UNIQUE KEY `post_id_user_id` (`post_id`,`user_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
- DROP TABLE IF EXISTS `posts_likes`;
- CREATE TABLE `posts_likes` (
- `user_id` int(10) unsigned NOT NULL,
- `post_id` int(10) unsigned NOT NULL,
- UNIQUE KEY `post_id_user_id` (`post_id`,`user_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- INSERT INTO `posts_likes` (`user_id`, `post_id`) VALUES
- (1, 1),
- (2, 1);
- DROP TABLE IF EXISTS `posts_links`;
- CREATE TABLE `posts_links` (
- `link_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `post_id` int(10) unsigned NOT NULL,
- `source_url` tinytext NOT NULL,
- `source_host` varchar(255) NOT NULL,
- `source_title` varchar(255) NOT NULL,
- `source_text` text NOT NULL,
- `source_thumbnail` varchar(255) NOT NULL,
- PRIMARY KEY (`link_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- DROP TABLE IF EXISTS `posts_media`;
- CREATE TABLE `posts_media` (
- `media_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `post_id` int(10) NOT NULL,
- `media_type` enum('youtube','vimeo','soundcloud') NOT NULL,
- `source_uid` varchar(255) NOT NULL,
- `source_url` text NOT NULL,
- `source_title` varchar(255) DEFAULT NULL,
- `source_text` text,
- PRIMARY KEY (`media_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- DROP TABLE IF EXISTS `posts_photos`;
- CREATE TABLE `posts_photos` (
- `photo_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `post_id` int(10) unsigned NOT NULL,
- `source` varchar(255) NOT NULL,
- `likes` int(10) unsigned NOT NULL DEFAULT '0',
- `comments` int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`photo_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- DROP TABLE IF EXISTS `posts_photos_likes`;
- CREATE TABLE `posts_photos_likes` (
- `user_id` int(10) unsigned NOT NULL,
- `photo_id` int(10) unsigned NOT NULL,
- UNIQUE KEY `user_id_photo_id` (`user_id`,`photo_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED;
- DROP TABLE IF EXISTS `reports`;
- CREATE TABLE `reports` (
- `report_id` int(10) NOT NULL AUTO_INCREMENT,
- `user_id` int(10) NOT NULL,
- `node_id` int(10) NOT NULL,
- `node_type` varchar(50) NOT NULL,
- `time` datetime NOT NULL,
- PRIMARY KEY (`report_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- DROP TABLE IF EXISTS `static_pages`;
- CREATE TABLE `static_pages` (
- `page_id` int(10) NOT NULL AUTO_INCREMENT,
- `page_url` varchar(50) NOT NULL,
- `page_title` varchar(255) NOT NULL,
- `page_text` text NOT NULL,
- PRIMARY KEY (`page_id`),
- UNIQUE KEY `page_url` (`page_url`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- INSERT INTO `static_pages` (`page_id`, `page_url`, `page_title`, `page_text`) VALUES
- (1, 'about', 'About', '<p>\r\n Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\r\n </p>\r\n <h3 class="text-info">\r\n Big Title\r\n </h3>\r\n <p>\r\n Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\r\n </p>\r\n <h3 class="text-info">\r\n Big Title\r\n </h3>\r\n <p>\r\n Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\r\n </p>'),
- (2, 'terms', 'Terms', '<p>\r\n Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\r\n </p>\r\n <h3 class="text-info">\r\n Big Title\r\n </h3>\r\n <p>\r\n Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\r\n </p>\r\n <h3 class="text-info">\r\n Big Title\r\n </h3>\r\n <p>\r\n Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\r\n </p>'),
- (3, 'privacy', 'Privacy', '<p>\r\n Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\r\n </p>\r\n <h3 class="text-info">\r\n Big Title\r\n </h3>\r\n <p>\r\n Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\r\n </p>\r\n <h3 class="text-info">\r\n Big Title\r\n </h3>\r\n <p>\r\n Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\r\n </p>');
- DROP TABLE IF EXISTS `system_languages`;
- CREATE TABLE `system_languages` (
- `language_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `code` varchar(50) NOT NULL,
- `title` varchar(255) NOT NULL,
- `flag_icon` varchar(50) NOT NULL,
- `dir` enum('LTR','RTL') NOT NULL,
- `default` enum('0','1') NOT NULL,
- `enabled` enum('0','1') NOT NULL DEFAULT '1',
- PRIMARY KEY (`language_id`),
- UNIQUE KEY `code` (`code`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- INSERT INTO `system_languages` (`language_id`, `code`, `title`, `flag_icon`, `dir`, `default`, `enabled`) VALUES
- (1, 'en_US', 'English', 'us', 'LTR', '1', '1'),
- (2, 'ar_EG', 'Arabic', 'sa', 'RTL', '', '1'),
- (3, 'fr_FR', 'Français', 'fr', 'LTR', '', '1'),
- (4, 'es_ES', 'Español', 'es', 'LTR', '', '1'),
- (5, 'pt_PT', 'Português', 'pt', 'LTR', '', '1'),
- (6, 'de_DE', 'Deutsch', 'de', 'LTR', '', '1'),
- (7, 'tr_TR', 'Türkçe', 'tr', 'LTR', '', '1'),
- (8, 'nl_NL', 'Dutch', 'nl', 'LTR', '', '1'),
- (9, 'it_IT', 'Italiano', 'it', 'LTR', '', '1'),
- (10, 'ru_RU', 'Russian', 'ru', 'LTR', '', '1');
- DROP TABLE IF EXISTS `system_options`;
- CREATE TABLE `system_options` (
- `ID` int(10) NOT NULL AUTO_INCREMENT,
- `system_live` enum('1','0') NOT NULL DEFAULT '1',
- `system_message` text NOT NULL,
- `system_title` varchar(255) NOT NULL DEFAULT 'Sngine',
- `system_description` text NOT NULL,
- `system_url` varchar(255) NOT NULL,
- `system_uploads_directory` varchar(255) NOT NULL,
- `system_domain` varchar(255) NOT NULL,
- `users_can_register` enum('1','0') NOT NULL DEFAULT '1',
- `reCAPTCHA_enabled` enum('1','0') NOT NULL DEFAULT '0',
- `reCAPTCHA_site_key` varchar(255) NOT NULL,
- `reCAPTCHA_secret_key` varchar(255) NOT NULL,
- `email_send_activation` enum('1','0') NOT NULL DEFAULT '1',
- `email_smtp_enabled` enum('1','0') NOT NULL DEFAULT '0',
- `email_smtp_authentication` enum('1','0') NOT NULL DEFAULT '1',
- `email_smtp_server` varchar(255) NOT NULL,
- `email_smtp_port` varchar(255) NOT NULL,
- `email_smtp_username` varchar(255) NOT NULL,
- `email_smtp_password` varchar(255) NOT NULL,
- `min_results` int(10) NOT NULL DEFAULT '5',
- `min_results_even` int(10) NOT NULL DEFAULT '6',
- `max_results` int(10) NOT NULL DEFAULT '10',
- `games_enabled` enum('1','0') NOT NULL DEFAULT '0',
- PRIMARY KEY (`ID`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- INSERT INTO `system_options` (`ID`, `system_live`, `system_message`, `system_title`, `system_description`, `system_url`, `system_uploads_directory`, `system_domain`, `users_can_register`, `reCAPTCHA_enabled`, `reCAPTCHA_site_key`, `reCAPTCHA_secret_key`, `email_send_activation`, `email_smtp_enabled`, `email_smtp_authentication`, `email_smtp_server`, `email_smtp_port`, `email_smtp_username`, `email_smtp_password`, `min_results`, `min_results_even`, `max_results`, `games_enabled`) VALUES
- (1, '1', 'We are updating the system please come later!', 'Crzbook', 'Sosmed Mantap :v', 'http://crzbook.com/', 'content/uploads', 'crzbook.com', '1', '', '', '', '', '', '', '', '', '', '', 5, 6, 10, '1');
- DROP TABLE IF EXISTS `system_themes`;
- CREATE TABLE `system_themes` (
- `theme_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `name` varchar(50) NOT NULL,
- `default` enum('0','1') NOT NULL,
- PRIMARY KEY (`theme_id`),
- UNIQUE KEY `name` (`name`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
- INSERT INTO `system_themes` (`theme_id`, `name`, `default`) VALUES
- (1, 'default', '1'),
- (3, '', '');
- DROP TABLE IF EXISTS `users`;
- CREATE TABLE `users` (
- `user_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `user_group` tinyint(1) unsigned NOT NULL DEFAULT '3',
- `user_name` varchar(64) NOT NULL,
- `user_email` varchar(100) NOT NULL,
- `user_token` varchar(64) NOT NULL,
- `user_password` varchar(64) NOT NULL,
- `user_fullname` varchar(255) NOT NULL,
- `user_gender` enum('M','F') NOT NULL,
- `user_picture` varchar(255) NOT NULL,
- `user_cover` varchar(255) NOT NULL,
- `user_work_title` varchar(50) NOT NULL,
- `user_work_place` varchar(50) NOT NULL,
- `user_current_city` varchar(50) NOT NULL,
- `user_hometown` varchar(50) NOT NULL,
- `user_edu_major` varchar(50) DEFAULT NULL,
- `user_edu_school` varchar(50) NOT NULL,
- `user_edu_class` varchar(50) NOT NULL,
- `user_birthdate` date DEFAULT NULL,
- `user_registered` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `user_last_login` datetime NOT NULL,
- `user_privacy_birthdate` enum('friends','public') NOT NULL DEFAULT 'public',
- `user_privacy_work` enum('friends','public') NOT NULL DEFAULT 'public',
- `user_privacy_location` enum('friends','public') NOT NULL DEFAULT 'public',
- `user_privacy_education` enum('friends','public') NOT NULL DEFAULT 'public',
- `user_privacy_friends` enum('me','friends','public') NOT NULL DEFAULT 'public',
- `user_privacy_pages` enum('me','friends','public') NOT NULL DEFAULT 'public',
- `user_privacy_groups` enum('me','friends','public') NOT NULL DEFAULT 'public',
- `user_activation_key` varchar(64) NOT NULL,
- `user_activated` enum('0','1') NOT NULL DEFAULT '0',
- `user_verified` enum('0','1') NOT NULL DEFAULT '0',
- `user_reseted` enum('0','1') NOT NULL DEFAULT '0',
- `user_reset_key` varchar(64) NOT NULL,
- `user_blocked` enum('0','1') NOT NULL DEFAULT '0',
- `user_ip` varchar(64) NOT NULL,
- `user_chat_enabled` enum('0','1') NOT NULL DEFAULT '1',
- `user_live_requests_counter` int(10) NOT NULL DEFAULT '0',
- `user_live_requests_lastid` int(10) NOT NULL DEFAULT '0',
- `user_live_messages_counter` int(10) NOT NULL DEFAULT '0',
- `user_live_messages_lastid` int(10) NOT NULL DEFAULT '0',
- `user_live_notifications_counter` int(10) NOT NULL DEFAULT '0',
- `user_live_notifications_lastid` int(10) NOT NULL DEFAULT '0',
- PRIMARY KEY (`user_id`),
- UNIQUE KEY `username` (`user_name`),
- UNIQUE KEY `user_email` (`user_email`),
- UNIQUE KEY `user_token` (`user_token`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- INSERT INTO `users` (`user_id`, `user_group`, `user_name`, `user_email`, `user_token`, `user_password`, `user_fullname`, `user_gender`, `user_picture`, `user_cover`, `user_work_title`, `user_work_place`, `user_current_city`, `user_hometown`, `user_edu_major`, `user_edu_school`, `user_edu_class`, `user_birthdate`, `user_registered`, `user_last_login`, `user_privacy_birthdate`, `user_privacy_work`, `user_privacy_location`, `user_privacy_education`, `user_privacy_friends`, `user_privacy_pages`, `user_privacy_groups`, `user_activation_key`, `user_activated`, `user_verified`, `user_reseted`, `user_reset_key`, `user_blocked`, `user_ip`, `user_chat_enabled`, `user_live_requests_counter`, `user_live_requests_lastid`, `user_live_messages_counter`, `user_live_messages_lastid`, `user_live_notifications_counter`, `user_live_notifications_lastid`) VALUES
- (1, 1, 'admin.crzstore', '[email protected]', '1528d024c0116e9bdd9138fdab74697b', '7551e103dd8866a5df4f9e7a799fc36b', 'Ahlul Mukhramin', 'M', 'sngine_b303b8740e6f0d231762672ebbddf300.png', 'sngine_2f9403035bd4111855da891530bbc8bf.jpg', '', '', '', '', NULL, '', '', '2001-11-27', '2016-10-15 09:27:27', '2016-10-15 14:24:03', 'public', 'public', 'public', 'public', 'public', 'public', 'public', '', '1', '1', '0', '', '0', '36.84.62.42', '1', 1, 0, 0, 0, 2, 0),
- (2, 3, 'ergafdsc', '[email protected]', 'a522bd040b214f8e8bab4394313d7fa4', '513718c536bb0000416871e0fd0f7d99', 'Weerg', 'M', '', '', '', '', '', '', NULL, '', '', NULL, '2016-10-16 11:06:26', '2016-10-16 11:06:26', 'public', 'public', 'public', 'public', 'public', 'public', 'public', 'd58153058ce005c6e53e953cdd112a8b', '0', '0', '0', '', '0', '115.178.202.36', '1', 0, 0, 0, 0, 0, 0);
- DROP TABLE IF EXISTS `users_blocks`;
- CREATE TABLE `users_blocks` (
- `user_id` int(10) unsigned NOT NULL,
- `blocked_id` int(10) unsigned NOT NULL,
- UNIQUE KEY `user_id_blocked_id` (`user_id`,`blocked_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED;
- DROP TABLE IF EXISTS `users_online`;
- CREATE TABLE `users_online` (
- `user_id` int(10) unsigned NOT NULL,
- `last_seen` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
- UNIQUE KEY `UserID` (`user_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
- INSERT INTO `users_online` (`user_id`, `last_seen`) VALUES
- (2, '2016-10-16 11:07:41');
- DROP TABLE IF EXISTS `widgets`;
- CREATE TABLE `widgets` (
- `widget_id` int(10) NOT NULL AUTO_INCREMENT,
- `title` varchar(255) NOT NULL,
- `place` varchar(255) NOT NULL,
- `code` text NOT NULL,
- PRIMARY KEY (`widget_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
- -- 2016-10-16 13:45:46
Advertisement
Add Comment
Please, Sign In to add comment