File: /home/nexper/www/67.225.167.226/public_html/crm/cache/modules/Accounts/Accountvardefs.php
<?php
// created: 2010-10-22 12:19:21
$GLOBALS["dictionary"]["Account"] = array (
'table' => 'accounts',
'audited' => true,
'unified_search' => true,
'duplicate_merge' => true,
'comment' => 'Accounts are organizations or entities that are the target of selling, support, and marketing activities, or have already purchased products or services',
'fields' =>
array (
'id' =>
array (
'name' => 'id',
'vname' => 'LBL_ID',
'type' => 'id',
'required' => true,
'reportable' => false,
'comment' => 'Unique identifier',
),
'name' =>
array (
'name' => 'name',
'type' => 'name',
'dbType' => 'varchar',
'vname' => 'LBL_NAME',
'len' => 150,
'comment' => 'Name of the Company',
'unified_search' => true,
'audited' => true,
'merge_filter' => 'selected',
'importable' => 'required',
),
'date_entered' =>
array (
'name' => 'date_entered',
'vname' => 'LBL_DATE_ENTERED',
'type' => 'datetime',
'group' => 'created_by_name',
'comment' => 'Date record created',
'importable' => 'false',
),
'date_modified' =>
array (
'name' => 'date_modified',
'vname' => 'LBL_DATE_MODIFIED',
'type' => 'datetime',
'group' => 'modified_by_name',
'comment' => 'Date record last modified',
'importable' => 'false',
),
'modified_user_id' =>
array (
'name' => 'modified_user_id',
'rname' => 'user_name',
'id_name' => 'modified_user_id',
'vname' => 'LBL_MODIFIED_ID',
'type' => 'assigned_user_name',
'table' => 'users',
'isnull' => 'false',
'group' => 'modified_by_name',
'dbType' => 'id',
'reportable' => true,
'comment' => 'User who last modified record',
),
'modified_by_name' =>
array (
'name' => 'modified_by_name',
'vname' => 'LBL_MODIFIED_NAME',
'type' => 'relate',
'reportable' => false,
'source' => 'non-db',
'rname' => 'user_name',
'table' => 'users',
'id_name' => 'modified_user_id',
'module' => 'Users',
'link' => 'modified_user_link',
'duplicate_merge' => 'disabled',
),
'created_by' =>
array (
'name' => 'created_by',
'rname' => 'user_name',
'id_name' => 'modified_user_id',
'vname' => 'LBL_CREATED_ID',
'type' => 'assigned_user_name',
'table' => 'users',
'isnull' => 'false',
'dbType' => 'id',
'group' => 'created_by_name',
'comment' => 'User who created record',
),
'created_by_name' =>
array (
'name' => 'created_by_name',
'vname' => 'LBL_CREATED',
'type' => 'relate',
'reportable' => false,
'link' => 'created_by_link',
'rname' => 'user_name',
'source' => 'non-db',
'table' => 'users',
'id_name' => 'created_by',
'module' => 'Users',
'duplicate_merge' => 'disabled',
'importable' => 'false',
),
'description' =>
array (
'name' => 'description',
'vname' => 'LBL_DESCRIPTION',
'type' => 'text',
'comment' => 'Full text of the note',
),
'deleted' =>
array (
'name' => 'deleted',
'vname' => 'LBL_DELETED',
'type' => 'bool',
'default' => '0',
'reportable' => false,
'comment' => 'Record deletion indicator',
),
'created_by_link' =>
array (
'name' => 'created_by_link',
'type' => 'link',
'relationship' => 'accounts_created_by',
'vname' => 'LBL_CREATED_BY_USER',
'link_type' => 'one',
'module' => 'Users',
'bean_name' => 'User',
'source' => 'non-db',
),
'modified_user_link' =>
array (
'name' => 'modified_user_link',
'type' => 'link',
'relationship' => 'accounts_modified_user',
'vname' => 'LBL_MODIFIED_BY_USER',
'link_type' => 'one',
'module' => 'Users',
'bean_name' => 'User',
'source' => 'non-db',
),
'assigned_user_id' =>
array (
'name' => 'assigned_user_id',
'rname' => 'user_name',
'id_name' => 'assigned_user_id',
'vname' => 'LBL_ASSIGNED_TO_ID',
'group' => 'assigned_user_name',
'type' => 'relate',
'table' => 'users',
'module' => 'Users',
'reportable' => true,
'isnull' => 'false',
'dbType' => 'id',
'audited' => true,
'comment' => 'User ID assigned to record',
'duplicate_merge' => 'disabled',
),
'assigned_user_name' =>
array (
'name' => 'assigned_user_name',
'link' => 'assigned_user_link',
'vname' => 'LBL_ASSIGNED_TO_NAME',
'rname' => 'user_name',
'type' => 'relate',
'reportable' => false,
'source' => 'non-db',
'table' => 'users',
'id_name' => 'assigned_user_id',
'module' => 'Users',
'duplicate_merge' => 'disabled',
),
'assigned_user_link' =>
array (
'name' => 'assigned_user_link',
'type' => 'link',
'relationship' => 'accounts_assigned_user',
'vname' => 'LBL_ASSIGNED_TO_USER',
'link_type' => 'one',
'module' => 'Users',
'bean_name' => 'User',
'source' => 'non-db',
'duplicate_merge' => 'enabled',
'rname' => 'user_name',
'id_name' => 'assigned_user_id',
'table' => 'users',
),
'account_type' =>
array (
'name' => 'account_type',
'vname' => 'LBL_TYPE',
'type' => 'enum',
'options' => 'account_type_dom',
'len' => 50,
'comment' => 'The Company is of this type',
),
'industry' =>
array (
'name' => 'industry',
'vname' => 'LBL_INDUSTRY',
'type' => 'enum',
'options' => 'industry_dom',
'len' => 50,
'comment' => 'The company belongs in this industry',
'merge_filter' => 'enabled',
),
'annual_revenue' =>
array (
'name' => 'annual_revenue',
'vname' => 'LBL_ANNUAL_REVENUE',
'type' => 'varchar',
'len' => 25,
'comment' => 'Annual revenue for this company',
'merge_filter' => 'enabled',
),
'phone_fax' =>
array (
'name' => 'phone_fax',
'vname' => 'LBL_FAX',
'type' => 'phone',
'dbType' => 'varchar',
'len' => 25,
'unified_search' => true,
'comment' => 'The fax phone number of this company',
),
'billing_address_street' =>
array (
'name' => 'billing_address_street',
'vname' => 'LBL_BILLING_ADDRESS_STREET',
'type' => 'varchar',
'len' => '150',
'comment' => 'The street address used for billing address',
'group' => 'billing_address',
'merge_filter' => 'enabled',
),
'billing_address_street_2' =>
array (
'name' => 'billing_address_street_2',
'vname' => 'LBL_BILLING_ADDRESS_STREET_2',
'type' => 'varchar',
'len' => '150',
'source' => 'non-db',
),
'billing_address_street_3' =>
array (
'name' => 'billing_address_street_3',
'vname' => 'LBL_BILLING_ADDRESS_STREET_3',
'type' => 'varchar',
'len' => '150',
'source' => 'non-db',
),
'billing_address_street_4' =>
array (
'name' => 'billing_address_street_4',
'vname' => 'LBL_BILLING_ADDRESS_STREET_4',
'type' => 'varchar',
'len' => '150',
'source' => 'non-db',
),
'billing_address_city' =>
array (
'name' => 'billing_address_city',
'vname' => 'LBL_BILLING_ADDRESS_CITY',
'type' => 'varchar',
'len' => '100',
'comment' => 'The city used for billing address',
'group' => 'billing_address',
'merge_filter' => 'enabled',
),
'billing_address_state' =>
array (
'name' => 'billing_address_state',
'vname' => 'LBL_BILLING_ADDRESS_STATE',
'type' => 'varchar',
'len' => '100',
'group' => 'billing_address',
'comment' => 'The state used for billing address',
'merge_filter' => 'enabled',
),
'billing_address_postalcode' =>
array (
'name' => 'billing_address_postalcode',
'vname' => 'LBL_BILLING_ADDRESS_POSTALCODE',
'type' => 'varchar',
'len' => '20',
'group' => 'billing_address',
'comment' => 'The postal code used for billing address',
'merge_filter' => 'enabled',
),
'billing_address_country' =>
array (
'name' => 'billing_address_country',
'vname' => 'LBL_BILLING_ADDRESS_COUNTRY',
'type' => 'varchar',
'group' => 'billing_address',
'comment' => 'The country used for the billing address',
'merge_filter' => 'enabled',
),
'rating' =>
array (
'name' => 'rating',
'vname' => 'LBL_RATING',
'type' => 'varchar',
'len' => 25,
'comment' => 'An arbitrary rating for this company for use in comparisons with others',
),
'phone_office' =>
array (
'name' => 'phone_office',
'vname' => 'LBL_PHONE_OFFICE',
'type' => 'phone',
'dbType' => 'varchar',
'len' => 25,
'audited' => true,
'unified_search' => true,
'comment' => 'The office phone number',
'merge_filter' => 'enabled',
),
'phone_alternate' =>
array (
'name' => 'phone_alternate',
'vname' => 'LBL_PHONE_ALT',
'type' => 'phone',
'group' => 'phone_office',
'dbType' => 'varchar',
'len' => 25,
'unified_search' => true,
'comment' => 'An alternate phone number',
'merge_filter' => 'enabled',
),
'website' =>
array (
'name' => 'website',
'vname' => 'LBL_WEBSITE',
'type' => 'varchar',
'len' => 255,
'comment' => 'URL of website for the company',
),
'ownership' =>
array (
'name' => 'ownership',
'vname' => 'LBL_OWNERSHIP',
'type' => 'varchar',
'len' => 100,
'comment' => '',
),
'employees' =>
array (
'name' => 'employees',
'vname' => 'LBL_EMPLOYEES',
'type' => 'varchar',
'len' => 10,
'comment' => 'Number of employees, varchar to accomodate for both number (100) or range (50-100)',
),
'ticker_symbol' =>
array (
'name' => 'ticker_symbol',
'vname' => 'LBL_TICKER_SYMBOL',
'type' => 'varchar',
'len' => 10,
'comment' => 'The stock trading (ticker) symbol for the company',
'merge_filter' => 'enabled',
),
'shipping_address_street' =>
array (
'name' => 'shipping_address_street',
'vname' => 'LBL_SHIPPING_ADDRESS_STREET',
'type' => 'varchar',
'len' => 150,
'group' => 'shipping_address',
'comment' => 'The street address used for for shipping purposes',
'merge_filter' => 'enabled',
),
'shipping_address_street_2' =>
array (
'name' => 'shipping_address_street_2',
'vname' => 'LBL_SHIPPING_ADDRESS_STREET_2',
'type' => 'varchar',
'len' => 150,
'source' => 'non-db',
),
'shipping_address_street_3' =>
array (
'name' => 'shipping_address_street_3',
'vname' => 'LBL_SHIPPING_ADDRESS_STREET_3',
'type' => 'varchar',
'len' => 150,
'source' => 'non-db',
),
'shipping_address_street_4' =>
array (
'name' => 'shipping_address_street_4',
'vname' => 'LBL_SHIPPING_ADDRESS_STREET_4',
'type' => 'varchar',
'len' => 150,
'source' => 'non-db',
),
'shipping_address_city' =>
array (
'name' => 'shipping_address_city',
'vname' => 'LBL_SHIPPING_ADDRESS_CITY',
'type' => 'varchar',
'len' => 100,
'group' => 'shipping_address',
'comment' => 'The city used for the shipping address',
'merge_filter' => 'enabled',
),
'shipping_address_state' =>
array (
'name' => 'shipping_address_state',
'vname' => 'LBL_SHIPPING_ADDRESS_STATE',
'type' => 'varchar',
'len' => 100,
'group' => 'shipping_address',
'comment' => 'The state used for the shipping address',
'merge_filter' => 'enabled',
),
'shipping_address_postalcode' =>
array (
'name' => 'shipping_address_postalcode',
'vname' => 'LBL_SHIPPING_ADDRESS_POSTALCODE',
'type' => 'varchar',
'len' => 20,
'group' => 'shipping_address',
'comment' => 'The zip code used for the shipping address',
'merge_filter' => 'enabled',
),
'shipping_address_country' =>
array (
'name' => 'shipping_address_country',
'vname' => 'LBL_SHIPPING_ADDRESS_COUNTRY',
'type' => 'varchar',
'group' => 'shipping_address',
'comment' => 'The country used for the shipping address',
'merge_filter' => 'enabled',
),
'email1' =>
array (
'name' => 'email1',
'vname' => 'LBL_EMAIL',
'group' => 'email1',
'type' => 'varchar',
'function' =>
array (
'name' => 'getEmailAddressWidget',
'returns' => 'html',
),
'source' => 'non-db',
),
'email_addresses_primary' =>
array (
'name' => 'email_addresses_primary',
'type' => 'link',
'relationship' => 'accounts_email_addresses_primary',
'source' => 'non-db',
'vname' => 'LBL_EMAIL_ADDRESS_PRIMARY',
'duplicate_merge' => 'disabled',
),
'parent_id' =>
array (
'name' => 'parent_id',
'vname' => 'LBL_PARENT_ACCOUNT_ID',
'type' => 'id',
'required' => false,
'reportable' => false,
'audited' => true,
'comment' => 'Account ID of the parent of this account',
),
'sic_code' =>
array (
'name' => 'sic_code',
'vname' => 'LBL_SIC_CODE',
'type' => 'varchar',
'len' => 10,
'comment' => 'SIC code of the account',
),
'parent_name' =>
array (
'name' => 'parent_name',
'rname' => 'name',
'id_name' => 'parent_id',
'vname' => 'LBL_MEMBER_OF',
'type' => 'relate',
'table' => 'parent_accounts',
'isnull' => 'true',
'module' => 'Accounts',
'massupdate' => false,
'source' => 'non-db',
'len' => 36,
'link' => 'member_of',
'unified_search' => true,
'importable' => 'false',
),
'members' =>
array (
'name' => 'members',
'type' => 'link',
'relationship' => 'member_accounts',
'module' => 'Accounts',
'bean_name' => 'Account',
'source' => 'non-db',
'vname' => 'LBL_MEMBERS',
),
'member_of' =>
array (
'name' => 'member_of',
'type' => 'link',
'relationship' => 'member_accounts',
'module' => 'Accounts',
'bean_name' => 'Account',
'link_type' => 'one',
'source' => 'non-db',
'vname' => 'LBL_MEMBER_OF',
'side' => 'left',
),
'email_opt_out' =>
array (
'name' => 'email_opt_out',
'vname' => 'LBL_EMAIL_OPT_OUT',
'source' => 'non-db',
'type' => 'bool',
'massupdate' => false,
),
'invalid_email' =>
array (
'name' => 'invalid_email',
'vname' => 'LBL_INVALID_EMAIL',
'source' => 'non-db',
'type' => 'bool',
'massupdate' => false,
),
'cases' =>
array (
'name' => 'cases',
'type' => 'link',
'relationship' => 'account_cases',
'module' => 'Cases',
'bean_name' => 'aCase',
'source' => 'non-db',
'vname' => 'LBL_CASES',
),
'tasks' =>
array (
'name' => 'tasks',
'type' => 'link',
'relationship' => 'account_tasks',
'module' => 'Tasks',
'bean_name' => 'Task',
'source' => 'non-db',
'vname' => 'LBL_TASKS',
),
'notes' =>
array (
'name' => 'notes',
'type' => 'link',
'relationship' => 'account_notes',
'module' => 'Notes',
'bean_name' => 'Note',
'source' => 'non-db',
'vname' => 'LBL_NOTES',
),
'meetings' =>
array (
'name' => 'meetings',
'type' => 'link',
'relationship' => 'account_meetings',
'module' => 'Meetings',
'bean_name' => 'Meeting',
'source' => 'non-db',
'vname' => 'LBL_MEETINGS',
),
'calls' =>
array (
'name' => 'calls',
'type' => 'link',
'relationship' => 'account_calls',
'module' => 'Calls',
'bean_name' => 'Call',
'source' => 'non-db',
'vname' => 'LBL_CALLS',
),
'emails' =>
array (
'name' => 'emails',
'type' => 'link',
'relationship' => 'emails_accounts_rel',
'module' => 'Emails',
'bean_name' => 'Email',
'source' => 'non-db',
'vname' => 'LBL_EMAILS',
),
'bugs' =>
array (
'name' => 'bugs',
'type' => 'link',
'relationship' => 'accounts_bugs',
'module' => 'Bugs',
'bean_name' => 'Bug',
'source' => 'non-db',
'vname' => 'LBL_BUGS',
),
'contacts' =>
array (
'name' => 'contacts',
'type' => 'link',
'relationship' => 'accounts_contacts',
'module' => 'Contacts',
'bean_name' => 'Contact',
'source' => 'non-db',
'vname' => 'LBL_CONTACTS',
),
'email_addresses' =>
array (
'name' => 'email_addresses',
'type' => 'link',
'relationship' => 'accounts_email_addresses',
'source' => 'non-db',
'vname' => 'LBL_EMAIL_ADDRESSES',
'reportable' => false,
),
'opportunities' =>
array (
'name' => 'opportunities',
'type' => 'link',
'relationship' => 'accounts_opportunities',
'module' => 'Opportunities',
'bean_name' => 'Opportunity',
'source' => 'non-db',
'vname' => 'LBL_OPPORTUNITY',
),
'project' =>
array (
'name' => 'project',
'type' => 'link',
'relationship' => 'projects_accounts',
'module' => 'Project',
'bean_name' => 'Project',
'source' => 'non-db',
'vname' => 'LBL_PROJECTS',
),
'leads' =>
array (
'name' => 'leads',
'type' => 'link',
'relationship' => 'account_leads',
'module' => 'Leads',
'bean_name' => 'Lead',
'source' => 'non-db',
'vname' => 'LBL_LEADS',
),
'campaigns' =>
array (
'name' => 'campaigns',
'type' => 'link',
'relationship' => 'campaign_accounts',
'module' => 'Campaigns',
'bean_name' => 'Campaign',
'source' => 'non-db',
'vname' => 'LBL_CAMPAIGNS',
),
'campaign_id' =>
array (
'name' => 'campaign_id',
'comment' => 'Campaign that generated lead',
'vname' => 'LBL_CAMPAIGN_ID',
'rname' => 'id',
'id_name' => 'campaign_id',
'type' => 'id',
'table' => 'campaigns',
'isnull' => 'true',
'module' => 'Campaigns',
'reportable' => false,
'massupdate' => false,
'duplicate_merge' => 'disabled',
),
'accounts_fact_facturas' =>
array (
'name' => 'accounts_fact_facturas',
'type' => 'link',
'relationship' => 'accounts_fact_facturas',
'source' => 'non-db',
),
'default_bill_rate_c' =>
array (
'required' => '0',
'source' => 'custom_fields',
'name' => 'default_bill_rate_c',
'vname' => 'LBL_DEFAULT_BILL_RATE',
'type' => 'currency',
'massupdate' => '0',
'default' => '18',
'comments' => '',
'help' => '',
'importable' => 'true',
'duplicate_merge' => 'disabled',
'duplicate_merge_dom_value' => '0',
'audited' => 0,
'reportable' => 0,
'len' => '26',
'id' => 'Accountsdefault_bill_rate_c',
'custom_module' => 'Accounts',
),
'currency_id' =>
array (
'required' => '0',
'source' => 'custom_fields',
'name' => 'currency_id',
'vname' => 'LBL_CURRENCY',
'type' => 'id',
'massupdate' => '0',
'default' => NULL,
'comments' => '',
'help' => '',
'importable' => 'true',
'duplicate_merge' => 'disabled',
'duplicate_merge_dom_value' => '0',
'audited' => 0,
'reportable' => 0,
'len' => '36',
'studio' => 'visible',
'function' =>
array (
'name' => 'getCurrencyDropDown',
'returns' => 'html',
),
'id' => 'Accountscurrency_id',
'custom_module' => 'Accounts',
),
'last_bill_rate_c' =>
array (
'required' => '0',
'source' => 'custom_fields',
'name' => 'last_bill_rate_c',
'vname' => 'LBL_LAST_BILL_RATE',
'type' => 'currency',
'massupdate' => '0',
'default' => '18',
'comments' => '',
'help' => '',
'importable' => 'true',
'duplicate_merge' => 'disabled',
'duplicate_merge_dom_value' => '0',
'audited' => 0,
'reportable' => 0,
'len' => '26',
'id' => 'Accountslast_bill_rate_c',
'custom_module' => 'Accounts',
),
'nexper_code_c' =>
array (
'required' => '1',
'source' => 'custom_fields',
'name' => 'nexper_code_c',
'vname' => 'LBL_NEXPER_CODE',
'type' => 'varchar',
'massupdate' => '0',
'default' => NULL,
'comments' => '',
'help' => '',
'importable' => 'true',
'duplicate_merge' => 'disabled',
'duplicate_merge_dom_value' => '0',
'audited' => 0,
'reportable' => 0,
'len' => '3',
'id' => 'Accountsnexper_code_c',
'custom_module' => 'Accounts',
),
),
'indices' =>
array (
'id' =>
array (
'name' => 'accountspk',
'type' => 'primary',
'fields' =>
array (
0 => 'id',
),
),
0 =>
array (
'name' => 'idx_accnt_id_del',
'type' => 'index',
'fields' =>
array (
0 => 'id',
1 => 'deleted',
),
),
1 =>
array (
'name' => 'idx_accnt_assigned_del',
'type' => 'index',
'fields' =>
array (
0 => 'deleted',
1 => 'assigned_user_id',
),
),
2 =>
array (
'name' => 'idx_accnt_parent_id',
'type' => 'index',
'fields' =>
array (
0 => 'parent_id',
),
),
),
'relationships' =>
array (
'accounts_modified_user' =>
array (
'lhs_module' => 'Users',
'lhs_table' => 'users',
'lhs_key' => 'id',
'rhs_module' => 'Accounts',
'rhs_table' => 'accounts',
'rhs_key' => 'modified_user_id',
'relationship_type' => 'one-to-many',
),
'accounts_created_by' =>
array (
'lhs_module' => 'Users',
'lhs_table' => 'users',
'lhs_key' => 'id',
'rhs_module' => 'Accounts',
'rhs_table' => 'accounts',
'rhs_key' => 'created_by',
'relationship_type' => 'one-to-many',
),
'accounts_assigned_user' =>
array (
'lhs_module' => 'Users',
'lhs_table' => 'users',
'lhs_key' => 'id',
'rhs_module' => 'Accounts',
'rhs_table' => 'accounts',
'rhs_key' => 'assigned_user_id',
'relationship_type' => 'one-to-many',
),
'accounts_email_addresses_primary' =>
array (
'lhs_module' => 'Accounts',
'lhs_table' => 'accounts',
'lhs_key' => 'id',
'rhs_module' => 'EmailAddresses',
'rhs_table' => 'email_addresses',
'rhs_key' => 'id',
'join_table' => 'email_addr_bean_rel',
'join_key_lhs' => 'bean_id',
'join_key_rhs' => 'email_address_id',
'relationship_type' => 'many-to-many',
),
'member_accounts' =>
array (
'lhs_module' => 'Accounts',
'lhs_table' => 'accounts',
'lhs_key' => 'id',
'rhs_module' => 'Accounts',
'rhs_table' => 'accounts',
'rhs_key' => 'parent_id',
'relationship_type' => 'one-to-many',
),
'account_cases' =>
array (
'lhs_module' => 'Accounts',
'lhs_table' => 'accounts',
'lhs_key' => 'id',
'rhs_module' => 'Cases',
'rhs_table' => 'cases',
'rhs_key' => 'account_id',
'relationship_type' => 'one-to-many',
),
'account_tasks' =>
array (
'lhs_module' => 'Accounts',
'lhs_table' => 'accounts',
'lhs_key' => 'id',
'rhs_module' => 'Tasks',
'rhs_table' => 'tasks',
'rhs_key' => 'parent_id',
'relationship_type' => 'one-to-many',
'relationship_role_column' => 'parent_type',
'relationship_role_column_value' => 'Accounts',
),
'account_notes' =>
array (
'lhs_module' => 'Accounts',
'lhs_table' => 'accounts',
'lhs_key' => 'id',
'rhs_module' => 'Notes',
'rhs_table' => 'notes',
'rhs_key' => 'parent_id',
'relationship_type' => 'one-to-many',
'relationship_role_column' => 'parent_type',
'relationship_role_column_value' => 'Accounts',
),
'account_meetings' =>
array (
'lhs_module' => 'Accounts',
'lhs_table' => 'accounts',
'lhs_key' => 'id',
'rhs_module' => 'Meetings',
'rhs_table' => 'meetings',
'rhs_key' => 'parent_id',
'relationship_type' => 'one-to-many',
'relationship_role_column' => 'parent_type',
'relationship_role_column_value' => 'Accounts',
),
'account_calls' =>
array (
'lhs_module' => 'Accounts',
'lhs_table' => 'accounts',
'lhs_key' => 'id',
'rhs_module' => 'Calls',
'rhs_table' => 'calls',
'rhs_key' => 'parent_id',
'relationship_type' => 'one-to-many',
'relationship_role_column' => 'parent_type',
'relationship_role_column_value' => 'Accounts',
),
'account_emails' =>
array (
'lhs_module' => 'Accounts',
'lhs_table' => 'accounts',
'lhs_key' => 'id',
'rhs_module' => 'Emails',
'rhs_table' => 'emails',
'rhs_key' => 'parent_id',
'relationship_type' => 'one-to-many',
'relationship_role_column' => 'parent_type',
'relationship_role_column_value' => 'Accounts',
),
'account_leads' =>
array (
'lhs_module' => 'Accounts',
'lhs_table' => 'accounts',
'lhs_key' => 'id',
'rhs_module' => 'Leads',
'rhs_table' => 'leads',
'rhs_key' => 'account_id',
'relationship_type' => 'one-to-many',
),
),
'optimistic_locking' => true,
'templates' =>
array (
'company' => 'company',
'assignable' => 'assignable',
'basic' => 'basic',
),
'custom_fields' => true,
);
?>