This commit is contained in:
2024-04-27 09:23:34 +02:00
commit 11e713ca6f
11884 changed files with 3263371 additions and 0 deletions

View File

@@ -0,0 +1,56 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['accounts_bugs'] = array ( 'table' => 'accounts_bugs'
, 'fields' => array (
array('name' =>'id', 'type' =>'varchar', 'len'=>'36',)
, array('name' =>'account_id', 'type' =>'varchar', 'len'=>'36')
, array('name' =>'bug_id', 'type' =>'varchar', 'len'=>'36')
, array ('name' => 'date_modified','type' => 'datetime')
, array('name' =>'deleted', 'type' =>'bool', 'len'=>'1', 'required'=>false, 'default'=>'0')
) , 'indices' => array (
array('name' =>'accounts_bugspk', 'type' =>'primary', 'fields'=>array('id'))
, array('name' =>'idx_acc_bug_acc', 'type' =>'index', 'fields'=>array('account_id'))
, array('name' =>'idx_acc_bug_bug', 'type' =>'index', 'fields'=>array('bug_id'))
, array('name' => 'idx_account_bug', 'type'=>'alternate_key', 'fields'=>array('account_id','bug_id'))
)
, 'relationships' => array ('accounts_bugs' => array('lhs_module'=> 'Accounts', 'lhs_table'=> 'accounts', 'lhs_key' => 'id',
'rhs_module'=> 'Bugs', 'rhs_table'=> 'bugs', 'rhs_key' => 'id',
'relationship_type'=>'many-to-many',
'join_table'=> 'accounts_bugs', 'join_key_lhs'=>'account_id', 'join_key_rhs'=>'bug_id'))
)
?>

View File

@@ -0,0 +1,50 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['accounts_cases'] = array ( 'table' => 'accounts_cases'
, 'fields' => array (
array('name' =>'id', 'type' =>'varchar', 'len'=>'36')
, array('name' =>'account_id', 'type' =>'varchar', 'len'=>'36')
, array('name' =>'case_id', 'type' =>'varchar', 'len'=>'36')
, array ('name' => 'date_modified','type' => 'datetime')
,array('name' =>'deleted', 'type' =>'bool', 'len'=>'1', 'required'=>false, 'default'=>'0')
) , 'indices' => array (
array('name' =>'accounts_casespk', 'type' =>'primary', 'fields'=>array('id'))
, array('name' =>'idx_acc_case_acc', 'type' =>'index', 'fields'=>array('account_id'))
, array('name' =>'idx_acc_acc_case', 'type' =>'index', 'fields'=>array('case_id'))
)
)
?>

View File

@@ -0,0 +1,58 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contactlead SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contactlead@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['accounts_contactleads'] = array ( 'table' => 'accounts_contactleads'
, 'fields' => array (
array('name' =>'id', 'type' =>'varchar', 'len'=>'36')
, array('name' =>'contactlead_id', 'type' =>'varchar', 'len'=>'36')
, array('name' =>'account_id', 'type' =>'varchar', 'len'=>'36')
, array ('name' => 'date_modified','type' => 'datetime')
, array('name' =>'deleted', 'type' =>'bool', 'len'=>'1', 'required'=>false, 'default'=>'0')
) , 'indices' => array (
array('name' =>'accounts_contactleadspk', 'type' =>'primary', 'fields'=>array('id'))
, array('name' => 'idx_account_contactlead', 'type'=>'alternate_key', 'fields'=>array('account_id','contactlead_id'))
, array('name' => 'idx_contid_del_accid', 'type' => 'index', 'fields'=> array('contactlead_id', 'deleted', 'account_id'))
)
, 'relationships' => array ('accounts_contactleads' => array('lhs_module'=> 'Accounts', 'lhs_table'=> 'accounts', 'lhs_key' => 'id',
'rhs_module'=> 'ContactLeads', 'rhs_table'=> 'contactleads', 'rhs_key' => 'id',
'relationship_type'=>'many-to-many',
'join_table'=> 'accounts_contactleads', 'join_key_lhs'=>'account_id', 'join_key_rhs'=>'contactlead_id'))
)
?>

View File

@@ -0,0 +1,58 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['accounts_contacts'] = array ( 'table' => 'accounts_contacts'
, 'fields' => array (
array('name' =>'id', 'type' =>'varchar', 'len'=>'36')
, array('name' =>'contact_id', 'type' =>'varchar', 'len'=>'36')
, array('name' =>'account_id', 'type' =>'varchar', 'len'=>'36')
, array ('name' => 'date_modified','type' => 'datetime')
, array('name' =>'deleted', 'type' =>'bool', 'len'=>'1', 'required'=>false, 'default'=>'0')
) , 'indices' => array (
array('name' =>'accounts_contactspk', 'type' =>'primary', 'fields'=>array('id'))
, array('name' => 'idx_account_contact', 'type'=>'alternate_key', 'fields'=>array('account_id','contact_id'))
, array('name' => 'idx_contid_del_accid', 'type' => 'index', 'fields'=> array('contact_id', 'deleted', 'account_id'))
)
, 'relationships' => array ('accounts_contacts' => array('lhs_module'=> 'Accounts', 'lhs_table'=> 'accounts', 'lhs_key' => 'id',
'rhs_module'=> 'Contacts', 'rhs_table'=> 'contacts', 'rhs_key' => 'id',
'relationship_type'=>'many-to-many',
'join_table'=> 'accounts_contacts', 'join_key_lhs'=>'account_id', 'join_key_rhs'=>'contact_id'))
)
?>

View File

@@ -0,0 +1,57 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['accounts_opportunities'] = array ( 'table' => 'accounts_opportunities'
, 'fields' => array (
array('name' =>'id', 'type' =>'varchar', 'len'=>'36')
, array('name' =>'opportunity_id', 'type' =>'varchar', 'len'=>'36', )
, array('name' =>'account_id', 'type' =>'varchar', 'len'=>'36', )
, array ('name' => 'date_modified','type' => 'datetime')
, array('name' =>'deleted', 'type' =>'bool', 'len'=>'1', 'default'=>'0', 'required'=>false)
)
, 'indices' => array (
array('name' =>'accounts_opportunitiespk', 'type' =>'primary', 'fields'=>array('id'))
, array('name' => 'idx_account_opportunity', 'type'=>'alternate_key', 'fields'=>array('account_id','opportunity_id'))
, array('name' => 'idx_oppid_del_accid', 'type' => 'index', 'fields'=> array('opportunity_id', 'deleted', 'account_id'))
)
,'relationships' => array ('accounts_opportunities' => array('lhs_module'=> 'Accounts', 'lhs_table'=> 'accounts', 'lhs_key' => 'id',
'rhs_module'=> 'Opportunities', 'rhs_table'=> 'opportunities', 'rhs_key' => 'id',
'relationship_type'=>'many-to-many',
'join_table'=> 'accounts_opportunities', 'join_key_lhs'=>'account_id', 'join_key_rhs'=>'opportunity_id'))
)
?>

View File

@@ -0,0 +1,58 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can pcontact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address pcontact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['accounts_pcontacts'] = array ( 'table' => 'accounts_pcontacts'
, 'fields' => array (
array('name' =>'id', 'type' =>'varchar', 'len'=>'36')
, array('name' =>'pcontact_id', 'type' =>'varchar', 'len'=>'36')
, array('name' =>'account_id', 'type' =>'varchar', 'len'=>'36')
, array ('name' => 'date_modified','type' => 'datetime')
, array('name' =>'deleted', 'type' =>'bool', 'len'=>'1', 'required'=>false, 'default'=>'0')
) , 'indices' => array (
array('name' =>'accounts_pcontactspk', 'type' =>'primary', 'fields'=>array('id'))
, array('name' => 'idx_account_pcontact', 'type'=>'alternate_key', 'fields'=>array('account_id','pcontact_id'))
, array('name' => 'idx_contid_del_accid', 'type' => 'index', 'fields'=> array('pcontact_id', 'deleted', 'account_id'))
)
, 'relationships' => array ('accounts_pcontacts' => array('lhs_module'=> 'Accounts', 'lhs_table'=> 'accounts', 'lhs_key' => 'id',
'rhs_module'=> 'PContacts', 'rhs_table'=> 'pcontacts', 'rhs_key' => 'id',
'relationship_type'=>'many-to-many',
'join_table'=> 'accounts_pcontacts', 'join_key_lhs'=>'account_id', 'join_key_rhs'=>'pcontact_id'))
)
?>

View File

@@ -0,0 +1,97 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['acl_roles_actions'] = array (
'table' => 'acl_roles_actions',
'fields' => array (
array (
'name' => 'id',
'type' => 'varchar',
'len' => '36',
),
array (
'name' => 'role_id',
'type' => 'varchar',
'len' => '36',
),
array (
'name' => 'action_id',
'type' => 'varchar',
'len' => '36',
),
array (
'name' => 'access_override',
'type' => 'int',
'len' => '3',
'required' => false,
)
, array ('name' => 'date_modified','type' => 'datetime'),
array (
'name' => 'deleted',
'type' => 'bool',
'len' => '1',
'default' => '0'
),
),
'indices' => array (
array (
'name' => 'acl_roles_actionspk',
'type' => 'primary',
'fields' => array ( 'id' )
),
array (
'name' => 'idx_acl_role_id',
'type' => 'index',
'fields' => array ('role_id')
),
array (
'name' => 'idx_acl_action_id',
'type' => 'index',
'fields' => array ('action_id')
),
array('name' => 'idx_aclrole_action', 'type'=>'alternate_key', 'fields'=>array('role_id','action_id'))
),
'relationships' => array ('acl_roles_actions' => array('lhs_module'=> 'ACLRoles', 'lhs_table'=> 'acl_roles', 'lhs_key' => 'id',
'rhs_module'=> 'ACLActions', 'rhs_table'=> 'acl_actions', 'rhs_key' => 'id',
'relationship_type'=>'many-to-many',
'join_table'=> 'acl_roles_actions', 'join_key_lhs'=>'role_id', 'join_key_rhs'=>'action_id')),
)
?>

View File

@@ -0,0 +1,91 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['acl_roles_users'] = array (
'table' => 'acl_roles_users',
'fields' => array (
array (
'name' => 'id',
'type' => 'varchar',
'len' => '36',
),
array (
'name' => 'role_id',
'type' => 'varchar',
'len' => '36',
),
array (
'name' => 'user_id',
'type' => 'varchar',
'len' => '36',
)
, array ('name' => 'date_modified','type' => 'datetime'),
array (
'name' => 'deleted',
'type' => 'bool',
'len' => '1',
'default' => '0'
),
),
'indices' => array (
array (
'name' => 'acl_roles_userspk',
'type' => 'primary',
'fields' => array ( 'id' )
),
array (
'name' => 'idx_aclrole_id',
'type' => 'index',
'fields' => array ('role_id')
),
array (
'name' => 'idx_acluser_id',
'type' => 'index',
'fields' => array ('user_id')
),
array('name' => 'idx_aclrole_user', 'type'=>'alternate_key', 'fields'=>array('role_id','user_id'))
),
'relationships' => array ('acl_roles_users' => array('lhs_module'=> 'ACLRoles', 'lhs_table'=> 'acl_roles', 'lhs_key' => 'id',
'rhs_module'=> 'Users', 'rhs_table'=> 'users', 'rhs_key' => 'id',
'relationship_type'=>'many-to-many',
'join_table'=> 'acl_roles_users', 'join_key_lhs'=>'role_id', 'join_key_rhs'=>'user_id')),
)
?>

View File

@@ -0,0 +1,80 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
/*********************************************************************************
* Description:
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc. All Rights
* Reserved. Contributor(s): ______________________________________..
*********************************************************************************/
$dictionary['AddressBook'] = array ('table' => 'address_book',
'fields' => array (
'assigned_user_id' => array (
'name' => 'assigned_user_id',
'vname' => 'LBL_USER_ID',
'type' => 'id',
'required' => true,
'reportable' => false,
),
'bean' => array (
'name' => 'bean',
'vname' => 'LBL_BEAN',
'type' => 'varchar',
'len' => '50',
'required' => true,
'reportable' => false,
),
'bean_id' => array (
'name' => 'bean_id',
'vname' => 'LBL_BEAN_ID',
'type' => 'id',
'required' => true,
'reportable' => false,
),
),
'indices' => array (
array(
'name' => 'ab_user_bean_idx',
'type' =>'index',
'fields' => array(
'assigned_user_id',
'bean',
)
),
), /* end indices */
);

View File

