/
var
/
www
/
html
/
sugar13-old
/
metadata
/
Upload File
HOME
<?php /* * Your installation or use of this SugarCRM file is subject to the applicable * terms available at * http://support.sugarcrm.com/Resources/Master_Subscription_Agreements/. * If you do not agree to all of the applicable terms or do not have the * authority to bind the entity as an authorized representative, then do not * install or use this SugarCRM file. * * Copyright (C) SugarCRM Inc. All rights reserved. */ $dictionary['documents_purchases'] = [ 'table' => 'documents_purchases', 'true_relationship_type' => 'many-to-many', 'relationships' => [ 'documents_purchases' => [ 'lhs_module' => 'Documents', 'lhs_table' => 'documents', 'lhs_key' => 'id', 'rhs_module' => 'Purchases', 'rhs_table' => 'purchases', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'documents_purchases', 'join_key_lhs' => 'document_id', 'join_key_rhs' => 'purchase_id', ], ], 'fields' => [ 'id' => [ 'name' => 'id', 'type' => 'id', ], 'date_modified' => [ 'name' => 'date_modified', 'type' => 'datetime', ], 'deleted' => [ 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => true, ], 'document_id' => [ 'name' => 'document_id', 'type' => 'id', ], 'purchase_id' => [ 'name' => 'purchase_id', 'type' => 'id', ], ], 'indices' => [ [ 'name' => 'documents_purchasesspk', 'type' => 'primary', 'fields' => [ 'id', ], ], [ 'name' => 'documents_purchases_purchase_id', 'type' => 'alternate_key', 'fields' => [ 'purchase_id', 'document_id', ], ], [ 'name' => 'documents_purchases_document_id', 'type' => 'alternate_key', 'fields' => [ 'document_id', 'purchase_id', ], ], ], ];