CREATE TABLE IF NOT EXISTS `#__rsform_salesforce` (
  `form_id` int(11) NOT NULL,
  `slsf_action` tinyint(1) NOT NULL DEFAULT '1',
  `slsf_action_field` text,
  `slsf_lead_source` varchar(255) NOT NULL,
  `slsf_first_name` varchar(255) NOT NULL,
  `slsf_last_name` varchar(255) NOT NULL,
  `slsf_title` varchar(255) NOT NULL,
  `slsf_company` varchar(255) NOT NULL,
  `slsf_email` varchar(255) NOT NULL,
  `slsf_phone` varchar(255) NOT NULL,
  `slsf_street` varchar(255) NOT NULL,
  `slsf_city` varchar(255) NOT NULL,
  `slsf_state` varchar(255) NOT NULL,
  `slsf_zip` varchar(255) NOT NULL,
  `slsf_country` varchar(255) NOT NULL,
  `slsf_debug` tinyint(1) NOT NULL,
  `slsf_oid` varchar(20) NOT NULL,
  `slsf_debugEmail` varchar(255) NOT NULL,
  `slsf_industry` varchar(255) NOT NULL,
  `slsf_description` text NOT NULL,
  `slsf_mobile` varchar(255) NOT NULL,
  `slsf_fax` varchar(255) NOT NULL,
  `slsf_website` varchar(255) NOT NULL,
  `slsf_salutation` varchar(255) NOT NULL,
  `slsf_revenue` varchar(255) NOT NULL,
  `slsf_employees` varchar(255) NOT NULL,
  `slsf_custom_fields` text NOT NULL,
  `slsf_campaign_id` varchar(255) NOT NULL,
  `slsf_recordtype` varchar(255) DEFAULT '',
  `slsf_donotcall` varchar(255) NOT NULL,
  `slsf_emailoptout` varchar(255) NOT NULL,
  `slsf_faxoptout` varchar(255) NOT NULL,
  `slsf_published` tinyint(1) NOT NULL,
  PRIMARY KEY  (`form_id`)
) DEFAULT CHARSET=utf8;

INSERT IGNORE INTO `#__rsform_config` (`SettingName`, `SettingValue`) VALUES
('salesforce.webtolead_url', 'https://webto.salesforce.com/servlet/servlet.WebToLead');