@@ -0,0 +1,59 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
/* this table should never get created, it should only be used as a template for the acutal audit tables
* for each moudule.
*/
$dictionary['audit'] =
array ( 'table' => 'audit',
'fields' => array (
'id'=> array('name' =>'id', 'type' =>'id', 'len'=>'36','required'=>true),
'parent_id'=>array('name' =>'parent_id', 'type' =>'id', 'len'=>'36','required'=>true),
'date_created'=>array('name' =>'date_created','type' => 'datetime'),
'created_by'=>array('name' =>'created_by','type' => 'varchar','len' => 36),
'field_name'=>array('name' =>'field_name','type' => 'varchar','len' => 100),
'data_type'=>array('name' =>'data_type','type' => 'varchar','len' => 100),
'before_value_string'=>array('name' =>'before_value_string','type' => 'varchar'),
'after_value_string'=>array('name' =>'after_value_string','type' => 'varchar'),
'before_value_text'=>array('name' =>'before_value_text','type' => 'text'),
'after_value_text'=>array('name' =>'after_value_text','type' => 'text'),
),
'indices' => array (
//name will be re-constructed adding idx_ and table name as the prefix like 'idx_accounts_'
array ('name' => 'parent_id', 'type' => 'index', 'fields' => array('parent_id'))
)
)
?>

View File

@@ -0,0 +1,60 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['calls_contacts'] = array ( 'table' => 'calls_contacts'
, 'fields' => array (
array('name' =>'id', 'type' =>'varchar', 'len'=>'36')
, array('name' =>'call_id', 'type' =>'varchar', 'len'=>'36', )
, array('name' =>'contact_id', 'type' =>'varchar', 'len'=>'36', )
, array('name' =>'required', 'type' =>'varchar', 'len'=>'1', 'default'=>'1')
, array('name' =>'accept_status', 'type' =>'varchar', 'len'=>'25', 'default'=>'none')
, array ('name' => 'date_modified','type' => 'datetime')
, array('name' =>'deleted', 'type' =>'bool', 'len'=>'1', 'default'=>'0', 'required'=>false)
)
, 'indices' => array (
array('name' =>'calls_contactspk', 'type' =>'primary', 'fields'=>array('id'))
, array('name' =>'idx_con_call_call', 'type' =>'index', 'fields'=>array('call_id'))
, array('name' =>'idx_con_call_con', 'type' =>'index', 'fields'=>array('contact_id'))
, array('name' => 'idx_call_contact', 'type'=>'alternate_key', 'fields'=>array('call_id','contact_id'))
)
, 'relationships' => array ('calls_contacts' => array('lhs_module'=> 'Calls', 'lhs_table'=> 'calls', 'lhs_key' => 'id',
'rhs_module'=> 'Contacts', 'rhs_table'=> 'contacts', 'rhs_key' => 'id',
'relationship_type'=>'many-to-many',
'join_table'=> 'calls_contacts', 'join_key_lhs'=>'call_id', 'join_key_rhs'=>'contact_id'))
)
?>

View File

@@ -0,0 +1,60 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['calls_leads'] = array ( 'table' => 'calls_leads'
, 'fields' => array (
array('name' =>'id', 'type' =>'varchar', 'len'=>'36')
, array('name' =>'call_id', 'type' =>'varchar', 'len'=>'36', )
, array('name' =>'lead_id', 'type' =>'varchar', 'len'=>'36', )
, array('name' =>'required', 'type' =>'varchar', 'len'=>'1', 'default'=>'1')
, array('name' =>'accept_status', 'type' =>'varchar', 'len'=>'25', 'default'=>'none')
, array ('name' => 'date_modified','type' => 'datetime')
, array('name' =>'deleted', 'type' =>'bool', 'len'=>'1', 'default'=>'0', 'required'=>false)
)
, 'indices' => array (
array('name' =>'calls_leadspk', 'type' =>'primary', 'fields'=>array('id'))
, array('name' =>'idx_lead_call_call', 'type' =>'index', 'fields'=>array('call_id'))
, array('name' =>'idx_lead_call_lead', 'type' =>'index', 'fields'=>array('lead_id'))
, array('name' => 'idx_call_lead', 'type'=>'alternate_key', 'fields'=>array('call_id','lead_id'))
)
, 'relationships' => array ('calls_leads' => array('lhs_module'=> 'Calls', 'lhs_table'=> 'calls', 'lhs_key' => 'id',
'rhs_module'=> 'Leads', 'rhs_table'=> 'leads', 'rhs_key' => 'id',
'relationship_type'=>'many-to-many',
'join_table'=> 'calls_leads', 'join_key_lhs'=>'call_id', 'join_key_rhs'=>'lead_id'))
)
?>

View File

@@ -0,0 +1,58 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['calls_users'] = array ( 'table' => 'calls_users'
, 'fields' => array (
array('name' =>'id', 'type' =>'varchar', 'len'=>'36')
, array('name' =>'call_id', 'type' =>'varchar', 'len'=>'36')
, array('name' =>'user_id', 'type' =>'varchar', 'len'=>'36')
, array('name' =>'required', 'type' =>'varchar', 'len'=>'1', 'default'=>'1')
, array('name' =>'accept_status', 'type' =>'varchar', 'len'=>'25', 'default'=>'none')
, array ('name' => 'date_modified','type' => 'datetime')
, array('name' =>'deleted', 'type' =>'bool', 'len'=>'1', 'default'=>'0', 'required'=>false)
) , 'indices' => array (
array('name' =>'calls_userspk', 'type' =>'primary', 'fields'=>array('id'))
, array('name' =>'idx_usr_call_call', 'type' =>'index', 'fields'=>array('call_id'))
, array('name' =>'idx_usr_call_usr', 'type' =>'index', 'fields'=>array('user_id'))
, array('name' => 'idx_call_users', 'type'=>'alternate_key', 'fields'=>array('call_id','user_id'))
)
, 'relationships' => array ('calls_users' => array('lhs_module'=> 'Calls', 'lhs_table'=> 'calls', 'lhs_key' => 'id',
'rhs_module'=> 'Users', 'rhs_table'=> 'users', 'rhs_key' => 'id',
'relationship_type'=>'many-to-many',
'join_table'=> 'calls_users', 'join_key_lhs'=>'call_id', 'join_key_rhs'=>'user_id'))
)
?>

57
metadata/cases_bugsMetaData.php Executable file
View File

@@ -0,0 +1,57 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['cases_bugs'] = array ( 'table' => 'cases_bugs'
, 'fields' => array (
array('name' =>'id', 'type' =>'varchar', 'len'=>'36')
, array('name' =>'case_id', 'type' =>'varchar', 'len'=>'36')
, array('name' =>'bug_id', 'type' =>'varchar', 'len'=>'36')
, array ('name' => 'date_modified','type' => 'datetime')
, array('name' =>'deleted', 'type' =>'bool', 'len'=>'1', 'default'=>'0', 'required'=>false)
) , 'indices' => array (
array('name' =>'cases_bugspk', 'type' =>'primary', 'fields'=>array('id'))
, array('name' =>'idx_cas_bug_cas', 'type' =>'index', 'fields'=>array('case_id'))
, array('name' =>'idx_cas_bug_bug', 'type' =>'index', 'fields'=>array('bug_id'))
, array('name' => 'idx_case_bug', 'type'=>'alternate_key', 'fields'=>array('case_id','bug_id'))
)
, 'relationships' => array ('cases_bugs' => array('lhs_module'=> 'Cases', 'lhs_table'=> 'cases', 'lhs_key' => 'id',
'rhs_module'=> 'Bugs', 'rhs_table'=> 'bugs', 'rhs_key' => 'id',
'relationship_type'=>'many-to-many',
'join_table'=> 'cases_bugs', 'join_key_lhs'=>'case_id', 'join_key_rhs'=>'bug_id'))
)
?>

38
metadata/configMetaData.php Executable file
View File

@@ -0,0 +1,38 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
?>

View File

@@ -0,0 +1,56 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contactlead SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contactlead@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['contactleads_users'] = array ( 'table' => 'contactleads_users'
, 'fields' => array (
array('name' =>'id', 'type' =>'varchar', 'len'=>'36')
, array('name' =>'contactlead_id', 'type' =>'varchar', 'len'=>'36', )
, array('name' =>'user_id', 'type' =>'varchar', 'len'=>'36', )
, array ('name' => 'date_modified','type' => 'datetime')
, array('name' =>'deleted', 'type' =>'bool', 'len'=>'1', 'default'=>'0','required'=>false)
) , 'indices' => array (
array('name' =>'contactleads_userspk', 'type' =>'primary', 'fields'=>array('id'))
, array('name' =>'idx_con_users_con', 'type' =>'index', 'fields'=>array('contactlead_id'))
, array('name' =>'idx_con_users_user', 'type' =>'index', 'fields'=>array('user_id'))
, array('name' =>'idx_contactleads_users', 'type' =>'alternate_key', 'fields'=>array('contactlead_id', 'user_id'))
)
, 'relationships' => array ('contactleads_users' => array('lhs_module'=> 'ContactLeads', 'lhs_table'=> 'contactleads', 'lhs_key' => 'id',
'rhs_module'=> 'Users', 'rhs_table'=> 'users', 'rhs_key' => 'id',
'relationship_type'=>'many-to-many',
'join_table'=> 'contactleads_users', 'join_key_lhs'=>'contactlead_id', 'join_key_rhs'=>'user_id'))
)
?>

View File

@@ -0,0 +1,59 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['contacts_bugs'] = array ( 'table' => 'contacts_bugs'
, 'fields' => array (
array('name' =>'id', 'type' =>'varchar', 'len'=>'36')
, array('name' =>'contact_id', 'type' =>'varchar', 'len'=>'36', )
, array('name' =>'bug_id', 'type' =>'varchar', 'len'=>'36', )
, array('name' =>'contact_role', 'type' =>'varchar', 'len'=>'50', )
, array ('name' => 'date_modified','type' => 'datetime')
, array('name' =>'deleted', 'type' =>'bool', 'len'=>'1', 'default'=>'0','required'=>false)
) , 'indices' => array (
array('name' =>'contacts_bugspk', 'type' =>'primary', 'fields'=>array('id'))
, array('name' =>'idx_con_bug_con', 'type' =>'index', 'fields'=>array('contact_id'))
, array('name' =>'idx_con_bug_bug', 'type' =>'index', 'fields'=>array('bug_id'))
, array('name' => 'idx_contact_bug', 'type'=>'alternate_key', 'fields'=>array('contact_id','bug_id'))
)
, 'relationships' => array ('contacts_bugs' => array('lhs_module'=> 'Contacts', 'lhs_table'=> 'contacts', 'lhs_key' => 'id',
'rhs_module'=> 'Bugs', 'rhs_table'=> 'bugs', 'rhs_key' => 'id',
'relationship_type'=>'many-to-many',
'join_table'=> 'contacts_bugs', 'join_key_lhs'=>'contact_id', 'join_key_rhs'=>'bug_id'))
)
?>

View File

@@ -0,0 +1,57 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['contacts_cases'] = array ( 'table' => 'contacts_cases'
, 'fields' => array (
array('name' =>'id', 'type' =>'varchar', 'len'=>'36')
, array('name' =>'contact_id', 'type' =>'varchar', 'len'=>'36', )
, array('name' =>'case_id', 'type' =>'varchar', 'len'=>'36', )
, array('name' =>'contact_role', 'type' =>'varchar', 'len'=>'50')
, array ('name' => 'date_modified','type' => 'datetime')
, array('name' =>'deleted', 'type' =>'bool', 'len'=>'1', 'default'=>'0','required'=>false)
) , 'indices' => array (
array('name' =>'contacts_casespk', 'type' =>'primary', 'fields'=>array('id'))
, array('name' =>'idx_con_case_con', 'type' =>'index', 'fields'=>array('contact_id'))
, array('name' =>'idx_con_case_case', 'type' =>'index', 'fields'=>array('case_id'))
, array('name' => 'idx_contacts_cases', 'type'=>'alternate_key', 'fields'=>array('contact_id','case_id'))
)
, 'relationships' => array ('contacts_cases' => array('lhs_module'=> 'Contacts', 'lhs_table'=> 'contacts', 'lhs_key' => 'id',
'rhs_module'=> 'Cases', 'rhs_table'=> 'cases', 'rhs_key' => 'id',
'relationship_type'=>'many-to-many',
'join_table'=> 'contacts_cases', 'join_key_lhs'=>'contact_id', 'join_key_rhs'=>'case_id'))
)
?>

View File

@@ -0,0 +1,56 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['contacts_users'] = array ( 'table' => 'contacts_users'
, 'fields' => array (
array('name' =>'id', 'type' =>'varchar', 'len'=>'36')
, array('name' =>'contact_id', 'type' =>'varchar', 'len'=>'36', )
, array('name' =>'user_id', 'type' =>'varchar', 'len'=>'36', )
, array ('name' => 'date_modified','type' => 'datetime')
, array('name' =>'deleted', 'type' =>'bool', 'len'=>'1', 'default'=>'0','required'=>false)
) , 'indices' => array (
array('name' =>'contacts_userspk', 'type' =>'primary', 'fields'=>array('id'))
, array('name' =>'idx_con_users_con', 'type' =>'index', 'fields'=>array('contact_id'))
, array('name' =>'idx_con_users_user', 'type' =>'index', 'fields'=>array('user_id'))
, array('name' =>'idx_contacts_users', 'type' =>'alternate_key', 'fields'=>array('contact_id', 'user_id'))
)
, 'relationships' => array ('contacts_users' => array('lhs_module'=> 'Contacts', 'lhs_table'=> 'contacts', 'lhs_key' => 'id',
'rhs_module'=> 'Users', 'rhs_table'=> 'users', 'rhs_key' => 'id',
'relationship_type'=>'many-to-many',
'join_table'=> 'contacts_users', 'join_key_lhs'=>'contact_id', 'join_key_rhs'=>'user_id'))
)
?>

