0
0
Fork 0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2025-03-16 06:13:34 +00:00
salesagility_SuiteCRM/metadata/documents_opportunitiesMetaData.php

127 lines
3.9 KiB
PHP
Raw Normal View History

2013-09-23 19:30:44 +00:00
<?php
/*********************************************************************************
* SugarCRM Community Edition is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
2014-07-07 15:33:23 +00:00
* SuiteCRM is an extension to SugarCRM Community Edition developed by Salesagility Ltd.
* Copyright (C) 2011 - 2014 Salesagility Ltd.
*
2013-09-23 19:30:44 +00:00
* 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.
2014-07-07 15:33:23 +00:00
*
2013-09-23 19:30:44 +00:00
* 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.
2014-07-07 15:33:23 +00:00
*
2013-09-23 19:30:44 +00:00
* 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.
2014-07-07 15:33:23 +00:00
*
2013-09-23 19:30:44 +00:00
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
2014-07-07 15:33:23 +00:00
*
2013-09-23 19:30:44 +00:00
* 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.
2014-07-07 15:33:23 +00:00
*
2013-09-23 19:30:44 +00:00
* 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
2014-07-07 15:33:23 +00:00
* SugarCRM" logo and "Supercharged by SuiteCRM" logo. If the display of the logos is not
* reasonably feasible for technical reasons, the Appropriate Legal Notices must
* display the words "Powered by SugarCRM" and "Supercharged by SuiteCRM".
2013-09-23 19:30:44 +00:00
********************************************************************************/
2018-07-19 10:16:53 +00:00
$dictionary["documents_opportunities"] = array(
2013-09-23 19:30:44 +00:00
'true_relationship_type' => 'many-to-many',
2018-07-19 10:23:31 +00:00
'relationships' =>
2018-07-19 10:16:53 +00:00
array(
2018-07-19 10:23:31 +00:00
'documents_opportunities' =>
2018-07-19 10:16:53 +00:00
array(
2013-09-23 19:30:44 +00:00
'lhs_module' => 'Documents',
'lhs_table' => 'documents',
'lhs_key' => 'id',
'rhs_module' => 'Opportunities',
'rhs_table' => 'opportunities',
'rhs_key' => 'id',
'relationship_type' => 'many-to-many',
'join_table' => 'documents_opportunities',
'join_key_lhs' => 'document_id',
'join_key_rhs' => 'opportunity_id',
),
),
'table' => 'documents_opportunities',
2018-07-19 10:23:31 +00:00
'fields' =>
2018-07-19 10:16:53 +00:00
array(
2018-07-19 10:23:31 +00:00
0 =>
2018-07-19 10:16:53 +00:00
array(
2013-09-23 19:30:44 +00:00
'name' => 'id',
'type' => 'varchar',
'len' => 36,
),
2018-07-19 10:23:31 +00:00
1 =>
2018-07-19 10:16:53 +00:00
array(
2013-09-23 19:30:44 +00:00
'name' => 'date_modified',
'type' => 'datetime',
),
2018-07-19 10:23:31 +00:00
2 =>
2018-07-19 10:16:53 +00:00
array(
2013-09-23 19:30:44 +00:00
'name' => 'deleted',
'type' => 'bool',
'len' => '1',
'default' => '0',
'required' => true,
),
2018-07-19 10:23:31 +00:00
3 =>
2018-07-19 10:16:53 +00:00
array(
2013-09-23 19:30:44 +00:00
'name' => 'document_id',
'type' => 'varchar',
'len' => 36,
),
2018-07-19 10:23:31 +00:00
4 =>
2018-07-19 10:16:53 +00:00
array(
2013-09-23 19:30:44 +00:00
'name' => 'opportunity_id',
'type' => 'varchar',
'len' => 36,
),
),
2018-07-19 10:23:31 +00:00
'indices' =>
2018-07-19 10:16:53 +00:00
array(
2018-07-19 10:23:31 +00:00
0 =>
2018-07-19 10:16:53 +00:00
array(
2013-09-23 19:30:44 +00:00
'name' => 'documents_opportunitiesspk',
'type' => 'primary',
2018-07-19 10:23:31 +00:00
'fields' =>
2018-07-19 10:16:53 +00:00
array(
2013-09-23 19:30:44 +00:00
0 => 'id',
),
),
2018-07-19 10:23:31 +00:00
1 =>
2018-07-19 10:16:53 +00:00
array(
2013-09-23 19:30:44 +00:00
'name' => 'idx_docu_opps_oppo_id',
'type' => 'alternate_key',
2018-07-19 10:23:31 +00:00
'fields' =>
2018-07-19 10:16:53 +00:00
array(
2013-09-23 19:30:44 +00:00
0 => 'opportunity_id',
1 => 'document_id',
),
),
2018-07-19 10:23:31 +00:00
2 =>
2018-07-19 10:16:53 +00:00
array(
2013-09-23 19:30:44 +00:00
'name' => 'idx_docu_oppo_docu_id',
'type' => 'alternate_key',
2018-07-19 10:23:31 +00:00
'fields' =>
2018-07-19 10:16:53 +00:00
array(
2013-09-23 19:30:44 +00:00
0 => 'document_id',
1 => 'opportunity_id',
),
),
),
);