/
var
/
www
/
html
/
sugardemo
/
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'] = [ 'table' => 'emails_beans', 'fields' => [ 'id' => [ 'name' => 'id', 'type' => 'id', ], 'email_id' => [ 'name' => 'email_id', 'type' => 'id', 'comment' => 'FK to emails table', ], 'bean_id' => [ 'name' => 'bean_id', 'type' => 'id', 'comment' => 'FK to various beans\'s tables', ], 'bean_module' => [ 'name' => 'bean_module', 'type' => 'varchar', 'len' => '100', 'comment' => 'bean\'s Module', ], 'campaign_data' => [ 'name' => 'campaign_data', 'type' => 'text', ], 'date_modified' => [ 'name' => 'date_modified', 'type' => 'datetime', ], 'deleted' => [ 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => false, ], ], 'indices' => [ [ 'name' => 'emails_beanspk', 'type' => 'primary', 'fields' => [ 'id', ], ], [ 'name' => 'idx_emails_beans_bean_id', 'type' => 'index', 'fields' => [ 'bean_id', ], ], [ 'name' => 'idx_emails_beans_email_bean', 'type' => 'alternate_key', 'fields' => [ 'email_id', 'bean_id', 'deleted', ], ], ], 'relationships' => [ 'emails_accounts_rel' => [ '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' => [ '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' => [ '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' => [ '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' => [ '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' => [ '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' => [ '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' => [ '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' => [ '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' => [ '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' => [ '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' => [ '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'] = [ 'table' => 'emails_text', 'comment' => 'Large email text fields', 'fields' => [ 'email_id' => [ 'name' => 'email_id', 'vname' => 'LBL_ID', 'type' => 'id', 'required' => true, 'reportable' => true, 'comment' => 'Foriegn key to emails table', ], 'from_addr' => [ 'name' => 'from_addr', 'vname' => 'LBL_FROM', 'type' => 'varchar', 'len' => 255, 'comment' => 'Email address of person who send the email', ], 'reply_to_addr' => [ 'name' => 'reply_to_addr', 'vname' => 'LBL_REPLY_TO', 'type' => 'varchar', 'len' => 255, 'comment' => 'reply to email address', ], 'to_addrs' => [ 'name' => 'to_addrs', 'vname' => 'LBL_TO', 'type' => 'text', 'comment' => 'Email address(es) of person(s) to receive the email', ], 'cc_addrs' => [ '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' => [ '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' => [ 'name' => 'description', 'vname' => 'LBL_TEXT_BODY', 'type' => 'longtext', 'reportable' => false, 'comment' => 'Email body in plain text', ], 'description_html' => [ 'name' => 'description_html', 'vname' => 'LBL_HTML_BODY', 'type' => 'longhtml', 'reportable' => false, 'comment' => 'Email body in HTML format', ], 'raw_source' => [ 'name' => 'raw_source', 'vname' => 'LBL_RAW', 'type' => 'longtext', 'reportable' => false, 'comment' => 'Full raw source of email', ], 'deleted' => [ 'name' => 'deleted', 'type' => 'bool', 'default' => 0, ], ], 'indices' => [ [ 'name' => 'emails_textpk', 'type' => 'primary', 'fields' => [ 'email_id', ], ], [ 'name' => 'emails_textfromaddr', 'type' => 'index', 'fields' => [ 'from_addr', ], ], ], ];