View File

@@ -0,0 +1,56 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['custom_fields'] = array ( 'table' => 'custom_fields'
, 'fields' => array (
array('name' =>'bean_id', 'type' =>'varchar', 'len'=>'36')
, array('name' =>'set_num', 'type' =>'int', 'len'=>'11', 'default'=>'0')
, array('name' =>'field0', 'type' =>'varchar', 'len'=>'255')
, array('name' =>'field1', 'type' =>'varchar', 'len'=>'255')
, array('name' =>'field2', 'type' =>'varchar', 'len'=>'255')
, array('name' =>'field3', 'type' =>'varchar', 'len'=>'255')
, array('name' =>'field4', 'type' =>'varchar', 'len'=>'255')
, array('name' =>'field5', 'type' =>'varchar', 'len'=>'255')
, array('name' =>'field6', 'type' =>'varchar', 'len'=>'255')
, array('name' =>'field7', 'type' =>'varchar', 'len'=>'255')
, array('name' =>'field8', 'type' =>'varchar', 'len'=>'255')
, array('name' =>'field9', 'type' =>'varchar', 'len'=>'255')
, array('name' =>'deleted', 'type' =>'bool', 'len'=>'1', 'default'=>'0')
) , 'indices' => array (
array('name' =>'idx_beanid_set_num', 'type' =>'index', 'fields'=>array('bean_id','set_num'))
)
)
?>

View File

@@ -0,0 +1,243 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
/**
* Core email_address table
*/
$dictionary['email_addresses'] = array(
'table' => 'email_addresses',
'fields' => array(
'id' => array(
'name' => 'id',
'type' => 'id',
'vname' => 'LBL_EMAIL_ADDRESS_ID',
'required' => true,
),
'email_address' =>array(
'name' => 'email_address',
'type' => 'varchar',
'vname' => 'LBL_EMAIL_ADDRESS',
'length' => 100,
'required' => true,
),
'email_address_caps' => array(
'name' => 'email_address_caps',
'type' => 'varchar',
'vname' => 'LBL_EMAIL_ADDRESS_CAPS',
'length' => 100,
'required' => true,
),
'invalid_email' => array(
'name' => 'invalid_email',
'type' => 'bool',
'default' => 0,
'vname' => 'LBL_INVALID_EMAIL',
),
'opt_out' => array(
'name' => 'opt_out',
'type' => 'bool',
'default' => 0,
'vname' => 'LBL_OPT_OUT',
),
'date_created' => array(
'name' => 'date_created',
'type' => 'datetime',
'vname' => 'LBL_DATE_CREATE',
),
'date_modified' => array(
'name' => 'date_modified',
'type' => 'datetime',
'vname' => 'LBL_DATE_MODIFIED',
),
'deleted' => array(
'name' => 'deleted',
'type' => 'bool',
'default' => 0,
'vname' => 'LBL_DELETED',
),
),
'indices' => array(
array(
'name' => 'email_addressespk',
'type' => 'primary',
'fields' => array('id')
),
array(
'name' => 'idx_ea_caps_opt_out_invalid',
'type' => 'index',
'fields' => array('email_address_caps','opt_out','invalid_email')
),
array(
'name' => 'idx_ea_opt_out_invalid',
'type' => 'index',
'fields' => array('email_address', 'opt_out', 'invalid_email')
),
),
);
// hack for installer
$dictionary['EmailAddress'] = $dictionary['email_addresses'];
/**
* Relationship table linking email addresses to an instance of a Sugar Email object
*/
$dictionary['emails_email_addr_rel'] = array(
'table' => 'emails_email_addr_rel',
'comment' => 'Normalization of multi-address fields such as To:, CC:, BCC',
'fields' => array(
'id' => array(
'name' => 'id',
'type' => 'id',
'required' => true,
'comment' => 'GUID',
),
'email_id' => array(
'name' => 'email_id',
'type' => 'id',
'required' => true,
'comment' => 'Foriegn key to emails table NOT unique',
),
'address_type' => array(
'name' => 'address_type',
'type' => 'varchar',
'len' => 4,
'required' => true,
'comment' => 'Type of entry, TO, CC, or BCC',
),
'email_address_id' => array(
'name' => 'email_address_id',
'type' => 'id',
'required' => true,
'comment' => 'Foriegn key to emails table NOT unique',
),
'deleted' => array(
'name' => 'deleted',
'type' => 'bool',
'default' => 0,
),
),
'indices' => array(
array(
'name' => 'emails_email_addr_relpk',
'type' => 'primary',
'fields' => array('id'),
),
array(
'name' => 'idx_eearl_email_id',
'type' => 'index',
'fields' => array('email_id', 'address_type'),
),
array(
'name' => 'idx_eearl_address_id',
'type' => 'index',
'fields' => array('email_address_id'),
),
),
);
/**
* Relationship table linking email addresses to various SugarBeans or type Person
*/
$dictionary['email_addr_bean_rel'] = array(
'table' => 'email_addr_bean_rel',
'fields' => array(
array(
'name' => 'id',
'type' => 'id',
'required' => true,
),
array(
'name' => 'email_address_id',
'type' => 'id',
'required' => true,
),
array(
'name' => 'bean_id',
'type' => 'id',
'required' => true,
),
array(
'name' => 'bean_module',
'type' => 'varchar',
'len' => 25,
'required' => true,
),
array(
'name' => 'primary_address',
'type' => 'bool',
'default' => '0',
),
array(
'name' => 'reply_to_address',
'type' => 'bool',
'default' => '0',
),
array(
'name' => 'date_created',
'type' => 'datetime'
),
array(
'name' => 'date_modified',
'type' => 'datetime'
),
array(
'name' => 'deleted',
'type' => 'bool',
'default' => 0,
),
),
'indices' => array(
array(
'name' => 'email_addresses_relpk',
'type' => 'primary',
'fields' => array('id')
),
array(
'name' => 'idx_email_address_id',
'type' => 'index',
'fields' => array('email_address_id')
),
array(
'name' => 'idx_bean_id',
'type' => 'index',
'fields' => array('bean_id', 'bean_module'),
),
),
'relationships' => array (
//Defined in Person/Company template vardefs
),
);

187
metadata/email_cacheMetaData.php Executable file
View File

@@ -0,0 +1,187 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
/*********************************************************************************
* Description:
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc. All Rights
* Reserved. Contributor(s): ______________________________________..
*********************************************************************************/
/**
* Relationship table linking emails with 1 or more SugarBeans
*/
$dictionary['email_cache'] = array(
'table' => 'email_cache',
'fields' => array(
'ie_id' => array(
'name' => 'ie_id',
'type' => 'id',
'required' => 'true',
),
'mbox' => array(
'name' => 'mbox',
'type' => 'varchar',
'len' => 60,
'required' => true,
),
'subject' => array(
'name' => 'subject',
'type' => 'varchar',
'len' => 255,
'required' => false,
),
'fromaddr' => array(
'name' => 'fromaddr',
'type' => 'varchar',
'len' => 100,
'required' => false,
),
'toaddr' => array(
'name' => 'toaddr',
'type' => 'varchar',
'len' => 255,
'required' => false,
),
'senddate' => array(
'name' => 'senddate',
'type' => 'datetime',
'required' => false,
),
'message_id' => array(
'name' => 'message_id',
'type' => 'varchar',
'len' => 255,
'required' => false,
),
'mailsize' => array(
'name' => 'mailsize',
'type' => 'uint',
'len' => 16,
'required' => true,
),
'imap_uid' => array(
'name' => 'imap_uid',
'type' => 'uint',
'len' => 32,
'required' => true,
),
'msgno' => array(
'name' => 'msgno',
'type' => 'uint',
'len' => 32,
'required' => false,
),
'recent' => array(
'name' => 'recent',
'type' => 'tinyint',
'len' => 1,
'required' => true,
),
'flagged' => array(
'name' => 'flagged',
'type' => 'tinyint',
'len' => 1,
'required' => true,
),
'answered' => array(
'name' => 'answered',
'type' => 'tinyint',
'len' => 1,
'required' => true,
),
'deleted' => array(
'name' => 'deleted',
'type' => 'tinyint',
'len' => 1,
'required' => false,
),
'seen' => array(
'name' => 'seen',
'type' => 'tinyint',
'len' => 1,
'required' => true,
),
'draft' => array(
'name' => 'draft',
'type' => 'tinyint',
'len' => 1,
'required' => true,
),
),
'indices' => array(
array(
'name' => 'idx_ie_id',
'type' => 'index',
'fields' => array(
'ie_id',
),
),
array(
'name' => 'idx_mail_date',
'type' => 'index',
'fields' => array(
'ie_id',
'mbox',
'senddate',
)
),
array(
'name' => 'idx_mail_from',
'type' => 'index',
'fields' => array(
'ie_id',
'mbox',
'fromaddr',
)
),
array(
'name' => 'idx_mail_subj',
'type' => 'index',
'fields' => array(
'subject',
)
),
array(
'name' => 'idx_mail_to',
'type' => 'index',
'fields' => array(
'toaddr',
)
),
),
);

View File

@@ -0,0 +1,98 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['email_marketing_prospect_lists'] = array (
'table' => 'email_marketing_prospect_lists',
'fields' => array (
array (
'name' => 'id',
'type' => 'varchar',
'len' => '36',
),
array (
'name' => 'prospect_list_id',
'type' => 'varchar',
'len' => '36',
),
array (
'name' => 'email_marketing_id',
'type' => 'varchar',
'len' => '36',
),
array (
'name' => 'date_modified',
'type' => 'datetime'
),
array (
'name' => 'deleted',
'type' => 'bool',
'len' => '1',
'default' => '0'
),
),
'indices' => array (
array (
'name' => 'email_mp_listspk',
'type' => 'primary',
'fields' => array ( 'id' )
),
array (
'name' => 'email_mp_prospects',
'type' => 'alternate_key',
'fields' => array ( 'email_marketing_id',
'prospect_list_id'
)
),
),
'relationships' => array (
'email_marketing_prospect_lists' => array(
'lhs_module'=> 'EmailMarketing',
'lhs_table'=> 'email_marketing',
'lhs_key' => 'id',
'rhs_module'=> 'ProspectLists',
'rhs_table'=> 'prospect_lists',
'rhs_key' => 'id',
'relationship_type'=>'many-to-many',
'join_table'=> 'email_marketing_prospect_lists',
'join_key_lhs'=>'email_marketing_id',
'join_key_rhs'=>'prospect_list_id',
),
)
)
?>

382
metadata/emails_beansMetaData.php Executable file
View File

