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 `com_vtiger_workflows`
CREATE TABLE `com_vtiger_workflows` (
`workflow_id` int(11) NOT NULL AUTO_INCREMENT,
`module_name` varchar(100) DEFAULT NULL,
`summary` varchar(400) NOT NULL,
`execution_condition` int(11) NOT NULL,
`defaultworkflow` int(1) DEFAULT NULL,
`type` varchar(255) DEFAULT NULL,
`filtersavedinnew` int(1) DEFAULT NULL,
`schtypeid` int(10) DEFAULT NULL,
`schdayofmonth` varchar(100) DEFAULT NULL,
`schdayofweek` varchar(100) DEFAULT NULL,
`schannualdates` varchar(500) DEFAULT NULL,
`schtime` varchar(50) DEFAULT NULL,
`nexttrigger_time` datetime DEFAULT NULL,
`status` tinyint(1) DEFAULT '1',
`workflowname` varchar(100) DEFAULT NULL,
PRIMARY KEY (`workflow_id`),
UNIQUE KEY `com_vtiger_workflows_idx` (`workflow_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=25 ;
-- Dumping data for table `com_vtiger_workflows`
INSERT INTO `com_vtiger_workflows` VALUES
(1, 'Invoice', 'UpdateInventoryProducts On Every Save', '[{"fieldname":"subject","operation":"does not contain","value":"`!`"}]', 3, 1, 'basic', 5, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'UpdateInventoryProducts On Every Save'),
(2, 'Accounts', 'Send Email to user when Notifyowner is True', '[{"fieldname":"notify_owner","operation":"is","value":"true:boolean"}]', 2, 1, 'basic', 5, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'Send Email to user when Notifyowner is True'),
(3, 'Contacts', 'Send Email to user when Notifyowner is True', '[{"fieldname":"notify_owner","operation":"is","value":"true:boolean"}]', 2, 1, 'basic', 5, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'Send Email to user when Notifyowner is True'),
(4, 'Contacts', 'Send Email to user when Portal User is True', '[{"fieldname":"portal","operation":"is","value":"1","valuetype":"rawtext","joincondition":"and","groupjoin":"and","groupid":"0"},{"fieldname":"email","operation":"is not empty","value":"","valuetype":"rawtext","joincondition":"","groupjoin":"and","groupid":"0"}]', 3, 1, 'basic', 6, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'Send Email to user when Portal User is True'),
(5, 'Potentials', 'Send Email to users on Potential creation', '[]', 1, 1, 'basic', 5, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'Send Email to users on Potential creation'),
(6, 'Contacts', 'Workflow for Contact Creation or Modification', '[]', 3, 1, 'basic', 5, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'Workflow for Contact Creation or Modification'),
(7, 'HelpDesk', 'Ticket Creation From Portal : Send Email to Record Owner and Contact', '[{"fieldname":"from_portal","operation":"is","value":1,"valuetype":"rawtext","joincondition":"and","groupjoin":"and","groupid":0}]', 1, 1, 'basic', 6, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'Ticket Creation From Portal : Send Email to Record Owner and Contact'),
(9, 'HelpDesk', 'Send Email to Contact on Ticket Update', '[{"fieldname":"(contact_id : (Contacts) emailoptout)","operation":"is","value":"0","valuetype":"rawtext","joincondition":"and","groupjoin":"and","groupid":"0"},{"fieldname":"from_portal","operation":"is","value":0,"valuetype":"rawtext","joincondition":"and","groupjoin":"and","groupid":0},{"fieldname":"ticketstatus","operation":"has changed to","value":"Closed","valuetype":"rawtext","joincondition":"or","groupjoin":"and","groupid":"1"},{"fieldname":"solution","operation":"has changed","value":"","valuetype":"","joincondition":"or","groupjoin":"and","groupid":"1"},{"fieldname":"description","operation":"has changed","value":"","valuetype":"","joincondition":"or","groupjoin":"and","groupid":"1"}]', 3, 1, 'basic', 6, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'Send Email to Contact on Ticket Update'),
(10, 'Events', 'Workflow for Events when Send Notification is True', '[{"fieldname":"sendnotification","operation":"is","value":"true:boolean"}]', 3, 1, 'basic', 5, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'Workflow for Events when Send Notification is True'),
(11, 'Calendar', 'Workflow for Calendar Todos when Send Notification is True', '[{"fieldname":"sendnotification","operation":"is","value":"true:boolean"}]', 3, 1, 'basic', 5, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'Workflow for Calendar Todos when Send Notification is True'),
(12, 'Potentials', 'Calculate or Update forecast amount', '[]', 3, 1, 'basic', 5, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'Calculate or Update forecast amount'),
(13, 'Events', 'Workflow for Events when Send Notification is True', '[{"fieldname":"sendnotification","operation":"is","value":"true:boolean"}]', 3, 1, 'basic', 5, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'Workflow for Events when Send Notification is True'),
(14, 'Calendar', 'Workflow for Calendar Todos when Send Notification is True', '[{"fieldname":"sendnotification","operation":"is","value":"true:boolean"}]', 3, 1, 'basic', 5, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'Workflow for Calendar Todos when Send Notification is True'),
(15, 'HelpDesk', 'Comment Added From CRM : Send Email to Organization', '[{"fieldname":"_VT_add_comment","operation":"is added","value":"","valuetype":"rawtext","joincondition":"","groupjoin":"and","groupid":"0"},{"fieldname":"from_portal","operation":"is","value":"0","valuetype":"rawtext","joincondition":"","groupjoin":"and","groupid":"0"},{"fieldname":"(parent_id : (Accounts) emailoptout)","operation":"is","value":"0","valuetype":"rawtext","joincondition":"and","groupjoin":"and","groupid":"0"}]', 3, 1, 'basic', 6, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'Comment Added From CRM : Send Email to Organization'),
(16, 'PurchaseOrder', 'Update Inventory Products On Every Save', '[]', 3, 1, 'basic', 5, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'Update Inventory Products On Every Save'),
(17, 'HelpDesk', 'Comment Added From Portal : Send Email to Record Owner', '[{"fieldname":"_VT_add_comment","operation":"is added","value":"","valuetype":"rawtext","joincondition":"","groupjoin":"and","groupid":"0"},{"fieldname":"from_portal","operation":"is","value":"1","valuetype":"rawtext","joincondition":"","groupjoin":"and","groupid":"0"}]', 3, 1, 'basic', 6, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'Comment Added From Portal : Send Email to Record Owner'),
(18, 'HelpDesk', 'Comment Added From CRM : Send Email to Contact, where Contact is not a Portal User', '[{"fieldname":"(contact_id : (Contacts) portal)","operation":"is","value":"0","valuetype":"rawtext","joincondition":"and","groupjoin":"and","groupid":"0"},{"fieldname":"_VT_add_comment","operation":"is added","value":"","valuetype":"rawtext","joincondition":"","groupjoin":"and","groupid":"0"},{"fieldname":"from_portal","operation":"is","value":"0","valuetype":"rawtext","joincondition":"","groupjoin":"and","groupid":"0"},{"fieldname":"(contact_id : (Contacts) emailoptout)","operation":"is","value":"0","valuetype":"rawtext","joincondition":"and","groupjoin":"and","groupid":"0"}]', 3, 1, 'basic', 6, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'Comment Added From CRM : Send Email to Contact, where Contact is not a Portal User'),
(19, 'HelpDesk', 'Comment Added From CRM : Send Email to Contact, where Contact is Portal User', '[{"fieldname":"(contact_id : (Contacts) portal)","operation":"is","value":"1","valuetype":"rawtext","joincondition":"and","groupjoin":"and","groupid":"0"},{"fieldname":"_VT_add_comment","operation":"is added","value":"","valuetype":"rawtext","joincondition":"","groupjoin":"and","groupid":"0"},{"fieldname":"from_portal","operation":"is","value":"0","valuetype":"rawtext","joincondition":"","groupjoin":"and","groupid":"0"},{"fieldname":"(contact_id : (Contacts) emailoptout)","operation":"is","value":"0","valuetype":"rawtext","joincondition":"and","groupjoin":"and","groupid":"0"}]', 3, 1, 'basic', 6, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'Comment Added From CRM : Send Email to Contact, where Contact is Portal User'),
(20, 'HelpDesk', 'Send Email to Record Owner on Ticket Update', '[{"fieldname":"from_portal","operation":"is","value":0,"valuetype":"rawtext","joincondition":"and","groupjoin":"and","groupid":0},{"fieldname":"ticketstatus","operation":"has changed to","value":"Closed","valuetype":"rawtext","joincondition":"or","groupjoin":"and","groupid":"1"},{"fieldname":"solution","operation":"has changed","value":"","valuetype":"","joincondition":"or","groupjoin":"and","groupid":"1"},{"fieldname":"assigned_user_id","operation":"has changed","value":"","valuetype":"","joincondition":"or","groupjoin":"and","groupid":"1"},{"fieldname":"description","operation":"has changed","value":"","valuetype":"","joincondition":"or","groupjoin":"and","groupid":"1"}]', 3, 1, 'basic', 6, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'Send Email to Record Owner on Ticket Update'),
(21, 'HelpDesk', 'Ticket Creation From CRM : Send Email to Record Owner', '[{"fieldname":"from_portal","operation":"is","value":"0","valuetype":"rawtext","joincondition":"","groupjoin":"and","groupid":"0"}]', 1, 1, 'basic', 6, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'Ticket Creation From CRM : Send Email to Record Owner'),
(22, 'HelpDesk', 'Send Email to Organization on Ticket Update', '[{"fieldname":"(parent_id : (Accounts) emailoptout)","operation":"is","value":"0","valuetype":"rawtext","joincondition":"and","groupjoin":"and","groupid":"0"},{"fieldname":"from_portal","operation":"is","value":0,"valuetype":"rawtext","joincondition":"and","groupjoin":"and","groupid":0},{"fieldname":"ticketstatus","operation":"has changed to","value":"Closed","valuetype":"rawtext","joincondition":"or","groupjoin":"and","groupid":"1"},{"fieldname":"solution","operation":"has changed","value":"","valuetype":"","joincondition":"or","groupjoin":"and","groupid":"1"},{"fieldname":"description","operation":"has changed","value":"","valuetype":"","joincondition":"or","groupjoin":"and","groupid":"1"}]', 3, 1, 'basic', 6, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'Send Email to Organization on Ticket Update'),
(23, 'HelpDesk', 'Ticket Creation From CRM : Send Email to Organization', '[{"fieldname":"(parent_id : (Accounts) emailoptout)","operation":"is","value":"0","valuetype":"rawtext","joincondition":"and","groupjoin":"and","groupid":"0"},{"fieldname":"from_portal","operation":"is","value":"0","valuetype":"rawtext","joincondition":"","groupjoin":"and","groupid":"0"}]', 1, 1, 'basic', 6, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'Ticket Creation From CRM : Send Email to Organization'),
(24, 'HelpDesk', 'Ticket Creation From CRM : Send Email to Contact', '[{"fieldname":"(contact_id : (Contacts) emailoptout)","operation":"is","value":"0","valuetype":"rawtext","joincondition":"and","groupjoin":"and","groupid":"0"},{"fieldname":"from_portal","operation":"is","value":"0","valuetype":"rawtext","joincondition":"","groupjoin":"and","groupid":"0"}]', 1, 1, 'basic', 6, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'Ticket Creation From CRM : Send Email to Contact');
-- --------------------------------------------------------
-- Table structure for table `com_vtiger_workflows_seq`
CREATE TABLE `com_vtiger_workflows_seq` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Dumping data for table `com_vtiger_workflows_seq`
INSERT INTO `com_vtiger_workflows_seq` VALUES
-- --------------------------------------------------------
-- Table structure for table `com_vtiger_workflowtasks`
CREATE TABLE `com_vtiger_workflowtasks` (
`task_id` int(11) NOT NULL AUTO_INCREMENT,
`workflow_id` int(11) DEFAULT NULL,
`summary` varchar(400) NOT NULL,
UNIQUE KEY `com_vtiger_workflowtasks_idx` (`task_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=29 ;
-- Dumping data for table `com_vtiger_workflowtasks`
INSERT INTO `com_vtiger_workflowtasks` VALUES
(1, 1, '', 'O:18:"VTEntityMethodTask":6:{s:18:"executeImmediately";b:1;s:10:"workflowId";i:1;s:7:"summary";s:0:"";s:6:"active";b:1;s:10:"methodName";s:15:"UpdateInventory";s:2:"id";i:1;}'),
(2, 2, 'An account has been created ', 'O:11:"VTEmailTask":9:{s:18:"executeImmediately";s:0:"";s:10:"workflowId";s:1:"2";s:7:"summary";s:28:"An account has been created ";s:6:"active";s:1:"1";s:10:"methodName";s:11:"NotifyOwner";s:9:"recepient";s:36:"$(assigned_user_id : (Users) email1)";s:7:"subject";s:26:"Regarding Account Creation";s:7:"content";s:301:"An Account has been assigned to you on vtigerCRM<br>Details of account are :<br><br>AccountId:<b>$account_no</b><br>AccountName:<b>$accountname</b><br>Rating:<b>$rating</b><br>Industry:<b>$industry</b><br>AccountType:<b>$accounttype</b><br>Description:<b>$description</b><br><br><br>Thank You<br>Admin";s:2:"id";s:1:"2";}'),
(3, 3, 'An contact has been created ', 'O:11:"VTEmailTask":9:{s:18:"executeImmediately";s:0:"";s:10:"workflowId";s:1:"3";s:7:"summary";s:28:"An contact has been created ";s:6:"active";s:1:"1";s:10:"methodName";s:11:"NotifyOwner";s:9:"recepient";s:36:"$(assigned_user_id : (Users) email1)";s:7:"subject";s:26:"Regarding Contact Creation";s:7:"content";s:305:"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>$contact_no</b><br>LastName:<b>$lastname</b><br>FirstName:<b>$firstname</b><br>Lead Source:<b>$leadsource</b><br>Department:<b>$department</b><br>Description:<b>$description</b><br><br><br>Thank You<br>Admin";s:2:"id";s:1:"3";}'),
(4, 4, 'Email Customer Portal Login Details', 'O:18:"VTEntityMethodTask":6:{s:18:"executeImmediately";b:1;s:10:"workflowId";i:4;s:7:"summary";s:35:"Email Customer Portal Login Details";s:6:"active";b:1;s:10:"methodName";s:22:"SendPortalLoginDetails";s:2:"id";i:4;}'),
(5, 5, 'An Potential has been created ', 'O:11:"VTEmailTask":8:{s:18:"executeImmediately";s:0:"";s:10:"workflowId";s:1:"5";s:7:"summary";s:30:"An Potential has been created ";s:6:"active";s:1:"1";s:9:"recepient";s:36:"$(assigned_user_id : (Users) email1)";s:7:"subject";s:30:"Regarding Potential Assignment";s:7:"content";s:342:"An Potential has been assigned to you on vtigerCRM<br>Details of Potential are :<br><br>Potential No:<b>$potential_no</b><br>Potential Name:<b>$potentialname</b><br>Amount:<b>$amount</b><br>Expected Close Date:<b>$closingdate ($_DATE_FORMAT_)</b><br>Type:<b>$opportunity_type</b><br><br><br>Description :$description<br><br>Thank You<br>Admin";s:2:"id";s:1:"5";}'),
(6, 6, 'An contact has been created ', 'O:11:"VTEmailTask":8:{s:18:"executeImmediately";s:0:"";s:10:"workflowId";s:1:"6";s:7:"summary";s:28:"An contact has been created ";s:6:"active";s:1:"1";s:9:"recepient";s:36:"$(assigned_user_id : (Users) email1)";s:7:"subject";s:28:"Regarding Contact Assignment";s:7:"content";s:384:"An Contact has been assigned to you on vtigerCRM<br>Details of Contact are :<br><br>Contact Id:<b>$contact_no</b><br>LastName:<b>$lastname</b><br>FirstName:<b>$firstname</b><br>Lead Source:<b>$leadsource</b><br>Department:<b>$department</b><br>Description:<b>$description</b><br><br><br>And <b>CustomerPortal Login Details</b> is sent to the EmailID :-$email<br><br>Thank You<br>Admin";s:2:"id";s:1:"6";}'),
(7, 7, 'Notify Related Contact when Ticket is created from Portal', 'O:11:"VTEmailTask":9:{s:18:"executeImmediately";s:1:"0";s:7:"summary";s:57:"Notify Related Contact when Ticket is created from Portal";s:6:"active";s:1:"1";s:2:"id";s:1:"7";s:10:"workflowId";s:1:"7";s:9:"fromEmail";s:93:"$(general : (__VtigerMeta__) supportName)<$(general : (__VtigerMeta__) supportEmailId)>";s:9:"recepient";s:33:",$(contact_id : (Contacts) email)";s:7:"subject";s:93:"[From Portal] $ticket_no [ Ticket Id : $(general : (__VtigerMeta__) recordId) ] $ticket_title";s:7:"content";s:158:"Ticket No : $ticket_no<br>\n Ticket ID : $(general : (__VtigerMeta__) recordId)<br>\n Ticket Title : $ticket_title<br><br>\n $description";}'),
(10, 9, 'Send Email to Contact on Ticket Update', 'O:11:"VTEmailTask":9:{s:18:"executeImmediately";s:1:"0";s:7:"summary";s:38:"Send Email to Contact on Ticket Update";s:6:"active";s:1:"1";s:2:"id";s:2:"10";s:9:"fromEmail";s:93:"$(general : (__VtigerMeta__) supportName)<$(general : (__VtigerMeta__) supportEmailId)>";s:9:"recepient";s:33:",$(contact_id : (Contacts) email)";s:7:"subject";s:79:"$ticket_no [ Ticket Id : $(general : (__VtigerMeta__) recordId) ] $ticket_title";s:7:"content";s:624:"Ticket ID : $(general : (__VtigerMeta__) recordId)<br>Ticket Title : $ticket_title<br><br>\n Dear $(contact_id : (Contacts) lastname) $(contact_id : (Contacts) firstname),<br><br>\n The Ticket is replied the details are :<br><br>\n Ticket No : $ticket_no<br>\n Status : $ticketstatus<br>\n Category : $ticketcategories<br>\n Severity : $ticketseverities<br>\n Priority : $ticketpriorities<br><br>\n Description : <br>$description<br><br>\n Solution : <br>$solution<br>\n The comments are : <br>\n $allComments<br><br>\n Regards<br>Support Administrator";s:10:"workflowId";s:1:"9";}'),
(13, 12, 'update forecast amount', 'O:18:"VTUpdateFieldsTask":7:{s:18:"executeImmediately";b:1;s:43:"\0VTUpdateFieldsTask\0referenceFieldFocusList";a:0:{}s:10:"workflowId";i:12;s:7:"summary";s:22:"update forecast amount";s:6:"active";b:1;s:19:"field_value_mapping";s:95:"[{"fieldname":"forecast_amount","valuetype":"expression","value":"amount * probability / 100"}]";s:2:"id";i:13;}'),
(14, 13, 'Send Notification Email to Record Owner', 'O:11:"VTEmailTask":8:{s:18:"executeImmediately";s:0:"";s:10:"workflowId";s:2:"13";s:7:"summary";s:39:"Send Notification Email to Record Owner";s:6:"active";s:1:"1";s:9:"recepient";s:36:"$(assigned_user_id : (Users) email1)";s:7:"subject";s:17:"Event : $subject";s:7:"content";s:771:"$(assigned_user_id : (Users) last_name) $(assigned_user_id : (Users) first_name) ,<br/><b>Activity Notification Details:</b><br/>Subject : $subject<br/>Start date and time : $date_start ($(general : (__VtigerMeta__) usertimezone))<br/>End date and time : $due_date ($(general : (__VtigerMeta__) usertimezone)) <br/>Status : $eventstatus <br/>Priority : $taskpriority <br/>Related To : $(parent_id : (Leads) lastname) $(parent_id : (Leads) firstname) $(parent_id : (Accounts) accountname) $(parent_id : (Potentials) potentialname) $(parent_id : (HelpDesk) ticket_title) $(parent_id : (Campaigns) campaignname) <br/>Contacts List : $contact_id <br/>Location : $location <br/>Description : $description";s:2:"id";s:2:"14";}'),
(15, 14, 'Send Notification Email to Record Owner', 'O:11:"VTEmailTask":8:{s:18:"executeImmediately";s:0:"";s:10:"workflowId";s:2:"14";s:7:"summary";s:39:"Send Notification Email to Record Owner";s:6:"active";s:1:"1";s:9:"recepient";s:36:"$(assigned_user_id : (Users) email1)";s:7:"subject";s:16:"Task : $subject";s:7:"content";s:689:"$(assigned_user_id : (Users) last_name) $(assigned_user_id : (Users) first_name) ,<br/><b>Task Notification Details:</b><br/>Subject : $subject<br/>Start date and time : $date_start ($(general : (__VtigerMeta__) usertimezone))<br/>End date and time : $due_date ($_DATE_FORMAT_) <br/>Status : $taskstatus <br/>Priority : $taskpriority <br/>Related To : $(parent_id : (Leads) lastname) $(parent_id : (Leads) firstname) $(parent_id : (Accounts) accountname) $(parent_id : (Potentials) potentialname) $(parent_id : (HelpDesk) ticket_title) $(parent_id : (Campaigns) campaignname) <br/>Contacts List : $contact_id <br/>Description : $description";s:2:"id";s:2:"15";}'),
(18, 16, 'Update Inventory Products', 'O:18:"VTEntityMethodTask":6:{s:18:"executeImmediately";b:1;s:10:"workflowId";i:16;s:7:"summary";s:25:"Update Inventory Products";s:6:"active";b:1;s:10:"methodName";s:15:"UpdateInventory";s:2:"id";i:18;}'),
(19, 17, 'Comment Added From Portal : Send Email to Record Owner', 'O:11:"VTEmailTask":9:{s:18:"executeImmediately";s:1:"0";s:7:"summary";s:54:"Comment Added From Portal : Send Email to Record Owner";s:6:"active";s:1:"1";s:2:"id";s:2:"19";s:10:"workflowId";s:2:"17";s:9:"fromEmail";s:112:"$(contact_id : (Contacts) lastname) $(contact_id : (Contacts) firstname)<$(contact_id : (Contacts) email)>";s:9:"recepient";s:37:",$(assigned_user_id : (Users) email1)";s:7:"subject";s:92:"Respond to Ticket ID## $(general : (__VtigerMeta__) recordId) ## in Customer Portal - URGENT";s:7:"content";s:325:"Dear $(assigned_user_id : (Users) last_name) $(assigned_user_id : (Users) first_name),<br><br>\n Customer has provided the following additional information to your reply:<br><br>\n <b>$lastComment</b><br><br>\n Kindly respond to above ticket at the earliest.<br><br>\n Regards<br>Support Administrator";}'),
(20, 18, 'Comment Added From CRM : Send Email to Contact, where Contact is not a Portal User', 'O:11:"VTEmailTask":9:{s:18:"executeImmediately";s:1:"0";s:7:"summary";s:82:"Comment Added From CRM : Send Email to Contact, where Contact is not a Portal User";s:6:"active";s:1:"1";s:2:"id";s:2:"20";s:10:"workflowId";s:2:"18";s:9:"fromEmail";s:93:"$(general : (__VtigerMeta__) supportName)<$(general : (__VtigerMeta__) supportEmailId)>";s:9:"recepient";s:33:",$(contact_id : (Contacts) email)";s:7:"subject";s:79:"$ticket_no [ Ticket Id : $(general : (__VtigerMeta__) recordId) ] $ticket_title";s:7:"content";s:514:"Dear $(contact_id : (Contacts) lastname) $(contact_id : (Contacts) firstname),<br><br>\n The Ticket is replied the details are :<br><br>\n Ticket No : $ticket_no<br>\n Status : $ticketstatus<br>\n Category : $ticketcategories<br>\n Severity : $ticketseverities<br>\n Priority : $ticketpriorities<br><br>\n Description : <br>$description<br><br>\n Solution : <br>$solution<br>\n The comments are : <br>\n $allComments<br><br>\n Regards<br>Support Administrator";}'),
(21, 19, 'Comment Added From CRM : Send Email to Contact, where Contact is Portal User', 'O:11:"VTEmailTask":9:{s:18:"executeImmediately";s:1:"0";s:7:"summary";s:76:"Comment Added From CRM : Send Email to Contact, where Contact is Portal User";s:6:"active";s:1:"1";s:2:"id";s:2:"21";s:10:"workflowId";s:2:"19";s:9:"fromEmail";s:93:"$(general : (__VtigerMeta__) supportName)<$(general : (__VtigerMeta__) supportEmailId)>";s:9:"recepient";s:33:",$(contact_id : (Contacts) email)";s:7:"subject";s:79:"$ticket_no [ Ticket Id : $(general : (__VtigerMeta__) recordId) ] $ticket_title";s:7:"content";s:547:"Ticket No : $ticket_no<br>\n Ticket Id : $(general : (__VtigerMeta__) recordId)<br>\n Subject : $ticket_title<br><br>\n Dear $(contact_id : (Contacts) lastname) $(contact_id : (Contacts) firstname),<br><br>\n There is a reply to <b>$ticket_title</b> in the "Customer Portal" at VTiger.\n You can use the following link to view the replies made:<br>\n <a href="$(general : (__VtigerMeta__) portaldetailviewurl)">Ticket Details</a><br><br>\n Thanks<br>$(general : (__VtigerMeta__) supportName)";}'),
(22, 15, 'Comment Added From CRM : Send Email to Organization', 'O:11:"VTEmailTask":9:{s:18:"executeImmediately";s:1:"0";s:7:"summary";s:51:"Comment Added From CRM : Send Email to Organization";s:6:"active";s:1:"1";s:2:"id";s:2:"22";s:10:"workflowId";s:2:"15";s:9:"fromEmail";s:93:"$(general : (__VtigerMeta__) supportName)<$(general : (__VtigerMeta__) supportEmailId)>";s:9:"recepient";s:34:",$(parent_id : (Accounts) email1),";s:7:"subject";s:79:"$ticket_no [ Ticket Id : $(general : (__VtigerMeta__) recordId) ] $ticket_title";s:7:"content";s:589:"Ticket ID : $(general : (__VtigerMeta__) recordId)<br>Ticket Title : $ticket_title<br><br>\n Dear $(parent_id : (Accounts) accountname),<br><br>\n The Ticket is replied the details are :<br><br>\n Ticket No : $ticket_no<br>\n Status : $ticketstatus<br>\n Category : $ticketcategories<br>\n Severity : $ticketseverities<br>\n Priority : $ticketpriorities<br><br>\n Description : <br>$description<br><br>\n Solution : <br>$solution<br>\n The comments are : <br>\n $allComments<br><br>\n Regards<br>Support Administrator";}'),
(23, 7, 'Notify Record Owner when Ticket is created from Portal', 'O:11:"VTEmailTask":9:{s:18:"executeImmediately";s:1:"0";s:7:"summary";s:54:"Notify Record Owner when Ticket is created from Portal";s:6:"active";s:1:"1";s:2:"id";s:2:"23";s:10:"workflowId";s:1:"7";s:9:"fromEmail";s:124:"$(contact_id : (Contacts) lastname) $(contact_id : (Contacts) firstname)<$(general : (__VtigerMeta__) supportEmailId)>";s:9:"recepient";s:37:",$(assigned_user_id : (Users) email1)";s:7:"subject";s:93:"[From Portal] $ticket_no [ Ticket Id : $(general : (__VtigerMeta__) recordId) ] $ticket_title";s:7:"content";s:158:"Ticket No : $ticket_no<br>\n Ticket ID : $(general : (__VtigerMeta__) recordId)<br>\n Ticket Title : $ticket_title<br><br>\n $description";}'),
(24, 20, 'Send Email to Record Owner on Ticket Update', 'O:11:"VTEmailTask":9:{s:18:"executeImmediately";s:1:"0";s:7:"summary";s:43:"Send Email to Record Owner on Ticket Update";s:6:"active";s:1:"1";s:2:"id";s:2:"24";s:10:"workflowId";s:2:"20";s:9:"fromEmail";s:93:"$(general : (__VtigerMeta__) supportName)<$(general : (__VtigerMeta__) supportEmailId)>";s:9:"recepient";s:37:",$(assigned_user_id : (Users) email1)";s:7:"subject";s:40:"Ticket Number : $ticket_no $ticket_title";s:7:"content";s:596:"Ticket ID : $(general : (__VtigerMeta__) recordId)<br>Ticket Title : $ticket_title<br><br>\n Dear $(assigned_user_id : (Users) last_name) $(assigned_user_id : (Users) first_name),<br><br>\n The Ticket is replied the details are :<br><br>\n Ticket No : $ticket_no<br>\n Status : $ticketstatus<br>\n Category : $ticketcategories<br>\n Severity : $ticketseverities<br>\n Priority : $ticketpriorities<br><br>\n Description : <br>$description<br><br>\n Solution : <br>$solution\n $allComments<br><br>\n Regards<br>Support Administrator";}'),
(25, 21, 'Ticket Creation From CRM : Send Email to Record Owner', 'O:11:"VTEmailTask":9:{s:18:"executeImmediately";s:1:"0";s:7:"summary";s:53:"Ticket Creation From CRM : Send Email to Record Owner";s:6:"active";s:1:"1";s:2:"id";s:2:"25";s:10:"workflowId";s:2:"21";s:9:"fromEmail";s:93:"$(general : (__VtigerMeta__) supportName)<$(general : (__VtigerMeta__) supportEmailId)>";s:9:"recepient";s:37:",$(assigned_user_id : (Users) email1)";s:7:"subject";s:40:"Ticket Number : $ticket_no $ticket_title";s:7:"content";s:596:"Ticket ID : $(general : (__VtigerMeta__) recordId)<br>Ticket Title : $ticket_title<br><br>\n Dear $(assigned_user_id : (Users) last_name) $(assigned_user_id : (Users) first_name),<br><br>\n The Ticket is replied the details are :<br><br>\n Ticket No : $ticket_no<br>\n Status : $ticketstatus<br>\n Category : $ticketcategories<br>\n Severity : $ticketseverities<br>\n Priority : $ticketpriorities<br><br>\n Description : <br>$description<br><br>\n Solution : <br>$solution\n $allComments<br><br>\n Regards<br>Support Administrator";}'),
(26, 22, 'Send Email to Organization on Ticket Update', 'O:11:"VTEmailTask":9:{s:18:"executeImmediately";s:1:"0";s:7:"summary";s:43:"Send Email to Organization on Ticket Update";s:6:"active";s:1:"1";s:2:"id";s:2:"26";s:9:"fromEmail";s:93:"$(general : (__VtigerMeta__) supportName)<$(general : (__VtigerMeta__) supportEmailId)>";s:9:"recepient";s:33:",$(parent_id : (Accounts) email1)";s:7:"subject";s:79:"$ticket_no [ Ticket Id : $(general : (__VtigerMeta__) recordId) ] $ticket_title";s:7:"content";s:589:"Ticket ID : $(general : (__VtigerMeta__) recordId)<br>Ticket Title : $ticket_title<br><br>\n Dear $(parent_id : (Accounts) accountname),<br><br>\n The Ticket is replied the details are :<br><br>\n Ticket No : $ticket_no<br>\n Status : $ticketstatus<br>\n Category : $ticketcategories<br>\n Severity : $ticketseverities<br>\n Priority : $ticketpriorities<br><br>\n Description : <br>$description<br><br>\n Solution : <br>$solution<br>\n The comments are : <br>\n $allComments<br><br>\n Regards<br>Support Administrator";s:10:"workflowId";s:2:"22";}'),
(27, 23, 'Ticket Creation From CRM : Send Email to Organization', 'O:11:"VTEmailTask":9:{s:18:"executeImmediately";s:1:"0";s:7:"summary";s:53:"Ticket Creation From CRM : Send Email to Organization";s:6:"active";s:1:"1";s:2:"id";s:2:"27";s:9:"fromEmail";s:93:"$(general : (__VtigerMeta__) supportName)<$(general : (__VtigerMeta__) supportEmailId)>";s:9:"recepient";s:33:",$(parent_id : (Accounts) email1)";s:7:"subject";s:79:"$ticket_no [ Ticket Id : $(general : (__VtigerMeta__) recordId) ] $ticket_title";s:7:"content";s:589:"Ticket ID : $(general : (__VtigerMeta__) recordId)<br>Ticket Title : $ticket_title<br><br>\n Dear $(parent_id : (Accounts) accountname),<br><br>\n The Ticket is replied the details are :<br><br>\n Ticket No : $ticket_no<br>\n Status : $ticketstatus<br>\n Category : $ticketcategories<br>\n Severity : $ticketseverities<br>\n Priority : $ticketpriorities<br><br>\n Description : <br>$description<br><br>\n Solution : <br>$solution<br>\n The comments are : <br>\n $allComments<br><br>\n Regards<br>Support Administrator";s:10:"workflowId";s:2:"23";}'),
(28, 24, 'Ticket Creation From CRM : Send Email to Contact', 'O:11:"VTEmailTask":9:{s:18:"executeImmediately";s:1:"0";s:7:"summary";s:48:"Ticket Creation From CRM : Send Email to Contact";s:6:"active";s:1:"1";s:2:"id";s:2:"28";s:9:"fromEmail";s:93:"$(general : (__VtigerMeta__) supportName)<$(general : (__VtigerMeta__) supportEmailId)>";s:9:"recepient";s:33:",$(contact_id : (Contacts) email)";s:7:"subject";s:79:"$ticket_no [ Ticket Id : $(general : (__VtigerMeta__) recordId) ] $ticket_title";s:7:"content";s:624:"Ticket ID : $(general : (__VtigerMeta__) recordId)<br>Ticket Title : $ticket_title<br><br>\n Dear $(contact_id : (Contacts) lastname) $(contact_id : (Contacts) firstname),<br><br>\n The Ticket is replied the details are :<br><br>\n Ticket No : $ticket_no<br>\n Status : $ticketstatus<br>\n Category : $ticketcategories<br>\n Severity : $ticketseverities<br>\n Priority : $ticketpriorities<br><br>\n Description : <br>$description<br><br>\n Solution : <br>$solution<br>\n The comments are : <br>\n $allComments<br><br>\n Regards<br>Support Administrator";s:10:"workflowId";s:2:"24";}');
-- --------------------------------------------------------
-- Table structure for table `com_vtiger_workflowtasks_entitymethod`
CREATE TABLE `com_vtiger_workflowtasks_entitymethod` (
`workflowtasks_entitymethod_id` int(11) NOT NULL,
`module_name` varchar(100) DEFAULT NULL,
`method_name` varchar(100) DEFAULT NULL,
`function_path` varchar(400) DEFAULT NULL,
`function_name` varchar(100) DEFAULT NULL,
PRIMARY KEY (`workflowtasks_entitymethod_id`),
UNIQUE KEY `com_vtiger_workflowtasks_entitymethod_idx` (`workflowtasks_entitymethod_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Dumping data for table `com_vtiger_workflowtasks_entitymethod`
INSERT INTO `com_vtiger_workflowtasks_entitymethod` VALUES
(1, 'SalesOrder', 'UpdateInventory', 'include/InventoryHandler.php', 'handleInventoryProductRel'),
(2, 'Invoice', 'UpdateInventory', 'include/InventoryHandler.php', 'handleInventoryProductRel'),
(3, 'Contacts', 'SendPortalLoginDetails', 'modules/Contacts/ContactsHandler.php', 'Contacts_sendCustomerPortalLoginDetails'),
(4, 'HelpDesk', 'NotifyOnPortalTicketCreation', 'modules/HelpDesk/HelpDeskHandler.php', 'HelpDesk_nofifyOnPortalTicketCreation'),
(5, 'HelpDesk', 'NotifyOnPortalTicketComment', 'modules/HelpDesk/HelpDeskHandler.php', 'HelpDesk_notifyOnPortalTicketComment'),
(6, 'HelpDesk', 'NotifyOwnerOnTicketChange', 'modules/HelpDesk/HelpDeskHandler.php', 'HelpDesk_notifyOwnerOnTicketChange'),
(7, 'HelpDesk', 'NotifyParentOnTicketChange', 'modules/HelpDesk/HelpDeskHandler.php', 'HelpDesk_notifyParentOnTicketChange'),
(8, 'ModComments', 'CustomerCommentFromPortal', 'modules/ModComments/ModCommentsHandler.php', 'CustomerCommentFromPortal'),
(9, 'ModComments', 'TicketOwnerComments', 'modules/ModComments/ModCommentsHandler.php', 'TicketOwnerComments'),
(10, 'PurchaseOrder', 'UpdateInventory', 'include/InventoryHandler.php', 'handleInventoryProductRel');
-- --------------------------------------------------------
-- Table structure for table `com_vtiger_workflowtasks_entitymethod_seq`
CREATE TABLE `com_vtiger_workflowtasks_entitymethod_seq` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Dumping data for table `com_vtiger_workflowtasks_entitymethod_seq`
INSERT INTO `com_vtiger_workflowtasks_entitymethod_seq` VALUES
-- --------------------------------------------------------
-- Table structure for table `com_vtiger_workflowtasks_seq`
CREATE TABLE `com_vtiger_workflowtasks_seq` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Dumping data for table `com_vtiger_workflowtasks_seq`
INSERT INTO `com_vtiger_workflowtasks_seq` VALUES
-- --------------------------------------------------------
-- Table structure for table `com_vtiger_workflowtask_queue`
CREATE TABLE `com_vtiger_workflowtask_queue` (
`task_id` int(11) DEFAULT NULL,
`entity_id` varchar(100) DEFAULT NULL,
`do_after` int(11) DEFAULT NULL,
`relatedinfo` varchar(255) DEFAULT NULL,
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
-- Table structure for table `com_vtiger_workflowtemplates`
CREATE TABLE `com_vtiger_workflowtemplates` (
`template_id` int(11) NOT NULL AUTO_INCREMENT,
`module_name` varchar(100) DEFAULT NULL,
`title` varchar(400) DEFAULT NULL,
PRIMARY KEY (`template_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `com_vtiger_workflow_activatedonce`
CREATE TABLE `com_vtiger_workflow_activatedonce` (
`workflow_id` int(11) NOT NULL,
`entity_id` int(11) NOT NULL,
PRIMARY KEY (`workflow_id`,`entity_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
-- Table structure for table `com_vtiger_workflow_tasktypes`
CREATE TABLE `com_vtiger_workflow_tasktypes` (
`tasktypename` varchar(255) NOT NULL,
`label` varchar(255) DEFAULT NULL,
`classname` varchar(255) DEFAULT NULL,
`classpath` varchar(255) DEFAULT NULL,
`templatepath` varchar(255) DEFAULT NULL,
`modules` varchar(500) DEFAULT NULL,
`sourcemodule` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Dumping data for table `com_vtiger_workflow_tasktypes`
INSERT INTO `com_vtiger_workflow_tasktypes` VALUES
(1, 'VTEmailTask', 'Send Mail', 'VTEmailTask', 'modules/com_vtiger_workflow/tasks/VTEmailTask.inc', 'modules/Settings/Workflows/Tasks/VTEmailTask.tpl', '{"include":[],"exclude":[]}', ''),
(2, 'VTEntityMethodTask', 'Invoke Custom Function', 'VTEntityMethodTask', 'modules/com_vtiger_workflow/tasks/VTEntityMethodTask.inc', 'modules/Settings/Workflows/Tasks/VTEntityMethodTask.tpl', '{"include":[],"exclude":[]}', ''),
(3, 'VTCreateTodoTask', 'Create Todo', 'VTCreateTodoTask', 'modules/com_vtiger_workflow/tasks/VTCreateTodoTask.inc', 'modules/Settings/Workflows/Tasks/VTCreateTodoTask.tpl', '{"include":["Leads","Accounts","Potentials","Contacts","HelpDesk","Campaigns","Quotes","PurchaseOrder","SalesOrder","Invoice","Project"],"exclude":["Calendar","FAQ","Events"]}', ''),
(4, 'VTCreateEventTask', 'Create Event', 'VTCreateEventTask', 'modules/com_vtiger_workflow/tasks/VTCreateEventTask.inc', 'modules/Settings/Workflows/Tasks/VTCreateEventTask.tpl', '{"include":["Leads","Accounts","Potentials","Contacts","HelpDesk","Campaigns","Project"],"exclude":["Calendar","FAQ","Events"]}', ''),
(5, 'VTUpdateFieldsTask', 'Update Fields', 'VTUpdateFieldsTask', 'modules/com_vtiger_workflow/tasks/VTUpdateFieldsTask.inc', 'modules/Settings/Workflows/Tasks/VTUpdateFieldsTask.tpl', '{"include":[],"exclude":[]}', ''),
(6, 'VTCreateEntityTask', 'Create Entity', 'VTCreateEntityTask', 'modules/com_vtiger_workflow/tasks/VTCreateEntityTask.inc', 'modules/Settings/Workflows/Tasks/VTCreateEntityTask.tpl', '{"include":[],"exclude":[]}', ''),
(7, 'VTSMSTask', 'SMS Task', 'VTSMSTask', 'modules/com_vtiger_workflow/tasks/VTSMSTask.inc', 'modules/Settings/Workflows/Tasks/VTSMSTask.tpl', '{"include":[],"exclude":[]}', 'SMSNotifier');
-- --------------------------------------------------------
-- Table structure for table `com_vtiger_workflow_tasktypes_seq`
CREATE TABLE `com_vtiger_workflow_tasktypes_seq` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Dumping data for table `com_vtiger_workflow_tasktypes_seq`
INSERT INTO `com_vtiger_workflow_tasktypes_seq` VALUES
-- --------------------------------------------------------
-- Table structure for table `vtiger_account`
CREATE TABLE `vtiger_account` (
`accountid` int(19) NOT NULL DEFAULT '0',
`account_no` varchar(100) NOT NULL,
`accountname` varchar(100) NOT NULL,
`parentid` int(19) DEFAULT '0',
`account_type` varchar(200) DEFAULT NULL,
`industry` varchar(200) DEFAULT NULL,
`annualrevenue` decimal(25,8) DEFAULT NULL,
`rating` varchar(200) DEFAULT NULL,
`ownership` varchar(50) DEFAULT NULL,
`siccode` varchar(50) DEFAULT NULL,
`tickersymbol` varchar(30) DEFAULT NULL,
`phone` varchar(30) DEFAULT NULL,
`otherphone` varchar(30) DEFAULT NULL,
`email1` varchar(100) DEFAULT NULL,
`email2` varchar(100) DEFAULT NULL,
`website` varchar(100) DEFAULT NULL,
`fax` varchar(30) DEFAULT NULL,
`employees` int(10) DEFAULT '0',
`emailoptout` varchar(3) DEFAULT '0',
`notify_owner` varchar(3) DEFAULT '0',
`isconvertedfromlead` varchar(3) DEFAULT '0',
`tags` varchar(1) DEFAULT NULL,
PRIMARY KEY (`accountid`),
KEY `account_account_type_idx` (`account_type`),
KEY `email_idx` (`email1`,`email2`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
-- Table structure for table `vtiger_accountbillads`
CREATE TABLE `vtiger_accountbillads` (
`accountaddressid` int(19) NOT NULL DEFAULT '0',
`bill_city` varchar(30) DEFAULT NULL,
`bill_code` varchar(30) DEFAULT NULL,
`bill_country` varchar(30) DEFAULT NULL,
`bill_state` varchar(30) DEFAULT NULL,
`bill_street` varchar(250) DEFAULT NULL,
`bill_pobox` varchar(30) DEFAULT NULL,
PRIMARY KEY (`accountaddressid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
-- Table structure for table `vtiger_accountrating`
CREATE TABLE `vtiger_accountrating` (
`accountratingid` int(19) NOT NULL AUTO_INCREMENT,
`rating` varchar(200) NOT NULL,
`sortorderid` int(19) NOT NULL DEFAULT '0',
`presence` int(1) NOT NULL DEFAULT '1',
PRIMARY KEY (`accountratingid`),
UNIQUE KEY `accountrating_rating_idx` (`rating`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `vtiger_accountscf`
CREATE TABLE `vtiger_accountscf` (
`accountid` int(19) NOT NULL DEFAULT '0',
PRIMARY KEY (`accountid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
-- Table structure for table `vtiger_accountshipads`
CREATE TABLE `vtiger_accountshipads` (
`accountaddressid` int(19) NOT NULL DEFAULT '0',
`ship_city` varchar(30) DEFAULT NULL,
`ship_code` varchar(30) DEFAULT NULL,
`ship_country` varchar(30) DEFAULT NULL,
`ship_state` varchar(30) DEFAULT NULL,
`ship_pobox` varchar(30) DEFAULT NULL,
`ship_street` varchar(250) DEFAULT NULL,
PRIMARY KEY (`accountaddressid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
-- Table structure for table `vtiger_accounttype`
CREATE TABLE `vtiger_accounttype` (
`accounttypeid` int(19) NOT NULL AUTO_INCREMENT,
`accounttype` varchar(200) NOT NULL,
`presence` int(1) NOT NULL DEFAULT '1',
`picklist_valueid` int(19) NOT NULL DEFAULT '0',
`sortorderid` int(11) DEFAULT NULL,
`color` varchar(10) DEFAULT NULL,
PRIMARY KEY (`accounttypeid`),
UNIQUE KEY `accounttype_accounttype_idx` (`accounttype`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=12 ;
-- Dumping data for table `vtiger_accounttype`
INSERT INTO `vtiger_accounttype` VALUES
(2, 'Analyst', 1, 2, 1, NULL),
(3, 'Competitor', 1, 3, 2, NULL),
(4, 'Customer', 1, 4, 3, NULL),
(5, 'Integrator', 1, 5, 4, NULL),
(6, 'Investor', 1, 6, 5, NULL),
(7, 'Partner', 1, 7, 6, NULL),
(8, 'Press', 1, 8, 7, NULL),
(9, 'Prospect', 1, 9, 8, NULL),
(10, 'Reseller', 1, 10, 9, NULL),
(11, 'Other', 1, 11, 10, NULL);
-- --------------------------------------------------------
-- Table structure for table `vtiger_accounttype_seq`
CREATE TABLE `vtiger_accounttype_seq` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Dumping data for table `vtiger_accounttype_seq`
INSERT INTO `vtiger_accounttype_seq` VALUES
-- --------------------------------------------------------
-- Table structure for table `vtiger_actionmapping`
CREATE TABLE `vtiger_actionmapping` (
`actionid` int(19) NOT NULL,
`actionname` varchar(200) NOT NULL,
`securitycheck` int(19) DEFAULT NULL,
PRIMARY KEY (`actionid`,`actionname`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Dumping data for table `vtiger_actionmapping`
INSERT INTO `vtiger_actionmapping` VALUES
(1, 'DetailViewAjax', 1),
(1, 'PriceBookEditView', 1),
(1, 'VendorEditView', 1),
(2, 'DeletePriceBook', 1),
(4, 'PriceBookDetailView', 1),
(4, 'VendorDetailView', 1),
(10, 'DuplicatesHandling', 0),
(11, 'ReceiveIncomingCalls', 0),
(12, 'MakeOutgoingCalls', 0),
-- --------------------------------------------------------
-- Table structure for table `vtiger_activity`
CREATE TABLE `vtiger_activity` (
`activityid` int(19) NOT NULL DEFAULT '0',
`subject` varchar(255) DEFAULT NULL,
`semodule` varchar(20) DEFAULT NULL,
`activitytype` varchar(200) NOT NULL,
`date_start` date NOT NULL,
`due_date` date DEFAULT NULL,
`time_start` varchar(50) DEFAULT NULL,
`time_end` varchar(50) DEFAULT NULL,
`sendnotification` varchar(3) NOT NULL DEFAULT '0',
`duration_hours` varchar(200) DEFAULT NULL,
`duration_minutes` varchar(200) DEFAULT NULL,
`status` varchar(200) DEFAULT NULL,
`eventstatus` varchar(200) DEFAULT NULL,
`priority` varchar(200) DEFAULT NULL,
`location` varchar(150) DEFAULT NULL,
`notime` varchar(3) NOT NULL DEFAULT '0',
`visibility` varchar(50) NOT NULL DEFAULT 'all',
`recurringtype` varchar(200) DEFAULT NULL,
`tags` varchar(1) DEFAULT NULL,
PRIMARY KEY (`activityid`),
KEY `activity_activityid_subject_idx` (`activityid`,`subject`),