Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE TABLE `email` (
- `email_id` INT(11) NOT NULL AUTO_INCREMENT,
- `supplier_id` INT(11) NOT NULL DEFAULT '0',
- `country` ENUM('uk','ie') NOT NULL DEFAULT 'uk',
- `business` ENUM('group','dead') NOT NULL DEFAULT 'group',
- `business_division` ENUM('general') NOT NULL DEFAULT 'general',
- `start_date` DATE NOT NULL DEFAULT '0000-00-00',
- `stop_date` DATE NOT NULL DEFAULT '0000-00-00',
- `subject` VARCHAR(250) NOT NULL DEFAULT '',
- `agency` VARCHAR(250) NOT NULL DEFAULT '',
- `lists` VARCHAR(250) NOT NULL DEFAULT '',
- `cost` VARCHAR(250) NOT NULL DEFAULT '',
- `broadcast_fee` DECIMAL(10,2) NOT NULL DEFAULT '0.00',
- `predefined_cpa` DECIMAL(10,2) NOT NULL DEFAULT '0.00',
- `type` INT(11) NOT NULL DEFAULT '1',
- `subtype` INT(11) NOT NULL DEFAULT '0',
- `costmethod` INT(11) NOT NULL DEFAULT '0',
- `status` VARCHAR(30) NULL DEFAULT NULL,
- `lastupdate` DATE NOT NULL DEFAULT '0000-00-00',
- `lastsplitupdate` DATE NOT NULL DEFAULT '0000-00-00',
- `islocked` TINYINT(4) NOT NULL DEFAULT '0',
- `locktime` INT(14) NOT NULL DEFAULT '0',
- PRIMARY KEY (`email_id`),
- INDEX `supplier_id` (`supplier_id`),
- INDEX `country` (`country`),
- INDEX `business_division` (`business_division`),
- INDEX `type` (`type`),
- INDEX `business` (`business`)
- )
- COLLATE='utf8_general_ci'
- ENGINE=MyISAM
- AUTO_INCREMENT=12457;
- REPLACE INTO `UnknownTable` (`email_id`, `supplier_id`, `country`, `business`, `business_division`, `start_date`, `stop_date`, `subject`, `agency`, `lists`, `cost`, `broadcast_fee`, `predefined_cpa`, `type`, `subtype`, `costmethod`, `status`, `lastupdate`, `lastsplitupdate`, `islocked`, `locktime`, `type_id`, `typename`, `media`, `groupname`, `isActive`, `linkname`, `campaigntype_id`, `subtype_id`, `type_id`, `subtype`, `isActive`, `email_id`, `fullconversions`, `partnerconversions`, `summarydate`, `oeweekno`, `oeyearno`, `opens`, `clicks`, `conversions`, `bookings`, `diarybookings`, `invalids`, `duplicates`, `consultsattended`, `consultsunattended`, `consultsnotdue`, `suitableforlaser`, `unsuitableforlaser`, `surgerybooked`, `surgerycancelled`, `surgerylayaway`, `thinkers`, `surgeryvalue`, `tcallbacks`, `friendreferrals`, `bookedexam`, `shortchecksbooked`, `shortchecksattended`, `shortchecksdna`, `shortchecksnotdue`, `paidexamsfromshortchecks`, `paidexamsbookedoutright`, `paidexamsattended`, `paidexamsdna`, `paidexamsnotdue`, `validleads`, `email_id`, `week_id`, `weekstartdate`, `oeweekno`, `oeyearno`, `sent`, `cpl`, `adjustment`, `adjustmentreason`, `total_adjustment`, `costmethod_id`, `costmethod`) VALUES (12163, 121, 'uk', 'group', 'general', '2013-02-25', '2013-03-03', '30% Off Laser Offer', 'MFC', 'OfferX - 30% Off Laser Offer', '2', 0.00, 0.00, 5, 49, 4, 'Finished (Test Approved)', '2013-03-08', '2013-03-08', 0, 1362714002, 5, 'Display', 'online', 'Display', 1, 'display', 4, 4, 5, 'Static Banner', 1, 12163, 1, 0, '2013-02-22', 8, 2013, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 162, 12163, 1, '2013-02-25 00:00:00', 9, 2013, 0, 2.00, 0.00, '', 0.00, 4, 'CPL');
- CREATE TABLE `email_type` (
- `type_id` INT(11) NOT NULL AUTO_INCREMENT,
- `typename` VARCHAR(100) NOT NULL DEFAULT '',
- `media` ENUM('online','offline') NOT NULL DEFAULT 'online',
- `groupname` VARCHAR(100) NOT NULL DEFAULT '',
- `isActive` TINYINT(1) NOT NULL DEFAULT '1',
- `linkname` VARCHAR(20) NOT NULL DEFAULT '',
- `campaigntype_id` INT(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`type_id`)
- )
- COLLATE='utf8_general_ci'
- ENGINE=MyISAM
- AUTO_INCREMENT=35;
- REPLACE INTO `email_type` (`type_id`, `typename`, `media`, `groupname`, `isActive`, `linkname`, `campaigntype_id`) VALUES (1, 'Email - External', 'online', 'Email', 1, 'external', 7);
- REPLACE INTO `email_type` (`type_id`, `typename`, `media`, `groupname`, `isActive`, `linkname`, `campaigntype_id`) VALUES (2, 'Email - Internal', 'online', 'Email', 1, 'internal', 3);
- REPLACE INTO `email_type` (`type_id`, `typename`, `media`, `groupname`, `isActive`, `linkname`, `campaigntype_id`) VALUES (3, 'Email - Opt-in Competition', 'online', 'Email', 1, 'optin', 3);
- REPLACE INTO `email_type` (`type_id`, `typename`, `media`, `groupname`, `isActive`, `linkname`, `campaigntype_id`) VALUES (4, 'Email - External (cpl) - DEPRECIATED', 'online', 'Email', 0, 'external', 3);
- REPLACE INTO `email_type` (`type_id`, `typename`, `media`, `groupname`, `isActive`, `linkname`, `campaigntype_id`) VALUES (5, 'Display', 'online', 'Display', 1, 'display', 4);
- REPLACE INTO `email_type` (`type_id`, `typename`, `media`, `groupname`, `isActive`, `linkname`, `campaigntype_id`) VALUES (6, 'Display (cpl) - DEPRECIATED', 'online', 'Display', 0, 'display', 4);
- REPLACE INTO `email_type` (`type_id`, `typename`, `media`, `groupname`, `isActive`, `linkname`, `campaigntype_id`) VALUES (7, 'Affiliate (cpl)', 'online', 'Affiliate', 1, 'affiliate', 6);
- REPLACE INTO `email_type` (`type_id`, `typename`, `media`, `groupname`, `isActive`, `linkname`, `campaigntype_id`) VALUES (8, 'Lead Gen (cpl)', 'online', 'Lead Gen', 1, 'leadgen', 5);
- REPLACE INTO `email_type` (`type_id`, `typename`, `media`, `groupname`, `isActive`, `linkname`, `campaigntype_id`) VALUES (9, 'PPC', 'online', 'PPC', 1, 'ppc', 1);
- REPLACE INTO `email_type` (`type_id`, `typename`, `media`, `groupname`, `isActive`, `linkname`, `campaigntype_id`) VALUES (10, 'Organic', 'online', 'Organic', 1, 'organic', 2);
- REPLACE INTO `email_type` (`type_id`, `typename`, `media`, `groupname`, `isActive`, `linkname`, `campaigntype_id`) VALUES (11, 'Corporate', 'online', 'Corporate', 1, 'corporate', 2);
- REPLACE INTO `email_type` (`type_id`, `typename`, `media`, `groupname`, `isActive`, `linkname`, `campaigntype_id`) VALUES (12, '***Hidden***', 'online', 'Hidden', 1, 'hidden', 1);
- REPLACE INTO `email_type` (`type_id`, `typename`, `media`, `groupname`, `isActive`, `linkname`, `campaigntype_id`) VALUES (13, 'Display (cpc)', 'online', 'Display', 0, 'display', 4);
- REPLACE INTO `email_type` (`type_id`, `typename`, `media`, `groupname`, `isActive`, `linkname`, `campaigntype_id`) VALUES (15, 'Press', 'offline', 'press', 1, 'press', 0);
- REPLACE INTO `email_type` (`type_id`, `typename`, `media`, `groupname`, `isActive`, `linkname`, `campaigntype_id`) VALUES (16, 'Radio', 'offline', 'radio', 1, 'radio', 0);
- REPLACE INTO `email_type` (`type_id`, `typename`, `media`, `groupname`, `isActive`, `linkname`, `campaigntype_id`) VALUES (17, 'TV', 'offline', 'tv', 1, 'tv', 0);
- REPLACE INTO `email_type` (`type_id`, `typename`, `media`, `groupname`, `isActive`, `linkname`, `campaigntype_id`) VALUES (18, 'Patient Referral', 'offline', 'patientreferral', 1, 'patientreferral', 0);
- REPLACE INTO `email_type` (`type_id`, `typename`, `media`, `groupname`, `isActive`, `linkname`, `campaigntype_id`) VALUES (19, 'Direct Mail', 'offline', 'directmail', 1, 'directmail', 0);
- REPLACE INTO `email_type` (`type_id`, `typename`, `media`, `groupname`, `isActive`, `linkname`, `campaigntype_id`) VALUES (20, 'Online', 'offline', 'online', 1, 'online', 0);
- REPLACE INTO `email_type` (`type_id`, `typename`, `media`, `groupname`, `isActive`, `linkname`, `campaigntype_id`) VALUES (21, 'Private Healthcare', 'offline', 'privatehealthcare', 1, 'privatehealthcare', 0);
- REPLACE INTO `email_type` (`type_id`, `typename`, `media`, `groupname`, `isActive`, `linkname`, `campaigntype_id`) VALUES (22, 'Yellow Pages', 'offline', 'yellowpages', 1, 'yellowpages', 0);
- REPLACE INTO `email_type` (`type_id`, `typename`, `media`, `groupname`, `isActive`, `linkname`, `campaigntype_id`) VALUES (23, 'Info Pack', 'offline', 'infopack', 1, 'infopack', 0);
- REPLACE INTO `email_type` (`type_id`, `typename`, `media`, `groupname`, `isActive`, `linkname`, `campaigntype_id`) VALUES (24, 'Corporate', 'offline', 'corporate', 1, 'corporate', 0);
- REPLACE INTO `email_type` (`type_id`, `typename`, `media`, `groupname`, `isActive`, `linkname`, `campaigntype_id`) VALUES (25, 'Existing Patient', 'offline', 'existingpatient', 1, 'existingpatient', 0);
- REPLACE INTO `email_type` (`type_id`, `typename`, `media`, `groupname`, `isActive`, `linkname`, `campaigntype_id`) VALUES (26, 'Other', 'offline', 'other', 1, 'other', 0);
- REPLACE INTO `email_type` (`type_id`, `typename`, `media`, `groupname`, `isActive`, `linkname`, `campaigntype_id`) VALUES (28, 'SMS - External', 'online', 'Email', 1, 'smsexternal', 8);
- REPLACE INTO `email_type` (`type_id`, `typename`, `media`, `groupname`, `isActive`, `linkname`, `campaigntype_id`) VALUES (29, 'Recall', 'online', 'Recall', 1, 'recall', 0);
- REPLACE INTO `email_type` (`type_id`, `typename`, `media`, `groupname`, `isActive`, `linkname`, `campaigntype_id`) VALUES (30, 'Test Campaign', 'online', 'Hidden', 1, 'hidden', 99);
- REPLACE INTO `email_type` (`type_id`, `typename`, `media`, `groupname`, `isActive`, `linkname`, `campaigntype_id`) VALUES (31, 'Affiliate (cpb)', 'online', 'Affiliate', 1, 'affiliate', 6);
- REPLACE INTO `email_type` (`type_id`, `typename`, `media`, `groupname`, `isActive`, `linkname`, `campaigntype_id`) VALUES (33, 'GCN', 'online', 'Display', 1, 'gcn', 4);
- REPLACE INTO `email_type` (`type_id`, `typename`, `media`, `groupname`, `isActive`, `linkname`, `campaigntype_id`) VALUES (34, 'Refer a friend', 'online', 'referafriend', 1, 'referafriend', 3);
- CREATE TABLE `email_subtype` (
- `subtype_id` INT(11) NOT NULL AUTO_INCREMENT,
- `type_id` INT(11) NULL DEFAULT NULL,
- `subtype` VARCHAR(30) NULL DEFAULT NULL,
- `isActive` TINYINT(4) NOT NULL DEFAULT '1',
- PRIMARY KEY (`subtype_id`),
- INDEX `campaigntype_id` (`type_id`)
- )
- COLLATE='utf8_general_ci'
- ENGINE=MyISAM
- AUTO_INCREMENT=70;
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (1, 2, 'Dormant', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (2, 2, 'Thinker', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (3, 2, 'Suitable', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (4, 5, 'Static Banner', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (5, 5, 'Facebook', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (6, 5, 'Text Link', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (7, 5, 'Exit Traffic', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (8, 8, 'Lead Gen', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (9, 8, 'Co-Reg', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (10, 9, 'Keyword', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (11, 9, 'Direct', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (12, 10, 'Keyword', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (13, 10, 'Direct', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (14, 10, 'Other', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (15, 5, 'Other', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (16, 8, 'Telesurvey', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (17, 17, 'ITV', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (18, 17, 'Satellite', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (19, 5, 'Behavioural', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (20, 2, 'SMS - Dormant', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (21, 5, 'Mobile Banner', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (22, 1, 'CPM', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (23, 1, 'CPL', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (24, 1, 'SMS', 0);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (25, 2, 'SMS - Thinkers', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (26, 2, 'Store', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (27, 2, 'General', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (28, 9, 'Mobile', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (29, 9, 'Brand', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (30, 9, 'Content', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (31, 9, 'Generic', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (32, 10, 'Mobile', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (33, 10, 'Generic', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (34, 10, 'Content', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (35, 10, 'Brand', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (36, 10, 'Social Media', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (37, 2, 'Reviews', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (38, 33, 'Behavioural', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (39, 1, 'Half Price', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (49, 5, 'Half Price', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (40, 10, 'Treatmentsaver', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (50, 10, 'Articles', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (51, 8, 'Paper Surveys', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (52, 34, 'Email', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (53, 34, 'Facebook', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (54, 34, 'Twitter', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (55, 34, 'Other', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (56, 10, 'Offline', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (57, 10, 'QR code', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (58, 1, 'Non-Win', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (59, 5, 'Non-Win', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (69, 28, 'Half Price', 1);
- REPLACE INTO `email_subtype` (`subtype_id`, `type_id`, `subtype`, `isActive`) VALUES (68, 28, 'Win', 1);
- CREATE TABLE `email_dailytotal` (
- `email_id` INT(11) NOT NULL DEFAULT '0',
- `fullconversions` INT(11) NOT NULL DEFAULT '0',
- `partnerconversions` INT(11) NOT NULL DEFAULT '0',
- `summarydate` DATE NOT NULL DEFAULT '0000-00-00',
- `oeweekno` INT(11) NOT NULL DEFAULT '0',
- `oeyearno` INT(11) NOT NULL DEFAULT '0',
- `opens` INT(11) NOT NULL DEFAULT '0',
- `clicks` INT(11) NOT NULL DEFAULT '0',
- `conversions` INT(11) NOT NULL DEFAULT '0',
- `bookings` INT(11) NOT NULL DEFAULT '0',
- `diarybookings` INT(11) NOT NULL DEFAULT '0',
- `invalids` INT(11) NOT NULL DEFAULT '0',
- `duplicates` INT(11) NOT NULL DEFAULT '0',
- `consultsattended` INT(11) NOT NULL DEFAULT '0',
- `consultsunattended` INT(11) NOT NULL DEFAULT '0',
- `consultsnotdue` INT(11) NOT NULL DEFAULT '0',
- `suitableforlaser` INT(11) NOT NULL DEFAULT '0',
- `unsuitableforlaser` INT(11) NOT NULL DEFAULT '0',
- `surgerybooked` INT(11) NOT NULL DEFAULT '0',
- `surgerycancelled` INT(11) NOT NULL DEFAULT '0',
- `surgerylayaway` INT(11) NOT NULL DEFAULT '0',
- `thinkers` INT(11) NOT NULL DEFAULT '0',
- `surgeryvalue` DECIMAL(10,2) NOT NULL DEFAULT '0.00',
- `tcallbacks` INT(11) NOT NULL DEFAULT '0',
- `friendreferrals` INT(11) NOT NULL DEFAULT '0',
- `bookedexam` INT(11) NOT NULL DEFAULT '0',
- `shortchecksbooked` INT(11) NOT NULL DEFAULT '0',
- `shortchecksattended` INT(11) NOT NULL DEFAULT '0',
- `shortchecksdna` INT(11) NOT NULL DEFAULT '0',
- `shortchecksnotdue` INT(11) NOT NULL DEFAULT '0',
- `paidexamsfromshortchecks` INT(11) NOT NULL DEFAULT '0',
- `paidexamsbookedoutright` INT(11) NOT NULL DEFAULT '0',
- `paidexamsattended` INT(11) NOT NULL DEFAULT '0',
- `paidexamsdna` INT(11) NOT NULL DEFAULT '0',
- `paidexamsnotdue` INT(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`email_id`, `summarydate`),
- INDEX `oeweekno` (`oeweekno`, `oeyearno`)
- )
- COLLATE='utf8_general_ci'
- ENGINE=MyISAM;
- REPLACE INTO `email_dailytotal` (`email_id`, `fullconversions`, `partnerconversions`, `summarydate`, `oeweekno`, `oeyearno`, `opens`, `clicks`, `conversions`, `bookings`, `diarybookings`, `invalids`, `duplicates`, `consultsattended`, `consultsunattended`, `consultsnotdue`, `suitableforlaser`, `unsuitableforlaser`, `surgerybooked`, `surgerycancelled`, `surgerylayaway`, `thinkers`, `surgeryvalue`, `tcallbacks`, `friendreferrals`, `bookedexam`, `shortchecksbooked`, `shortchecksattended`, `shortchecksdna`, `shortchecksnotdue`, `paidexamsfromshortchecks`, `paidexamsbookedoutright`, `paidexamsattended`, `paidexamsdna`, `paidexamsnotdue`) VALUES (12163, 1, 0, '2013-02-27', 9, 2013, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
- REPLACE INTO `email_dailytotal` (`email_id`, `fullconversions`, `partnerconversions`, `summarydate`, `oeweekno`, `oeyearno`, `opens`, `clicks`, `conversions`, `bookings`, `diarybookings`, `invalids`, `duplicates`, `consultsattended`, `consultsunattended`, `consultsnotdue`, `suitableforlaser`, `unsuitableforlaser`, `surgerybooked`, `surgerycancelled`, `surgerylayaway`, `thinkers`, `surgeryvalue`, `tcallbacks`, `friendreferrals`, `bookedexam`, `shortchecksbooked`, `shortchecksattended`, `shortchecksdna`, `shortchecksnotdue`, `paidexamsfromshortchecks`, `paidexamsbookedoutright`, `paidexamsattended`, `paidexamsdna`, `paidexamsnotdue`) VALUES (12163, 10, 0, '2013-02-26', 9, 2013, 0, 0, 10, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
- REPLACE INTO `email_dailytotal` (`email_id`, `fullconversions`, `partnerconversions`, `summarydate`, `oeweekno`, `oeyearno`, `opens`, `clicks`, `conversions`, `bookings`, `diarybookings`, `invalids`, `duplicates`, `consultsattended`, `consultsunattended`, `consultsnotdue`, `suitableforlaser`, `unsuitableforlaser`, `surgerybooked`, `surgerycancelled`, `surgerylayaway`, `thinkers`, `surgeryvalue`, `tcallbacks`, `friendreferrals`, `bookedexam`, `shortchecksbooked`, `shortchecksattended`, `shortchecksdna`, `shortchecksnotdue`, `paidexamsfromshortchecks`, `paidexamsbookedoutright`, `paidexamsattended`, `paidexamsdna`, `paidexamsnotdue`) VALUES (12163, 15, 0, '2013-02-25', 9, 2013, 0, 0, 15, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
- REPLACE INTO `email_dailytotal` (`email_id`, `fullconversions`, `partnerconversions`, `summarydate`, `oeweekno`, `oeyearno`, `opens`, `clicks`, `conversions`, `bookings`, `diarybookings`, `invalids`, `duplicates`, `consultsattended`, `consultsunattended`, `consultsnotdue`, `suitableforlaser`, `unsuitableforlaser`, `surgerybooked`, `surgerycancelled`, `surgerylayaway`, `thinkers`, `surgeryvalue`, `tcallbacks`, `friendreferrals`, `bookedexam`, `shortchecksbooked`, `shortchecksattended`, `shortchecksdna`, `shortchecksnotdue`, `paidexamsfromshortchecks`, `paidexamsbookedoutright`, `paidexamsattended`, `paidexamsdna`, `paidexamsnotdue`) VALUES (12163, 1, 0, '2013-02-22', 8, 2013, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
- CREATE TABLE `email_week` (
- `email_id` INT(11) NOT NULL DEFAULT '0',
- `week_id` INT(11) NOT NULL AUTO_INCREMENT,
- `weekstartdate` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
- `oeweekno` INT(11) NOT NULL DEFAULT '0',
- `oeyearno` INT(11) NOT NULL DEFAULT '0',
- `sent` INT(11) NULL DEFAULT NULL,
- `cpl` DECIMAL(10,2) NULL DEFAULT NULL,
- `adjustment` DECIMAL(10,2) NOT NULL DEFAULT '0.00',
- `adjustmentreason` TEXT NOT NULL,
- PRIMARY KEY (`email_id`, `week_id`),
- INDEX `weekstartdate` (`weekstartdate`),
- INDEX `oeweekno` (`oeweekno`, `oeyearno`)
- )
- COLLATE='utf8_general_ci'
- ENGINE=MyISAM;
- REPLACE INTO `email_week` (`email_id`, `week_id`, `weekstartdate`, `oeweekno`, `oeyearno`, `sent`, `cpl`, `adjustment`, `adjustmentreason`) VALUES (12163, 1, '2013-02-25 00:00:00', 9, 2013, 0, 2.00, 0.00, '');
- CREATE TABLE `email_costmethod` (
- `costmethod_id` INT(11) NOT NULL AUTO_INCREMENT,
- `costmethod` VARCHAR(25) NULL DEFAULT NULL,
- PRIMARY KEY (`costmethod_id`)
- )
- COLLATE='utf8_general_ci'
- ENGINE=MyISAM
- AUTO_INCREMENT=13;
- REPLACE INTO `email_costmethod` (`costmethod_id`, `costmethod`) VALUES (1, 'No Cost');
- REPLACE INTO `email_costmethod` (`costmethod_id`, `costmethod`) VALUES (2, 'Fixed Cost');
- REPLACE INTO `email_costmethod` (`costmethod_id`, `costmethod`) VALUES (3, 'CPM');
- REPLACE INTO `email_costmethod` (`costmethod_id`, `costmethod`) VALUES (4, 'CPL');
- REPLACE INTO `email_costmethod` (`costmethod_id`, `costmethod`) VALUES (5, 'CPC');
- REPLACE INTO `email_costmethod` (`costmethod_id`, `costmethod`) VALUES (6, 'Cost Per Consult Attended');
- REPLACE INTO `email_costmethod` (`costmethod_id`, `costmethod`) VALUES (7, 'Internal : # Sent / 1000');
- REPLACE INTO `email_costmethod` (`costmethod_id`, `costmethod`) VALUES (8, 'PPC Manual Entry');
- REPLACE INTO `email_costmethod` (`costmethod_id`, `costmethod`) VALUES (9, 'CPL not counting partners');
- REPLACE INTO `email_costmethod` (`costmethod_id`, `costmethod`) VALUES (10, 'Hybrid CPM/CPL');
- REPLACE INTO `email_costmethod` (`costmethod_id`, `costmethod`) VALUES (11, 'Set Weekly Cost');
- REPLACE INTO `email_costmethod` (`costmethod_id`, `costmethod`) VALUES (12, 'Cost per Booking');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement