/
var
/
www
/
html
/
sugar13
/
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['emails_beans'] = array( 'table' => 'emails_beans', 'fields' => array( 'id' => array( 'name' => 'id', 'type' => 'id', ), 'email_id' => array( 'name' => 'email_id', 'type' => 'id', 'comment' => 'FK to emails table', ), 'bean_id' => array( 'name' => 'bean_id', 'type' => 'id', 'comment' => 'FK to various beans\'s tables', ), 'bean_module' => array( 'name' => 'bean_module', 'type' => 'varchar', 'len' => '100', 'comment' => 'bean\'s Module', ), 'campaign_data' => array( 'name' => 'campaign_data', 'type' => 'text', ), 'date_modified' => array( 'name' => 'date_modified', 'type' => 'datetime', ), 'deleted' => 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', ), '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_purchases_rel' => [ 'lhs_module' => 'Emails', 'lhs_table' => 'emails', 'lhs_key' => 'id', 'rhs_module' => 'Purchases', 'rhs_table' => 'purchases', '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' => 'Purchases', ], 'emails_purchasedlineitems_rel' => [ 'lhs_module' => 'Emails', 'lhs_table' => 'emails', 'lhs_key' => 'id', 'rhs_module' => 'PurchasedLineItems', 'rhs_table' => 'purchased_line_items', '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' => 'PurchasedLineItems', ], 'emails_escalations_rel' => [ 'lhs_module' => 'Emails', 'lhs_table' => 'emails', 'lhs_key' => 'id', 'rhs_module' => 'Escalations', 'rhs_table' => 'escalations', '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' => 'Escalations', ], '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', ), ), ); $dictionary['emails_text'] = array( 'table' => 'emails_text', 'comment' => 'Large email text fields', 'fields' => array( 'email_id' => array( 'name' => 'email_id', 'vname' => 'LBL_ID', 'type' => 'id', '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' => 'longhtml', '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', ), ), ), );