File: //var/softaculous/share/share.sql
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: `soft_share362`
--
-- --------------------------------------------------------
--
-- Table structure for table `applications`
--
CREATE TABLE `applications` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`detect` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`total_posts` int(10) unsigned NOT NULL,
`app_id` int(10) unsigned NOT NULL,
`user_id` int(10) unsigned NOT NULL,
`consumer_key` varchar(1000) COLLATE utf8_unicode_ci NOT NULL,
`consumer_secret` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
`callback_url` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
`avatar` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
`description` text COLLATE utf8_unicode_ci NOT NULL,
`app_website` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
`organization` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
`website` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
`app_type` enum('','browser','client') COLLATE utf8_unicode_ci NOT NULL,
`acc_type` enum('','r','rw') COLLATE utf8_unicode_ci NOT NULL,
`use_for_login` tinyint(1) unsigned NOT NULL,
`reg_date` int(10) unsigned NOT NULL,
`reg_ip` bigint(10) unsigned NOT NULL,
`suspended` tinyint(1) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `app_id` (`app_id`),
KEY `consumer_key` (`consumer_key`(333))
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=9 ;
--
-- Dumping data for table `applications`
--
INSERT INTO `applications` VALUES
(1, 'mobi', '', 0, 0, 0, '', '', '', '', '', '', '', '', '', '', 0, 0, 0, 0),
(2, 'RSS', '', 0, 0, 0, '', '', '', '', '', '', '', '', '', '', 0, 0, 0, 0),
(3, 'email', '', 0, 0, 0, '', '', '', '', '', '', '', '', '', '', 0, 0, 0, 0),
(0, 'web', '', 0, 0, 0, '', '', '', '', '', '', '', '', '', '', 0, 0, 0, 0),
(4, 'api', '', 0, 0, 0, '', '', '', '', '', '', '', '', '', '', 0, 0, 0, 0),
(5, '<a href="http://www.tweetdeck.com/" target="_blank">tweetdeck</a>', '', 0, 0, 0, '', '', '', '', '', '', '', '', '', '', 0, 0, 0, 0),
(6, 'twitter', '', 0, 0, 0, '', '', '', '', '', '', '', '', '', '', 0, 0, 0, 0),
(7, '<a href="http://getspaz.com/" target="_blank">Spaz</a>', 'spaz', 0, 0, 0, '', '', '', '', '', '', '', '', '', '', 0, 0, 0, 0),
(8, '<a href="http://twitter.com/" target="_blank">Twitter</a>', 'twitter', 0, 0, 0, '', '', '', '', '', '', '', '', '', '', 0, 0, 0, 0);
-- --------------------------------------------------------
--
-- Table structure for table `cache`
--
CREATE TABLE `cache` (
`key` varchar(32) NOT NULL,
`data` varchar(21810) NOT NULL,
`expire` int(10) unsigned NOT NULL,
PRIMARY KEY (`key`)
) ENGINE=MEMORY DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `crons`
--
CREATE TABLE `crons` (
`cron` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
`last_run` int(10) unsigned NOT NULL,
`next_run` int(10) unsigned NOT NULL,
`is_running` tinyint(1) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`cron`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `email_change_requests`
--
CREATE TABLE `email_change_requests` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(10) unsigned NOT NULL,
`new_email` varchar(100) NOT NULL,
`confirm_key` varchar(32) NOT NULL,
`confirm_valid` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `user_id` (`user_id`,`confirm_key`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `groups`
--
CREATE TABLE `groups` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`groupname` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`avatar` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
`about_me` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
`is_public` tinyint(1) unsigned NOT NULL,
`num_posts` int(10) unsigned NOT NULL DEFAULT '0',
`num_followers` int(10) unsigned NOT NULL DEFAULT '0',
`category_id` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `groupname` (`groupname`),
KEY `is_public` (`is_public`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `groups_admins`
--
CREATE TABLE `groups_admins` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`group_id` int(10) unsigned NOT NULL,
`user_id` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `group_id` (`group_id`),
KEY `user_id` (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `groups_categories`
--
CREATE TABLE `groups_categories` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`url` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`is_admin_created` int(11) NOT NULL DEFAULT '0',
`creator_id` int(11) NOT NULL,
`is_locked` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `groups_deleted`
--
CREATE TABLE `groups_deleted` (
`id` int(10) unsigned NOT NULL,
`groupname` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`is_public` tinyint(1) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `is_public` (`is_public`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `groups_followed`
--
CREATE TABLE `groups_followed` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(10) unsigned NOT NULL,
`group_id` int(10) unsigned NOT NULL,
`date` int(10) unsigned NOT NULL,
`group_from_postid` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `user_id` (`user_id`),
KEY `group_id` (`group_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `groups_private_members`
--
CREATE TABLE `groups_private_members` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`group_id` int(10) unsigned NOT NULL,
`user_id` int(10) unsigned NOT NULL,
`invited_by` int(10) unsigned NOT NULL,
`invited_date` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `group_id` (`group_id`),
KEY `user_id` (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `group_notifications`
--
CREATE TABLE `group_notifications` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`notif_type` varchar(50) CHARACTER SET utf8 NOT NULL,
`to_group_id` int(5) unsigned NOT NULL,
`from_user_id` int(8) unsigned NOT NULL,
`date` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `invitation_codes`
--
CREATE TABLE `invitation_codes` (
`code` varchar(32) COLLATE utf8_unicode_ci NOT NULL,
`user_id` int(10) NOT NULL,
PRIMARY KEY (`code`),
KEY `network_id` (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `ip_rates_limit`
--
CREATE TABLE `ip_rates_limit` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`ip` bigint(12) NOT NULL,
`rate_limits` int(10) NOT NULL,
`rate_limits_date` int(10) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `languages`
--
CREATE TABLE `languages` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`langkey` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0',
`installed` int(10) DEFAULT NULL,
`version` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `langkey` (`langkey`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ;
--
-- Dumping data for table `languages`
--
INSERT INTO `languages` VALUES
(1, 'en', 1, 0);
-- --------------------------------------------------------
--
-- Table structure for table `notifications`
--
CREATE TABLE `notifications` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`notif_type` varchar(30) CHARACTER SET utf8 NOT NULL,
`to_user_id` int(7) unsigned NOT NULL,
`in_group_id` int(4) unsigned NOT NULL,
`from_user_id` varchar(255) CHARACTER SET utf8 NOT NULL,
`notif_object_type` varchar(50) CHARACTER SET utf8 NOT NULL,
`notif_object_id` int(10) unsigned NOT NULL,
`date` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `oauth_access_token`
--
CREATE TABLE `oauth_access_token` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`app_id` int(10) unsigned NOT NULL,
`consumer_key` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`time_stamp` bigint(20) NOT NULL,
`version` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
`nonce` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`access_token` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`token_secret` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`user_id` int(11) NOT NULL,
`user_verified` tinyint(1) NOT NULL,
`rate_limits` int(5) NOT NULL,
`rate_limits_date` int(5) NOT NULL,
PRIMARY KEY (`id`),
KEY `consumer_key` (`consumer_key`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `oauth_log`
--
CREATE TABLE `oauth_log` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`app_id` int(10) unsigned NOT NULL,
`user_id` int(10) unsigned NOT NULL,
`date` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `app_id` (`app_id`,`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `oauth_request_token`
--
CREATE TABLE `oauth_request_token` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`consumer_key` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`nonce` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`time_stamp` bigint(20) NOT NULL,
`version` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
`token_secret` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
`request_token` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
`verifier` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
`user_id` bigint(20) NOT NULL,
PRIMARY KEY (`id`),
KEY `request_token` (`request_token`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `plugins`
--
CREATE TABLE `plugins` (
`id` int(6) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`is_installed` tinyint(1) unsigned NOT NULL,
`date_installed` int(10) unsigned NOT NULL,
`installed_by_user_id` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `plugins_cache`
--
CREATE TABLE `plugins_cache` (
`id` int(6) unsigned NOT NULL AUTO_INCREMENT,
`plugin_name` char(50) COLLATE utf8_unicode_ci NOT NULL,
`event_name` char(50) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`),
KEY `plugin_name` (`plugin_name`,`event_name`) USING BTREE
) ENGINE=MEMORY DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ;
--
-- Dumping data for table `plugins_cache`
--
INSERT INTO `plugins_cache` VALUES
(1, 'not_found_[[RNDKEY]]', 'onPageLoad');
-- --------------------------------------------------------
--
-- Table structure for table `plugins_installed`
--
CREATE TABLE `plugins_installed` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL,
`marketplace_id` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `plugins_tables`
--
CREATE TABLE `plugins_tables` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`table` varchar(255) NOT NULL,
`owner` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `table` (`table`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=49 ;
--
-- Dumping data for table `plugins_tables`
--
INSERT INTO `plugins_tables` VALUES
(1, 'applications', 'system'),
(2, 'cache', 'system'),
(3, 'crons', 'system'),
(4, 'email_change_requests', 'system'),
(5, 'group_notifications', 'system'),
(6, 'groups', 'system'),
(7, 'groups_admins', 'system'),
(8, 'groups_categories', 'system'),
(9, 'groups_deleted', 'system'),
(10, 'groups_followed', 'system'),
(11, 'groups_private_members', 'system'),
(12, 'invitation_codes', 'system'),
(13, 'ip_rates_limit', 'system'),
(14, 'languages', 'system'),
(15, 'notifications', 'system'),
(16, 'oauth_access_token', 'system'),
(17, 'oauth_log', 'system'),
(18, 'oauth_request_token', 'system'),
(19, 'plugins', 'system'),
(20, 'plugins_cache', 'system'),
(21, 'plugins_installed', 'system'),
(22, 'plugins_tables', 'system'),
(23, 'post_favs', 'system'),
(24, 'post_likes', 'system'),
(25, 'post_tags', 'system'),
(26, 'post_userbox', 'system'),
(27, 'posts', 'system'),
(28, 'posts_attachments', 'system'),
(29, 'posts_comments', 'system'),
(30, 'posts_comments_mentioned', 'system'),
(31, 'posts_comments_watch', 'system'),
(32, 'posts_mentioned', 'system'),
(33, 'posts_pr', 'system'),
(34, 'posts_pr_attachments', 'system'),
(35, 'posts_pr_comments', 'system'),
(36, 'posts_pr_comments_mentioned', 'system'),
(37, 'posts_pr_comments_watch', 'system'),
(38, 'posts_pr_mentioned', 'system'),
(39, 'pubsubhubbub_subscriptions', 'system'),
(40, 'searches', 'system'),
(41, 'settings', 'system'),
(42, 'unconfirmed_registrations', 'system'),
(43, 'users', 'system'),
(44, 'users_dashboard_tabs', 'system'),
(45, 'users_details', 'system'),
(46, 'users_followed', 'system'),
(47, 'users_invitations', 'system'),
(48, 'users_notif_rules', 'system');
-- --------------------------------------------------------
--
-- Table structure for table `posts`
--
CREATE TABLE `posts` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`api_id` smallint(5) unsigned NOT NULL DEFAULT '0',
`user_id` int(10) unsigned NOT NULL,
`group_id` int(10) unsigned NOT NULL,
`message` varchar(1000) COLLATE utf8_unicode_ci NOT NULL,
`mentioned` tinyint(2) unsigned NOT NULL DEFAULT '0',
`attached` tinyint(1) unsigned NOT NULL DEFAULT '0',
`posttags` tinyint(2) unsigned NOT NULL DEFAULT '0',
`comments` smallint(4) unsigned NOT NULL DEFAULT '0',
`reshares` smallint(5) unsigned NOT NULL DEFAULT '0',
`likes` smallint(5) unsigned NOT NULL DEFAULT '0',
`date` int(10) unsigned NOT NULL,
`date_lastedit` int(10) NOT NULL,
`date_lastcomment` int(10) NOT NULL,
`ip_addr` bigint(10) NOT NULL,
PRIMARY KEY (`id`),
KEY `user_id` (`user_id`),
KEY `group_id` (`group_id`),
KEY `api_id` (`api_id`),
KEY `api_user_IDX` (`api_id`,`user_id`),
FULLTEXT KEY `message` (`message`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ;
--
-- Dumping data for table `posts`
--
INSERT INTO `posts` VALUES
(1, 0, 1, 0, 'Welcome to [[site_name]]', 0, 0, 0, 0, 0, 0, [[timestamp]], 0, [[timestamp]], [[longip]]);
-- --------------------------------------------------------
--
-- Table structure for table `posts_attachments`
--
CREATE TABLE `posts_attachments` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`post_id` int(10) unsigned NOT NULL,
`type` enum('link','image','videoembed','videoupload','text','file') COLLATE utf8_unicode_ci NOT NULL,
`data` text COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`),
KEY `post_id` (`post_id`),
KEY `type` (`type`),
KEY `post_type_IDX` (`post_id`,`type`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `posts_comments`
--
CREATE TABLE `posts_comments` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`api_id` smallint(5) unsigned NOT NULL DEFAULT '0',
`post_id` int(10) unsigned NOT NULL,
`user_id` int(10) unsigned NOT NULL,
`message` text COLLATE utf8_unicode_ci NOT NULL,
`mentioned` tinyint(2) unsigned NOT NULL,
`likes` int(5) unsigned NOT NULL,
`posttags` tinyint(2) unsigned NOT NULL,
`date` int(10) unsigned NOT NULL,
`ip_addr` bigint(10) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `post_id` (`post_id`),
KEY `user_id` (`user_id`),
FULLTEXT KEY `message` (`message`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `posts_comments_mentioned`
--
CREATE TABLE `posts_comments_mentioned` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`comment_id` int(10) NOT NULL,
`user_id` int(10) NOT NULL,
PRIMARY KEY (`id`),
KEY `comment_id` (`comment_id`),
KEY `user_id` (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `posts_comments_watch`
--
CREATE TABLE `posts_comments_watch` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(10) unsigned NOT NULL,
`post_id` int(10) unsigned NOT NULL,
`newcomments` smallint(5) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `post_id` (`post_id`),
KEY `user_id` (`user_id`),
KEY `user_post_IDX` (`user_id`,`post_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `posts_mentioned`
--
CREATE TABLE `posts_mentioned` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`post_id` int(10) unsigned NOT NULL,
`user_id` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `post_id` (`post_id`),
KEY `user_id` (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `posts_pr`
--
CREATE TABLE `posts_pr` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`api_id` smallint(5) unsigned NOT NULL DEFAULT '0',
`user_id` int(10) unsigned NOT NULL,
`to_user` int(10) unsigned NOT NULL,
`message` varchar(1000) COLLATE utf8_unicode_ci NOT NULL,
`mentioned` tinyint(2) unsigned NOT NULL DEFAULT '0',
`attached` tinyint(1) unsigned NOT NULL DEFAULT '0',
`posttags` tinyint(2) unsigned NOT NULL DEFAULT '0',
`comments` smallint(4) unsigned NOT NULL DEFAULT '0',
`date` int(10) unsigned NOT NULL,
`date_lastedit` int(10) NOT NULL,
`date_lastcomment` int(10) NOT NULL,
`ip_addr` bigint(10) NOT NULL,
`is_recp_del` tinyint(1) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `user_id` (`user_id`),
KEY `to_user` (`to_user`),
KEY `is_recp_del` (`is_recp_del`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `posts_pr_attachments`
--
CREATE TABLE `posts_pr_attachments` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`post_id` int(10) unsigned NOT NULL,
`type` enum('link','image','videoembed','videoupload','text','file') COLLATE utf8_unicode_ci NOT NULL,
`data` text COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`),
KEY `post_id` (`post_id`),
KEY `type` (`type`),
KEY `post_type_IDX` (`post_id`,`type`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `posts_pr_comments`
--
CREATE TABLE `posts_pr_comments` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`api_id` smallint(5) unsigned NOT NULL DEFAULT '0',
`post_id` int(10) unsigned NOT NULL,
`user_id` int(10) unsigned NOT NULL,
`message` text COLLATE utf8_unicode_ci NOT NULL,
`mentioned` tinyint(2) unsigned NOT NULL,
`posttags` tinyint(2) unsigned NOT NULL,
`date` int(10) unsigned NOT NULL,
`ip_addr` bigint(10) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `post_id` (`post_id`),
KEY `user_id` (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `posts_pr_comments_mentioned`
--
CREATE TABLE `posts_pr_comments_mentioned` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`comment_id` int(10) NOT NULL,
`user_id` int(10) NOT NULL,
PRIMARY KEY (`id`),
KEY `comment_id` (`comment_id`),
KEY `user_id` (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `posts_pr_comments_watch`
--
CREATE TABLE `posts_pr_comments_watch` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(10) unsigned NOT NULL,
`post_id` int(10) unsigned NOT NULL,
`newcomments` smallint(5) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `user_id` (`user_id`),
KEY `post_id` (`post_id`),
KEY `user_post_IDX` (`user_id`,`post_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `posts_pr_mentioned`
--
CREATE TABLE `posts_pr_mentioned` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`post_id` int(10) unsigned NOT NULL,
`user_id` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `post_id` (`post_id`),
KEY `user_id` (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `post_favs`
--
CREATE TABLE `post_favs` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(10) unsigned NOT NULL,
`post_type` enum('public','private') COLLATE utf8_unicode_ci NOT NULL,
`post_id` int(10) unsigned NOT NULL,
`date` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `post_type` (`post_type`,`post_id`),
KEY `user_id` (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `post_likes`
--
CREATE TABLE `post_likes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`group_id` int(11) NOT NULL DEFAULT '0',
`user_id` int(11) NOT NULL,
`post_id` int(11) NOT NULL,
`comment_id` int(11) NOT NULL DEFAULT '0',
`date` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `post_tags`
--
CREATE TABLE `post_tags` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`tag_name` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
`user_id` int(10) unsigned NOT NULL,
`group_id` int(10) unsigned NOT NULL,
`post_id` int(10) unsigned NOT NULL,
`date` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `tag_name` (`tag_name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `post_userbox`
--
CREATE TABLE `post_userbox` (
`id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(10) unsigned NOT NULL,
`post_id` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `user_id` (`user_id`),
KEY `post_id` (`post_id`),
KEY `user_post_IDX` (`user_id`,`post_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ;
--
-- Dumping data for table `post_userbox`
--
INSERT INTO `post_userbox` VALUES
(1, 1, 1);
-- --------------------------------------------------------
--
-- Table structure for table `pubsubhubbub_subscriptions`
--
CREATE TABLE `pubsubhubbub_subscriptions` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`feed_url` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
`status` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
`last_status_date` int(10) unsigned NOT NULL,
`parse_needed` tinyint(1) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `feed_url` (`feed_url`(333)),
KEY `status` (`status`),
KEY `parse_needed` (`parse_needed`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `searches`
--
CREATE TABLE `searches` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(10) unsigned NOT NULL,
`search_key` varchar(32) COLLATE utf8_unicode_ci NOT NULL,
`search_string` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`search_url` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`added_date` int(10) unsigned NOT NULL,
`total_hits` mediumint(5) unsigned NOT NULL DEFAULT '0',
`last_results` mediumint(5) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `user_id` (`user_id`,`search_key`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `settings`
--
CREATE TABLE `settings` (
`word` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
`value` text COLLATE utf8_unicode_ci NOT NULL,
UNIQUE KEY `word` (`word`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `settings`
--
INSERT INTO `settings` VALUES
('SITE_TITLE', '[[site_name]]'),
('POST_MAX_SYMBOLS', '160'),
('LANGUAGE', 'en'),
('SYSTEM_EMAIL', '[[admin_email]]'),
('COMPANY', '[[site_name]]'),
('USERS_EMAIL_CONFIRMATION', '1'),
('API_STATUS', '0'),
('PROTECT_OUTSIDE_PAGES', '0'),
('THEME', 'default'),
('MOBI_DISABLED', '0'),
('POST_TYPES_TO_AUTODELETE', 'feed'),
('POST_TYPES_DELETE_PERIOD', '14'),
('NAME_INDENTIFICATOR', '1'),
('ADMIN_STEALTH_MODE', '0'),
('USERS_TO_CREATE_SUBCATEGORIES', '0');
-- --------------------------------------------------------
--
-- Table structure for table `unconfirmed_registrations`
--
CREATE TABLE `unconfirmed_registrations` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`fullname` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
`confirm_key` varchar(32) COLLATE utf8_unicode_ci NOT NULL,
`invited_code` varchar(32) COLLATE utf8_unicode_ci NOT NULL,
`date` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `email` (`email`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`facebook_uid` varchar(32) COLLATE utf8_unicode_ci NOT NULL,
`twitter_uid` varchar(32) COLLATE utf8_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`username` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
`password` varchar(32) COLLATE utf8_unicode_ci NOT NULL,
`fullname` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`avatar` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`about_me` text COLLATE utf8_unicode_ci NOT NULL,
`tags` text COLLATE utf8_unicode_ci NOT NULL,
`gender` enum('','m','f') COLLATE utf8_unicode_ci NOT NULL,
`birthdate` date NOT NULL,
`position` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`location` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`language` varchar(5) COLLATE utf8_unicode_ci NOT NULL,
`timezone` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
`num_posts` int(10) unsigned NOT NULL,
`num_followers` int(10) unsigned NOT NULL,
`reg_date` int(10) unsigned NOT NULL,
`reg_ip` bigint(10) NOT NULL,
`lastlogin_date` int(10) unsigned NOT NULL,
`lastlogin_ip` bigint(10) NOT NULL,
`lastpost_date` int(10) unsigned NOT NULL,
`lastemail_date` int(10) unsigned NOT NULL,
`lastclick_date` int(10) unsigned NOT NULL,
`lastclick_date_newest_post` int(10) unsigned NOT NULL,
`pass_reset_key` varchar(32) COLLATE utf8_unicode_ci NOT NULL,
`pass_reset_valid` int(10) unsigned NOT NULL,
`active` tinyint(1) unsigned NOT NULL DEFAULT '1',
`is_network_admin` tinyint(1) unsigned NOT NULL DEFAULT '0',
`is_posts_protected` tinyint(1) unsigned NOT NULL DEFAULT '0',
`is_profile_protected` tinyint(1) unsigned NOT NULL DEFAULT '0',
`is_dm_protected` tinyint(1) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `email` (`email`),
UNIQUE KEY `username` (`username`),
KEY `active` (`active`),
KEY `num_followers` (`num_followers`),
KEY `facebook_uid` (`facebook_uid`),
KEY `twitter_uid` (`twitter_uid`),
KEY `pass_reset_IDX` (`pass_reset_key`,`pass_reset_valid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ;
--
-- Dumping data for table `users`
--
INSERT INTO `users` VALUES
(1, '', '', '[[admin_email]]', '[[admin_username]]', '[[admin_pass]]', '[[site_name]]', '', '', '', '', '0000-00-00', '', '', 'en', '', 1, 0, [[timestamp]], [[longip]], 0, 0, [[timestamp]], 0, 0, 0, '', 0, 1, 1, 0, 0, 0);
-- --------------------------------------------------------
--
-- Table structure for table `users_dashboard_tabs`
--
CREATE TABLE `users_dashboard_tabs` (
`user_id` int(10) unsigned NOT NULL,
`tab` enum('','all','@me','private','commented','feeds','tweets','notifications') COLLATE utf8_unicode_ci NOT NULL,
`state` tinyint(1) unsigned NOT NULL,
`newposts` smallint(4) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`user_id`,`tab`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `users_details`
--
CREATE TABLE `users_details` (
`user_id` int(10) unsigned NOT NULL,
`website` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`work_phone` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`personal_phone` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`personal_email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`im_skype` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`im_gtalk` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`prof_linkedin` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`prof_facebook` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`prof_twitter` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `users_followed`
--
CREATE TABLE `users_followed` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`who` int(10) unsigned NOT NULL,
`whom` int(10) unsigned NOT NULL,
`date` int(10) unsigned NOT NULL,
`whom_from_postid` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `who` (`who`),
KEY `whom` (`whom`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `users_invitations`
--
CREATE TABLE `users_invitations` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(10) unsigned NOT NULL,
`date` int(10) unsigned NOT NULL,
`recp_name` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
`recp_email` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
`recp_is_registered` tinyint(1) unsigned NOT NULL DEFAULT '0',
`recp_user_id` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `user_id` (`user_id`,`recp_is_registered`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `users_notif_rules`
--
CREATE TABLE `users_notif_rules` (
`user_id` int(10) unsigned NOT NULL,
`ntf_them_if_i_follow_usr` tinyint(1) unsigned NOT NULL COMMENT '0-off, 1-on',
`ntf_them_if_i_comment` tinyint(1) unsigned NOT NULL COMMENT '0-off, 1-on',
`ntf_them_if_i_edt_profl` tinyint(1) unsigned NOT NULL COMMENT '0-off, 1-on',
`ntf_them_if_i_edt_pictr` tinyint(1) unsigned NOT NULL COMMENT '0-off, 1-on',
`ntf_them_if_i_create_grp` tinyint(1) unsigned NOT NULL COMMENT '0-off, 1-on',
`ntf_them_if_i_join_grp` tinyint(1) unsigned NOT NULL COMMENT '0-off, 1-on',
`ntf_me_if_u_follows_me` tinyint(1) unsigned NOT NULL COMMENT '0-off, 2-msg, 3-mail, 1-both',
`ntf_me_if_u_follows_u2` tinyint(1) unsigned NOT NULL COMMENT '0-off, 2-msg, 3-mail, 1-both',
`ntf_me_if_u_commments_me` tinyint(1) unsigned NOT NULL COMMENT '0-off, 2-msg, 3-mail, 1-both',
`ntf_me_if_u_commments_m2` tinyint(1) unsigned NOT NULL COMMENT '0-off, 2-msg, 3-mail, 1-both',
`ntf_me_if_u_edt_profl` tinyint(1) unsigned NOT NULL COMMENT '0-off, 2-msg, 3-mail, 1-both',
`ntf_me_if_u_edt_pictr` tinyint(3) unsigned NOT NULL COMMENT '0-off, 2-msg, 3-mail, 1-both',
`ntf_me_if_u_creates_grp` tinyint(1) unsigned NOT NULL COMMENT '0-off, 2-msg, 3-mail, 1-both',
`ntf_me_if_u_joins_grp` tinyint(1) unsigned NOT NULL COMMENT '0-off, 2-msg, 3-mail, 1-both',
`ntf_me_if_u_invit_me_grp` tinyint(1) unsigned NOT NULL COMMENT '0-off, 2-msg, 3-mail, 1-both',
`ntf_me_if_u_posts_qme` tinyint(1) unsigned NOT NULL COMMENT '0-off, 2-msg, 3-mail, 1-both',
`ntf_me_if_u_posts_prvmsg` tinyint(1) unsigned NOT NULL COMMENT '0-off, 2-msg, 3-mail, 1-both',
`ntf_me_if_u_registers` tinyint(1) unsigned NOT NULL COMMENT '0-off, 2-msg, 3-mail, 1-both',
`ntf_me_on_post_like` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0-off, 1-both, 2-post, 3-email',
`ntf_me_on_comment_like` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0-off, 1-both, 2-post, 3-email',
PRIMARY KEY (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!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 */;