@@ -0,0 +1,382 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
/*********************************************************************************
* Description:
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc. All Rights
* Reserved. Contributor(s): ______________________________________..
*********************************************************************************/
/**
* Relationship table linking emails with 1 or more SugarBeans
*/
$dictionary['emails_beans'] = array('table' => 'emails_beans',
'fields' => array(
array(
'name' => 'id',
'type' => 'varchar',
'dbType' => 'id',
'len' => '36'
),
array(
'name' => 'email_id',
'type' => 'varchar',
'dbType' => 'id',
'len' => '36',
'comment' => 'FK to emails table',
),
array(
'name' => 'bean_id',
'dbType' => 'id',
'type' => 'varchar',
'len' => '36',
'comment' => 'FK to various beans\'s tables',
),
array(
'name' => 'bean_module',
'type' => 'varchar',
'len' => '36',
'comment' => 'bean\'s Module',
),
array( 'name' => 'campaign_data',
'type' => 'text',
),
array(
'name' => 'date_modified',
'type' => 'datetime'
),
array(
'name' => 'deleted',
'type' => 'bool',
'len' => '1',
'default' => '0',
'required' => false
)
),
'indices' => array(
array(
'name' => 'emails_beanspk',
'type' => 'primary',
'fields' => array('id')
),
array(
'name' => 'idx_emails_beans_bean_id',
'type' => 'index',
'fields' => array('bean_id')
),
array(
'name' => 'idx_emails_beans_email_bean',
'type' => 'alternate_key',
'fields' => array('email_id', 'bean_id', 'deleted')
),
),
'relationships' => array(
'emails_accounts_rel' => array(
'lhs_module' => 'Emails',
'lhs_table' => 'emails',
'lhs_key' => 'id',
'rhs_module' => 'Accounts',
'rhs_table' => 'accounts',
'rhs_key' => 'id',
'relationship_type' => 'many-to-many',
'join_table' => 'emails_beans',
'join_key_lhs' => 'email_id',
'join_key_rhs' => 'bean_id',
'relationship_role_column' => 'bean_module',
'relationship_role_column_value' => 'Accounts',
),
'emails_bugs_rel' => array(
'lhs_module' => 'Emails',
'lhs_table' => 'emails',
'lhs_key' => 'id',
'rhs_module' => 'Bugs',
'rhs_table' => 'bugs',
'rhs_key' => 'id',
'relationship_type' => 'many-to-many',
'join_table' => 'emails_beans',
'join_key_lhs' => 'email_id',
'join_key_rhs' => 'bean_id',
'relationship_role_column' => 'bean_module',
'relationship_role_column_value' => 'Bugs',
),
'emails_cases_rel' => array(
'lhs_module' => 'Emails',
'lhs_table' => 'emails',
'lhs_key' => 'id',
'rhs_module' => 'Cases',
'rhs_table' => 'cases',
'rhs_key' => 'id',
'relationship_type' => 'many-to-many',
'join_table' => 'emails_beans',
'join_key_lhs' => 'email_id',
'join_key_rhs' => 'bean_id',
'relationship_role_column' => 'bean_module',
'relationship_role_column_value' => 'Cases',
),
'emails_contacts_rel' => array(
'lhs_module' => 'Emails',
'lhs_table' => 'emails',
'lhs_key' => 'id',
'rhs_module' => 'Contacts',
'rhs_table' => 'contacts',
'rhs_key' => 'id',
'relationship_type' => 'many-to-many',
'relationship_role_column' => 'bean_module',
'relationship_role_column_value' => 'Contacts',
'join_table' => 'emails_beans',
'join_key_lhs' => 'email_id',
'join_key_rhs' => 'bean_id',
'relationship_role_column' => 'bean_module',
'relationship_role_column_value' => 'Contacts',
),
'emails_leads_rel' => array(
'lhs_module' => 'Emails',
'lhs_table' => 'emails',
'lhs_key' => 'id',
'rhs_module' => 'Leads',
'rhs_table' => 'leads',
'rhs_key' => 'id',
'relationship_type' => 'many-to-many',
'join_table' => 'emails_beans',
'join_key_lhs' => 'email_id',
'join_key_rhs' => 'bean_id',
'relationship_role_column' => 'bean_module',
'relationship_role_column_value' => 'Leads',
),
'emails_opportunities_rel' => array(
'lhs_module' => 'Emails',
'lhs_table' => 'emails',
'lhs_key' => 'id',
'rhs_module' => 'Opportunities',
'rhs_table' => 'opportunities',
'rhs_key' => 'id',
'relationship_type' => 'many-to-many',
'join_table' => 'emails_beans',
'join_key_lhs' => 'email_id',
'join_key_rhs' => 'bean_id',
'relationship_role_column' => 'bean_module',
'relationship_role_column_value' => 'Opportunities',
),
'emails_tasks_rel' => array(
'lhs_module' => 'Emails',
'lhs_table' => 'emails',
'lhs_key' => 'id',
'rhs_module' => 'Tasks',
'rhs_table' => 'tasks',
'rhs_key' => 'id',
'relationship_type' => 'many-to-many',
'join_table' => 'emails_beans',
'join_key_lhs' => 'email_id',
'join_key_rhs' => 'bean_id',
'relationship_role_column' => 'bean_module',
'relationship_role_column_value' => 'Tasks',
),
'emails_users_rel' => array(
'lhs_module' => 'Emails',
'lhs_table' => 'emails',
'lhs_key' => 'id',
'rhs_module' => 'Users',
'rhs_table' => 'users',
'rhs_key' => 'id',
'relationship_type' => 'many-to-many',
'join_table' => 'emails_beans',
'join_key_lhs' => 'email_id',
'join_key_rhs' => 'bean_id',
'relationship_role_column' => 'bean_module',
'relationship_role_column_value' => 'Users',
),
'emails_project_task_rel' => array(
'lhs_module' => 'Emails',
'lhs_table' => 'emails',
'lhs_key' => 'id',
'rhs_module' => 'ProjectTask',
'rhs_table' => 'project_task',
'rhs_key' => 'id',
'relationship_type' => 'many-to-many',
'join_table' => 'emails_beans',
'join_key_lhs' => 'email_id',
'join_key_rhs' => 'bean_id',
'relationship_role_column' => 'bean_module',
'relationship_role_column_value' => 'ProjectTask',
),
'emails_projects_rel' => array(
'lhs_module' => 'Emails',
'lhs_table' => 'emails',
'lhs_key' => 'id',
'rhs_module' => 'Project',
'rhs_table' => 'project',
'rhs_key' => 'id',
'relationship_type' => 'many-to-many',
'join_table' => 'emails_beans',
'join_key_lhs' => 'email_id',
'join_key_rhs' => 'bean_id',
'relationship_role_column' => 'bean_module',
'relationship_role_column_value' => 'Project',
),
'emails_prospects_rel' => array(
'lhs_module' => 'Emails',
'lhs_table' => 'emails',
'lhs_key' => 'id',
'rhs_module' => 'Prospects',
'rhs_table' => 'prospects',
'rhs_key' => 'id',
'relationship_type' => 'many-to-many',
'join_table' => 'emails_beans',
'join_key_lhs' => 'email_id',
'join_key_rhs' => 'bean_id',
'relationship_role_column' => 'bean_module',
'relationship_role_column_value' => 'Prospects',
),
'emails_quotes' => array(
'lhs_module' => 'Emails',
'lhs_table' => 'emails',
'lhs_key' => 'id',
'rhs_module' => 'Quotes',
'rhs_table' => 'quotes',
'rhs_key' => 'id',
'relationship_type' => 'many-to-many',
'join_table' => 'emails_beans',
'join_key_lhs' => 'email_id',
'join_key_rhs' => 'bean_id',
'relationship_role_column' => 'bean_module',
'relationship_role_column_value' => 'Quotes',
),
)
);
/**
* Large text field table, shares a 1:1 with the emails table. Moving all longtext fields to this table allows more
* effiencient email management and full-text search capabilities with MyISAM for MySQL.
*/
$dictionary['emails_text'] = array(
'table' => 'emails_text',
'comment' => 'Large email text fields',
'mysqlengine' => 'MyISAM',
'fields' => array(
'email_id' => array (
'name' => 'email_id',
'vname' => 'LBL_ID',
'type' => 'id',
'dbType' => 'id',
'len' => 36,
'required' => true,
'reportable' => true,
'comment' => 'Foriegn key to emails table',
),
'from_addr' => array (
'name' => 'from_addr',
'vname' => 'LBL_FROM',
'type' => 'varchar',
'len' => 255,
'comment' => 'Email address of person who send the email',
),
'reply_to_addr' => array (
'name' => 'reply_to_addr',
'vname' => 'LBL_REPLY_TO',
'type' => 'varchar',
'len' => 255,
'comment' => 'reply to email address',
),
'to_addrs' => array (
'name' => 'to_addrs',
'vname' => 'LBL_TO',
'type' => 'text',
'comment' => 'Email address(es) of person(s) to receive the email',
),
'cc_addrs' => array (
'name' => 'cc_addrs',
'vname' => 'LBL_CC',
'type' => 'text',
'comment' => 'Email address(es) of person(s) to receive a carbon copy of the email',
),
'bcc_addrs' => array (
'name' => 'bcc_addrs',
'vname' => 'LBL_BCC',
'type' => 'text',
'comment' => 'Email address(es) of person(s) to receive a blind carbon copy of the email',
),
'description' => array (
'name' => 'description',
'vname' => 'LBL_TEXT_BODY',
'type' => 'longtext',
'reportable' => false,
'comment' => 'Email body in plain text',
),
'description_html' => array (
'name' => 'description_html',
'vname' => 'LBL_HTML_BODY',
'type' => 'longtext',
'reportable' => false,
'comment' => 'Email body in HTML format',
),
'raw_source' => array (
'name' => 'raw_source',
'vname' => 'LBL_RAW',
'type' => 'longtext',
'reportable' => false,
'comment' => 'Full raw source of email',
),
'deleted' => array(
'name' => 'deleted',
'type' => 'bool',
'default' => 0,
),
),
'indices' => array(
array(
'name' => 'emails_textpk',
'type' => 'primary',
'fields' => array('email_id')
),
array(
'name' => 'emails_textfromaddr',
'type' => 'index',
'fields' => array('from_addr')
),
),
);

View File

@@ -0,0 +1,38 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
?>

204
metadata/foldersMetaData.php Executable file
View File

@@ -0,0 +1,204 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
/*********************************************************************************
* Description:
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc. All Rights
* Reserved. Contributor(s): ______________________________________..
*********************************************************************************/
$dictionary['folders'] = array(
'table' => 'folders',
'fields' => array(
array(
'name' => 'id',
'type' => 'id',
'required' => true,
),
array(
'name' => 'name',
'type' => 'varchar',
'len' => 25,
'required' => true,
),
array(
'name' => 'folder_type',
'type' => 'varchar',
'len' => 25,
'default' => NULL,
),
array(
'name' => 'parent_folder',
'type' => 'id',
'required' => false,
),
array(
'name' => 'has_child',
'type' => 'bool',
'default' => '0',
),
array(
'name' => 'is_group',
'type' => 'bool',
'default' => '0',
),
array(
'name' => 'is_dynamic',
'type' => 'bool',
'default' => '0',
),
array(
'name' => 'dynamic_query',
'type' => 'text',
),
array(
'name' => 'assign_to_id',
'type' => 'id',
'required' => false,
),
array(
'name' => 'created_by',
'type' => 'id',
'required' => true,
),
array(
'name' => 'modified_by',
'type' => 'id',
'required' => true,
),
array(
'name' => 'deleted',
'type' => 'bool',
'default' => '0',
),
),
'indices' => array(
array(
'name' => 'folderspk',
'type' => 'primary',
'fields' => array('id')
),
array(
'name' => 'idx_parent_folder',
'type' => 'index',
'fields' => array('parent_folder')
),
),
);
$dictionary['folders_subscriptions'] = array(
'table' => 'folders_subscriptions',
'fields' => array(
array(
'name' => 'id',
'type' => 'id',
'required' => true,
),
array(
'name' => 'folder_id',
'type' => 'id',
'required' => true,
),
array(
'name' => 'assigned_user_id',
'type' => 'id',
'required' => true,
),
),
'indices' => array(
array(
'name' => 'folders_subscriptionspk',
'type' => 'primary',
'fields' => array('id')
),
array(
'name' => 'idx_folder_id_assigned_user_id',
'type' => 'index',
'fields' => array('folder_id', 'assigned_user_id')
),
),
);
$dictionary['folders_rel'] = array(
'table' => 'folders_rel',
'fields' => array(
array(
'name' => 'id',
'type' => 'id',
'required' => true,
),
array(
'name' => 'folder_id',
'type' => 'id',
'required' => true,
),
array(
'name' => 'polymorphic_module',
'type' => 'varchar',
'len' => 25,
'required' => true,
),
array(
'name' => 'polymorphic_id',
'type' => 'id',
'required' => true,
),
array(
'name' => 'deleted',
'type' => 'bool',
'default' => '0',
),
),
'indices' => array(
array(
'name' => 'folders_relpk',
'type' => 'primary',
'fields' => array('id'),
),
array(
'name' => 'idx_poly_module_poly_id',
'type' => 'index',
'fields' => array('polymorphic_module', 'polymorphic_id'),
),
array(
'name' => 'idx_folders_rel_folder_id',
'type' => 'index',
'fields' => array('folder_id'),
),
),
);

View File

@@ -0,0 +1,38 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
?>

View File

@@ -0,0 +1,104 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['InboundEmail_autoreply'] = array ('table' => 'inbound_email_autoreply',
'fields' => array (
'id' => array (
'name' => 'id',
'vname' => 'LBL_ID',
'type' => 'id',
'required' => true,
'reportable' => false,
),
'deleted' => array (
'name' => 'deleted',
'vname' => 'LBL_DELETED',
'type' => 'bool',
'required' => false,
'default' => '0',
'reportable'=>false,
),
'date_entered' => array (
'name' => 'date_entered',
'vname' => 'LBL_DATE_ENTERED',
'type' => 'datetime',
'required' => true,
),
'date_modified' => array (
'name' => 'date_modified',
'vname' => 'LBL_DATE_MODIFIED',
'type' => 'datetime',
'required' => true,
),
'autoreplied_to' => array (
'name' => 'autoreplied_to',
'vname' => 'LBL_AUTOREPLIED_TO',
'type' => 'varchar',
'len' => 100,
'required' => true,
'reportable'=>false,
),
'ie_id' => array(
'name' => 'ie_id',
'vname' => 'LBL_INBOUNDEMAIL_ID',
'type' => 'id',
'len' => '36',
'default' => '',
'required' => true,
'reportable' => false,
),
),
'indices' => array (
array(
'name' => 'ie_autopk',
'type' =>'primary',
'fields' => array(
'id'
)
),
array(
'name' =>'idx_ie_autoreplied_to',
'type'=>'index',
'fields' => array(
'autoreplied_to'
)
),
), /* end indices */
'relationships' => array (
), /* end relationships */
);
?>

