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 */;
-- --------------------------------------------------------
-- Table structure for table `alerts`
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`alert_subject` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
`alert_url` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`alert_category` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'general',
`alert_message` text COLLATE utf8_unicode_ci NOT NULL,
`alert_type` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'success',
`visited` tinyint(1) NOT NULL DEFAULT '0',
`alert_time` datetime NOT NULL,
KEY `alert_user_delete` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `analytic_sources`
CREATE TABLE `analytic_sources` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`source_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
UNIQUE KEY `source_name` (`source_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `auditorpagelinks`
CREATE TABLE `auditorpagelinks` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`report_id` bigint(20) NOT NULL,
`link_url` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
`link_anchor` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
`link_title` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
`nofollow` tinyint(1) NOT NULL DEFAULT '0',
`extrenal` tinyint(1) NOT NULL DEFAULT '0',
`brocken` tinyint(1) NOT NULL DEFAULT '0',
KEY `report_id` (`report_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `auditorprojects`
CREATE TABLE `auditorprojects` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`website_id` int(11) NOT NULL,
`max_links` int(11) NOT NULL DEFAULT '500',
`exclude_links` text COLLATE utf8_unicode_ci NOT NULL,
`check_pr` tinyint(1) NOT NULL DEFAULT '0',
`check_backlinks` tinyint(1) NOT NULL DEFAULT '0',
`check_indexed` tinyint(1) NOT NULL DEFAULT '0',
`store_links_in_page` tinyint(1) NOT NULL DEFAULT '0',
`check_brocken` tinyint(1) NOT NULL DEFAULT '0',
`score` float NOT NULL DEFAULT '0',
`cron` tinyint(1) NOT NULL DEFAULT '1',
`status` tinyint(1) NOT NULL DEFAULT '1',
KEY `website_id` (`website_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `auditorreports`
CREATE TABLE `auditorreports` (
`id` bigint(24) NOT NULL AUTO_INCREMENT,
`project_id` int(11) NOT NULL,
`page_url` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
`page_title` varchar(180) COLLATE utf8_unicode_ci DEFAULT NULL,
`page_description` text COLLATE utf8_unicode_ci,
`page_keywords` text COLLATE utf8_unicode_ci,
`pagerank` float NOT NULL DEFAULT '0',
`google_backlinks` int(11) NOT NULL DEFAULT '0',
`bing_backlinks` int(11) NOT NULL DEFAULT '0',
`google_indexed` int(11) NOT NULL DEFAULT '0',
`bing_indexed` int(11) NOT NULL DEFAULT '0',
`total_links` int(11) NOT NULL DEFAULT '0',
`external_links` int(11) NOT NULL DEFAULT '0',
`brocken` tinyint(1) NOT NULL DEFAULT '0',
`crawled` tinyint(1) NOT NULL DEFAULT '0',
`score` smallint(6) NOT NULL DEFAULT '0',
`updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`page_authority` float NOT NULL DEFAULT '0',
UNIQUE KEY `project_id_2` (`project_id`,`page_url`),
KEY `project_id` (`project_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `backlinkresults`
CREATE TABLE `backlinkresults` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`website_id` int(11) NOT NULL,
`google` int(11) NOT NULL,
`alexa` int(11) NOT NULL,
`result_time` int(11) NOT NULL DEFAULT '0',
`result_date` date DEFAULT NULL,
KEY `result_date` (`result_date`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `country`
`country_code` char(2) COLLATE utf8_unicode_ci NOT NULL,
`country_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`country_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- Dumping data for table `country`
INSERT INTO `country` VALUES
('AE', 'United Arab Emirates'),
('AG', 'Antigua and Barbuda'),
('AN', 'Netherlands Antilles'),
('AP', 'Asia/Pacific Region'),
('AS', 'American Samoa'),
('BA', 'Bosnia and Herzegovina'),
('BN', 'Brunei Darussalam'),
('CC', 'Cocos (Keeling) Islands'),
('CF', 'Central African Republic'),
('CI', 'Cote d''Ivoire'),
('CX', 'Christmas Island'),
('CZ', 'Czech Republic'),
('DO', 'Dominican Republic'),
('EH', 'Western Sahara'),
('FK', 'Falkland Islands (Malvinas)'),
('FM', 'Micronesia Federated States of'),
('GB', 'United Kingdom'),
('GQ', 'Equatorial Guinea'),
('GS', 'South Georgia and the South Sandwich Islands'),
('HM', 'Heard Island and McDonald Islands'),
('IO', 'British Indian Ocean Territory'),
('IR', 'Iran Islamic Republic of'),
('KN', 'Saint Kitts and Nevis'),
('KP', 'Korea Democratic People''s Republic of'),
('KR', 'Korea Republic of'),
('KY', 'Cayman Islands'),
('LA', 'Lao People''s Democratic Republic'),
('LY', 'Libyan Arab Jamahiriya'),
('MD', 'Moldova Republic of'),
('MH', 'Marshall Islands'),
('MP', 'Northern Mariana Islands'),
('NF', 'Norfolk Island'),
('PF', 'French Polynesia'),
('PG', 'Papua New Guinea'),
('PM', 'Saint Pierre and Miquelon'),
('PS', 'Palestinian Territory'),
('RU', 'Russian Federation'),
('SB', 'Solomon Islands'),
('SJ', 'Svalbard and Jan Mayen'),
('ST', 'Sao Tome and Principe'),
('SY', 'Syrian Arab Republic'),
('TC', 'Turks and Caicos Islands'),
('TF', 'French Southern Territories'),
('TT', 'Trinidad and Tobago'),
('TZ', 'Tanzania United Republic of'),
('UM', 'United States Minor Outlying Islands'),
('VA', 'Holy See (Vatican City State)'),
('VC', 'Saint Vincent and the Grenadines'),
('VG', 'Virgin Islands British'),
('VI', 'Virgin Islands U.S.'),
('WF', 'Wallis and Futuna'),
-- --------------------------------------------------------
-- Table structure for table `crawl_engines`
CREATE TABLE `crawl_engines` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`engine_name` varchar(60) COLLATE utf8_unicode_ci NOT NULL,
`engine_category` varchar(60) COLLATE utf8_unicode_ci NOT NULL,
`regex1` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`regex2` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`regex3` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`regex4` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`url` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
`url_part` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
`status` tinyint(1) NOT NULL DEFAULT '1',
UNIQUE KEY `engine_name` (`engine_name`,`engine_category`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=15 ;
-- Dumping data for table `crawl_engines`
INSERT INTO `crawl_engines` VALUES
(1, 'alexa', 'rank', '/\\<popularity url\\="(.*?)" TEXT\\="([0-9]+)"/si', NULL, NULL, NULL, '', NULL, 1),
(2, 'bing', 'backlink', '/([0-9\\,]+) results/si', '/id="count".*?>.*?\\(([0-9\\,]+).*?\\)/si', '/id="count".*?>.*?([0-9\\,]+).*?/si', '/class="sb_count".*?>.*?([0-9\\,]+).*?<\\/span>/si', '', NULL, 1),
(3, 'alexa', 'backlink', '/linksin".*?big.*?>(.*?)</si', NULL, NULL, NULL, '', NULL, 1),
(4, 'google', 'backlink', '/about ([0-9\\,]+) result/si', '/<div id=resultStats>([0-9\\,]+) result/si', '/([0-9\\,]+) result/si', '/about <b>([0-9\\,]+)<\\/b> linking/si', '', NULL, 1),
(5, 'google', 'saturation', '/about ([0-9\\,]+) result/si', '/<div id=resultStats>([0-9\\,]+) result/si', '/([0-9\\,]+) result/si', '/about <b>([0-9\\,]+)<\\/b> linking/si', '', NULL, 1),
(6, 'bing', 'saturation', '/([0-9\\,]+) results/si', '/id="count".*?>.*?\\(([0-9\\,]+).*?\\)/si', '/id="count".*?>.*?([0-9\\,]+).*?/si', '/class="sb_count".*?>.*?([0-9\\,]+).*?<\\/span>/si', '', NULL, 1),
(7, 'facebook', 'social_media', '/description".*?content=".*?([\\d,]+) likes/is', '/Total Likes.*?>([\\d,]+).*?Total Follows/is', NULL, NULL, '', '?locale=en_US', 1),
(8, 'twitter', 'social_media', '/followers_count".*?(\\d+)/is', NULL, NULL, NULL, 'https://cdn.syndication.twimg.com/widgets/followbutton/info.json?screen_names={ACC_NAME}', NULL, 1),
(9, 'instagram', 'social_media', '/edge_followed_by.*?"count":(.*?)\\}/is', NULL, NULL, NULL, '', '/?__a=1', 1),
(10, 'linkedin', 'social_media', '/<div.*?follower-count.*?>(.*?)<\\/div>/is', NULL, NULL, NULL, 'https://www.linkedin.com/pages-extensions/FollowCompany?id={CID}&counter=bottom', NULL, 1),
(11, 'pinterest', 'social_media', '/pinterestapp:followers.*?content="(.*?)"/is', NULL, NULL, NULL, '', NULL, 1),
(12, 'youtube', 'social_media', '/subscriberCountText".*?"(\\d.*?) subscribers"/is', NULL, NULL, NULL, '', '/about', 1),
(13, 'google', 'review', '/<span>([0-9.,]+) Google reviews<\\/span>/is', '/<\\/g-popup>.*?aria-label="Rated (\\d+\\.\\d+) out/is', NULL, NULL, '', NULL, 1),
(14, 'glassdoor', 'review', '/"reviewCount":([0-9.,]+)/is', '/"overallRating":(\\d+\\.\\d+)/is', NULL, NULL, '', NULL, 1);
-- --------------------------------------------------------
-- Table structure for table `crawl_log`
CREATE TABLE `crawl_log` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`crawl_type` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'other',
`ref_id` text COLLATE utf8_unicode_ci,
`subject` varchar(60) COLLATE utf8_unicode_ci DEFAULT NULL,
`crawl_link` text COLLATE utf8_unicode_ci NOT NULL,
`crawl_referer` text COLLATE utf8_unicode_ci,
`crawl_cookie` text COLLATE utf8_unicode_ci,
`crawl_post_fields` text COLLATE utf8_unicode_ci,
`crawl_useragent` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`crawl_status` tinyint(4) NOT NULL DEFAULT '1',
`proxy_id` int(11) unsigned NOT NULL DEFAULT '0',
`log_message` text COLLATE utf8_unicode_ci,
`crawl_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
KEY `crawl_status` (`crawl_status`),
KEY `crawl_type` (`crawl_type`),
KEY `proxy_id` (`proxy_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `currency`
CREATE TABLE `currency` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(160) COLLATE utf8_unicode_ci NOT NULL,
`iso_code` varchar(3) COLLATE utf8_unicode_ci NOT NULL,
`symbol` varchar(3) COLLATE utf8_unicode_ci NOT NULL,
`unicode` varchar(8) COLLATE utf8_unicode_ci NOT NULL,
`position` varchar(6) COLLATE utf8_unicode_ci NOT NULL,
`paypal` tinyint(1) NOT NULL DEFAULT '0',
`status` tinyint(1) NOT NULL DEFAULT '1',
UNIQUE KEY `iso_code` (`iso_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=68 ;
-- Dumping data for table `currency`
INSERT INTO `currency` VALUES
(1, 'United Arab Emirates Dirham', 'AED', 'د.', '', 'after', 0, 1),
(2, 'Netherlands Antillian Guilder', 'ANG', 'Æ’', 'ƒ', 'before', 0, 1),
(3, '', 'AOA', 'AOA', 'AOA', 'before', 0, 1),
(4, 'Argentine Peso', 'ARS', '$', '$', 'before', 0, 1),
(5, 'Australian Dollar', 'AUD', '$', '$', 'before', 1, 1),
(6, '', 'BAM', 'KM', 'KM', 'before', 0, 1),
(7, 'Barbados Dollar', 'BBD', '$', '$', 'before', 0, 1),
(8, '', 'BGL', 'лÐ', 'л&', 'before', 0, 1),