/
var
/
www
/
html
/
SugarEnt-Full-25.1.0
/
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_accounts'] = [ 'true_relationship_type' => 'many-to-many', 'relationships' => [ 'documents_accounts' => [ 'lhs_module' => 'Documents', 'lhs_table' => 'documents', 'lhs_key' => 'id', 'rhs_module' => 'Accounts', 'rhs_table' => 'accounts', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'documents_accounts', 'join_key_lhs' => 'document_id', 'join_key_rhs' => 'account_id', ], ], 'table' => 'documents_accounts', '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', ], 'account_id' => [ 'name' => 'account_id', 'type' => 'id', ], ], 'indices' => [ [ 'name' => 'documents_accountsspk', 'type' => 'primary', 'fields' => [ 'id', ], ], [ 'name' => 'documents_accounts_account_id', 'type' => 'alternate_key', 'fields' => [ 'account_id', 'document_id', ], ], [ 'name' => 'documents_accounts_document_id', 'type' => 'alternate_key', 'fields' => [ 'document_id', 'account_id', ], ], ], ];