View File

@@ -0,0 +1,67 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['InboundEmail_cacheTimestamp'] = array ('table' => 'inbound_email_cache_ts',
'fields' => array (
'id' => array (
'name' => 'id',
'vname' => 'LBL_ID',
'type' => 'varchar',
'len' => 255,
'required' => true,
'reportable' => false,
),
'ie_timestamp' => array(
'name' => 'ie_timestamp',
'type' => 'uint',
'len' => 16,
'required' => true,
),
),
'indices' => array (
array(
'name' => 'ie_cachetimestamppk',
'type' =>'primary',
'fields' => array(
'id'
)
),
), /* end indices */
'relationships' => array (
), /* end relationships */
);
?>

View File

@@ -0,0 +1,53 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['kbdocuments_viwes_ratings'] = array (
'table' => 'kbdocuments_views_ratings',
'fields' => array (
array('name' =>'id', 'type' =>'varchar', 'len'=>'36')
, array ('name' => 'date_modified','type' => 'datetime')
, array('name' =>'deleted', 'type' =>'bool', 'len'=>'1', 'default'=>'0', 'required' => false,)
, array('name' =>'kbdocument_id', 'type' =>'varchar', 'len'=>'36', )
, array('name' =>'views_number', 'type' =>'int', 'default'=>'0','required' => false,)
, array('name' =>'ratings_number', 'type' =>'int', 'default'=>'0','required' => false,)
),
'indices' => array (
array('name' =>'kbdoc_views_ratingspk', 'type' =>'primary', 'fields'=>array('id'))
, array('name' =>'idx_kbvr_kbdoc', 'type' =>'index', 'fields'=>array('kbdocument_id'))
),
);
?>

View File

@@ -0,0 +1,58 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contactlead SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contactlead@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['leads_contactleads'] = array ( 'table' => 'leads_contactleads'
, 'fields' => array (
array('name' =>'id', 'type' =>'varchar', 'len'=>'36')
, array('name' =>'contactlead_id', 'type' =>'varchar', 'len'=>'36')
, array('name' =>'lead_id', 'type' =>'varchar', 'len'=>'36')
, array ('name' => 'date_modified','type' => 'datetime')
, array('name' =>'deleted', 'type' =>'bool', 'len'=>'1', 'required'=>false, 'default'=>'0')
) , 'indices' => array (
array('name' =>'leads_contactleadspk', 'type' =>'primary', 'fields'=>array('id'))
, array('name' => 'idx_lead_contactlead', 'type'=>'alternate_key', 'fields'=>array('lead_id','contactlead_id'))
, array('name' => 'idx_contid_del_accid', 'type' => 'index', 'fields'=> array('contactlead_id', 'deleted', 'lead_id'))
)
, 'relationships' => array ('leads_contactleads' => array('lhs_module'=> 'Leads', 'lhs_table'=> 'leads', 'lhs_key' => 'id',
'rhs_module'=> 'ContactLeads', 'rhs_table'=> 'contactleads', 'rhs_key' => 'id',
'relationship_type'=>'many-to-many',
'join_table'=> 'leads_contactleads', 'join_key_lhs'=>'lead_id', 'join_key_rhs'=>'contactlead_id'))
)
?>

View File

@@ -0,0 +1,58 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['leads_contacts'] = array ( 'table' => 'leads_contacts'
, 'fields' => array (
array('name' =>'id', 'type' =>'varchar', 'len'=>'36')
, array('name' =>'contact_id', 'type' =>'varchar', 'len'=>'36')
, array('name' =>'lead_id', 'type' =>'varchar', 'len'=>'36')
, array ('name' => 'date_modified','type' => 'datetime')
, array('name' =>'deleted', 'type' =>'bool', 'len'=>'1', 'required'=>false, 'default'=>'0')
) , 'indices' => array (
array('name' =>'leads_contactspk', 'type' =>'primary', 'fields'=>array('id'))
, array('name' => 'idx_lead_contact', 'type'=>'alternate_key', 'fields'=>array('lead_id','contact_id'))
, array('name' => 'idx_contid_del_accid', 'type' => 'index', 'fields'=> array('contact_id', 'deleted', 'lead_id'))
)
, 'relationships' => array ('leads_contacts' => array('lhs_module'=> 'Leads', 'lhs_table'=> 'leads', 'lhs_key' => 'id',
'rhs_module'=> 'Contacts', 'rhs_table'=> 'contacts', 'rhs_key' => 'id',
'relationship_type'=>'many-to-many',
'join_table'=> 'leads_contacts', 'join_key_lhs'=>'lead_id', 'join_key_rhs'=>'contact_id'))
)
?>

View File

@@ -0,0 +1,72 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['linked_documents'] = array ( 'table' => 'linked_documents'
, 'fields' => array (
array('name' =>'id', 'type' =>'varchar', 'len'=>'36')
, array('name' =>'parent_id', 'type' =>'varchar', 'len'=>'36')
, array('name' =>'parent_type', 'type' =>'varchar', 'len'=>'25')
, array('name' =>'document_id', 'type' =>'varchar', 'len'=>'36')
, array('name' =>'document_revision_id', 'type' =>'varchar', 'len'=>'36')
, array('name' =>'date_modified','type' => 'datetime')
, array('name' =>'deleted', 'type' =>'bool', 'len'=>'1', 'default'=>'0', 'required'=>false)
)
, 'indices' => array (
array('name' =>'linked_documentspk', 'type' =>'primary', 'fields'=>array('id')),
array( 'name' => 'idx_parent_document',
'type' => 'alternate_key',
'fields' => array('parent_type','parent_id','document_id'),
),
)
, 'relationships' => array (
'contracts_documents' => array('lhs_module'=> 'Contracts', 'lhs_table'=> 'contracts', 'lhs_key' => 'id',
'rhs_module'=> 'Documents', 'rhs_table'=> 'documents', 'rhs_key' => 'id',
'relationship_type'=>'many-to-many',
'join_table'=> 'linked_documents', 'join_key_lhs'=>'parent_id', 'join_key_rhs'=>'document_id', 'relationship_role_column'=>'parent_type',
'relationship_role_column_value'=>'Contracts'),
'leads_documents' => array('lhs_module'=> 'Leads', 'lhs_table'=> 'leads', 'lhs_key' => 'id',
'rhs_module'=> 'Documents', 'rhs_table'=> 'documents', 'rhs_key' => 'id',
'relationship_type'=>'many-to-many',
'join_table'=> 'linked_documents', 'join_key_lhs'=>'parent_id', 'join_key_rhs'=>'document_id', 'relationship_role_column'=>'parent_type',
'relationship_role_column_value'=>'Leads'),
'contracttype_documents' => array('lhs_module'=> 'ContractTypes', 'lhs_table'=> 'contract_types', 'lhs_key' => 'id',
'rhs_module'=> 'Documents', 'rhs_table'=> 'documents', 'rhs_key' => 'id',
'relationship_type'=>'many-to-many',
'join_table'=> 'linked_documents', 'join_key_lhs'=>'parent_id', 'join_key_rhs'=>'document_id', 'relationship_role_column'=>'parent_type',
'relationship_role_column_value'=>'ContracTemplates'),
),
);
?>

View File

@@ -0,0 +1,105 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['meetings_contacts'] = array(
'table'=> 'meetings_contacts',
'fields'=> array(
array( 'name' => 'id',
'type' => 'varchar',
'len' => '36'
),
array( 'name' => 'meeting_id',
'type' => 'varchar',
'len' => '36',
),
array( 'name' => 'contact_id',
'type' => 'varchar',
'len' => '36',
),
array( 'name' => 'required',
'type' => 'varchar',
'len' => '1',
'default' => '1',
),
array( 'name' => 'accept_status',
'type' => 'varchar',
'len' => '25',
'default' => 'none'
),
array( 'name' => 'date_modified',
'type' => 'datetime'
),
array( 'name' => 'deleted',
'type' => 'bool',
'len' => '1',
'default' => '0',
'required' => false
),
),
'indices' => array(
array( 'name' => 'meetings_contactspk',
'type' => 'primary',
'fields' => array('id'),
),
array( 'name' => 'idx_con_mtg_mtg',
'type' => 'index',
'fields' => array('meeting_id'),
),
array( 'name' => 'idx_con_mtg_con',
'type' => 'index',
'fields' => array('contact_id'),
),
array( 'name' => 'idx_meeting_contact',
'type' => 'alternate_key',
'fields' => array('meeting_id','contact_id'),
),
),
'relationships' => array(
'meetings_contacts' => array(
'lhs_module' => 'Meetings',
'lhs_table' => 'meetings',
'lhs_key' => 'id',
'rhs_module' => 'Contacts',
'rhs_table' => 'contacts',
'rhs_key' => 'id',
'relationship_type' => 'many-to-many',
'join_table' => 'meetings_contacts',
'join_key_lhs' => 'meeting_id',
'join_key_rhs' => 'contact_id',
),
),
);
?>

View File

@@ -0,0 +1,60 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['meetings_leads'] = array ( 'table' => 'meetings_leads'
, 'fields' => array (
array('name' =>'id', 'type' =>'varchar', 'len'=>'36')
, array('name' =>'meeting_id', 'type' =>'varchar', 'len'=>'36', )
, array('name' =>'lead_id', 'type' =>'varchar', 'len'=>'36', )
, array('name' =>'required', 'type' =>'varchar', 'len'=>'1', 'default'=>'1')
, array('name' =>'accept_status', 'type' =>'varchar', 'len'=>'25', 'default'=>'none')
, array ('name' => 'date_modified','type' => 'datetime')
, array('name' =>'deleted', 'type' =>'bool', 'len'=>'1', 'default'=>'0', 'required'=>false)
)
, 'indices' => array (
array('name' =>'meetings_leadspk', 'type' =>'primary', 'fields'=>array('id'))
, array('name' =>'idx_lead_meeting_meeting', 'type' =>'index', 'fields'=>array('meeting_id'))
, array('name' =>'idx_lead_meeting_lead', 'type' =>'index', 'fields'=>array('lead_id'))
, array('name' => 'idx_meeting_lead', 'type'=>'alternate_key', 'fields'=>array('meeting_id','lead_id'))
)
, 'relationships' => array ('meetings_leads' => array('lhs_module'=> 'Meetings', 'lhs_table'=> 'meetings', 'lhs_key' => 'id',
'rhs_module'=> 'Leads', 'rhs_table'=> 'leads', 'rhs_key' => 'id',
'relationship_type'=>'many-to-many',
'join_table'=> 'meetings_leads', 'join_key_lhs'=>'meeting_id', 'join_key_rhs'=>'lead_id'))
)
?>

View File

@@ -0,0 +1,105 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['meetings_users'] = array(
'table' => 'meetings_users',
'fields' => array(
array( 'name' => 'id',
'type' => 'varchar',
'len' => '36',
),
array( 'name' => 'meeting_id',
'type' => 'varchar',
'len' => '36',
),
array( 'name' => 'user_id',
'type' => 'varchar',
'len' => '36',
),
array( 'name' => 'required',
'type' => 'varchar',
'len' => '1',
'default' => '1',
),
array( 'name' => 'accept_status',
'type' => 'varchar',
'len' => '25',
'default' => 'none',
),
array( 'name' => 'date_modified',
'type' => 'datetime',
),
array( 'name' => 'deleted',
'type' => 'bool',
'len' => '1',
'default' => '0',
'required' => false,
),
),
'indices' => array(
array( 'name' => 'meetings_userspk',
'type' => 'primary',
'fields' => array('id'),
),
array( 'name' => 'idx_usr_mtg_mtg',
'type' => 'index',
'fields' => array('meeting_id'),
),
array( 'name' => 'idx_usr_mtg_usr',
'type' => 'index',
'fields' => array('user_id'),
),
array( 'name' => 'idx_meeting_users',
'type' => 'alternate_key',
'fields' => array('meeting_id', 'user_id'),
),
),
'relationships' => array(
'meetings_users' => array(
'lhs_module' => 'Meetings',
'lhs_table' => 'meetings',
'lhs_key' => 'id',
'rhs_module' => 'Users',
'rhs_table' => 'users',
'rhs_key' => 'id',
'relationship_type' => 'many-to-many',
'join_table' => 'meetings_users',
'join_key_lhs' => 'meeting_id',
'join_key_rhs' => 'user_id',
),
),
);
?>

View File

@@ -0,0 +1,64 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['opportunities_contactleads'] = array ( 'table' => 'opportunities_contactleads'
, 'fields' => array (
array('name' =>'id', 'type' =>'varchar', 'len'=>'36')
, array('name' =>'contactlead_id', 'type' =>'varchar', 'len'=>'36', )
, array('name' =>'opportunity_id', 'type' =>'varchar', 'len'=>'36',)
, array('name' =>'contact_role', 'type' =>'varchar', 'len'=>'50')
, array ('name' => 'date_modified','type' => 'datetime')
, array('name' =>'deleted', 'type' =>'bool', 'len'=>'1', 'default'=>'0', 'required'=>false)
) , 'indices' => array (
array('name' =>'opportunities_contactleadspk', 'type' =>'primary', 'fields'=>array('id'))
, array('name' =>'idx_con_opp_con', 'type' =>'index', 'fields'=>array('contactlead_id'))
, array('name' =>'idx_con_opp_opp', 'type' =>'index', 'fields'=>array('opportunity_id'))
, array('name' => 'idx_opportunities_contactleads', 'type'=>'alternate_key', 'fields'=>array('opportunity_id','contactlead_id'))
)
, 'relationships' => array ('opportunities_contactleads' => array('lhs_module'=> 'Opportunities', 'lhs_table'=> 'opportunities', 'lhs_key' => 'id',
'rhs_module'=> 'ContactLeads', 'rhs_table'=> 'contactleads', 'rhs_key' => 'id',
'relationship_type'=>'many-to-many',
'join_table'=> 'opportunities_contactleads', 'join_key_lhs'=>'opportunity_id', 'join_key_rhs'=>'contactlead_id',
))
)
?>

View File

@@ -0,0 +1,64 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['opportunities_contacts'] = array ( 'table' => 'opportunities_contacts'
, 'fields' => array (
array('name' =>'id', 'type' =>'varchar', 'len'=>'36')
, array('name' =>'contact_id', 'type' =>'varchar', 'len'=>'36', )
, array('name' =>'opportunity_id', 'type' =>'varchar', 'len'=>'36',)
, array('name' =>'contact_role', 'type' =>'varchar', 'len'=>'50')
, array ('name' => 'date_modified','type' => 'datetime')
, array('name' =>'deleted', 'type' =>'bool', 'len'=>'1', 'default'=>'0', 'required'=>false)
) , 'indices' => array (
array('name' =>'opportunities_contactspk', 'type' =>'primary', 'fields'=>array('id'))
, array('name' =>'idx_con_opp_con', 'type' =>'index', 'fields'=>array('contact_id'))
, array('name' =>'idx_con_opp_opp', 'type' =>'index', 'fields'=>array('opportunity_id'))
, array('name' => 'idx_opportunities_contacts', 'type'=>'alternate_key', 'fields'=>array('opportunity_id','contact_id'))
)
, 'relationships' => array ('opportunities_contacts' => array('lhs_module'=> 'Opportunities', 'lhs_table'=> 'opportunities', 'lhs_key' => 'id',
'rhs_module'=> 'Contacts', 'rhs_table'=> 'contacts', 'rhs_key' => 'id',
'relationship_type'=>'many-to-many',
'join_table'=> 'opportunities_contacts', 'join_key_lhs'=>'opportunity_id', 'join_key_rhs'=>'contact_id',
))
)
?>

View File

@@ -0,0 +1,159 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
/*********************************************************************************
* Description:
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc. All Rights
* Reserved. Contributor(s): ______________________________________..
*********************************************************************************/
$dictionary['OutboundEmail'] = array ('table' => 'outbound_email',
'fields' => array (
'id' => array (
'name' => 'id',
'vname' => 'LBL_ID',
'type' => 'id',
'required' => true,
'reportable' => false,
),
'name' => array (
'name' => 'name',
'vname' => 'LBL_NAME',
'type' => 'varchar',
'len' => 50,
'required' => true,
'reportable' => false,
),
'type' => array (
'name' => 'type',
'vname' => 'LBL_TYPE',
'type' => 'varchar',
'len' => 15,
'required' => true,
'default' => 'user',
'reportable' => false,
),
'user_id' => array (
'name' => 'user_id',
'vname' => 'LBL_USER_ID',
'type' => 'id',
'required' => true,
'reportable' => false,
),
'mail_sendtype' => array(
'name' => 'mail_sendtype',
'vname' => 'LBL_MAIL_SENDTYPE',
'type' => 'varchar',
'len' => 8,
'required' => true,
'default' => 'smtp',
'reportable' => false,
),
'mail_smtptype' => array(
'name' => 'mail_smtptype',
'vname' => 'LBL_MAIL_SENDTYPE',
'type' => 'varchar',
'len' => 20,
'required' => true,
'default' => 'other',
'reportable' => false,
),
'mail_smtpserver' => array(
'name' => 'mail_smtpserver',
'vname' => 'LBL_MAIL_SMTPSERVER',
'type' => 'varchar',
'len' => 100,
'required' => false,
'reportable' => false,
),
'mail_smtpport' => array(
'name' => 'mail_smtpport',
'vname' => 'LBL_MAIL_SMTPPORT',
'type' => 'int',
'len' => 5,
'default' => 0,
'reportable' => false,
),
'mail_smtpuser' => array(
'name' => 'mail_smtpuser',
'vname' => 'LBL_MAIL_SMTPUSER',
'type' => 'varchar',
'len' => 100,
'reportable' => false,
),
'mail_smtppass' => array(
'name' => 'mail_smtppass',
'vname' => 'LBL_MAIL_SMTPPASS',
'type' => 'varchar',
'len' => 100,
'reportable' => false,
),
'mail_smtpauth_req' => array(
'name' => 'mail_smtpauth_req',
'vname' => 'LBL_MAIL_SMTPAUTH_REQ',
'type' => 'bool',
'default' => 0,
'reportable' => false,
),
'mail_smtpssl' => array(
'name' => 'mail_smtpssl',
'vname' => 'LBL_MAIL_SMTPSSL',
'type' => 'int',
'len' => 1,
'default' => 0,
'reportable' => false,
),
),
'indices' => array (
array(
'name' => 'outbound_email_pk',
'type' =>'primary',
'fields' => array(
'id'
)
),
array(
'name' => 'oe_user_id_idx',
'type' =>'index',
'fields' => array(
'id',
'user_id',
)
),
), /* end indices */
);

View File

@@ -0,0 +1,68 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
// adding project-to-bugs relationship
$dictionary['projects_bugs'] = array (
'table' => 'projects_bugs',
'fields' => array (
array('name' => 'id', 'type' => 'varchar', 'len' => '36'),
array('name' => 'bug_id', 'type' => 'varchar', 'len' => '36'),
array('name' => 'project_id', 'type' => 'varchar', 'len' => '36'),
array('name' => 'date_modified', 'type' => 'datetime'),
array('name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => false),
),
'indices' => array (
array('name' => 'projects_bugs_pk', 'type' =>'primary', 'fields'=>array('id')),
array('name' => 'idx_proj_bug_proj', 'type' =>'index', 'fields'=>array('project_id')),
array('name' => 'idx_proj_bug_bug', 'type' =>'index', 'fields'=>array('bug_id')),
array('name' => 'projects_bugs_alt', 'type'=>'alternate_key', 'fields'=>array('project_id','bug_id')),
),
'relationships' => array (
'projects_bugs' => array(
'lhs_module' => 'Project',
'lhs_table' => 'project',
'lhs_key' => 'id',
'rhs_module' => 'Bugs',
'rhs_table' => 'bugs',
'rhs_key' => 'id',
'relationship_type' => 'many-to-many',
'join_table' => 'projects_bugs',
'join_key_lhs' => 'project_id',
'join_key_rhs' => 'bug_id',
),
),
);
?>

View File

@@ -0,0 +1,68 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
// adding project-to-cases relationship
$dictionary['projects_cases'] = array (
'table' => 'projects_cases',
'fields' => array (
array('name' => 'id', 'type' => 'varchar', 'len' => '36'),
array('name' => 'case_id', 'type' => 'varchar', 'len' => '36'),
array('name' => 'project_id', 'type' => 'varchar', 'len' => '36'),
array('name' => 'date_modified', 'type' => 'datetime'),
array('name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => false),
),
'indices' => array (
array('name' => 'projects_cases_pk', 'type' =>'primary', 'fields'=>array('id')),
array('name' => 'idx_proj_case_proj', 'type' =>'index', 'fields'=>array('project_id')),
array('name' => 'idx_proj_case_case', 'type' =>'index', 'fields'=>array('case_id')),
array('name' => 'projects_cases_alt', 'type'=>'alternate_key', 'fields'=>array('project_id','case_id')),
),
'relationships' => array (
'projects_cases' => array(
'lhs_module' => 'Project',
'lhs_table' => 'project',
'lhs_key' => 'id',
'rhs_module' => 'Cases',
'rhs_table' => 'cases',
'rhs_key' => 'id',
'relationship_type' => 'many-to-many',
'join_table' => 'projects_cases',
'join_key_lhs' => 'project_id',
'join_key_rhs' => 'case_id',
),
),
);
?>

View File

@@ -0,0 +1,68 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
// adding project-to-products relationship
$dictionary['projects_products'] = array (
'table' => 'projects_products',
'fields' => array (
array('name' => 'id', 'type' => 'varchar', 'len' => '36'),
array('name' => 'product_id', 'type' => 'varchar', 'len' => '36'),
array('name' => 'project_id', 'type' => 'varchar', 'len' => '36'),
array('name' => 'date_modified', 'type' => 'datetime'),
array('name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => false),
),
'indices' => array (
array('name' => 'projects_products_pk', 'type' =>'primary', 'fields'=>array('id')),
array('name' => 'idx_proj_prod_project', 'type' =>'index', 'fields'=>array('project_id')),
array('name' => 'idx_proj_prod_product', 'type' =>'index', 'fields'=>array('product_id')),
array('name' => 'projects_products_alt', 'type'=>'alternate_key', 'fields'=>array('project_id','product_id')),
),
'relationships' => array (
'projects_products' => array(
'lhs_module' => 'Project',
'lhs_table' => 'project',
'lhs_key' => 'id',
'rhs_module' => 'Products',
'rhs_table' => 'products',
'rhs_key' => 'id',
'relationship_type' => 'many-to-many',
'join_table' => 'projects_products',
'join_key_lhs' => 'project_id',
'join_key_rhs' => 'product_id',
),
),
);
?>

View File

@@ -0,0 +1,118 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['project_relation'] = array(
'table' => 'project_relation',
'fields' => array(
'id' => array(
'name' => 'id',
'vname' => 'LBL_ID',
'required' => true,
'type' => 'id',
),
'project_id' => array(
'name' => 'project_id',
'vname' => 'LBL_PROJECT_ID',
'required' => true,
'type' => 'id',
),
'relation_id' => array(
'name' => 'relation_id',
'vname' => 'LBL_PROJECT_NAME',
'required' => true,
'type' => 'id',
),
'relation_type' => array(
'name' => 'relation_type',
'vname' => 'LBL_PROJECT_NAME',
'required' => true,
'type' => 'enum',
'options' => 'project_relation_type_options',
),
'deleted' => array(
'name' => 'deleted',
'vname' => 'LBL_DELETED',
'type' => 'bool',
'required' => true,
'default' => '0',
),
'date_modified' => array (
'name' => 'date_modified',
'vname' => 'LBL_DATE_MODIFIED',
'type' => 'datetime',
'required'=>true,
),
),
'indices' => array(
array(
'name' =>'proj_rel_pk',
'type' =>'primary',
'fields'=>array('id')
),
),
'relationships' =>
array ('projects_accounts' => array('lhs_module'=> 'Accounts', 'lhs_table'=> 'accounts', 'lhs_key' => 'id',
'rhs_module'=> 'Project', 'rhs_table'=> 'project', 'rhs_key' => 'id',
'relationship_type'=>'many-to-many',
'join_table'=> 'project_relation', 'join_key_lhs'=>'relation_id', 'join_key_rhs'=>'project_id',
'relationship_role_column'=>'relation_type','relationship_role_column_value'=>'Accounts'),
'projects_contacts' => array('lhs_module'=> 'Project', 'lhs_table'=> 'project', 'lhs_key' => 'id',
'rhs_module'=> 'Contacts', 'rhs_table'=> 'contacts', 'rhs_key' => 'id',
'relationship_type'=>'many-to-many',
'join_table'=> 'project_relation', 'join_key_lhs'=>'project_id', 'join_key_rhs'=>'relation_id',
'relationship_role_column'=>'relation_type','relationship_role_column_value'=>'Contacts'),
'projects_opportunities' => array('lhs_module'=> 'Project', 'lhs_table'=> 'project', 'lhs_key' => 'id',
'rhs_module'=> 'Opportunities', 'rhs_table'=> 'opportunities', 'rhs_key' => 'id',
'relationship_type'=>'many-to-many',
'join_table'=> 'project_relation', 'join_key_lhs'=>'project_id', 'join_key_rhs'=>'relation_id',
'relationship_role_column'=>'relation_type','relationship_role_column_value'=>'Opportunities'),
'projects_quotes' => array('lhs_module'=> 'Project', 'lhs_table'=> 'project', 'lhs_key' => 'id',
'rhs_module'=> 'Quotes', 'rhs_table'=> 'quotes', 'rhs_key' => 'id',
'relationship_type'=>'many-to-many',
'join_table'=> 'project_relation', 'join_key_lhs'=>'project_id', 'join_key_rhs'=>'relation_id',
'relationship_role_column'=>'relation_type','relationship_role_column_value'=>'Quotes'),
),
);
?>

View File

@@ -0,0 +1,93 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['project_task_project_tasks'] = array(
'table' => 'project_task_project_tasks',
'fields' => array(
'id' => array(
'name' => 'id',
'vname' => 'LBL_ID',
'required' => true,
'type' => 'id',
),
'project_task_id' => array(
'name' => 'project_task_id',
'vname' => 'LBL_PROJECT_TASK_ID',
'required' => true,
'type' => 'id',
),
'predecessor_project_task_id' => array(
'name' => 'predecessor_project_task_id',
'vname' => 'LBL_PROJECT_TASK_ID',
'required' => true,
'type' => 'id',
),
'deleted' => array(
'name' => 'deleted',
'vname' => 'LBL_DELETED',
'type' => 'bool',
'required' => false,
'default' => '0',
),
),
'indices' => array(
array(
'name' =>'proj_rel_pk',
'type' =>'primary',
'fields'=>array('id')
),
),
'relationships' => array(
'project_task_project_tasks' => array(
'lhs_module' => 'ProjectTasks2',
'lhs_table' => 'project_tasks',
'lhs_key' => 'id',
'rhs_module' => 'ProjectTasks2',
'rhs_table' => 'project_tasks',
'rhs_key' => 'id',
'relationship_type' => 'many-to-many',
'join_table' => 'project_task_project_tasks',
'join_key_lhs' => 'project_task_id',
'join_key_rhs' => 'predecessor_project_task_id',
),
),
);
?>

View File

@@ -0,0 +1,69 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['projects_accounts'] = array (
'table' => 'projects_accounts',
'fields' => array (
array('name' => 'id', 'type' => 'varchar', 'len' => '36'),
array('name' => 'account_id', 'type' => 'varchar', 'len' => '36'),
array('name' => 'project_id', 'type' => 'varchar', 'len' => '36'),
array('name' => 'date_modified', 'type' => 'datetime'),
array('name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => false),
),
'indices' => array (
array('name' => 'projects_accounts_pk', 'type' =>'primary', 'fields'=>array('id')),
array('name' => 'idx_proj_acct_proj', 'type' =>'index', 'fields'=>array('project_id')),
array('name' => 'idx_proj_acct_acct', 'type' =>'index', 'fields'=>array('account_id')),
array('name' => 'projects_accounts_alt', 'type'=>'alternate_key', 'fields'=>array('project_id','account_id')),
),
'relationships' => array (
'projects_accounts' => array(
'lhs_module' => 'Project',
'lhs_table' => 'project',
'lhs_key' => 'id',
'rhs_module' => 'Accounts',
'rhs_table' => 'accounts',
'rhs_key' => 'id',
'relationship_type' => 'many-to-many',
'join_table' => 'projects_accounts',
'join_key_lhs' => 'project_id',
'join_key_rhs' => 'account_id',
),
),
);
?>

View File

@@ -0,0 +1,69 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['projects_contacts'] = array (
'table' => 'projects_contacts',
'fields' => array (
array('name' => 'id', 'type' => 'varchar', 'len' => '36'),
array('name' => 'contact_id', 'type' => 'varchar', 'len' => '36'),
array('name' => 'project_id', 'type' => 'varchar', 'len' => '36'),
array('name' => 'date_modified', 'type' => 'datetime'),
array('name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => false),
),
'indices' => array (
array('name' => 'projects_contacts_pk', 'type' =>'primary', 'fields'=>array('id')),
array('name' => 'idx_proj_con_proj', 'type' =>'index', 'fields'=>array('project_id')),
array('name' => 'idx_proj_con_con', 'type' =>'index', 'fields'=>array('contact_id')),
array('name' => 'projects_contacts_alt', 'type'=>'alternate_key', 'fields'=>array('project_id','contact_id')),
),
'relationships' => array (
'projects_contacts' => array(
'lhs_module' => 'Project',
'lhs_table' => 'project',
'lhs_key' => 'id',
'rhs_module' => 'Contacts',
'rhs_table' => 'contacts',
'rhs_key' => 'id',
'relationship_type' => 'many-to-many',
'join_table' => 'projects_contacts',
'join_key_lhs' => 'project_id',
'join_key_rhs' => 'contact_id',
),
),
);
?>

View File

@@ -0,0 +1,69 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['projects_opportunities'] = array (
'table' => 'projects_opportunities',
'fields' => array (
array('name' => 'id', 'type' => 'varchar', 'len' => '36'),
array('name' => 'opportunity_id', 'type' => 'varchar', 'len' => '36'),
array('name' => 'project_id', 'type' => 'varchar', 'len' => '36'),
array('name' => 'date_modified', 'type' => 'datetime'),
array('name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => false),
),
'indices' => array (
array('name' => 'projects_opportunities_pk', 'type' =>'primary', 'fields'=>array('id')),
array('name' => 'idx_proj_opp_proj', 'type' =>'index', 'fields'=>array('project_id')),
array('name' => 'idx_proj_opp_opp', 'type' =>'index', 'fields'=>array('opportunity_id')),
array('name' => 'projects_opportunities_alt', 'type'=>'alternate_key', 'fields'=>array('project_id','opportunity_id')),
),
'relationships' => array (
'projects_opportunities' => array(
'lhs_module' => 'Project',
'lhs_table' => 'project',
'lhs_key' => 'id',
'rhs_module' => 'Opportunities',
'rhs_table' => 'opportunities',
'rhs_key' => 'id',
'relationship_type' => 'many-to-many',
'join_table' => 'projects_opportunities',
'join_key_lhs' => 'project_id',
'join_key_rhs' => 'opportunity_id',
),
),
);
?>

View File

@@ -0,0 +1,69 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['projects_quotes'] = array (
'table' => 'projects_quotes',
'fields' => array (
array('name' => 'id', 'type' => 'varchar', 'len' => '36'),
array('name' => 'quote_id', 'type' => 'varchar', 'len' => '36'),
array('name' => 'project_id', 'type' => 'varchar', 'len' => '36'),
array('name' => 'date_modified', 'type' => 'datetime'),
array('name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => false),
),
'indices' => array (
array('name' => 'projects_quotes_pk', 'type' =>'primary', 'fields'=>array('id')),
array('name' => 'idx_proj_quote_proj', 'type' =>'index', 'fields'=>array('project_id')),
array('name' => 'idx_proj_quote_quote', 'type' =>'index', 'fields'=>array('quote_id')),
array('name' => 'projects_quotes_alt', 'type'=>'alternate_key', 'fields'=>array('project_id','quote_id')),
),
'relationships' => array (
'projects_quotes' => array(
'lhs_module' => 'Project',
'lhs_table' => 'project',
'lhs_key' => 'id',
'rhs_module' => 'Quotes',
'rhs_table' => 'quotes',
'rhs_key' => 'id',
'relationship_type' => 'many-to-many',
'join_table' => 'projects_quotes',
'join_key_lhs' => 'project_id',
'join_key_rhs' => 'quote_id',
),
),
);
?>

View File

@@ -0,0 +1,98 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['prospect_list_campaigns'] = array (
'table' => 'prospect_list_campaigns',
'fields' => array (
array (
'name' => 'id',
'type' => 'varchar',
'len' => '36',
),
array (
'name' => 'prospect_list_id',
'type' => 'varchar',
'len' => '36',
),
array (
'name' => 'campaign_id',
'type' => 'varchar',
'len' => '36',
),
array ('name' => 'date_modified','type' => 'datetime'),
array (
'name' => 'deleted',
'type' => 'bool',
'len' => '1',
'default' => '0'
),
),
'indices' => array (
array (
'name' => 'prospect_list_campaignspk',
'type' => 'primary',
'fields' => array ( 'id' )
),
array (
'name' => 'idx_pro_id',
'type' => 'index',
'fields' => array ('prospect_list_id')
),
array (
'name' => 'idx_cam_id',
'type' => 'index',
'fields' => array ('campaign_id')
),
array (
'name' => 'idx_prospect_list_campaigns',
'type'=>'alternate_key',
'fields'=>array('prospect_list_id','campaign_id')
),
),
'relationships' => array (
'prospect_list_campaigns' => array('lhs_module'=> 'ProspectLists', 'lhs_table'=> 'prospect_lists', 'lhs_key' => 'id',
'rhs_module'=> 'Campaigns', 'rhs_table'=> 'campaigns', 'rhs_key' => 'id',
'relationship_type'=>'many-to-many',
'join_table'=> 'prospect_list_campaigns', 'join_key_lhs'=>'prospect_list_id', 'join_key_rhs'=>'campaign_id')
)
)
?>

View File

@@ -0,0 +1,168 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['prospect_lists_prospects'] = array (
'table' => 'prospect_lists_prospects',
'fields' => array (
array (
'name' => 'id',
'type' => 'varchar',
'len' => '36',
),
array (
'name' => 'prospect_list_id',
'type' => 'varchar',
'len' => '36',
),
array (
'name' => 'related_id',
'type' => 'varchar',
'len' => '36',
),
array (
'name' => 'related_type',
'type' => 'varchar',
'len' => '25', //valid values are Prospect, Contact, Lead, User
),
array (
'name' => 'date_modified',
'type' => 'datetime'
),
array (
'name' => 'deleted',
'type' => 'bool',
'len' => '1',
'default' => '0'
),
),
'indices' => array (
array (
'name' => 'prospect_lists_prospectspk',
'type' => 'primary',
'fields' => array ( 'id' )
),
array (
'name' => 'idx_plp_pro_id',
'type' => 'index',
'fields' => array ('prospect_list_id')
),
array (
'name' => 'idx_plp_rel_id',
'type' => 'alternate_key',
'fields' => array ( 'related_id',
'related_type',
'prospect_list_id'
)
),
),
'relationships' => array (
'prospect_list_contacts' => array( 'lhs_module'=> 'ProspectLists',
'lhs_table'=> 'prospect_lists',
'lhs_key' => 'id',
'rhs_module'=> 'Contacts',
'rhs_table'=> 'contacts',
'rhs_key' => 'id',
'relationship_type'=>'many-to-many',
'join_table'=> 'prospect_lists_prospects',
'join_key_lhs'=>'prospect_list_id',
'join_key_rhs'=>'related_id',
'relationship_role_column'=>'related_type',
'relationship_role_column_value'=>'Contacts'
),
'prospect_list_prospects' =>array( 'lhs_module'=> 'ProspectLists',
'lhs_table'=> 'prospect_lists',
'lhs_key' => 'id',
'rhs_module'=> 'Prospects',
'rhs_table'=> 'prospects',
'rhs_key' => 'id',
'relationship_type'=>'many-to-many',
'join_table'=> 'prospect_lists_prospects',
'join_key_lhs'=>'prospect_list_id',
'join_key_rhs'=>'related_id',
'relationship_role_column'=>'related_type',
'relationship_role_column_value'=>'Prospects'
),
'prospect_list_leads' =>array( 'lhs_module'=> 'ProspectLists',
'lhs_table'=> 'prospect_lists',
'lhs_key' => 'id',
'rhs_module'=> 'Leads',
'rhs_table'=> 'leads',
'rhs_key' => 'id',
'relationship_type'=>'many-to-many',
'join_table'=> 'prospect_lists_prospects',
'join_key_lhs'=>'prospect_list_id',
'join_key_rhs'=>'related_id',
'relationship_role_column'=>'related_type',
'relationship_role_column_value'=>'Leads',
),
'prospect_list_users' =>array( 'lhs_module'=> 'ProspectLists',
'lhs_table'=> 'prospect_lists',
'lhs_key' => 'id',
'rhs_module'=> 'Users',
'rhs_table'=> 'users',
'rhs_key' => 'id',
'relationship_type'=>'many-to-many',
'join_table'=> 'prospect_lists_prospects',
'join_key_lhs'=>'prospect_list_id',
'join_key_rhs'=>'related_id',
'relationship_role_column'=>'related_type',
'relationship_role_column_value'=>'Users',
),
'prospect_list_accounts' =>array( 'lhs_module'=> 'ProspectLists',
'lhs_table'=> 'prospect_lists',
'lhs_key' => 'id',
'rhs_module'=> 'Accounts',
'rhs_table'=> 'accounts',
'rhs_key' => 'id',
'relationship_type'=>'many-to-many',
'join_table'=> 'prospect_lists_prospects',
'join_key_lhs'=>'prospect_list_id',
'join_key_rhs'=>'related_id',
'relationship_role_column'=>'related_type',
'relationship_role_column_value'=>'Accounts',
)
)
)
?>

131
metadata/queues_beansMetaData.php Executable file
View File

@@ -0,0 +1,131 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['queues_beans'] = array('table' => 'queues_beans',
'fields' => array (
'id' => array (
'name' => 'id',
'vname' => 'LBL_ID',
'type' => 'id',
'required' => true,
'reportable'=>false,
),
'deleted' => array (
'name' => 'deleted',
'vname' => 'LBL_DELETED',
'type' => 'bool',
'required' => true,
'default' => '0',
'reportable'=>false,
),
'date_entered' => array (
'name' => 'date_entered',
'vname' => 'LBL_DATE_ENTERED',
'type' => 'datetime',
'required' => true,
),
'date_modified' => array (
'name' => 'date_modified',
'vname' => 'LBL_DATE_MODIFIED',
'type' => 'datetime',
'required' => true,
),
'queue_id' => array (
'name' => 'queue_id',
'vname' => 'LBL_QUEUE_ID',
'type' => 'id',
'required' => true,
'reportable'=>false,
),
'module_dir' => array (
'name' => 'module_dir',
'vname' => 'LBL_MODULE_DIR',
'type' => 'varchar',
'len' => '30',
'required' => true,
'reportable'=>false,
),
'object_id' => array (
'name' => 'object_id',
'vname' => 'LBL_OBJECT_ID',
'type' => 'id',
'required' => true,
'reportable'=>false,
),
),
'relationships' => array (
'queues_emails_rel' => array(
'lhs_module' => 'Queues',
'lhs_table' => 'queues',
'lhs_key' => 'id',
'rhs_module' => 'Emails',
'rhs_table' => 'emails',
'rhs_key' => 'id',
'relationship_type' => 'many-to-many',
'join_table' => 'queues_beans',
'join_key_rhs' => 'object_id',
'join_key_lhs' => 'queue_id',
'relationship_role_column' => 'module_dir',
'relationship_role_column_value'=> 'Emails'
),
), /* end relationship definitions */
'indices' => array (
array(
'name' => 'queues_itemspk',
'type' =>'primary',
'fields' => array(
'id'
)
),
array(
'name' =>'idx_queue_id',
'type'=>'index',
'fields' => array(
'queue_id'
)
),
array(
'name' =>'idx_object_id',
'type'=>'index',
'fields' => array(
'object_id'
)
),
), /* end indices */
);
?>

140
metadata/queues_queueMetaData.php Executable file
View File

@@ -0,0 +1,140 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['queues_queue'] = array ('table' => 'queues_queue',
'fields' => array (
'id' => array (
'name' => 'id',
'vname' => 'LBL_QUEUES_QUEUE_ID',
'type' => 'id',
'required' => true,
'reportable' => false,
),
'deleted' => array (
'name' => 'deleted',
'vname' => 'LBL_DELETED',
'type' => 'bool',
'required' => true,
'default' => '0',
'reportable'=>false,
),
'date_entered' => array (
'name' => 'date_entered',
'vname' => 'LBL_DATE_ENTERED',
'type' => 'datetime',
'required' => true,
),
'date_modified' => array (
'name' => 'date_modified',
'vname' => 'LBL_DATE_MODIFIED',
'type' => 'datetime',
'required' => true,
),
'queue_id' => array (
'name' => 'queue_id',
'vname' => 'LBL_QUEUE_ID',
'type' => 'id',
'required' => true,
'reportable'=>false,
),
'parent_id' => array (
'name' => 'parent_id',
'vname' => 'LBL_PARENT_ID',
'type' => 'id',
'required' => true,
'reportable'=>false,
),
),
'indices' => array (
array(
'name' => 'queues_queuepk',
'type' =>'primary',
'fields' => array(
'id'
)
),
array(
'name' =>'idx_queue_id',
'type'=>'index',
'fields' => array(
'queue_id'
)
),
array(
'name' =>'idx_parent_id',
'type'=>'index',
'fields' => array(
'parent_id'
)
),
array(
'name' => 'compidx_queue_id_parent_id',
'type' => 'alternate_key',
'fields' => array (
'queue_id',
'parent_id'
),
),
), /* end indices */
'relationships' => array (
'child_queues_rel' => array(
'lhs_module' => 'Queues',
'lhs_table' => 'queues',
'lhs_key' => 'id',
'rhs_module' => 'Queues',
'rhs_table' => 'queues',
'rhs_key' => 'id',
'relationship_type' => 'many-to-many',
'join_table' => 'queues_queue',
'join_key_lhs' => 'queue_id',
'join_key_rhs' => 'parent_id'
),
'parent_queues_rel' => array(
'lhs_module' => 'Queues',
'lhs_table' => 'queues',
'lhs_key' => 'id',
'rhs_module' => 'Queues',
'rhs_table' => 'queues',
'rhs_key' => 'id',
'relationship_type' => 'many-to-many',
'join_table' => 'queues_queue',
'join_key_rhs' => 'queue_id',
'join_key_lhs' => 'parent_id'
),
), /* end relationships */
);
?>

View File

@@ -0,0 +1,91 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['roles_modules'] = array (
'table' => 'roles_modules',
'fields' => array (
array (
'name' => 'id',
'type' => 'varchar',
'len' => '36',
),
array (
'name' => 'role_id',
'type' => 'varchar',
'len' => '36',
),
array (
'name' => 'module_id',
'type' => 'varchar',
'len' => '36',
),
array (
'name' => 'allow',
'type' => 'bool',
'len' => '1',
'default' => '0',
)
, array ('name' => 'date_modified','type' => 'datetime'),
array (
'name' => 'deleted',
'type' => 'bool',
'len' => '1',
'default' => '0'
),
),
'indices' => array (
array (
'name' => 'roles_modulespk',
'type' => 'primary',
'fields' => array ( 'id' )
),
array (
'name' => 'idx_role_id',
'type' => 'index',
'fields' => array ('role_id')
),
array (
'name' => 'idx_module_id',
'type' => 'index',
'fields' => array ('module_id')
),
),
)
?>

View File

@@ -0,0 +1,90 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['roles_users'] = array (
'table' => 'roles_users',
'fields' => array (
array (
'name' => 'id',
'type' => 'varchar',
'len' => '36',
),
array (
'name' => 'role_id',
'type' => 'varchar',
'len' => '36',
),
array (
'name' => 'user_id',
'type' => 'varchar',
'len' => '36',
)
, array ('name' => 'date_modified','type' => 'datetime'),
array (
'name' => 'deleted',
'type' => 'bool',
'len' => '1',
'default' => '0'
),
),
'indices' => array (
array (
'name' => 'roles_userspk',
'type' => 'primary',
'fields' => array ( 'id' )
),
array (
'name' => 'idx_ru_role_id',
'type' => 'index',
'fields' => array ('role_id')
),
array (
'name' => 'idx_ru_user_id',
'type' => 'index',
'fields' => array ('user_id')
),
),
'relationships' => array ('roles_users' => array('lhs_module'=> 'Roles', 'lhs_table'=> 'roles', 'lhs_key' => 'id',
'rhs_module'=> 'Users', 'rhs_table'=> 'users', 'rhs_key' => 'id',
'relationship_type'=>'many-to-many',
'join_table'=> 'roles_users', 'join_key_lhs'=>'role_id', 'join_key_rhs'=>'user_id')),
)
?>

View File

@@ -0,0 +1,114 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['SchedulersJobs'] = array('table' => 'schedulers_times',
'fields' => array (
'id' => array (
'name' => 'id',
'vname' => 'LBL_NAME',
'type' => 'id',
'len' => '36',
'required' => true,
'reportable'=>false,
),
'deleted' => array (
'name' => 'deleted',
'vname' => 'LBL_DELETED',
'type' => 'bool',
'required' => false,
'default' => '0',
'reportable'=>false,
),
'date_entered' => array (
'name' => 'date_entered',
'vname' => 'LBL_DATE_ENTERED',
'type' => 'datetime',
'required' => true,
),
'date_modified' => array (
'name' => 'date_modified',
'vname' => 'LBL_DATE_MODIFIED',
'type' => 'datetime',
'required' => true,
),
'scheduler_id' => array (
'name' => 'scheduler_id',
'vname' => 'LBL_SCHEDULER_ID',
'type' => 'id',
'db_type' => 'varchar',
'len' => 36,
'required' => true,
'reportable' => false,
),
'execute_time' => array (
'name' => 'execute_time',
'vname' => 'LBL_EXECUTE_TIME',
'type' => 'datetime',
'required' => true,
'reportable' => true,
),
'status' => array (
'name' => 'status',
'vname' => 'LBL_STATUS',
'type' => 'varchar',
'len' => '25',
'required' => true,
'reportable' => true,
'default' => 'ready',
),
),
'indices' => array (
array(
'name' =>'schedulers_timespk',
'type' =>'primary',
'fields' => array(
'id'
)
),
array(
'name' =>'idx_scheduler_id',
'type'=>'index',
'fields' => array(
'scheduler_id',
'execute_time',
)
),
),
);
?>

51
metadata/user_feedsMetaData.php Executable file
View File

@@ -0,0 +1,51 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['users_feeds'] = array ( 'table' => 'users_feeds'
, 'fields' => array (
array('name' =>'user_id', 'type' =>'varchar', 'len'=>'36', )
, array('name' =>'feed_id', 'type' =>'varchar', 'len'=>'36', )
, array('name' =>'rank', 'type' =>'int', 'required' => false)
, array ('name' => 'date_modified','type' => 'datetime')
, array('name' =>'deleted', 'type' =>'bool', 'len'=>'', 'default'=>'0', 'required' => false)
)
, 'indices' => array (
array('name' =>'idx_ud_user_id', 'type' =>'index', 'fields'=>array('user_id', 'feed_id'))
)
)
?>

38
metadata/usersMetaData.php Executable file
View File

@@ -0,0 +1,38 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
?>

View File

@@ -0,0 +1,50 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['users_last_import'] = array ( 'table' => 'users_last_import'
, 'fields' => array (
array('name' =>'id', 'type' =>'varchar', 'len'=>'36')
, array('name' =>'assigned_user_id', 'type' =>'varchar', 'len'=>'36')
, array('name' =>'bean_type', 'type' =>'varchar', 'len'=>'36')
, array('name' =>'bean_id', 'type' =>'varchar', 'len'=>'36',)
, array ('name' => 'date_modified','type' => 'datetime')
, array('name' =>'deleted', 'required'=>false, 'type' =>'bool', 'len'=>'1')
) , 'indices' => array (
array('name' =>'users_last_importpk', 'type' =>'primary', 'fields'=>array('id'))
, array('name' =>'idx_user_id', 'type' =>'index', 'fields'=>array('assigned_user_id'))
)
)
?>

View File

@@ -0,0 +1,83 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
$dictionary['users_password_link'] = array(
'table' => 'users_password_link',
'fields' => array(
'id' => array(
'name' => 'id',
'vname' => 'LBL_ID',
'type' => 'id',
'required' => true,
) ,
'username' => array(
'name' => 'username',
'vname' => 'LBL_USERNAME',
'type' => 'varchar',
'len' => 36,
) ,
'date_generated' => array(
'name' => 'date_generated',
'vname' => 'LBL_DATE_ENTERED',
'type' => 'datetime',
) ,
'deleted' => array(
'name' => 'deleted',
'vname' => 'LBL_DELETED',
'type' => 'bool',
'required' => false,
'reportable' => false,
) ,
) ,
'indices' => array(
array(
'name' => 'users_password_link_pk',
'type' => 'primary',
'fields' => array(
'id'
)
) ,
array(
'name' => 'idx_username',
'type' => 'index',
'fields' => array(
'username'
)
)
) ,
);
?>

View File

@@ -0,0 +1,107 @@
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
///////////////////////////////////////////////////////////////////////////////
//// TABLE DEFINITION FOR EMAIL STUFF
$dictionary['UserSignature'] = array(
'table' => 'users_signatures',
'fields' => array(
'id' => array(
'name' => 'id',
'vname' => 'LBL_ID',
'type' => 'id',
'required' => true,
),
'date_entered' => array (
'name' => 'date_entered',
'vname' => 'LBL_DATE_ENTERED',
'type' => 'datetime',
'required'=>true,
),
'date_modified' => array (
'name' => 'date_modified',
'vname' => 'LBL_DATE_MODIFIED',
'type' => 'datetime',
'required'=>true,
),
'deleted' => array (
'name' => 'deleted',
'vname' => 'LBL_DELETED',
'type' => 'bool',
'required' => false,
'reportable'=>false,
),
'user_id' => array(
'name' => 'user_id',
'vname' => 'LBL_USER_ID',
'type' => 'varchar',
'len' => 36,
),
'name' => array(
'name' => 'name',
'vname' => 'LBL_SUBJECT',
'type' => 'varchar',
'required' => false,
'len' => '255',
),
'signature' => array(
'name' => 'signature',
'vname' => 'LBL_SIGNATURE',
'type' => 'text',
'reportable' => false,
),
'signature_html' => array(
'name' => 'signature_html',
'vname' => 'LBL_SIGNATURE_HTML',
'type' => 'text',
'reportable' => false,
),
),
'indices' => array(
array(
'name' => 'users_signaturespk',
'type' =>'primary',
'fields' => array('id')
),
array(
'name' => 'idx_usersig_uid',
'type' => 'index',
'fields' => array('user_id')
)
),
);
?>