%PDF- %PDF-
Direktori : /var/www/crm/cache/Relationships/ |
Current File : /var/www/crm/cache/Relationships/relationships.cache.php |
<?php $relationships = array ( 'accounts_bugs' => array ( 'name' => 'accounts_bugs', 'table' => 'accounts_bugs', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => '36', ), 1 => array ( 'name' => 'account_id', 'type' => 'varchar', 'len' => '36', ), 2 => array ( 'name' => 'bug_id', 'type' => 'varchar', 'len' => '36', ), 3 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 4 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'required' => false, 'default' => '0', ), ), 'indices' => array ( 0 => array ( 'name' => 'accounts_bugspk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'idx_acc_bug_acc', 'type' => 'index', 'fields' => array ( 0 => 'account_id', ), ), 2 => array ( 'name' => 'idx_acc_bug_bug', 'type' => 'index', 'fields' => array ( 0 => 'bug_id', ), ), 3 => array ( 'name' => 'idx_account_bug', 'type' => 'alternate_key', 'fields' => array ( 0 => 'account_id', 1 => 'bug_id', ), ), ), 'relationships' => array ( 'accounts_bugs' => array ( 'lhs_module' => 'Accounts', 'lhs_table' => 'accounts', 'lhs_key' => 'id', 'rhs_module' => 'Bugs', 'rhs_table' => 'bugs', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'accounts_bugs', 'join_key_lhs' => 'account_id', 'join_key_rhs' => 'bug_id', ), ), 'lhs_module' => 'Accounts', 'lhs_table' => 'accounts', 'lhs_key' => 'id', 'rhs_module' => 'Bugs', 'rhs_table' => 'bugs', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'accounts_bugs', 'join_key_lhs' => 'account_id', 'join_key_rhs' => 'bug_id', ), 'accounts_contacts' => array ( 'name' => 'accounts_contacts', 'table' => 'accounts_contacts', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => '36', ), 1 => array ( 'name' => 'contact_id', 'type' => 'varchar', 'len' => '36', ), 2 => array ( 'name' => 'account_id', 'type' => 'varchar', 'len' => '36', ), 3 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 4 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'required' => false, 'default' => '0', ), ), 'indices' => array ( 0 => array ( 'name' => 'accounts_contactspk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'idx_account_contact', 'type' => 'alternate_key', 'fields' => array ( 0 => 'account_id', 1 => 'contact_id', ), ), 2 => array ( 'name' => 'idx_contid_del_accid', 'type' => 'index', 'fields' => array ( 0 => 'contact_id', 1 => 'deleted', 2 => 'account_id', ), ), ), 'relationships' => array ( 'accounts_contacts' => array ( 'lhs_module' => 'Accounts', 'lhs_table' => 'accounts', 'lhs_key' => 'id', 'rhs_module' => 'Contacts', 'rhs_table' => 'contacts', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'accounts_contacts', 'join_key_lhs' => 'account_id', 'join_key_rhs' => 'contact_id', ), ), 'lhs_module' => 'Accounts', 'lhs_table' => 'accounts', 'lhs_key' => 'id', 'rhs_module' => 'Contacts', 'rhs_table' => 'contacts', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'accounts_contacts', 'join_key_lhs' => 'account_id', 'join_key_rhs' => 'contact_id', ), 'accounts_opportunities' => array ( 'name' => 'accounts_opportunities', 'table' => 'accounts_opportunities', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => '36', ), 1 => array ( 'name' => 'opportunity_id', 'type' => 'varchar', 'len' => '36', ), 2 => array ( 'name' => 'account_id', 'type' => 'varchar', 'len' => '36', ), 3 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 4 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => false, ), ), 'indices' => array ( 0 => array ( 'name' => 'accounts_opportunitiespk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'idx_account_opportunity', 'type' => 'alternate_key', 'fields' => array ( 0 => 'account_id', 1 => 'opportunity_id', ), ), 2 => array ( 'name' => 'idx_oppid_del_accid', 'type' => 'index', 'fields' => array ( 0 => 'opportunity_id', 1 => 'deleted', 2 => 'account_id', ), ), ), 'relationships' => array ( 'accounts_opportunities' => array ( 'lhs_module' => 'Accounts', 'lhs_table' => 'accounts', 'lhs_key' => 'id', 'rhs_module' => 'Opportunities', 'rhs_table' => 'opportunities', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'accounts_opportunities', 'join_key_lhs' => 'account_id', 'join_key_rhs' => 'opportunity_id', ), ), 'lhs_module' => 'Accounts', 'lhs_table' => 'accounts', 'lhs_key' => 'id', 'rhs_module' => 'Opportunities', 'rhs_table' => 'opportunities', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'accounts_opportunities', 'join_key_lhs' => 'account_id', 'join_key_rhs' => 'opportunity_id', ), 'calls_contacts' => array ( 'name' => 'calls_contacts', 'table' => 'calls_contacts', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => '36', ), 1 => array ( 'name' => 'call_id', 'type' => 'varchar', 'len' => '36', ), 2 => array ( 'name' => 'contact_id', 'type' => 'varchar', 'len' => '36', ), 3 => array ( 'name' => 'required', 'type' => 'varchar', 'len' => '1', 'default' => '1', ), 4 => array ( 'name' => 'accept_status', 'type' => 'varchar', 'len' => '25', 'default' => 'none', ), 5 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 6 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => false, ), ), 'indices' => array ( 0 => array ( 'name' => 'calls_contactspk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'idx_con_call_call', 'type' => 'index', 'fields' => array ( 0 => 'call_id', ), ), 2 => array ( 'name' => 'idx_con_call_con', 'type' => 'index', 'fields' => array ( 0 => 'contact_id', ), ), 3 => array ( 'name' => 'idx_call_contact', 'type' => 'alternate_key', 'fields' => array ( 0 => 'call_id', 1 => 'contact_id', ), ), ), 'relationships' => array ( 'calls_contacts' => array ( 'lhs_module' => 'Calls', 'lhs_table' => 'calls', 'lhs_key' => 'id', 'rhs_module' => 'Contacts', 'rhs_table' => 'contacts', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'calls_contacts', 'join_key_lhs' => 'call_id', 'join_key_rhs' => 'contact_id', ), ), 'lhs_module' => 'Calls', 'lhs_table' => 'calls', 'lhs_key' => 'id', 'rhs_module' => 'Contacts', 'rhs_table' => 'contacts', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'calls_contacts', 'join_key_lhs' => 'call_id', 'join_key_rhs' => 'contact_id', ), 'calls_users' => array ( 'name' => 'calls_users', 'table' => 'calls_users', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => '36', ), 1 => array ( 'name' => 'call_id', 'type' => 'varchar', 'len' => '36', ), 2 => array ( 'name' => 'user_id', 'type' => 'varchar', 'len' => '36', ), 3 => array ( 'name' => 'required', 'type' => 'varchar', 'len' => '1', 'default' => '1', ), 4 => array ( 'name' => 'accept_status', 'type' => 'varchar', 'len' => '25', 'default' => 'none', ), 5 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 6 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => false, ), ), 'indices' => array ( 0 => array ( 'name' => 'calls_userspk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'idx_usr_call_call', 'type' => 'index', 'fields' => array ( 0 => 'call_id', ), ), 2 => array ( 'name' => 'idx_usr_call_usr', 'type' => 'index', 'fields' => array ( 0 => 'user_id', ), ), 3 => array ( 'name' => 'idx_call_users', 'type' => 'alternate_key', 'fields' => array ( 0 => 'call_id', 1 => 'user_id', ), ), ), 'relationships' => array ( 'calls_users' => array ( 'lhs_module' => 'Calls', 'lhs_table' => 'calls', 'lhs_key' => 'id', 'rhs_module' => 'Users', 'rhs_table' => 'users', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'calls_users', 'join_key_lhs' => 'call_id', 'join_key_rhs' => 'user_id', ), ), 'lhs_module' => 'Calls', 'lhs_table' => 'calls', 'lhs_key' => 'id', 'rhs_module' => 'Users', 'rhs_table' => 'users', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'calls_users', 'join_key_lhs' => 'call_id', 'join_key_rhs' => 'user_id', ), 'calls_leads' => array ( 'name' => 'calls_leads', 'table' => 'calls_leads', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => '36', ), 1 => array ( 'name' => 'call_id', 'type' => 'varchar', 'len' => '36', ), 2 => array ( 'name' => 'lead_id', 'type' => 'varchar', 'len' => '36', ), 3 => array ( 'name' => 'required', 'type' => 'varchar', 'len' => '1', 'default' => '1', ), 4 => array ( 'name' => 'accept_status', 'type' => 'varchar', 'len' => '25', 'default' => 'none', ), 5 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 6 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => false, ), ), 'indices' => array ( 0 => array ( 'name' => 'calls_leadspk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'idx_lead_call_call', 'type' => 'index', 'fields' => array ( 0 => 'call_id', ), ), 2 => array ( 'name' => 'idx_lead_call_lead', 'type' => 'index', 'fields' => array ( 0 => 'lead_id', ), ), 3 => array ( 'name' => 'idx_call_lead', 'type' => 'alternate_key', 'fields' => array ( 0 => 'call_id', 1 => 'lead_id', ), ), ), 'relationships' => array ( 'calls_leads' => array ( 'lhs_module' => 'Calls', 'lhs_table' => 'calls', 'lhs_key' => 'id', 'rhs_module' => 'Leads', 'rhs_table' => 'leads', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'calls_leads', 'join_key_lhs' => 'call_id', 'join_key_rhs' => 'lead_id', ), ), 'lhs_module' => 'Calls', 'lhs_table' => 'calls', 'lhs_key' => 'id', 'rhs_module' => 'Leads', 'rhs_table' => 'leads', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'calls_leads', 'join_key_lhs' => 'call_id', 'join_key_rhs' => 'lead_id', ), 'cases_bugs' => array ( 'name' => 'cases_bugs', 'table' => 'cases_bugs', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => '36', ), 1 => array ( 'name' => 'case_id', 'type' => 'varchar', 'len' => '36', ), 2 => array ( 'name' => 'bug_id', 'type' => 'varchar', 'len' => '36', ), 3 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 4 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => false, ), ), 'indices' => array ( 0 => array ( 'name' => 'cases_bugspk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'idx_cas_bug_cas', 'type' => 'index', 'fields' => array ( 0 => 'case_id', ), ), 2 => array ( 'name' => 'idx_cas_bug_bug', 'type' => 'index', 'fields' => array ( 0 => 'bug_id', ), ), 3 => array ( 'name' => 'idx_case_bug', 'type' => 'alternate_key', 'fields' => array ( 0 => 'case_id', 1 => 'bug_id', ), ), ), 'relationships' => array ( 'cases_bugs' => array ( 'lhs_module' => 'Cases', 'lhs_table' => 'cases', 'lhs_key' => 'id', 'rhs_module' => 'Bugs', 'rhs_table' => 'bugs', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'cases_bugs', 'join_key_lhs' => 'case_id', 'join_key_rhs' => 'bug_id', ), ), 'lhs_module' => 'Cases', 'lhs_table' => 'cases', 'lhs_key' => 'id', 'rhs_module' => 'Bugs', 'rhs_table' => 'bugs', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'cases_bugs', 'join_key_lhs' => 'case_id', 'join_key_rhs' => 'bug_id', ), 'contacts_bugs' => array ( 'name' => 'contacts_bugs', 'table' => 'contacts_bugs', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => '36', ), 1 => array ( 'name' => 'contact_id', 'type' => 'varchar', 'len' => '36', ), 2 => array ( 'name' => 'bug_id', 'type' => 'varchar', 'len' => '36', ), 3 => array ( 'name' => 'contact_role', 'type' => 'varchar', 'len' => '50', ), 4 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 5 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => false, ), ), 'indices' => array ( 0 => array ( 'name' => 'contacts_bugspk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'idx_con_bug_con', 'type' => 'index', 'fields' => array ( 0 => 'contact_id', ), ), 2 => array ( 'name' => 'idx_con_bug_bug', 'type' => 'index', 'fields' => array ( 0 => 'bug_id', ), ), 3 => array ( 'name' => 'idx_contact_bug', 'type' => 'alternate_key', 'fields' => array ( 0 => 'contact_id', 1 => 'bug_id', ), ), ), 'relationships' => array ( 'contacts_bugs' => array ( 'lhs_module' => 'Contacts', 'lhs_table' => 'contacts', 'lhs_key' => 'id', 'rhs_module' => 'Bugs', 'rhs_table' => 'bugs', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'contacts_bugs', 'join_key_lhs' => 'contact_id', 'join_key_rhs' => 'bug_id', ), ), 'lhs_module' => 'Contacts', 'lhs_table' => 'contacts', 'lhs_key' => 'id', 'rhs_module' => 'Bugs', 'rhs_table' => 'bugs', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'contacts_bugs', 'join_key_lhs' => 'contact_id', 'join_key_rhs' => 'bug_id', ), 'contacts_cases' => array ( 'name' => 'contacts_cases', 'table' => 'contacts_cases', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => '36', ), 1 => array ( 'name' => 'contact_id', 'type' => 'varchar', 'len' => '36', ), 2 => array ( 'name' => 'case_id', 'type' => 'varchar', 'len' => '36', ), 3 => array ( 'name' => 'contact_role', 'type' => 'varchar', 'len' => '50', ), 4 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 5 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => false, ), ), 'indices' => array ( 0 => array ( 'name' => 'contacts_casespk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'idx_con_case_con', 'type' => 'index', 'fields' => array ( 0 => 'contact_id', ), ), 2 => array ( 'name' => 'idx_con_case_case', 'type' => 'index', 'fields' => array ( 0 => 'case_id', ), ), 3 => array ( 'name' => 'idx_contacts_cases', 'type' => 'alternate_key', 'fields' => array ( 0 => 'contact_id', 1 => 'case_id', ), ), ), 'relationships' => array ( 'contacts_cases' => array ( 'lhs_module' => 'Contacts', 'lhs_table' => 'contacts', 'lhs_key' => 'id', 'rhs_module' => 'Cases', 'rhs_table' => 'cases', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'contacts_cases', 'join_key_lhs' => 'contact_id', 'join_key_rhs' => 'case_id', ), ), 'lhs_module' => 'Contacts', 'lhs_table' => 'contacts', 'lhs_key' => 'id', 'rhs_module' => 'Cases', 'rhs_table' => 'cases', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'contacts_cases', 'join_key_lhs' => 'contact_id', 'join_key_rhs' => 'case_id', ), 'contacts_users' => array ( 'name' => 'contacts_users', 'table' => 'contacts_users', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => '36', ), 1 => array ( 'name' => 'contact_id', 'type' => 'varchar', 'len' => '36', ), 2 => array ( 'name' => 'user_id', 'type' => 'varchar', 'len' => '36', ), 3 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 4 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => false, ), ), 'indices' => array ( 0 => array ( 'name' => 'contacts_userspk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'idx_con_users_con', 'type' => 'index', 'fields' => array ( 0 => 'contact_id', ), ), 2 => array ( 'name' => 'idx_con_users_user', 'type' => 'index', 'fields' => array ( 0 => 'user_id', ), ), 3 => array ( 'name' => 'idx_contacts_users', 'type' => 'alternate_key', 'fields' => array ( 0 => 'contact_id', 1 => 'user_id', ), ), ), 'relationships' => array ( 'contacts_users' => array ( 'lhs_module' => 'Contacts', 'lhs_table' => 'contacts', 'lhs_key' => 'id', 'rhs_module' => 'Users', 'rhs_table' => 'users', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'contacts_users', 'join_key_lhs' => 'contact_id', 'join_key_rhs' => 'user_id', ), ), 'lhs_module' => 'Contacts', 'lhs_table' => 'contacts', 'lhs_key' => 'id', 'rhs_module' => 'Users', 'rhs_table' => 'users', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'contacts_users', 'join_key_lhs' => 'contact_id', 'join_key_rhs' => 'user_id', ), 'emails_accounts_rel' => array ( 'name' => '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', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'dbType' => 'id', 'len' => '36', ), 1 => array ( 'name' => 'email_id', 'type' => 'varchar', 'dbType' => 'id', 'len' => '36', 'comment' => 'FK to emails table', ), 2 => array ( 'name' => 'bean_id', 'dbType' => 'id', 'type' => 'varchar', 'len' => '36', 'comment' => 'FK to various beans\'s tables', ), 3 => array ( 'name' => 'bean_module', 'type' => 'varchar', 'len' => '100', 'comment' => 'bean\'s Module', ), 4 => array ( 'name' => 'campaign_data', 'type' => 'text', ), 5 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 6 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => false, ), ), ), 'emails_bugs_rel' => array ( 'name' => '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', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'dbType' => 'id', 'len' => '36', ), 1 => array ( 'name' => 'email_id', 'type' => 'varchar', 'dbType' => 'id', 'len' => '36', 'comment' => 'FK to emails table', ), 2 => array ( 'name' => 'bean_id', 'dbType' => 'id', 'type' => 'varchar', 'len' => '36', 'comment' => 'FK to various beans\'s tables', ), 3 => array ( 'name' => 'bean_module', 'type' => 'varchar', 'len' => '100', 'comment' => 'bean\'s Module', ), 4 => array ( 'name' => 'campaign_data', 'type' => 'text', ), 5 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 6 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => false, ), ), ), 'emails_cases_rel' => array ( 'name' => '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', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'dbType' => 'id', 'len' => '36', ), 1 => array ( 'name' => 'email_id', 'type' => 'varchar', 'dbType' => 'id', 'len' => '36', 'comment' => 'FK to emails table', ), 2 => array ( 'name' => 'bean_id', 'dbType' => 'id', 'type' => 'varchar', 'len' => '36', 'comment' => 'FK to various beans\'s tables', ), 3 => array ( 'name' => 'bean_module', 'type' => 'varchar', 'len' => '100', 'comment' => 'bean\'s Module', ), 4 => array ( 'name' => 'campaign_data', 'type' => 'text', ), 5 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 6 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => false, ), ), ), 'emails_contacts_rel' => array ( 'name' => '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', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'dbType' => 'id', 'len' => '36', ), 1 => array ( 'name' => 'email_id', 'type' => 'varchar', 'dbType' => 'id', 'len' => '36', 'comment' => 'FK to emails table', ), 2 => array ( 'name' => 'bean_id', 'dbType' => 'id', 'type' => 'varchar', 'len' => '36', 'comment' => 'FK to various beans\'s tables', ), 3 => array ( 'name' => 'bean_module', 'type' => 'varchar', 'len' => '100', 'comment' => 'bean\'s Module', ), 4 => array ( 'name' => 'campaign_data', 'type' => 'text', ), 5 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 6 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => false, ), ), ), 'emails_leads_rel' => array ( 'name' => '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', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'dbType' => 'id', 'len' => '36', ), 1 => array ( 'name' => 'email_id', 'type' => 'varchar', 'dbType' => 'id', 'len' => '36', 'comment' => 'FK to emails table', ), 2 => array ( 'name' => 'bean_id', 'dbType' => 'id', 'type' => 'varchar', 'len' => '36', 'comment' => 'FK to various beans\'s tables', ), 3 => array ( 'name' => 'bean_module', 'type' => 'varchar', 'len' => '100', 'comment' => 'bean\'s Module', ), 4 => array ( 'name' => 'campaign_data', 'type' => 'text', ), 5 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 6 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => false, ), ), ), 'emails_opportunities_rel' => array ( 'name' => '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', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'dbType' => 'id', 'len' => '36', ), 1 => array ( 'name' => 'email_id', 'type' => 'varchar', 'dbType' => 'id', 'len' => '36', 'comment' => 'FK to emails table', ), 2 => array ( 'name' => 'bean_id', 'dbType' => 'id', 'type' => 'varchar', 'len' => '36', 'comment' => 'FK to various beans\'s tables', ), 3 => array ( 'name' => 'bean_module', 'type' => 'varchar', 'len' => '100', 'comment' => 'bean\'s Module', ), 4 => array ( 'name' => 'campaign_data', 'type' => 'text', ), 5 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 6 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => false, ), ), ), 'emails_tasks_rel' => array ( 'name' => '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', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'dbType' => 'id', 'len' => '36', ), 1 => array ( 'name' => 'email_id', 'type' => 'varchar', 'dbType' => 'id', 'len' => '36', 'comment' => 'FK to emails table', ), 2 => array ( 'name' => 'bean_id', 'dbType' => 'id', 'type' => 'varchar', 'len' => '36', 'comment' => 'FK to various beans\'s tables', ), 3 => array ( 'name' => 'bean_module', 'type' => 'varchar', 'len' => '100', 'comment' => 'bean\'s Module', ), 4 => array ( 'name' => 'campaign_data', 'type' => 'text', ), 5 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 6 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => false, ), ), ), 'emails_users_rel' => array ( 'name' => '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', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'dbType' => 'id', 'len' => '36', ), 1 => array ( 'name' => 'email_id', 'type' => 'varchar', 'dbType' => 'id', 'len' => '36', 'comment' => 'FK to emails table', ), 2 => array ( 'name' => 'bean_id', 'dbType' => 'id', 'type' => 'varchar', 'len' => '36', 'comment' => 'FK to various beans\'s tables', ), 3 => array ( 'name' => 'bean_module', 'type' => 'varchar', 'len' => '100', 'comment' => 'bean\'s Module', ), 4 => array ( 'name' => 'campaign_data', 'type' => 'text', ), 5 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 6 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => false, ), ), ), 'emails_project_task_rel' => array ( 'name' => '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', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'dbType' => 'id', 'len' => '36', ), 1 => array ( 'name' => 'email_id', 'type' => 'varchar', 'dbType' => 'id', 'len' => '36', 'comment' => 'FK to emails table', ), 2 => array ( 'name' => 'bean_id', 'dbType' => 'id', 'type' => 'varchar', 'len' => '36', 'comment' => 'FK to various beans\'s tables', ), 3 => array ( 'name' => 'bean_module', 'type' => 'varchar', 'len' => '100', 'comment' => 'bean\'s Module', ), 4 => array ( 'name' => 'campaign_data', 'type' => 'text', ), 5 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 6 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => false, ), ), ), 'emails_projects_rel' => array ( 'name' => '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', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'dbType' => 'id', 'len' => '36', ), 1 => array ( 'name' => 'email_id', 'type' => 'varchar', 'dbType' => 'id', 'len' => '36', 'comment' => 'FK to emails table', ), 2 => array ( 'name' => 'bean_id', 'dbType' => 'id', 'type' => 'varchar', 'len' => '36', 'comment' => 'FK to various beans\'s tables', ), 3 => array ( 'name' => 'bean_module', 'type' => 'varchar', 'len' => '100', 'comment' => 'bean\'s Module', ), 4 => array ( 'name' => 'campaign_data', 'type' => 'text', ), 5 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 6 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => false, ), ), ), 'emails_prospects_rel' => array ( 'name' => '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', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'dbType' => 'id', 'len' => '36', ), 1 => array ( 'name' => 'email_id', 'type' => 'varchar', 'dbType' => 'id', 'len' => '36', 'comment' => 'FK to emails table', ), 2 => array ( 'name' => 'bean_id', 'dbType' => 'id', 'type' => 'varchar', 'len' => '36', 'comment' => 'FK to various beans\'s tables', ), 3 => array ( 'name' => 'bean_module', 'type' => 'varchar', 'len' => '100', 'comment' => 'bean\'s Module', ), 4 => array ( 'name' => 'campaign_data', 'type' => 'text', ), 5 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 6 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => false, ), ), ), 'emails_quotes' => array ( 'name' => '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', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'dbType' => 'id', 'len' => '36', ), 1 => array ( 'name' => 'email_id', 'type' => 'varchar', 'dbType' => 'id', 'len' => '36', 'comment' => 'FK to emails table', ), 2 => array ( 'name' => 'bean_id', 'dbType' => 'id', 'type' => 'varchar', 'len' => '36', 'comment' => 'FK to various beans\'s tables', ), 3 => array ( 'name' => 'bean_module', 'type' => 'varchar', 'len' => '100', 'comment' => 'bean\'s Module', ), 4 => array ( 'name' => 'campaign_data', 'type' => 'text', ), 5 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 6 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => false, ), ), ), 'meetings_contacts' => array ( 'name' => 'meetings_contacts', 'table' => 'meetings_contacts', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => '36', ), 1 => array ( 'name' => 'meeting_id', 'type' => 'varchar', 'len' => '36', ), 2 => array ( 'name' => 'contact_id', 'type' => 'varchar', 'len' => '36', ), 3 => array ( 'name' => 'required', 'type' => 'varchar', 'len' => '1', 'default' => '1', ), 4 => array ( 'name' => 'accept_status', 'type' => 'varchar', 'len' => '25', 'default' => 'none', ), 5 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 6 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => false, ), ), 'indices' => array ( 0 => array ( 'name' => 'meetings_contactspk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'idx_con_mtg_mtg', 'type' => 'index', 'fields' => array ( 0 => 'meeting_id', ), ), 2 => array ( 'name' => 'idx_con_mtg_con', 'type' => 'index', 'fields' => array ( 0 => 'contact_id', ), ), 3 => array ( 'name' => 'idx_meeting_contact', 'type' => 'alternate_key', 'fields' => array ( 0 => 'meeting_id', 1 => 'contact_id', ), ), ), 'relationships' => array ( 'meetings_contacts' => array ( 'lhs_module' => 'Meetings', 'lhs_table' => 'meetings', 'lhs_key' => 'id', 'rhs_module' => 'Contacts', 'rhs_table' => 'contacts', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'meetings_contacts', 'join_key_lhs' => 'meeting_id', 'join_key_rhs' => 'contact_id', ), ), 'lhs_module' => 'Meetings', 'lhs_table' => 'meetings', 'lhs_key' => 'id', 'rhs_module' => 'Contacts', 'rhs_table' => 'contacts', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'meetings_contacts', 'join_key_lhs' => 'meeting_id', 'join_key_rhs' => 'contact_id', ), 'meetings_users' => array ( 'name' => 'meetings_users', 'table' => 'meetings_users', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => '36', ), 1 => array ( 'name' => 'meeting_id', 'type' => 'varchar', 'len' => '36', ), 2 => array ( 'name' => 'user_id', 'type' => 'varchar', 'len' => '36', ), 3 => array ( 'name' => 'required', 'type' => 'varchar', 'len' => '1', 'default' => '1', ), 4 => array ( 'name' => 'accept_status', 'type' => 'varchar', 'len' => '25', 'default' => 'none', ), 5 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 6 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => false, ), ), 'indices' => array ( 0 => array ( 'name' => 'meetings_userspk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'idx_usr_mtg_mtg', 'type' => 'index', 'fields' => array ( 0 => 'meeting_id', ), ), 2 => array ( 'name' => 'idx_usr_mtg_usr', 'type' => 'index', 'fields' => array ( 0 => 'user_id', ), ), 3 => array ( 'name' => 'idx_meeting_users', 'type' => 'alternate_key', 'fields' => array ( 0 => 'meeting_id', 1 => 'user_id', ), ), ), 'relationships' => array ( 'meetings_users' => array ( 'lhs_module' => 'Meetings', 'lhs_table' => 'meetings', 'lhs_key' => 'id', 'rhs_module' => 'Users', 'rhs_table' => 'users', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'meetings_users', 'join_key_lhs' => 'meeting_id', 'join_key_rhs' => 'user_id', ), ), 'lhs_module' => 'Meetings', 'lhs_table' => 'meetings', 'lhs_key' => 'id', 'rhs_module' => 'Users', 'rhs_table' => 'users', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'meetings_users', 'join_key_lhs' => 'meeting_id', 'join_key_rhs' => 'user_id', ), 'meetings_leads' => array ( 'name' => 'meetings_leads', 'table' => 'meetings_leads', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => '36', ), 1 => array ( 'name' => 'meeting_id', 'type' => 'varchar', 'len' => '36', ), 2 => array ( 'name' => 'lead_id', 'type' => 'varchar', 'len' => '36', ), 3 => array ( 'name' => 'required', 'type' => 'varchar', 'len' => '1', 'default' => '1', ), 4 => array ( 'name' => 'accept_status', 'type' => 'varchar', 'len' => '25', 'default' => 'none', ), 5 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 6 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => false, ), ), 'indices' => array ( 0 => array ( 'name' => 'meetings_leadspk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'idx_lead_meeting_meeting', 'type' => 'index', 'fields' => array ( 0 => 'meeting_id', ), ), 2 => array ( 'name' => 'idx_lead_meeting_lead', 'type' => 'index', 'fields' => array ( 0 => 'lead_id', ), ), 3 => array ( 'name' => 'idx_meeting_lead', 'type' => 'alternate_key', 'fields' => array ( 0 => 'meeting_id', 1 => 'lead_id', ), ), ), 'relationships' => array ( 'meetings_leads' => array ( 'lhs_module' => 'Meetings', 'lhs_table' => 'meetings', 'lhs_key' => 'id', 'rhs_module' => 'Leads', 'rhs_table' => 'leads', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'meetings_leads', 'join_key_lhs' => 'meeting_id', 'join_key_rhs' => 'lead_id', ), ), 'lhs_module' => 'Meetings', 'lhs_table' => 'meetings', 'lhs_key' => 'id', 'rhs_module' => 'Leads', 'rhs_table' => 'leads', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'meetings_leads', 'join_key_lhs' => 'meeting_id', 'join_key_rhs' => 'lead_id', ), 'opportunities_contacts' => array ( 'name' => 'opportunities_contacts', 'table' => 'opportunities_contacts', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => '36', ), 1 => array ( 'name' => 'contact_id', 'type' => 'varchar', 'len' => '36', ), 2 => array ( 'name' => 'opportunity_id', 'type' => 'varchar', 'len' => '36', ), 3 => array ( 'name' => 'contact_role', 'type' => 'varchar', 'len' => '50', ), 4 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 5 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => false, ), ), 'indices' => array ( 0 => array ( 'name' => 'opportunities_contactspk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'idx_con_opp_con', 'type' => 'index', 'fields' => array ( 0 => 'contact_id', ), ), 2 => array ( 'name' => 'idx_con_opp_opp', 'type' => 'index', 'fields' => array ( 0 => 'opportunity_id', ), ), 3 => array ( 'name' => 'idx_opportunities_contacts', 'type' => 'alternate_key', 'fields' => array ( 0 => 'opportunity_id', 1 => 'contact_id', ), ), ), 'relationships' => array ( 'opportunities_contacts' => array ( 'lhs_module' => 'Opportunities', 'lhs_table' => 'opportunities', 'lhs_key' => 'id', 'rhs_module' => 'Contacts', 'rhs_table' => 'contacts', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'opportunities_contacts', 'join_key_lhs' => 'opportunity_id', 'join_key_rhs' => 'contact_id', ), ), 'lhs_module' => 'Opportunities', 'lhs_table' => 'opportunities', 'lhs_key' => 'id', 'rhs_module' => 'Contacts', 'rhs_table' => 'contacts', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'opportunities_contacts', 'join_key_lhs' => 'opportunity_id', 'join_key_rhs' => 'contact_id', ), 'prospect_list_campaigns' => array ( 'name' => 'prospect_list_campaigns', 'table' => 'prospect_list_campaigns', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => '36', ), 1 => array ( 'name' => 'prospect_list_id', 'type' => 'varchar', 'len' => '36', ), 2 => array ( 'name' => 'campaign_id', 'type' => 'varchar', 'len' => '36', ), 3 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 4 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', ), ), 'indices' => array ( 0 => array ( 'name' => 'prospect_list_campaignspk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'idx_pro_id', 'type' => 'index', 'fields' => array ( 0 => 'prospect_list_id', ), ), 2 => array ( 'name' => 'idx_cam_id', 'type' => 'index', 'fields' => array ( 0 => 'campaign_id', ), ), 3 => array ( 'name' => 'idx_prospect_list_campaigns', 'type' => 'alternate_key', 'fields' => array ( 0 => 'prospect_list_id', 1 => 'campaign_id', ), ), ), 'relationships' => array ( 'prospect_list_campaigns' => array ( 'lhs_module' => 'ProspectLists', 'lhs_table' => 'prospect_lists', 'lhs_key' => 'id', 'rhs_module' => 'Campaigns', 'rhs_table' => 'campaigns', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'prospect_list_campaigns', 'join_key_lhs' => 'prospect_list_id', 'join_key_rhs' => 'campaign_id', ), ), 'lhs_module' => 'ProspectLists', 'lhs_table' => 'prospect_lists', 'lhs_key' => 'id', 'rhs_module' => 'Campaigns', 'rhs_table' => 'campaigns', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'prospect_list_campaigns', 'join_key_lhs' => 'prospect_list_id', 'join_key_rhs' => 'campaign_id', ), 'prospect_list_contacts' => array ( 'name' => 'prospect_list_contacts', 'lhs_module' => 'ProspectLists', 'lhs_table' => 'prospect_lists', 'lhs_key' => 'id', 'rhs_module' => 'Contacts', 'rhs_table' => 'contacts', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'prospect_lists_prospects', 'join_key_lhs' => 'prospect_list_id', 'join_key_rhs' => 'related_id', 'relationship_role_column' => 'related_type', 'relationship_role_column_value' => 'Contacts', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => '36', ), 1 => array ( 'name' => 'prospect_list_id', 'type' => 'varchar', 'len' => '36', ), 2 => array ( 'name' => 'related_id', 'type' => 'varchar', 'len' => '36', ), 3 => array ( 'name' => 'related_type', 'type' => 'varchar', 'len' => '25', ), 4 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 5 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', ), ), ), 'prospect_list_prospects' => array ( 'name' => 'prospect_list_prospects', 'lhs_module' => 'ProspectLists', 'lhs_table' => 'prospect_lists', 'lhs_key' => 'id', 'rhs_module' => 'Prospects', 'rhs_table' => 'prospects', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'prospect_lists_prospects', 'join_key_lhs' => 'prospect_list_id', 'join_key_rhs' => 'related_id', 'relationship_role_column' => 'related_type', 'relationship_role_column_value' => 'Prospects', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => '36', ), 1 => array ( 'name' => 'prospect_list_id', 'type' => 'varchar', 'len' => '36', ), 2 => array ( 'name' => 'related_id', 'type' => 'varchar', 'len' => '36', ), 3 => array ( 'name' => 'related_type', 'type' => 'varchar', 'len' => '25', ), 4 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 5 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', ), ), ), 'prospect_list_leads' => array ( 'name' => 'prospect_list_leads', 'lhs_module' => 'ProspectLists', 'lhs_table' => 'prospect_lists', 'lhs_key' => 'id', 'rhs_module' => 'Leads', 'rhs_table' => 'leads', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'prospect_lists_prospects', 'join_key_lhs' => 'prospect_list_id', 'join_key_rhs' => 'related_id', 'relationship_role_column' => 'related_type', 'relationship_role_column_value' => 'Leads', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => '36', ), 1 => array ( 'name' => 'prospect_list_id', 'type' => 'varchar', 'len' => '36', ), 2 => array ( 'name' => 'related_id', 'type' => 'varchar', 'len' => '36', ), 3 => array ( 'name' => 'related_type', 'type' => 'varchar', 'len' => '25', ), 4 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 5 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', ), ), ), 'prospect_list_users' => array ( 'name' => 'prospect_list_users', 'lhs_module' => 'ProspectLists', 'lhs_table' => 'prospect_lists', 'lhs_key' => 'id', 'rhs_module' => 'Users', 'rhs_table' => 'users', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'prospect_lists_prospects', 'join_key_lhs' => 'prospect_list_id', 'join_key_rhs' => 'related_id', 'relationship_role_column' => 'related_type', 'relationship_role_column_value' => 'Users', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => '36', ), 1 => array ( 'name' => 'prospect_list_id', 'type' => 'varchar', 'len' => '36', ), 2 => array ( 'name' => 'related_id', 'type' => 'varchar', 'len' => '36', ), 3 => array ( 'name' => 'related_type', 'type' => 'varchar', 'len' => '25', ), 4 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 5 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', ), ), ), 'prospect_list_accounts' => array ( 'name' => 'prospect_list_accounts', 'lhs_module' => 'ProspectLists', 'lhs_table' => 'prospect_lists', 'lhs_key' => 'id', 'rhs_module' => 'Accounts', 'rhs_table' => 'accounts', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'prospect_lists_prospects', 'join_key_lhs' => 'prospect_list_id', 'join_key_rhs' => 'related_id', 'relationship_role_column' => 'related_type', 'relationship_role_column_value' => 'Accounts', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => '36', ), 1 => array ( 'name' => 'prospect_list_id', 'type' => 'varchar', 'len' => '36', ), 2 => array ( 'name' => 'related_id', 'type' => 'varchar', 'len' => '36', ), 3 => array ( 'name' => 'related_type', 'type' => 'varchar', 'len' => '25', ), 4 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 5 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', ), ), ), 'roles_users' => array ( 'name' => 'roles_users', 'table' => 'roles_users', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => '36', ), 1 => array ( 'name' => 'role_id', 'type' => 'varchar', 'len' => '36', ), 2 => array ( 'name' => 'user_id', 'type' => 'varchar', 'len' => '36', ), 3 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 4 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', ), ), 'indices' => array ( 0 => array ( 'name' => 'roles_userspk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'idx_ru_role_id', 'type' => 'index', 'fields' => array ( 0 => 'role_id', ), ), 2 => array ( 'name' => 'idx_ru_user_id', 'type' => 'index', 'fields' => array ( 0 => 'user_id', ), ), ), 'relationships' => array ( 'roles_users' => array ( 'lhs_module' => 'Roles', 'lhs_table' => 'roles', 'lhs_key' => 'id', 'rhs_module' => 'Users', 'rhs_table' => 'users', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'roles_users', 'join_key_lhs' => 'role_id', 'join_key_rhs' => 'user_id', ), ), 'lhs_module' => 'Roles', 'lhs_table' => 'roles', 'lhs_key' => 'id', 'rhs_module' => 'Users', 'rhs_table' => 'users', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'roles_users', 'join_key_lhs' => 'role_id', 'join_key_rhs' => 'user_id', ), 'projects_bugs' => array ( 'name' => 'projects_bugs', 'table' => 'projects_bugs', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => '36', ), 1 => array ( 'name' => 'bug_id', 'type' => 'varchar', 'len' => '36', ), 2 => array ( 'name' => 'project_id', 'type' => 'varchar', 'len' => '36', ), 3 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 4 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => false, ), ), 'indices' => array ( 0 => array ( 'name' => 'projects_bugs_pk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'idx_proj_bug_proj', 'type' => 'index', 'fields' => array ( 0 => 'project_id', ), ), 2 => array ( 'name' => 'idx_proj_bug_bug', 'type' => 'index', 'fields' => array ( 0 => 'bug_id', ), ), 3 => array ( 'name' => 'projects_bugs_alt', 'type' => 'alternate_key', 'fields' => array ( 0 => 'project_id', 1 => 'bug_id', ), ), ), 'relationships' => array ( 'projects_bugs' => array ( 'lhs_module' => 'Project', 'lhs_table' => 'project', 'lhs_key' => 'id', 'rhs_module' => 'Bugs', 'rhs_table' => 'bugs', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'projects_bugs', 'join_key_lhs' => 'project_id', 'join_key_rhs' => 'bug_id', ), ), 'lhs_module' => 'Project', 'lhs_table' => 'project', 'lhs_key' => 'id', 'rhs_module' => 'Bugs', 'rhs_table' => 'bugs', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'projects_bugs', 'join_key_lhs' => 'project_id', 'join_key_rhs' => 'bug_id', ), 'projects_cases' => array ( 'name' => 'projects_cases', 'table' => 'projects_cases', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => '36', ), 1 => array ( 'name' => 'case_id', 'type' => 'varchar', 'len' => '36', ), 2 => array ( 'name' => 'project_id', 'type' => 'varchar', 'len' => '36', ), 3 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 4 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => false, ), ), 'indices' => array ( 0 => array ( 'name' => 'projects_cases_pk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'idx_proj_case_proj', 'type' => 'index', 'fields' => array ( 0 => 'project_id', ), ), 2 => array ( 'name' => 'idx_proj_case_case', 'type' => 'index', 'fields' => array ( 0 => 'case_id', ), ), 3 => array ( 'name' => 'projects_cases_alt', 'type' => 'alternate_key', 'fields' => array ( 0 => 'project_id', 1 => 'case_id', ), ), ), 'relationships' => array ( 'projects_cases' => array ( 'lhs_module' => 'Project', 'lhs_table' => 'project', 'lhs_key' => 'id', 'rhs_module' => 'Cases', 'rhs_table' => 'cases', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'projects_cases', 'join_key_lhs' => 'project_id', 'join_key_rhs' => 'case_id', ), ), 'lhs_module' => 'Project', 'lhs_table' => 'project', 'lhs_key' => 'id', 'rhs_module' => 'Cases', 'rhs_table' => 'cases', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'projects_cases', 'join_key_lhs' => 'project_id', 'join_key_rhs' => 'case_id', ), 'projects_products' => array ( 'name' => 'projects_products', 'table' => 'projects_products', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => '36', ), 1 => array ( 'name' => 'product_id', 'type' => 'varchar', 'len' => '36', ), 2 => array ( 'name' => 'project_id', 'type' => 'varchar', 'len' => '36', ), 3 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 4 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => false, ), ), 'indices' => array ( 0 => array ( 'name' => 'projects_products_pk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'idx_proj_prod_project', 'type' => 'index', 'fields' => array ( 0 => 'project_id', ), ), 2 => array ( 'name' => 'idx_proj_prod_product', 'type' => 'index', 'fields' => array ( 0 => 'product_id', ), ), 3 => array ( 'name' => 'projects_products_alt', 'type' => 'alternate_key', 'fields' => array ( 0 => 'project_id', 1 => 'product_id', ), ), ), 'relationships' => array ( 'projects_products' => array ( 'lhs_module' => 'Project', 'lhs_table' => 'project', 'lhs_key' => 'id', 'rhs_module' => 'Products', 'rhs_table' => 'products', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'projects_products', 'join_key_lhs' => 'project_id', 'join_key_rhs' => 'product_id', ), ), 'lhs_module' => 'Project', 'lhs_table' => 'project', 'lhs_key' => 'id', 'rhs_module' => 'Products', 'rhs_table' => 'products', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'projects_products', 'join_key_lhs' => 'project_id', 'join_key_rhs' => 'product_id', ), 'projects_accounts' => array ( 'name' => 'projects_accounts', 'table' => 'projects_accounts', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => '36', ), 1 => array ( 'name' => 'account_id', 'type' => 'varchar', 'len' => '36', ), 2 => array ( 'name' => 'project_id', 'type' => 'varchar', 'len' => '36', ), 3 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 4 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => false, ), ), 'indices' => array ( 0 => array ( 'name' => 'projects_accounts_pk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'idx_proj_acct_proj', 'type' => 'index', 'fields' => array ( 0 => 'project_id', ), ), 2 => array ( 'name' => 'idx_proj_acct_acct', 'type' => 'index', 'fields' => array ( 0 => 'account_id', ), ), 3 => array ( 'name' => 'projects_accounts_alt', 'type' => 'alternate_key', 'fields' => array ( 0 => 'project_id', 1 => 'account_id', ), ), ), 'relationships' => array ( 'projects_accounts' => array ( 'lhs_module' => 'Project', 'lhs_table' => 'project', 'lhs_key' => 'id', 'rhs_module' => 'Accounts', 'rhs_table' => 'accounts', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'projects_accounts', 'join_key_lhs' => 'project_id', 'join_key_rhs' => 'account_id', ), ), 'lhs_module' => 'Project', 'lhs_table' => 'project', 'lhs_key' => 'id', 'rhs_module' => 'Accounts', 'rhs_table' => 'accounts', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'projects_accounts', 'join_key_lhs' => 'project_id', 'join_key_rhs' => 'account_id', ), 'projects_contacts' => array ( 'name' => 'projects_contacts', 'table' => 'projects_contacts', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => '36', ), 1 => array ( 'name' => 'contact_id', 'type' => 'varchar', 'len' => '36', ), 2 => array ( 'name' => 'project_id', 'type' => 'varchar', 'len' => '36', ), 3 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 4 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => false, ), ), 'indices' => array ( 0 => array ( 'name' => 'projects_contacts_pk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'idx_proj_con_proj', 'type' => 'index', 'fields' => array ( 0 => 'project_id', ), ), 2 => array ( 'name' => 'idx_proj_con_con', 'type' => 'index', 'fields' => array ( 0 => 'contact_id', ), ), 3 => array ( 'name' => 'projects_contacts_alt', 'type' => 'alternate_key', 'fields' => array ( 0 => 'project_id', 1 => 'contact_id', ), ), ), 'relationships' => array ( 'projects_contacts' => array ( 'lhs_module' => 'Project', 'lhs_table' => 'project', 'lhs_key' => 'id', 'rhs_module' => 'Contacts', 'rhs_table' => 'contacts', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'projects_contacts', 'join_key_lhs' => 'project_id', 'join_key_rhs' => 'contact_id', ), ), 'lhs_module' => 'Project', 'lhs_table' => 'project', 'lhs_key' => 'id', 'rhs_module' => 'Contacts', 'rhs_table' => 'contacts', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'projects_contacts', 'join_key_lhs' => 'project_id', 'join_key_rhs' => 'contact_id', ), 'projects_opportunities' => array ( 'name' => 'projects_opportunities', 'table' => 'projects_opportunities', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => '36', ), 1 => array ( 'name' => 'opportunity_id', 'type' => 'varchar', 'len' => '36', ), 2 => array ( 'name' => 'project_id', 'type' => 'varchar', 'len' => '36', ), 3 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 4 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => false, ), ), 'indices' => array ( 0 => array ( 'name' => 'projects_opportunities_pk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'idx_proj_opp_proj', 'type' => 'index', 'fields' => array ( 0 => 'project_id', ), ), 2 => array ( 'name' => 'idx_proj_opp_opp', 'type' => 'index', 'fields' => array ( 0 => 'opportunity_id', ), ), 3 => array ( 'name' => 'projects_opportunities_alt', 'type' => 'alternate_key', 'fields' => array ( 0 => 'project_id', 1 => 'opportunity_id', ), ), ), 'relationships' => array ( 'projects_opportunities' => array ( 'lhs_module' => 'Project', 'lhs_table' => 'project', 'lhs_key' => 'id', 'rhs_module' => 'Opportunities', 'rhs_table' => 'opportunities', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'projects_opportunities', 'join_key_lhs' => 'project_id', 'join_key_rhs' => 'opportunity_id', ), ), 'lhs_module' => 'Project', 'lhs_table' => 'project', 'lhs_key' => 'id', 'rhs_module' => 'Opportunities', 'rhs_table' => 'opportunities', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'projects_opportunities', 'join_key_lhs' => 'project_id', 'join_key_rhs' => 'opportunity_id', ), 'acl_roles_actions' => array ( 'name' => 'acl_roles_actions', 'table' => 'acl_roles_actions', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => '36', ), 1 => array ( 'name' => 'role_id', 'type' => 'varchar', 'len' => '36', ), 2 => array ( 'name' => 'action_id', 'type' => 'varchar', 'len' => '36', ), 3 => array ( 'name' => 'access_override', 'type' => 'int', 'len' => '3', 'required' => false, ), 4 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 5 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', ), ), 'indices' => array ( 0 => array ( 'name' => 'acl_roles_actionspk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'idx_acl_role_id', 'type' => 'index', 'fields' => array ( 0 => 'role_id', ), ), 2 => array ( 'name' => 'idx_acl_action_id', 'type' => 'index', 'fields' => array ( 0 => 'action_id', ), ), 3 => array ( 'name' => 'idx_aclrole_action', 'type' => 'alternate_key', 'fields' => array ( 0 => 'role_id', 1 => 'action_id', ), ), ), 'relationships' => array ( 'acl_roles_actions' => array ( 'lhs_module' => 'ACLRoles', 'lhs_table' => 'acl_roles', 'lhs_key' => 'id', 'rhs_module' => 'ACLActions', 'rhs_table' => 'acl_actions', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'acl_roles_actions', 'join_key_lhs' => 'role_id', 'join_key_rhs' => 'action_id', ), ), 'lhs_module' => 'ACLRoles', 'lhs_table' => 'acl_roles', 'lhs_key' => 'id', 'rhs_module' => 'ACLActions', 'rhs_table' => 'acl_actions', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'acl_roles_actions', 'join_key_lhs' => 'role_id', 'join_key_rhs' => 'action_id', ), 'acl_roles_users' => array ( 'name' => 'acl_roles_users', 'table' => 'acl_roles_users', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => '36', ), 1 => array ( 'name' => 'role_id', 'type' => 'varchar', 'len' => '36', ), 2 => array ( 'name' => 'user_id', 'type' => 'varchar', 'len' => '36', ), 3 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 4 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', ), ), 'indices' => array ( 0 => array ( 'name' => 'acl_roles_userspk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'idx_aclrole_id', 'type' => 'index', 'fields' => array ( 0 => 'role_id', ), ), 2 => array ( 'name' => 'idx_acluser_id', 'type' => 'index', 'fields' => array ( 0 => 'user_id', ), ), 3 => array ( 'name' => 'idx_aclrole_user', 'type' => 'alternate_key', 'fields' => array ( 0 => 'role_id', 1 => 'user_id', ), ), ), 'relationships' => array ( 'acl_roles_users' => array ( 'lhs_module' => 'ACLRoles', 'lhs_table' => 'acl_roles', 'lhs_key' => 'id', 'rhs_module' => 'Users', 'rhs_table' => 'users', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'acl_roles_users', 'join_key_lhs' => 'role_id', 'join_key_rhs' => 'user_id', ), ), 'lhs_module' => 'ACLRoles', 'lhs_table' => 'acl_roles', 'lhs_key' => 'id', 'rhs_module' => 'Users', 'rhs_table' => 'users', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'acl_roles_users', 'join_key_lhs' => 'role_id', 'join_key_rhs' => 'user_id', ), 'email_marketing_prospect_lists' => array ( 'name' => 'email_marketing_prospect_lists', 'table' => 'email_marketing_prospect_lists', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => '36', ), 1 => array ( 'name' => 'prospect_list_id', 'type' => 'varchar', 'len' => '36', ), 2 => array ( 'name' => 'email_marketing_id', 'type' => 'varchar', 'len' => '36', ), 3 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 4 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', ), ), 'indices' => array ( 0 => array ( 'name' => 'email_mp_listspk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'email_mp_prospects', 'type' => 'alternate_key', 'fields' => array ( 0 => 'email_marketing_id', 1 => 'prospect_list_id', ), ), ), 'relationships' => array ( 'email_marketing_prospect_lists' => array ( 'lhs_module' => 'EmailMarketing', 'lhs_table' => 'email_marketing', 'lhs_key' => 'id', 'rhs_module' => 'ProspectLists', 'rhs_table' => 'prospect_lists', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'email_marketing_prospect_lists', 'join_key_lhs' => 'email_marketing_id', 'join_key_rhs' => 'prospect_list_id', ), ), 'lhs_module' => 'EmailMarketing', 'lhs_table' => 'email_marketing', 'lhs_key' => 'id', 'rhs_module' => 'ProspectLists', 'rhs_table' => 'prospect_lists', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'email_marketing_prospect_lists', 'join_key_lhs' => 'email_marketing_id', 'join_key_rhs' => 'prospect_list_id', ), 'contracts_documents' => array ( 'name' => 'contracts_documents', 'lhs_module' => 'Contracts', 'lhs_table' => 'contracts', 'lhs_key' => 'id', 'rhs_module' => 'Documents', 'rhs_table' => 'documents', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'linked_documents', 'join_key_lhs' => 'parent_id', 'join_key_rhs' => 'document_id', 'relationship_role_column' => 'parent_type', 'relationship_role_column_value' => 'Contracts', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => '36', ), 1 => array ( 'name' => 'parent_id', 'type' => 'varchar', 'len' => '36', ), 2 => array ( 'name' => 'parent_type', 'type' => 'varchar', 'len' => '25', ), 3 => array ( 'name' => 'document_id', 'type' => 'varchar', 'len' => '36', ), 4 => array ( 'name' => 'document_revision_id', 'type' => 'varchar', 'len' => '36', ), 5 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 6 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => false, ), ), ), 'leads_documents' => array ( 'name' => 'leads_documents', 'lhs_module' => 'Leads', 'lhs_table' => 'leads', 'lhs_key' => 'id', 'rhs_module' => 'Documents', 'rhs_table' => 'documents', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'linked_documents', 'join_key_lhs' => 'parent_id', 'join_key_rhs' => 'document_id', 'relationship_role_column' => 'parent_type', 'relationship_role_column_value' => 'Leads', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => '36', ), 1 => array ( 'name' => 'parent_id', 'type' => 'varchar', 'len' => '36', ), 2 => array ( 'name' => 'parent_type', 'type' => 'varchar', 'len' => '25', ), 3 => array ( 'name' => 'document_id', 'type' => 'varchar', 'len' => '36', ), 4 => array ( 'name' => 'document_revision_id', 'type' => 'varchar', 'len' => '36', ), 5 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 6 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => false, ), ), ), 'contracttype_documents' => array ( 'name' => 'contracttype_documents', 'lhs_module' => 'ContractTypes', 'lhs_table' => 'contract_types', 'lhs_key' => 'id', 'rhs_module' => 'Documents', 'rhs_table' => 'documents', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'linked_documents', 'join_key_lhs' => 'parent_id', 'join_key_rhs' => 'document_id', 'relationship_role_column' => 'parent_type', 'relationship_role_column_value' => 'ContracTemplates', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => '36', ), 1 => array ( 'name' => 'parent_id', 'type' => 'varchar', 'len' => '36', ), 2 => array ( 'name' => 'parent_type', 'type' => 'varchar', 'len' => '25', ), 3 => array ( 'name' => 'document_id', 'type' => 'varchar', 'len' => '36', ), 4 => array ( 'name' => 'document_revision_id', 'type' => 'varchar', 'len' => '36', ), 5 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 6 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => false, ), ), ), 'documents_accounts' => array ( 'name' => 'documents_accounts', 'true_relationship_type' => 'many-to-many', 'relationships' => array ( 'documents_accounts' => array ( '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' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => 36, ), 1 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 2 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => true, ), 3 => array ( 'name' => 'document_id', 'type' => 'varchar', 'len' => 36, ), 4 => array ( 'name' => 'account_id', 'type' => 'varchar', 'len' => 36, ), ), 'indices' => array ( 0 => array ( 'name' => 'documents_accountsspk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'documents_accounts_account_id', 'type' => 'alternate_key', 'fields' => array ( 0 => 'account_id', 1 => 'document_id', ), ), 2 => array ( 'name' => 'documents_accounts_document_id', 'type' => 'alternate_key', 'fields' => array ( 0 => 'document_id', 1 => 'account_id', ), ), ), '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', ), 'documents_contacts' => array ( 'name' => 'documents_contacts', 'true_relationship_type' => 'many-to-many', 'relationships' => array ( 'documents_contacts' => array ( 'lhs_module' => 'Documents', 'lhs_table' => 'documents', 'lhs_key' => 'id', 'rhs_module' => 'Contacts', 'rhs_table' => 'contacts', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'documents_contacts', 'join_key_lhs' => 'document_id', 'join_key_rhs' => 'contact_id', ), ), 'table' => 'documents_contacts', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => 36, ), 1 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 2 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => true, ), 3 => array ( 'name' => 'document_id', 'type' => 'varchar', 'len' => 36, ), 4 => array ( 'name' => 'contact_id', 'type' => 'varchar', 'len' => 36, ), ), 'indices' => array ( 0 => array ( 'name' => 'documents_contactsspk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'documents_contacts_contact_id', 'type' => 'alternate_key', 'fields' => array ( 0 => 'contact_id', 1 => 'document_id', ), ), 2 => array ( 'name' => 'documents_contacts_document_id', 'type' => 'alternate_key', 'fields' => array ( 0 => 'document_id', 1 => 'contact_id', ), ), ), 'lhs_module' => 'Documents', 'lhs_table' => 'documents', 'lhs_key' => 'id', 'rhs_module' => 'Contacts', 'rhs_table' => 'contacts', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'documents_contacts', 'join_key_lhs' => 'document_id', 'join_key_rhs' => 'contact_id', ), 'documents_opportunities' => array ( 'name' => 'documents_opportunities', 'true_relationship_type' => 'many-to-many', 'relationships' => array ( 'documents_opportunities' => array ( 'lhs_module' => 'Documents', 'lhs_table' => 'documents', 'lhs_key' => 'id', 'rhs_module' => 'Opportunities', 'rhs_table' => 'opportunities', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'documents_opportunities', 'join_key_lhs' => 'document_id', 'join_key_rhs' => 'opportunity_id', ), ), 'table' => 'documents_opportunities', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => 36, ), 1 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 2 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => true, ), 3 => array ( 'name' => 'document_id', 'type' => 'varchar', 'len' => 36, ), 4 => array ( 'name' => 'opportunity_id', 'type' => 'varchar', 'len' => 36, ), ), 'indices' => array ( 0 => array ( 'name' => 'documents_opportunitiesspk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'idx_docu_opps_oppo_id', 'type' => 'alternate_key', 'fields' => array ( 0 => 'opportunity_id', 1 => 'document_id', ), ), 2 => array ( 'name' => 'idx_docu_oppo_docu_id', 'type' => 'alternate_key', 'fields' => array ( 0 => 'document_id', 1 => 'opportunity_id', ), ), ), 'lhs_module' => 'Documents', 'lhs_table' => 'documents', 'lhs_key' => 'id', 'rhs_module' => 'Opportunities', 'rhs_table' => 'opportunities', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'documents_opportunities', 'join_key_lhs' => 'document_id', 'join_key_rhs' => 'opportunity_id', ), 'documents_cases' => array ( 'name' => 'documents_cases', 'true_relationship_type' => 'many-to-many', 'relationships' => array ( 'documents_cases' => array ( 'lhs_module' => 'Documents', 'lhs_table' => 'documents', 'lhs_key' => 'id', 'rhs_module' => 'Cases', 'rhs_table' => 'cases', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'documents_cases', 'join_key_lhs' => 'document_id', 'join_key_rhs' => 'case_id', ), ), 'table' => 'documents_cases', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => 36, ), 1 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 2 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => true, ), 3 => array ( 'name' => 'document_id', 'type' => 'varchar', 'len' => 36, ), 4 => array ( 'name' => 'case_id', 'type' => 'varchar', 'len' => 36, ), ), 'indices' => array ( 0 => array ( 'name' => 'documents_casesspk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'documents_cases_case_id', 'type' => 'alternate_key', 'fields' => array ( 0 => 'case_id', 1 => 'document_id', ), ), 2 => array ( 'name' => 'documents_cases_document_id', 'type' => 'alternate_key', 'fields' => array ( 0 => 'document_id', 1 => 'case_id', ), ), ), 'lhs_module' => 'Documents', 'lhs_table' => 'documents', 'lhs_key' => 'id', 'rhs_module' => 'Cases', 'rhs_table' => 'cases', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'documents_cases', 'join_key_lhs' => 'document_id', 'join_key_rhs' => 'case_id', ), 'documents_bugs' => array ( 'name' => 'documents_bugs', 'true_relationship_type' => 'many-to-many', 'relationships' => array ( 'documents_bugs' => array ( 'lhs_module' => 'Documents', 'lhs_table' => 'documents', 'lhs_key' => 'id', 'rhs_module' => 'Bugs', 'rhs_table' => 'bugs', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'documents_bugs', 'join_key_lhs' => 'document_id', 'join_key_rhs' => 'bug_id', ), ), 'table' => 'documents_bugs', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => 36, ), 1 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 2 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => true, ), 3 => array ( 'name' => 'document_id', 'type' => 'varchar', 'len' => 36, ), 4 => array ( 'name' => 'bug_id', 'type' => 'varchar', 'len' => 36, ), ), 'indices' => array ( 0 => array ( 'name' => 'documents_bugsspk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'documents_bugs_bug_id', 'type' => 'alternate_key', 'fields' => array ( 0 => 'bug_id', 1 => 'document_id', ), ), 2 => array ( 'name' => 'documents_bugs_document_id', 'type' => 'alternate_key', 'fields' => array ( 0 => 'document_id', 1 => 'bug_id', ), ), ), 'lhs_module' => 'Documents', 'lhs_table' => 'documents', 'lhs_key' => 'id', 'rhs_module' => 'Bugs', 'rhs_table' => 'bugs', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'documents_bugs', 'join_key_lhs' => 'document_id', 'join_key_rhs' => 'bug_id', ), 'tsi_scadenziario_tsi_prescrizionilegali' => array ( 'name' => 'tsi_scadenziario_tsi_prescrizionilegali', 'true_relationship_type' => 'one-to-many', 'relationships' => array ( 'tsi_scadenziario_tsi_prescrizionilegali' => array ( 'lhs_module' => 'TSI_prescrizioniLegali', 'lhs_table' => 'tsi_prescrizionilegali', 'lhs_key' => 'id', 'rhs_module' => 'TSI_Scadenziario', 'rhs_table' => 'tsi_scadenziario', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'tsi_scadenziario_tsi_prescrizionilegali_c', 'join_key_lhs' => 'tsi_scaden82bbilegali_ida', 'join_key_rhs' => 'tsi_scadenziario_tsi_prescrizionilegalitsi_scadenziario_idb', ), ), 'table' => 'tsi_scadenziario_tsi_prescrizionilegali_c', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => 36, ), 1 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 2 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => true, ), 3 => array ( 'name' => 'tsi_scaden82bbilegali_ida', 'type' => 'varchar', 'len' => 36, ), 4 => array ( 'name' => 'tsi_scadenziario_tsi_prescrizionilegalitsi_scadenziario_idb', 'type' => 'varchar', 'len' => 36, ), ), 'indices' => array ( 0 => array ( 'name' => 'tsi_scadenziario_tsi_prescrizionilegalispk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'tsi_scadenziario_tsi_prescrizionilegali_ida1', 'type' => 'index', 'fields' => array ( 0 => 'tsi_scaden82bbilegali_ida', ), ), 2 => array ( 'name' => 'tsi_scadenziario_tsi_prescrizionilegali_alt', 'type' => 'alternate_key', 'fields' => array ( 0 => 'tsi_scadenziario_tsi_prescrizionilegalitsi_scadenziario_idb', ), ), ), 'lhs_module' => 'TSI_prescrizioniLegali', 'lhs_table' => 'tsi_prescrizionilegali', 'lhs_key' => 'id', 'rhs_module' => 'TSI_Scadenziario', 'rhs_table' => 'tsi_scadenziario', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'tsi_scadenziario_tsi_prescrizionilegali_c', 'join_key_lhs' => 'tsi_scaden82bbilegali_ida', 'join_key_rhs' => 'tsi_scadenziario_tsi_prescrizionilegalitsi_scadenziario_idb', ), 'for_corsi_effet_for_personale' => array ( 'name' => 'for_corsi_effet_for_personale', 'true_relationship_type' => 'one-to-many', 'relationships' => array ( 'for_corsi_effet_for_personale' => array ( 'lhs_module' => 'FOR_Corsi_effet', 'lhs_table' => 'for_corsi_effet', 'lhs_key' => 'id', 'rhs_module' => 'FOR_Personale', 'rhs_table' => 'for_personale', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'for_corsi_effet_for_personale_c', 'join_key_lhs' => 'for_corsi_effet_for_personalefor_corsi_effet_ida', 'join_key_rhs' => 'for_corsi_effet_for_personalefor_personale_idb', ), ), 'table' => 'for_corsi_effet_for_personale_c', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => 36, ), 1 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 2 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => true, ), 3 => array ( 'name' => 'for_corsi_effet_for_personalefor_corsi_effet_ida', 'type' => 'varchar', 'len' => 36, ), 4 => array ( 'name' => 'for_corsi_effet_for_personalefor_personale_idb', 'type' => 'varchar', 'len' => 36, ), ), 'indices' => array ( 0 => array ( 'name' => 'for_corsi_effet_for_personalespk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'for_corsi_effet_for_personale_ida1', 'type' => 'index', 'fields' => array ( 0 => 'for_corsi_effet_for_personalefor_corsi_effet_ida', ), ), 2 => array ( 'name' => 'for_corsi_effet_for_personale_alt', 'type' => 'alternate_key', 'fields' => array ( 0 => 'for_corsi_effet_for_personalefor_personale_idb', ), ), ), 'lhs_module' => 'FOR_Corsi_effet', 'lhs_table' => 'for_corsi_effet', 'lhs_key' => 'id', 'rhs_module' => 'FOR_Personale', 'rhs_table' => 'for_personale', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'for_corsi_effet_for_personale_c', 'join_key_lhs' => 'for_corsi_effet_for_personalefor_corsi_effet_ida', 'join_key_rhs' => 'for_corsi_effet_for_personalefor_personale_idb', ), 'project_documents_1' => array ( 'name' => 'project_documents_1', 'true_relationship_type' => 'one-to-many', 'from_studio' => true, 'relationships' => array ( 'project_documents_1' => array ( 'lhs_module' => 'Project', 'lhs_table' => 'project', 'lhs_key' => 'id', 'rhs_module' => 'Documents', 'rhs_table' => 'documents', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'project_documents_1_c', 'join_key_lhs' => 'project_documents_1project_ida', 'join_key_rhs' => 'project_documents_1documents_idb', ), ), 'table' => 'project_documents_1_c', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => 36, ), 1 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 2 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => true, ), 3 => array ( 'name' => 'project_documents_1project_ida', 'type' => 'varchar', 'len' => 36, ), 4 => array ( 'name' => 'project_documents_1documents_idb', 'type' => 'varchar', 'len' => 36, ), 5 => array ( 'name' => 'document_revision_id', 'type' => 'varchar', 'len' => '36', ), ), 'indices' => array ( 0 => array ( 'name' => 'project_documents_1spk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'project_documents_1_ida1', 'type' => 'index', 'fields' => array ( 0 => 'project_documents_1project_ida', ), ), 2 => array ( 'name' => 'project_documents_1_alt', 'type' => 'alternate_key', 'fields' => array ( 0 => 'project_documents_1documents_idb', ), ), ), 'lhs_module' => 'Project', 'lhs_table' => 'project', 'lhs_key' => 'id', 'rhs_module' => 'Documents', 'rhs_table' => 'documents', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'project_documents_1_c', 'join_key_lhs' => 'project_documents_1project_ida', 'join_key_rhs' => 'project_documents_1documents_idb', ), 'ava_avanzamento_project' => array ( 'name' => 'ava_avanzamento_project', 'true_relationship_type' => 'one-to-many', 'relationships' => array ( 'ava_avanzamento_project' => array ( 'lhs_module' => 'Project', 'lhs_table' => 'project', 'lhs_key' => 'id', 'rhs_module' => 'AVA_Avanzamento', 'rhs_table' => 'ava_avanzamento', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'ava_avanzamento_project_c', 'join_key_lhs' => 'ava_avanzamento_projectproject_ida', 'join_key_rhs' => 'ava_avanzamento_projectava_avanzamento_idb', ), ), 'table' => 'ava_avanzamento_project_c', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => 36, ), 1 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 2 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => true, ), 3 => array ( 'name' => 'ava_avanzamento_projectproject_ida', 'type' => 'varchar', 'len' => 36, ), 4 => array ( 'name' => 'ava_avanzamento_projectava_avanzamento_idb', 'type' => 'varchar', 'len' => 36, ), ), 'indices' => array ( 0 => array ( 'name' => 'ava_avanzamento_projectspk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'ava_avanzamento_project_ida1', 'type' => 'index', 'fields' => array ( 0 => 'ava_avanzamento_projectproject_ida', ), ), 2 => array ( 'name' => 'ava_avanzamento_project_alt', 'type' => 'alternate_key', 'fields' => array ( 0 => 'ava_avanzamento_projectava_avanzamento_idb', ), ), ), 'lhs_module' => 'Project', 'lhs_table' => 'project', 'lhs_key' => 'id', 'rhs_module' => 'AVA_Avanzamento', 'rhs_table' => 'ava_avanzamento', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'ava_avanzamento_project_c', 'join_key_lhs' => 'ava_avanzamento_projectproject_ida', 'join_key_rhs' => 'ava_avanzamento_projectava_avanzamento_idb', ), 'for_personale_accounts' => array ( 'name' => 'for_personale_accounts', 'true_relationship_type' => 'one-to-many', 'relationships' => array ( 'for_personale_accounts' => array ( 'lhs_module' => 'Accounts', 'lhs_table' => 'accounts', 'lhs_key' => 'id', 'rhs_module' => 'FOR_Personale', 'rhs_table' => 'for_personale', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'for_personale_accounts_c', 'join_key_lhs' => 'for_personale_accountsaccounts_ida', 'join_key_rhs' => 'for_personale_accountsfor_personale_idb', ), ), 'table' => 'for_personale_accounts_c', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => 36, ), 1 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 2 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => true, ), 3 => array ( 'name' => 'for_personale_accountsaccounts_ida', 'type' => 'varchar', 'len' => 36, ), 4 => array ( 'name' => 'for_personale_accountsfor_personale_idb', 'type' => 'varchar', 'len' => 36, ), ), 'indices' => array ( 0 => array ( 'name' => 'for_personale_accountsspk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'for_personale_accounts_ida1', 'type' => 'index', 'fields' => array ( 0 => 'for_personale_accountsaccounts_ida', ), ), 2 => array ( 'name' => 'for_personale_accounts_alt', 'type' => 'alternate_key', 'fields' => array ( 0 => 'for_personale_accountsfor_personale_idb', ), ), ), 'lhs_module' => 'Accounts', 'lhs_table' => 'accounts', 'lhs_key' => 'id', 'rhs_module' => 'FOR_Personale', 'rhs_table' => 'for_personale', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'for_personale_accounts_c', 'join_key_lhs' => 'for_personale_accountsaccounts_ida', 'join_key_rhs' => 'for_personale_accountsfor_personale_idb', ), 'accco_acconti_project' => array ( 'name' => 'accco_acconti_project', 'true_relationship_type' => 'one-to-many', 'relationships' => array ( 'accco_acconti_project' => array ( 'lhs_module' => 'Project', 'lhs_table' => 'project', 'lhs_key' => 'id', 'rhs_module' => 'ACCCO_Acconti', 'rhs_table' => 'accco_acconti', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'accco_acconti_project_c', 'join_key_lhs' => 'accco_acconti_projectproject_ida', 'join_key_rhs' => 'accco_acconti_projectaccco_acconti_idb', ), ), 'table' => 'accco_acconti_project_c', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => 36, ), 1 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 2 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => true, ), 3 => array ( 'name' => 'accco_acconti_projectproject_ida', 'type' => 'varchar', 'len' => 36, ), 4 => array ( 'name' => 'accco_acconti_projectaccco_acconti_idb', 'type' => 'varchar', 'len' => 36, ), ), 'indices' => array ( 0 => array ( 'name' => 'accco_acconti_projectspk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'accco_acconti_project_ida1', 'type' => 'index', 'fields' => array ( 0 => 'accco_acconti_projectproject_ida', ), ), 2 => array ( 'name' => 'accco_acconti_project_alt', 'type' => 'alternate_key', 'fields' => array ( 0 => 'accco_acconti_projectaccco_acconti_idb', ), ), ), 'lhs_module' => 'Project', 'lhs_table' => 'project', 'lhs_key' => 'id', 'rhs_module' => 'ACCCO_Acconti', 'rhs_table' => 'accco_acconti', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'accco_acconti_project_c', 'join_key_lhs' => 'accco_acconti_projectproject_ida', 'join_key_rhs' => 'accco_acconti_projectaccco_acconti_idb', ), 'tsi_scadenziario_contacts' => array ( 'name' => 'tsi_scadenziario_contacts', 'true_relationship_type' => 'one-to-many', 'relationships' => array ( 'tsi_scadenziario_contacts' => array ( 'lhs_module' => 'Contacts', 'lhs_table' => 'contacts', 'lhs_key' => 'id', 'rhs_module' => 'TSI_Scadenziario', 'rhs_table' => 'tsi_scadenziario', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'tsi_scadenziario_contacts_c', 'join_key_lhs' => 'tsi_scadenziario_contactscontacts_ida', 'join_key_rhs' => 'tsi_scadenziario_contactstsi_scadenziario_idb', ), ), 'table' => 'tsi_scadenziario_contacts_c', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => 36, ), 1 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 2 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => true, ), 3 => array ( 'name' => 'tsi_scadenziario_contactscontacts_ida', 'type' => 'varchar', 'len' => 36, ), 4 => array ( 'name' => 'tsi_scadenziario_contactstsi_scadenziario_idb', 'type' => 'varchar', 'len' => 36, ), ), 'indices' => array ( 0 => array ( 'name' => 'tsi_scadenziario_contactsspk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'tsi_scadenziario_contacts_ida1', 'type' => 'index', 'fields' => array ( 0 => 'tsi_scadenziario_contactscontacts_ida', ), ), 2 => array ( 'name' => 'tsi_scadenziario_contacts_alt', 'type' => 'alternate_key', 'fields' => array ( 0 => 'tsi_scadenziario_contactstsi_scadenziario_idb', ), ), ), 'lhs_module' => 'Contacts', 'lhs_table' => 'contacts', 'lhs_key' => 'id', 'rhs_module' => 'TSI_Scadenziario', 'rhs_table' => 'tsi_scadenziario', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'tsi_scadenziario_contacts_c', 'join_key_lhs' => 'tsi_scadenziario_contactscontacts_ida', 'join_key_rhs' => 'tsi_scadenziario_contactstsi_scadenziario_idb', ), 'tsi_scadenziario_accounts' => array ( 'name' => 'tsi_scadenziario_accounts', 'true_relationship_type' => 'one-to-many', 'relationships' => array ( 'tsi_scadenziario_accounts' => array ( 'lhs_module' => 'Accounts', 'lhs_table' => 'accounts', 'lhs_key' => 'id', 'rhs_module' => 'TSI_Scadenziario', 'rhs_table' => 'tsi_scadenziario', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'tsi_scadenziario_accounts_c', 'join_key_lhs' => 'tsi_scadenziario_accountsaccounts_ida', 'join_key_rhs' => 'tsi_scadenziario_accountstsi_scadenziario_idb', ), ), 'table' => 'tsi_scadenziario_accounts_c', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => 36, ), 1 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 2 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => true, ), 3 => array ( 'name' => 'tsi_scadenziario_accountsaccounts_ida', 'type' => 'varchar', 'len' => 36, ), 4 => array ( 'name' => 'tsi_scadenziario_accountstsi_scadenziario_idb', 'type' => 'varchar', 'len' => 36, ), 5 => array ( 'name' => '`billing_address_state`', 'type' => 'varchar', 'len' => 36, ), ), 'indices' => array ( 0 => array ( 'name' => 'tsi_scadenziario_accountsspk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'tsi_scadenziario_accounts_ida1', 'type' => 'index', 'fields' => array ( 0 => 'tsi_scadenziario_accountsaccounts_ida', ), ), 2 => array ( 'name' => 'tsi_scadenziario_accounts_alt', 'type' => 'alternate_key', 'fields' => array ( 0 => 'tsi_scadenziario_accountstsi_scadenziario_idb', ), ), ), 'lhs_module' => 'Accounts', 'lhs_table' => 'accounts', 'lhs_key' => 'id', 'rhs_module' => 'TSI_Scadenziario', 'rhs_table' => 'tsi_scadenziario', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'tsi_scadenziario_accounts_c', 'join_key_lhs' => 'tsi_scadenziario_accountsaccounts_ida', 'join_key_rhs' => 'tsi_scadenziario_accountstsi_scadenziario_idb', ), 'for_corsi_for_partecipazioni' => array ( 'name' => 'for_corsi_for_partecipazioni', 'true_relationship_type' => 'one-to-many', 'relationships' => array ( 'for_corsi_for_partecipazioni' => array ( 'lhs_module' => 'FOR_Corsi', 'lhs_table' => 'for_corsi', 'lhs_key' => 'id', 'rhs_module' => 'FOR_Partecipazioni', 'rhs_table' => 'for_partecipazioni', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'for_corsi_for_partecipazioni_c', 'join_key_lhs' => 'for_corsi_for_partecipazionifor_corsi_ida', 'join_key_rhs' => 'for_corsi_for_partecipazionifor_partecipazioni_idb', ), ), 'table' => 'for_corsi_for_partecipazioni_c', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => 36, ), 1 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 2 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => true, ), 3 => array ( 'name' => 'for_corsi_for_partecipazionifor_corsi_ida', 'type' => 'varchar', 'len' => 36, ), 4 => array ( 'name' => 'for_corsi_for_partecipazionifor_partecipazioni_idb', 'type' => 'varchar', 'len' => 36, ), ), 'indices' => array ( 0 => array ( 'name' => 'for_corsi_for_partecipazionispk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'for_corsi_for_partecipazioni_ida1', 'type' => 'index', 'fields' => array ( 0 => 'for_corsi_for_partecipazionifor_corsi_ida', ), ), 2 => array ( 'name' => 'for_corsi_for_partecipazioni_alt', 'type' => 'alternate_key', 'fields' => array ( 0 => 'for_corsi_for_partecipazionifor_partecipazioni_idb', ), ), ), 'lhs_module' => 'FOR_Corsi', 'lhs_table' => 'for_corsi', 'lhs_key' => 'id', 'rhs_module' => 'FOR_Partecipazioni', 'rhs_table' => 'for_partecipazioni', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'for_corsi_for_partecipazioni_c', 'join_key_lhs' => 'for_corsi_for_partecipazionifor_corsi_ida', 'join_key_rhs' => 'for_corsi_for_partecipazionifor_partecipazioni_idb', ), 'accco_acconti_documents_1' => array ( 'name' => 'accco_acconti_documents_1', 'true_relationship_type' => 'one-to-many', 'from_studio' => true, 'relationships' => array ( 'accco_acconti_documents_1' => array ( 'lhs_module' => 'ACCCO_Acconti', 'lhs_table' => 'accco_acconti', 'lhs_key' => 'id', 'rhs_module' => 'Documents', 'rhs_table' => 'documents', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'accco_acconti_documents_1_c', 'join_key_lhs' => 'accco_acconti_documents_1accco_acconti_ida', 'join_key_rhs' => 'accco_acconti_documents_1documents_idb', ), ), 'table' => 'accco_acconti_documents_1_c', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => 36, ), 1 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 2 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => true, ), 3 => array ( 'name' => 'accco_acconti_documents_1accco_acconti_ida', 'type' => 'varchar', 'len' => 36, ), 4 => array ( 'name' => 'accco_acconti_documents_1documents_idb', 'type' => 'varchar', 'len' => 36, ), 5 => array ( 'name' => 'document_revision_id', 'type' => 'varchar', 'len' => '36', ), ), 'indices' => array ( 0 => array ( 'name' => 'accco_acconti_documents_1spk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'accco_acconti_documents_1_ida1', 'type' => 'index', 'fields' => array ( 0 => 'accco_acconti_documents_1accco_acconti_ida', ), ), 2 => array ( 'name' => 'accco_acconti_documents_1_alt', 'type' => 'alternate_key', 'fields' => array ( 0 => 'accco_acconti_documents_1documents_idb', ), ), ), 'lhs_module' => 'ACCCO_Acconti', 'lhs_table' => 'accco_acconti', 'lhs_key' => 'id', 'rhs_module' => 'Documents', 'rhs_table' => 'documents', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'accco_acconti_documents_1_c', 'join_key_lhs' => 'accco_acconti_documents_1accco_acconti_ida', 'join_key_rhs' => 'accco_acconti_documents_1documents_idb', ), 'for_corsi_for_partecipazioni_1' => array ( 'name' => 'for_corsi_for_partecipazioni_1', 'true_relationship_type' => 'one-to-many', 'from_studio' => true, 'relationships' => array ( 'for_corsi_for_partecipazioni_1' => array ( 'lhs_module' => 'FOR_Corsi', 'lhs_table' => 'for_corsi', 'lhs_key' => 'id', 'rhs_module' => 'FOR_Partecipazioni', 'rhs_table' => 'for_partecipazioni', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'for_corsi_for_partecipazioni_1_c', 'join_key_lhs' => 'for_corsi_for_partecipazioni_1for_corsi_ida', 'join_key_rhs' => 'for_corsi_for_partecipazioni_1for_partecipazioni_idb', ), ), 'table' => 'for_corsi_for_partecipazioni_1_c', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => 36, ), 1 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 2 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => true, ), 3 => array ( 'name' => 'for_corsi_for_partecipazioni_1for_corsi_ida', 'type' => 'varchar', 'len' => 36, ), 4 => array ( 'name' => 'for_corsi_for_partecipazioni_1for_partecipazioni_idb', 'type' => 'varchar', 'len' => 36, ), ), 'indices' => array ( 0 => array ( 'name' => 'for_corsi_for_partecipazioni_1spk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'for_corsi_for_partecipazioni_1_ida1', 'type' => 'index', 'fields' => array ( 0 => 'for_corsi_for_partecipazioni_1for_corsi_ida', ), ), 2 => array ( 'name' => 'for_corsi_for_partecipazioni_1_alt', 'type' => 'alternate_key', 'fields' => array ( 0 => 'for_corsi_for_partecipazioni_1for_partecipazioni_idb', ), ), ), 'lhs_module' => 'FOR_Corsi', 'lhs_table' => 'for_corsi', 'lhs_key' => 'id', 'rhs_module' => 'FOR_Partecipazioni', 'rhs_table' => 'for_partecipazioni', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'for_corsi_for_partecipazioni_1_c', 'join_key_lhs' => 'for_corsi_for_partecipazioni_1for_corsi_ida', 'join_key_rhs' => 'for_corsi_for_partecipazioni_1for_partecipazioni_idb', ), 'for_corsi_effet_for_corsi' => array ( 'name' => 'for_corsi_effet_for_corsi', 'true_relationship_type' => 'one-to-many', 'relationships' => array ( 'for_corsi_effet_for_corsi' => array ( 'lhs_module' => 'FOR_Corsi', 'lhs_table' => 'for_corsi', 'lhs_key' => 'id', 'rhs_module' => 'FOR_Corsi_effet', 'rhs_table' => 'for_corsi_effet', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'for_corsi_effet_for_corsi_c', 'join_key_lhs' => 'for_corsi_effet_for_corsifor_corsi_ida', 'join_key_rhs' => 'for_corsi_effet_for_corsifor_corsi_effet_idb', ), ), 'table' => 'for_corsi_effet_for_corsi_c', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => 36, ), 1 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 2 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => true, ), 3 => array ( 'name' => 'for_corsi_effet_for_corsifor_corsi_ida', 'type' => 'varchar', 'len' => 36, ), 4 => array ( 'name' => 'for_corsi_effet_for_corsifor_corsi_effet_idb', 'type' => 'varchar', 'len' => 36, ), ), 'indices' => array ( 0 => array ( 'name' => 'for_corsi_effet_for_corsispk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'for_corsi_effet_for_corsi_ida1', 'type' => 'index', 'fields' => array ( 0 => 'for_corsi_effet_for_corsifor_corsi_ida', ), ), 2 => array ( 'name' => 'for_corsi_effet_for_corsi_alt', 'type' => 'alternate_key', 'fields' => array ( 0 => 'for_corsi_effet_for_corsifor_corsi_effet_idb', ), ), ), 'lhs_module' => 'FOR_Corsi', 'lhs_table' => 'for_corsi', 'lhs_key' => 'id', 'rhs_module' => 'FOR_Corsi_effet', 'rhs_table' => 'for_corsi_effet', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'for_corsi_effet_for_corsi_c', 'join_key_lhs' => 'for_corsi_effet_for_corsifor_corsi_ida', 'join_key_rhs' => 'for_corsi_effet_for_corsifor_corsi_effet_idb', ), 'for_partecipazioni_accounts' => array ( 'name' => 'for_partecipazioni_accounts', 'true_relationship_type' => 'one-to-many', 'relationships' => array ( 'for_partecipazioni_accounts' => array ( 'lhs_module' => 'FOR_Partecipazioni', 'lhs_table' => 'for_partecipazioni', 'lhs_key' => 'id', 'rhs_module' => 'Accounts', 'rhs_table' => 'accounts', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'for_partecipazioni_accounts_c', 'join_key_lhs' => 'for_partecipazioni_accountsfor_partecipazioni_ida', 'join_key_rhs' => 'for_partecipazioni_accountsaccounts_idb', ), ), 'table' => 'for_partecipazioni_accounts_c', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'varchar', 'len' => 36, ), 1 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 2 => array ( 'name' => 'deleted', 'type' => 'bool', 'len' => '1', 'default' => '0', 'required' => true, ), 3 => array ( 'name' => 'for_partecipazioni_accountsfor_partecipazioni_ida', 'type' => 'varchar', 'len' => 36, ), 4 => array ( 'name' => 'for_partecipazioni_accountsaccounts_idb', 'type' => 'varchar', 'len' => 36, ), ), 'indices' => array ( 0 => array ( 'name' => 'for_partecipazioni_accountsspk', 'type' => 'primary', 'fields' => array ( 0 => 'id', ), ), 1 => array ( 'name' => 'for_partecipazioni_accounts_ida1', 'type' => 'index', 'fields' => array ( 0 => 'for_partecipazioni_accountsfor_partecipazioni_ida', ), ), 2 => array ( 'name' => 'for_partecipazioni_accounts_alt', 'type' => 'alternate_key', 'fields' => array ( 0 => 'for_partecipazioni_accountsaccounts_idb', ), ), ), 'lhs_module' => 'FOR_Partecipazioni', 'lhs_table' => 'for_partecipazioni', 'lhs_key' => 'id', 'rhs_module' => 'Accounts', 'rhs_table' => 'accounts', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'for_partecipazioni_accounts_c', 'join_key_lhs' => 'for_partecipazioni_accountsfor_partecipazioni_ida', 'join_key_rhs' => 'for_partecipazioni_accountsaccounts_idb', ), 'user_direct_reports' => array ( 'name' => 'user_direct_reports', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Users', 'rhs_table' => 'users', 'rhs_key' => 'reports_to_id', 'relationship_type' => 'one-to-many', ), 'users_users_signatures' => array ( 'name' => 'users_users_signatures', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'UserSignature', 'rhs_table' => 'users_signatures', 'rhs_key' => 'user_id', 'relationship_type' => 'one-to-many', ), 'users_email_addresses' => array ( 'name' => 'users_email_addresses', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'EmailAddresses', 'rhs_table' => 'email_addresses', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'email_addr_bean_rel', 'join_key_lhs' => 'bean_id', 'join_key_rhs' => 'email_address_id', 'relationship_role_column' => 'bean_module', 'relationship_role_column_value' => 'Users', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'id', 'required' => true, ), 1 => array ( 'name' => 'email_address_id', 'type' => 'id', 'required' => true, ), 2 => array ( 'name' => 'bean_id', 'type' => 'id', 'required' => true, ), 3 => array ( 'name' => 'bean_module', 'type' => 'varchar', 'len' => 100, 'required' => true, ), 4 => array ( 'name' => 'primary_address', 'type' => 'bool', 'default' => '0', ), 5 => array ( 'name' => 'reply_to_address', 'type' => 'bool', 'default' => '0', ), 6 => array ( 'name' => 'date_created', 'type' => 'datetime', ), 7 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 8 => array ( 'name' => 'deleted', 'type' => 'bool', 'default' => 0, ), ), ), 'users_email_addresses_primary' => array ( 'name' => 'users_email_addresses_primary', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'EmailAddresses', 'rhs_table' => 'email_addresses', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'email_addr_bean_rel', 'join_key_lhs' => 'bean_id', 'join_key_rhs' => 'email_address_id', 'relationship_role_column' => 'primary_address', 'relationship_role_column_value' => '1', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'id', 'required' => true, ), 1 => array ( 'name' => 'email_address_id', 'type' => 'id', 'required' => true, ), 2 => array ( 'name' => 'bean_id', 'type' => 'id', 'required' => true, ), 3 => array ( 'name' => 'bean_module', 'type' => 'varchar', 'len' => 100, 'required' => true, ), 4 => array ( 'name' => 'primary_address', 'type' => 'bool', 'default' => '0', ), 5 => array ( 'name' => 'reply_to_address', 'type' => 'bool', 'default' => '0', ), 6 => array ( 'name' => 'date_created', 'type' => 'datetime', ), 7 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 8 => array ( 'name' => 'deleted', 'type' => 'bool', 'default' => 0, ), ), ), 'leads_modified_user' => array ( 'name' => 'leads_modified_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Leads', 'rhs_table' => 'leads', 'rhs_key' => 'modified_user_id', 'relationship_type' => 'one-to-many', ), 'leads_created_by' => array ( 'name' => 'leads_created_by', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Leads', 'rhs_table' => 'leads', 'rhs_key' => 'created_by', 'relationship_type' => 'one-to-many', ), 'leads_assigned_user' => array ( 'name' => 'leads_assigned_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Leads', 'rhs_table' => 'leads', 'rhs_key' => 'assigned_user_id', 'relationship_type' => 'one-to-many', ), 'leads_email_addresses' => array ( 'name' => 'leads_email_addresses', 'lhs_module' => 'Leads', 'lhs_table' => 'leads', 'lhs_key' => 'id', 'rhs_module' => 'EmailAddresses', 'rhs_table' => 'email_addresses', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'email_addr_bean_rel', 'join_key_lhs' => 'bean_id', 'join_key_rhs' => 'email_address_id', 'relationship_role_column' => 'bean_module', 'relationship_role_column_value' => 'Leads', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'id', 'required' => true, ), 1 => array ( 'name' => 'email_address_id', 'type' => 'id', 'required' => true, ), 2 => array ( 'name' => 'bean_id', 'type' => 'id', 'required' => true, ), 3 => array ( 'name' => 'bean_module', 'type' => 'varchar', 'len' => 100, 'required' => true, ), 4 => array ( 'name' => 'primary_address', 'type' => 'bool', 'default' => '0', ), 5 => array ( 'name' => 'reply_to_address', 'type' => 'bool', 'default' => '0', ), 6 => array ( 'name' => 'date_created', 'type' => 'datetime', ), 7 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 8 => array ( 'name' => 'deleted', 'type' => 'bool', 'default' => 0, ), ), ), 'leads_email_addresses_primary' => array ( 'name' => 'leads_email_addresses_primary', 'lhs_module' => 'Leads', 'lhs_table' => 'leads', 'lhs_key' => 'id', 'rhs_module' => 'EmailAddresses', 'rhs_table' => 'email_addresses', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'email_addr_bean_rel', 'join_key_lhs' => 'bean_id', 'join_key_rhs' => 'email_address_id', 'relationship_role_column' => 'primary_address', 'relationship_role_column_value' => '1', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'id', 'required' => true, ), 1 => array ( 'name' => 'email_address_id', 'type' => 'id', 'required' => true, ), 2 => array ( 'name' => 'bean_id', 'type' => 'id', 'required' => true, ), 3 => array ( 'name' => 'bean_module', 'type' => 'varchar', 'len' => 100, 'required' => true, ), 4 => array ( 'name' => 'primary_address', 'type' => 'bool', 'default' => '0', ), 5 => array ( 'name' => 'reply_to_address', 'type' => 'bool', 'default' => '0', ), 6 => array ( 'name' => 'date_created', 'type' => 'datetime', ), 7 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 8 => array ( 'name' => 'deleted', 'type' => 'bool', 'default' => 0, ), ), ), 'lead_direct_reports' => array ( 'name' => 'lead_direct_reports', 'lhs_module' => 'Leads', 'lhs_table' => 'leads', 'lhs_key' => 'id', 'rhs_module' => 'Leads', 'rhs_table' => 'leads', 'rhs_key' => 'reports_to_id', 'relationship_type' => 'one-to-many', ), 'lead_tasks' => array ( 'name' => 'lead_tasks', 'lhs_module' => 'Leads', 'lhs_table' => 'leads', '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' => 'Leads', ), 'lead_notes' => array ( 'name' => 'lead_notes', 'lhs_module' => 'Leads', 'lhs_table' => 'leads', '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' => 'Leads', ), 'lead_meetings' => array ( 'name' => 'lead_meetings', 'lhs_module' => 'Leads', 'lhs_table' => 'leads', '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' => 'Leads', ), 'lead_calls' => array ( 'name' => 'lead_calls', 'lhs_module' => 'Leads', 'lhs_table' => 'leads', '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' => 'Leads', ), 'lead_emails' => array ( 'name' => 'lead_emails', 'lhs_module' => 'Leads', 'lhs_table' => 'leads', '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' => 'Leads', ), 'lead_campaign_log' => array ( 'name' => 'lead_campaign_log', 'lhs_module' => 'Leads', 'lhs_table' => 'leads', 'lhs_key' => 'id', 'rhs_module' => 'CampaignLog', 'rhs_table' => 'campaign_log', 'rhs_key' => 'target_id', 'relationship_type' => 'one-to-many', ), 'cases_modified_user' => array ( 'name' => 'cases_modified_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Cases', 'rhs_table' => 'cases', 'rhs_key' => 'modified_user_id', 'relationship_type' => 'one-to-many', ), 'cases_created_by' => array ( 'name' => 'cases_created_by', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Cases', 'rhs_table' => 'cases', 'rhs_key' => 'created_by', 'relationship_type' => 'one-to-many', ), 'cases_assigned_user' => array ( 'name' => 'cases_assigned_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Cases', 'rhs_table' => 'cases', 'rhs_key' => 'assigned_user_id', 'relationship_type' => 'one-to-many', ), 'case_calls' => array ( 'name' => 'case_calls', 'lhs_module' => 'Cases', 'lhs_table' => 'cases', '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' => 'Cases', ), 'case_tasks' => array ( 'name' => 'case_tasks', 'lhs_module' => 'Cases', 'lhs_table' => 'cases', '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' => 'Cases', ), 'case_notes' => array ( 'name' => 'case_notes', 'lhs_module' => 'Cases', 'lhs_table' => 'cases', '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' => 'Cases', ), 'case_meetings' => array ( 'name' => 'case_meetings', 'lhs_module' => 'Cases', 'lhs_table' => 'cases', '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' => 'Cases', ), 'case_emails' => array ( 'name' => 'case_emails', 'lhs_module' => 'Cases', 'lhs_table' => 'cases', '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' => 'Cases', ), 'bugs_modified_user' => array ( 'name' => 'bugs_modified_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Bugs', 'rhs_table' => 'bugs', 'rhs_key' => 'modified_user_id', 'relationship_type' => 'one-to-many', ), 'bugs_created_by' => array ( 'name' => 'bugs_created_by', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Bugs', 'rhs_table' => 'bugs', 'rhs_key' => 'created_by', 'relationship_type' => 'one-to-many', ), 'bugs_assigned_user' => array ( 'name' => 'bugs_assigned_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Bugs', 'rhs_table' => 'bugs', 'rhs_key' => 'assigned_user_id', 'relationship_type' => 'one-to-many', ), 'bug_tasks' => array ( 'name' => 'bug_tasks', 'lhs_module' => 'Bugs', 'lhs_table' => 'bugs', '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' => 'Bugs', ), 'bug_meetings' => array ( 'name' => 'bug_meetings', 'lhs_module' => 'Bugs', 'lhs_table' => 'bugs', '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' => 'Bugs', ), 'bug_calls' => array ( 'name' => 'bug_calls', 'lhs_module' => 'Bugs', 'lhs_table' => 'bugs', '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' => 'Bugs', ), 'bug_emails' => array ( 'name' => 'bug_emails', 'lhs_module' => 'Bugs', 'lhs_table' => 'bugs', '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' => 'Bugs', ), 'bug_notes' => array ( 'name' => 'bug_notes', 'lhs_module' => 'Bugs', 'lhs_table' => 'bugs', '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' => 'Bugs', ), 'bugs_release' => array ( 'name' => 'bugs_release', 'lhs_module' => 'Releases', 'lhs_table' => 'releases', 'lhs_key' => 'id', 'rhs_module' => 'Bugs', 'rhs_table' => 'bugs', 'rhs_key' => 'found_in_release', 'relationship_type' => 'one-to-many', ), 'bugs_fixed_in_release' => array ( 'name' => 'bugs_fixed_in_release', 'lhs_module' => 'Releases', 'lhs_table' => 'releases', 'lhs_key' => 'id', 'rhs_module' => 'Bugs', 'rhs_table' => 'bugs', 'rhs_key' => 'fixed_in_release', 'relationship_type' => 'one-to-many', ), 'prospectlists_assigned_user' => array ( 'name' => 'prospectlists_assigned_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'prospectlists', 'rhs_table' => 'prospect_lists', 'rhs_key' => 'assigned_user_id', 'relationship_type' => 'one-to-many', ), 'prospects_modified_user' => array ( 'name' => 'prospects_modified_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Prospects', 'rhs_table' => 'prospects', 'rhs_key' => 'modified_user_id', 'relationship_type' => 'one-to-many', ), 'prospects_created_by' => array ( 'name' => 'prospects_created_by', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Prospects', 'rhs_table' => 'prospects', 'rhs_key' => 'created_by', 'relationship_type' => 'one-to-many', ), 'prospects_assigned_user' => array ( 'name' => 'prospects_assigned_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Prospects', 'rhs_table' => 'prospects', 'rhs_key' => 'assigned_user_id', 'relationship_type' => 'one-to-many', ), 'prospects_email_addresses' => array ( 'name' => 'prospects_email_addresses', 'lhs_module' => 'Prospects', 'lhs_table' => 'prospects', 'lhs_key' => 'id', 'rhs_module' => 'EmailAddresses', 'rhs_table' => 'email_addresses', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'email_addr_bean_rel', 'join_key_lhs' => 'bean_id', 'join_key_rhs' => 'email_address_id', 'relationship_role_column' => 'bean_module', 'relationship_role_column_value' => 'Prospects', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'id', 'required' => true, ), 1 => array ( 'name' => 'email_address_id', 'type' => 'id', 'required' => true, ), 2 => array ( 'name' => 'bean_id', 'type' => 'id', 'required' => true, ), 3 => array ( 'name' => 'bean_module', 'type' => 'varchar', 'len' => 100, 'required' => true, ), 4 => array ( 'name' => 'primary_address', 'type' => 'bool', 'default' => '0', ), 5 => array ( 'name' => 'reply_to_address', 'type' => 'bool', 'default' => '0', ), 6 => array ( 'name' => 'date_created', 'type' => 'datetime', ), 7 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 8 => array ( 'name' => 'deleted', 'type' => 'bool', 'default' => 0, ), ), ), 'prospects_email_addresses_primary' => array ( 'name' => 'prospects_email_addresses_primary', 'lhs_module' => 'Prospects', 'lhs_table' => 'prospects', 'lhs_key' => 'id', 'rhs_module' => 'EmailAddresses', 'rhs_table' => 'email_addresses', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'email_addr_bean_rel', 'join_key_lhs' => 'bean_id', 'join_key_rhs' => 'email_address_id', 'relationship_role_column' => 'primary_address', 'relationship_role_column_value' => '1', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'id', 'required' => true, ), 1 => array ( 'name' => 'email_address_id', 'type' => 'id', 'required' => true, ), 2 => array ( 'name' => 'bean_id', 'type' => 'id', 'required' => true, ), 3 => array ( 'name' => 'bean_module', 'type' => 'varchar', 'len' => 100, 'required' => true, ), 4 => array ( 'name' => 'primary_address', 'type' => 'bool', 'default' => '0', ), 5 => array ( 'name' => 'reply_to_address', 'type' => 'bool', 'default' => '0', ), 6 => array ( 'name' => 'date_created', 'type' => 'datetime', ), 7 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 8 => array ( 'name' => 'deleted', 'type' => 'bool', 'default' => 0, ), ), ), 'prospect_tasks' => array ( 'name' => 'prospect_tasks', 'lhs_module' => 'Prospects', 'lhs_table' => 'prospects', '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' => 'Prospects', ), 'prospect_notes' => array ( 'name' => 'prospect_notes', 'lhs_module' => 'Prospects', 'lhs_table' => 'prospects', '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' => 'Prospects', ), 'prospect_meetings' => array ( 'name' => 'prospect_meetings', 'lhs_module' => 'Prospects', 'lhs_table' => 'prospects', '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' => 'Prospects', ), 'prospect_calls' => array ( 'name' => 'prospect_calls', 'lhs_module' => 'Prospects', 'lhs_table' => 'prospects', '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' => 'Prospects', ), 'prospect_emails' => array ( 'name' => 'prospect_emails', 'lhs_module' => 'Prospects', 'lhs_table' => 'prospects', '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' => 'Prospects', ), 'prospect_campaign_log' => array ( 'name' => 'prospect_campaign_log', 'lhs_module' => 'Prospects', 'lhs_table' => 'prospects', 'lhs_key' => 'id', 'rhs_module' => 'CampaignLog', 'rhs_table' => 'campaign_log', 'rhs_key' => 'target_id', 'relationship_type' => 'one-to-many', ), 'projects_notes' => array ( 'name' => 'projects_notes', 'lhs_module' => 'Project', 'lhs_table' => 'project', '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' => 'Project', ), 'projects_tasks' => array ( 'name' => 'projects_tasks', 'lhs_module' => 'Project', 'lhs_table' => 'project', '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' => 'Project', ), 'projects_meetings' => array ( 'name' => 'projects_meetings', 'lhs_module' => 'Project', 'lhs_table' => 'project', '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' => 'Project', ), 'projects_calls' => array ( 'name' => 'projects_calls', 'lhs_module' => 'Project', 'lhs_table' => 'project', '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' => 'Project', ), 'projects_emails' => array ( 'name' => 'projects_emails', 'lhs_module' => 'Project', 'lhs_table' => 'project', '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' => 'Project', ), 'projects_project_tasks' => array ( 'name' => 'projects_project_tasks', 'lhs_module' => 'Project', 'lhs_table' => 'project', 'lhs_key' => 'id', 'rhs_module' => 'ProjectTask', 'rhs_table' => 'project_task', 'rhs_key' => 'project_id', 'relationship_type' => 'one-to-many', ), 'projects_assigned_user' => array ( 'name' => 'projects_assigned_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Project', 'rhs_table' => 'project', 'rhs_key' => 'assigned_user_id', 'relationship_type' => 'one-to-many', ), 'projects_modified_user' => array ( 'name' => 'projects_modified_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Project', 'rhs_table' => 'project', 'rhs_key' => 'modified_user_id', 'relationship_type' => 'one-to-many', ), 'projects_created_by' => array ( 'name' => 'projects_created_by', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Project', 'rhs_table' => 'project', 'rhs_key' => 'created_by', 'relationship_type' => 'one-to-many', ), 'project_tasks_notes' => array ( 'name' => 'project_tasks_notes', 'lhs_module' => 'ProjectTask', 'lhs_table' => 'project_task', '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' => 'ProjectTask', ), 'project_tasks_tasks' => array ( 'name' => 'project_tasks_tasks', 'lhs_module' => 'ProjectTask', 'lhs_table' => 'project_task', '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' => 'ProjectTask', ), 'project_tasks_meetings' => array ( 'name' => 'project_tasks_meetings', 'lhs_module' => 'ProjectTask', 'lhs_table' => 'project_task', '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' => 'ProjectTask', ), 'project_tasks_calls' => array ( 'name' => 'project_tasks_calls', 'lhs_module' => 'ProjectTask', 'lhs_table' => 'project_task', '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' => 'ProjectTask', ), 'project_tasks_emails' => array ( 'name' => 'project_tasks_emails', 'lhs_module' => 'ProjectTask', 'lhs_table' => 'project_task', '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' => 'ProjectTask', ), 'project_tasks_assigned_user' => array ( 'name' => 'project_tasks_assigned_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'ProjectTask', 'rhs_table' => 'project_task', 'rhs_key' => 'assigned_user_id', 'relationship_type' => 'one-to-many', ), 'project_tasks_modified_user' => array ( 'name' => 'project_tasks_modified_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'ProjectTask', 'rhs_table' => 'project_task', 'rhs_key' => 'modified_user_id', 'relationship_type' => 'one-to-many', ), 'project_tasks_created_by' => array ( 'name' => 'project_tasks_created_by', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'ProjectTask', 'rhs_table' => 'project_task', 'rhs_key' => 'created_by', 'relationship_type' => 'one-to-many', ), 'campaigns_modified_user' => array ( 'name' => 'campaigns_modified_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Campaigns', 'rhs_table' => 'campaigns', 'rhs_key' => 'modified_user_id', 'relationship_type' => 'one-to-many', ), 'campaigns_created_by' => array ( 'name' => 'campaigns_created_by', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Campaigns', 'rhs_table' => 'campaigns', 'rhs_key' => 'created_by', 'relationship_type' => 'one-to-many', ), 'campaigns_assigned_user' => array ( 'name' => 'campaigns_assigned_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Campaigns', 'rhs_table' => 'campaigns', 'rhs_key' => 'assigned_user_id', 'relationship_type' => 'one-to-many', ), 'campaign_accounts' => array ( 'name' => 'campaign_accounts', 'lhs_module' => 'Campaigns', 'lhs_table' => 'campaigns', 'lhs_key' => 'id', 'rhs_module' => 'Accounts', 'rhs_table' => 'accounts', 'rhs_key' => 'campaign_id', 'relationship_type' => 'one-to-many', ), 'campaign_contacts' => array ( 'name' => 'campaign_contacts', 'lhs_module' => 'Campaigns', 'lhs_table' => 'campaigns', 'lhs_key' => 'id', 'rhs_module' => 'Contacts', 'rhs_table' => 'contacts', 'rhs_key' => 'campaign_id', 'relationship_type' => 'one-to-many', ), 'campaign_leads' => array ( 'name' => 'campaign_leads', 'lhs_module' => 'Campaigns', 'lhs_table' => 'campaigns', 'lhs_key' => 'id', 'rhs_module' => 'Leads', 'rhs_table' => 'leads', 'rhs_key' => 'campaign_id', 'relationship_type' => 'one-to-many', ), 'campaign_prospects' => array ( 'name' => 'campaign_prospects', 'lhs_module' => 'Campaigns', 'lhs_table' => 'campaigns', 'lhs_key' => 'id', 'rhs_module' => 'Prospects', 'rhs_table' => 'prospects', 'rhs_key' => 'campaign_id', 'relationship_type' => 'one-to-many', ), 'campaign_opportunities' => array ( 'name' => 'campaign_opportunities', 'lhs_module' => 'Campaigns', 'lhs_table' => 'campaigns', 'lhs_key' => 'id', 'rhs_module' => 'Opportunities', 'rhs_table' => 'opportunities', 'rhs_key' => 'campaign_id', 'relationship_type' => 'one-to-many', ), 'campaign_email_marketing' => array ( 'name' => 'campaign_email_marketing', 'lhs_module' => 'Campaigns', 'lhs_table' => 'campaigns', 'lhs_key' => 'id', 'rhs_module' => 'EmailMarketing', 'rhs_table' => 'email_marketing', 'rhs_key' => 'campaign_id', 'relationship_type' => 'one-to-many', ), 'campaign_emailman' => array ( 'name' => 'campaign_emailman', 'lhs_module' => 'Campaigns', 'lhs_table' => 'campaigns', 'lhs_key' => 'id', 'rhs_module' => 'EmailMan', 'rhs_table' => 'emailman', 'rhs_key' => 'campaign_id', 'relationship_type' => 'one-to-many', ), 'campaign_campaignlog' => array ( 'name' => 'campaign_campaignlog', 'lhs_module' => 'Campaigns', 'lhs_table' => 'campaigns', 'lhs_key' => 'id', 'rhs_module' => 'CampaignLog', 'rhs_table' => 'campaign_log', 'rhs_key' => 'campaign_id', 'relationship_type' => 'one-to-many', ), 'campaign_assigned_user' => array ( 'name' => 'campaign_assigned_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Campaigns', 'rhs_table' => 'campaigns', 'rhs_key' => 'assigned_user_id', 'relationship_type' => 'one-to-many', ), 'campaign_modified_user' => array ( 'name' => 'campaign_modified_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Campaigns', 'rhs_table' => 'campaigns', 'rhs_key' => 'modified_user_id', 'relationship_type' => 'one-to-many', ), 'email_template_email_marketings' => array ( 'name' => 'email_template_email_marketings', 'lhs_module' => 'EmailTemplates', 'lhs_table' => 'email_templates', 'lhs_key' => 'id', 'rhs_module' => 'EmailMarketing', 'rhs_table' => 'email_marketing', 'rhs_key' => 'template_id', 'relationship_type' => 'one-to-many', ), 'campaignlog_contact' => array ( 'name' => 'campaignlog_contact', 'lhs_module' => 'CampaignLog', 'lhs_table' => 'campaign_log', 'lhs_key' => 'related_id', 'rhs_module' => 'Contacts', 'rhs_table' => 'contacts', 'rhs_key' => 'id', 'relationship_type' => 'one-to-many', ), 'campaignlog_lead' => array ( 'name' => 'campaignlog_lead', 'lhs_module' => 'CampaignLog', 'lhs_table' => 'campaign_log', 'lhs_key' => 'related_id', 'rhs_module' => 'Leads', 'rhs_table' => 'leads', 'rhs_key' => 'id', 'relationship_type' => 'one-to-many', ), 'campaignlog_created_opportunities' => array ( 'name' => 'campaignlog_created_opportunities', 'lhs_module' => 'CampaignLog', 'lhs_table' => 'campaign_log', 'lhs_key' => 'related_id', 'rhs_module' => 'Opportunities', 'rhs_table' => 'opportunities', 'rhs_key' => 'id', 'relationship_type' => 'one-to-many', ), 'campaignlog_targeted_users' => array ( 'name' => 'campaignlog_targeted_users', 'lhs_module' => 'CampaignLog', 'lhs_table' => 'campaign_log', 'lhs_key' => 'target_id', 'rhs_module' => 'Users', 'rhs_table' => 'users', 'rhs_key' => 'id', 'relationship_type' => 'one-to-many', ), 'campaignlog_sent_emails' => array ( 'name' => 'campaignlog_sent_emails', 'lhs_module' => 'CampaignLog', 'lhs_table' => 'campaign_log', 'lhs_key' => 'related_id', 'rhs_module' => 'Emails', 'rhs_table' => 'emails', 'rhs_key' => 'id', 'relationship_type' => 'one-to-many', ), 'campaign_campaigntrakers' => array ( 'name' => 'campaign_campaigntrakers', 'lhs_module' => 'Campaigns', 'lhs_table' => 'campaigns', 'lhs_key' => 'id', 'rhs_module' => 'CampaignTrackers', 'rhs_table' => 'campaign_trkrs', 'rhs_key' => 'campaign_id', 'relationship_type' => 'one-to-many', ), 'schedulers_created_by_rel' => array ( 'name' => 'schedulers_created_by_rel', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Schedulers', 'rhs_table' => 'schedulers', 'rhs_key' => 'created_by', 'relationship_type' => 'one-to-one', ), 'schedulers_modified_user_id_rel' => array ( 'name' => 'schedulers_modified_user_id_rel', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Schedulers', 'rhs_table' => 'schedulers', 'rhs_key' => 'modified_user_id', 'relationship_type' => 'one-to-many', ), 'schedulers_jobs_rel' => array ( 'name' => 'schedulers_jobs_rel', 'lhs_module' => 'Schedulers', 'lhs_table' => 'schedulers', 'lhs_key' => 'id', 'rhs_module' => 'SchedulersJobs', 'rhs_table' => 'job_queue', 'rhs_key' => 'scheduler_id', 'relationship_type' => 'one-to-many', ), 'schedulersjobs_assigned_user' => array ( 'name' => 'schedulersjobs_assigned_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'SchedulersJobs', 'rhs_table' => 'schedulersjobs', 'rhs_key' => 'assigned_user_id', 'relationship_type' => 'one-to-many', ), 'contacts_modified_user' => array ( 'name' => 'contacts_modified_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Contacts', 'rhs_table' => 'contacts', 'rhs_key' => 'modified_user_id', 'relationship_type' => 'one-to-many', ), 'contacts_created_by' => array ( 'name' => 'contacts_created_by', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Contacts', 'rhs_table' => 'contacts', 'rhs_key' => 'created_by', 'relationship_type' => 'one-to-many', ), 'contacts_assigned_user' => array ( 'name' => 'contacts_assigned_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Contacts', 'rhs_table' => 'contacts', 'rhs_key' => 'assigned_user_id', 'relationship_type' => 'one-to-many', ), 'contacts_email_addresses' => array ( 'name' => 'contacts_email_addresses', 'lhs_module' => 'Contacts', 'lhs_table' => 'contacts', 'lhs_key' => 'id', 'rhs_module' => 'EmailAddresses', 'rhs_table' => 'email_addresses', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'email_addr_bean_rel', 'join_key_lhs' => 'bean_id', 'join_key_rhs' => 'email_address_id', 'relationship_role_column' => 'bean_module', 'relationship_role_column_value' => 'Contacts', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'id', 'required' => true, ), 1 => array ( 'name' => 'email_address_id', 'type' => 'id', 'required' => true, ), 2 => array ( 'name' => 'bean_id', 'type' => 'id', 'required' => true, ), 3 => array ( 'name' => 'bean_module', 'type' => 'varchar', 'len' => 100, 'required' => true, ), 4 => array ( 'name' => 'primary_address', 'type' => 'bool', 'default' => '0', ), 5 => array ( 'name' => 'reply_to_address', 'type' => 'bool', 'default' => '0', ), 6 => array ( 'name' => 'date_created', 'type' => 'datetime', ), 7 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 8 => array ( 'name' => 'deleted', 'type' => 'bool', 'default' => 0, ), ), ), 'contacts_email_addresses_primary' => array ( 'name' => 'contacts_email_addresses_primary', 'lhs_module' => 'Contacts', 'lhs_table' => 'contacts', 'lhs_key' => 'id', 'rhs_module' => 'EmailAddresses', 'rhs_table' => 'email_addresses', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'email_addr_bean_rel', 'join_key_lhs' => 'bean_id', 'join_key_rhs' => 'email_address_id', 'relationship_role_column' => 'primary_address', 'relationship_role_column_value' => '1', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'id', 'required' => true, ), 1 => array ( 'name' => 'email_address_id', 'type' => 'id', 'required' => true, ), 2 => array ( 'name' => 'bean_id', 'type' => 'id', 'required' => true, ), 3 => array ( 'name' => 'bean_module', 'type' => 'varchar', 'len' => 100, 'required' => true, ), 4 => array ( 'name' => 'primary_address', 'type' => 'bool', 'default' => '0', ), 5 => array ( 'name' => 'reply_to_address', 'type' => 'bool', 'default' => '0', ), 6 => array ( 'name' => 'date_created', 'type' => 'datetime', ), 7 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 8 => array ( 'name' => 'deleted', 'type' => 'bool', 'default' => 0, ), ), ), 'contact_direct_reports' => array ( 'name' => 'contact_direct_reports', 'lhs_module' => 'Contacts', 'lhs_table' => 'contacts', 'lhs_key' => 'id', 'rhs_module' => 'Contacts', 'rhs_table' => 'contacts', 'rhs_key' => 'reports_to_id', 'relationship_type' => 'one-to-many', ), 'contact_leads' => array ( 'name' => 'contact_leads', 'lhs_module' => 'Contacts', 'lhs_table' => 'contacts', 'lhs_key' => 'id', 'rhs_module' => 'Leads', 'rhs_table' => 'leads', 'rhs_key' => 'contact_id', 'relationship_type' => 'one-to-many', ), 'contact_notes' => array ( 'name' => 'contact_notes', 'lhs_module' => 'Contacts', 'lhs_table' => 'contacts', 'lhs_key' => 'id', 'rhs_module' => 'Notes', 'rhs_table' => 'notes', 'rhs_key' => 'contact_id', 'relationship_type' => 'one-to-many', ), 'contact_tasks' => array ( 'name' => 'contact_tasks', 'lhs_module' => 'Contacts', 'lhs_table' => 'contacts', 'lhs_key' => 'id', 'rhs_module' => 'Tasks', 'rhs_table' => 'tasks', 'rhs_key' => 'contact_id', 'relationship_type' => 'one-to-many', ), 'contact_tasks_parent' => array ( 'name' => 'contact_tasks_parent', 'lhs_module' => 'Contacts', 'lhs_table' => 'contacts', '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' => 'Contacts', ), 'contact_campaign_log' => array ( 'name' => 'contact_campaign_log', 'lhs_module' => 'Contacts', 'lhs_table' => 'contacts', 'lhs_key' => 'id', 'rhs_module' => 'CampaignLog', 'rhs_table' => 'campaign_log', 'rhs_key' => 'target_id', 'relationship_type' => 'one-to-many', ), 'accounts_modified_user' => array ( 'name' => 'accounts_modified_user', '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 ( 'name' => 'accounts_created_by', '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 ( 'name' => 'accounts_assigned_user', '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' => array ( 'name' => 'accounts_email_addresses', 'lhs_module' => 'Accounts', 'lhs_table' => 'accounts', 'lhs_key' => 'id', 'rhs_module' => 'EmailAddresses', 'rhs_table' => 'email_addresses', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'email_addr_bean_rel', 'join_key_lhs' => 'bean_id', 'join_key_rhs' => 'email_address_id', 'relationship_role_column' => 'bean_module', 'relationship_role_column_value' => 'Accounts', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'id', 'required' => true, ), 1 => array ( 'name' => 'email_address_id', 'type' => 'id', 'required' => true, ), 2 => array ( 'name' => 'bean_id', 'type' => 'id', 'required' => true, ), 3 => array ( 'name' => 'bean_module', 'type' => 'varchar', 'len' => 100, 'required' => true, ), 4 => array ( 'name' => 'primary_address', 'type' => 'bool', 'default' => '0', ), 5 => array ( 'name' => 'reply_to_address', 'type' => 'bool', 'default' => '0', ), 6 => array ( 'name' => 'date_created', 'type' => 'datetime', ), 7 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 8 => array ( 'name' => 'deleted', 'type' => 'bool', 'default' => 0, ), ), ), 'accounts_email_addresses_primary' => array ( 'name' => 'accounts_email_addresses_primary', 'lhs_module' => 'Accounts', 'lhs_table' => 'accounts', 'lhs_key' => 'id', 'rhs_module' => 'EmailAddresses', 'rhs_table' => 'email_addresses', 'rhs_key' => 'id', 'relationship_type' => 'many-to-many', 'join_table' => 'email_addr_bean_rel', 'join_key_lhs' => 'bean_id', 'join_key_rhs' => 'email_address_id', 'relationship_role_column' => 'primary_address', 'relationship_role_column_value' => '1', 'fields' => array ( 0 => array ( 'name' => 'id', 'type' => 'id', 'required' => true, ), 1 => array ( 'name' => 'email_address_id', 'type' => 'id', 'required' => true, ), 2 => array ( 'name' => 'bean_id', 'type' => 'id', 'required' => true, ), 3 => array ( 'name' => 'bean_module', 'type' => 'varchar', 'len' => 100, 'required' => true, ), 4 => array ( 'name' => 'primary_address', 'type' => 'bool', 'default' => '0', ), 5 => array ( 'name' => 'reply_to_address', 'type' => 'bool', 'default' => '0', ), 6 => array ( 'name' => 'date_created', 'type' => 'datetime', ), 7 => array ( 'name' => 'date_modified', 'type' => 'datetime', ), 8 => array ( 'name' => 'deleted', 'type' => 'bool', 'default' => 0, ), ), ), 'member_accounts' => array ( 'name' => 'member_accounts', '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 ( 'name' => 'account_cases', '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 ( 'name' => 'account_tasks', '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 ( 'name' => 'account_notes', '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 ( 'name' => 'account_meetings', '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 ( 'name' => 'account_calls', '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 ( 'name' => 'account_emails', '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 ( 'name' => 'account_leads', 'lhs_module' => 'Accounts', 'lhs_table' => 'accounts', 'lhs_key' => 'id', 'rhs_module' => 'Leads', 'rhs_table' => 'leads', 'rhs_key' => 'account_id', 'relationship_type' => 'one-to-many', ), 'account_campaign_log' => array ( 'name' => 'account_campaign_log', 'lhs_module' => 'Accounts', 'lhs_table' => 'accounts', 'lhs_key' => 'id', 'rhs_module' => 'CampaignLog', 'rhs_table' => 'campaign_log', 'rhs_key' => 'target_id', 'relationship_type' => 'one-to-many', ), 'opportunities_modified_user' => array ( 'name' => 'opportunities_modified_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Opportunities', 'rhs_table' => 'opportunities', 'rhs_key' => 'modified_user_id', 'relationship_type' => 'one-to-many', ), 'opportunities_created_by' => array ( 'name' => 'opportunities_created_by', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Opportunities', 'rhs_table' => 'opportunities', 'rhs_key' => 'created_by', 'relationship_type' => 'one-to-many', ), 'opportunities_assigned_user' => array ( 'name' => 'opportunities_assigned_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Opportunities', 'rhs_table' => 'opportunities', 'rhs_key' => 'assigned_user_id', 'relationship_type' => 'one-to-many', ), 'opportunity_calls' => array ( 'name' => 'opportunity_calls', 'lhs_module' => 'Opportunities', 'lhs_table' => 'opportunities', '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' => 'Opportunities', ), 'opportunity_meetings' => array ( 'name' => 'opportunity_meetings', 'lhs_module' => 'Opportunities', 'lhs_table' => 'opportunities', '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' => 'Opportunities', ), 'opportunity_tasks' => array ( 'name' => 'opportunity_tasks', 'lhs_module' => 'Opportunities', 'lhs_table' => 'opportunities', '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' => 'Opportunities', ), 'opportunity_notes' => array ( 'name' => 'opportunity_notes', 'lhs_module' => 'Opportunities', 'lhs_table' => 'opportunities', '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' => 'Opportunities', ), 'opportunity_emails' => array ( 'name' => 'opportunity_emails', 'lhs_module' => 'Opportunities', 'lhs_table' => 'opportunities', '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' => 'Opportunities', ), 'opportunity_leads' => array ( 'name' => 'opportunity_leads', 'lhs_module' => 'Opportunities', 'lhs_table' => 'opportunities', 'lhs_key' => 'id', 'rhs_module' => 'Leads', 'rhs_table' => 'leads', 'rhs_key' => 'opportunity_id', 'relationship_type' => 'one-to-many', ), 'opportunity_currencies' => array ( 'name' => 'opportunity_currencies', 'lhs_module' => 'Opportunities', 'lhs_table' => 'opportunities', 'lhs_key' => 'currency_id', 'rhs_module' => 'Currencies', 'rhs_table' => 'currencies', 'rhs_key' => 'id', 'relationship_type' => 'one-to-many', ), 'opportunities_campaign' => array ( 'name' => 'opportunities_campaign', 'lhs_module' => 'Campaigns', 'lhs_table' => 'campaigns', 'lhs_key' => 'id', 'rhs_module' => 'Opportunities', 'rhs_table' => 'opportunities', 'rhs_key' => 'campaign_id', 'relationship_type' => 'one-to-many', ), 'emailtemplates_assigned_user' => array ( 'name' => 'emailtemplates_assigned_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'EmailTemplates', 'rhs_table' => 'email_templates', 'rhs_key' => 'assigned_user_id', 'relationship_type' => 'one-to-many', ), 'notes_assigned_user' => array ( 'name' => 'notes_assigned_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Notes', 'rhs_table' => 'notes', 'rhs_key' => 'assigned_user_id', 'relationship_type' => 'one-to-many', ), 'notes_modified_user' => array ( 'name' => 'notes_modified_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Notes', 'rhs_table' => 'notes', 'rhs_key' => 'modified_user_id', 'relationship_type' => 'one-to-many', ), 'notes_created_by' => array ( 'name' => 'notes_created_by', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Notes', 'rhs_table' => 'notes', 'rhs_key' => 'created_by', 'relationship_type' => 'one-to-many', ), 'calls_modified_user' => array ( 'name' => 'calls_modified_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Calls', 'rhs_table' => 'calls', 'rhs_key' => 'modified_user_id', 'relationship_type' => 'one-to-many', ), 'calls_created_by' => array ( 'name' => 'calls_created_by', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Calls', 'rhs_table' => 'calls', 'rhs_key' => 'created_by', 'relationship_type' => 'one-to-many', ), 'calls_assigned_user' => array ( 'name' => 'calls_assigned_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Calls', 'rhs_table' => 'calls', 'rhs_key' => 'assigned_user_id', 'relationship_type' => 'one-to-many', ), 'calls_notes' => array ( 'name' => 'calls_notes', 'lhs_module' => 'Calls', 'lhs_table' => 'calls', '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' => 'Calls', ), 'emails_assigned_user' => array ( 'name' => 'emails_assigned_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Emails', 'rhs_table' => 'emails', 'rhs_key' => 'assigned_user_id', 'relationship_type' => 'one-to-many', ), 'emails_modified_user' => array ( 'name' => 'emails_modified_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Emails', 'rhs_table' => 'emails', 'rhs_key' => 'modified_user_id', 'relationship_type' => 'one-to-many', ), 'emails_created_by' => array ( 'name' => 'emails_created_by', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Emails', 'rhs_table' => 'emails', 'rhs_key' => 'created_by', 'relationship_type' => 'one-to-many', ), 'emails_notes_rel' => array ( 'name' => 'emails_notes_rel', 'lhs_module' => 'Emails', 'lhs_table' => 'emails', 'lhs_key' => 'id', 'rhs_module' => 'Notes', 'rhs_table' => 'notes', 'rhs_key' => 'parent_id', 'relationship_type' => 'one-to-many', ), 'emails_meetings_rel' => array ( 'name' => 'emails_meetings_rel', 'lhs_module' => 'Emails', 'lhs_table' => 'emails', 'lhs_key' => 'id', 'rhs_module' => 'Meetings', 'rhs_table' => 'meetings', 'rhs_key' => 'parent_id', 'relationship_type' => 'one-to-many', ), 'meetings_modified_user' => array ( 'name' => 'meetings_modified_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Meetings', 'rhs_table' => 'meetings', 'rhs_key' => 'modified_user_id', 'relationship_type' => 'one-to-many', ), 'meetings_created_by' => array ( 'name' => 'meetings_created_by', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Meetings', 'rhs_table' => 'meetings', 'rhs_key' => 'created_by', 'relationship_type' => 'one-to-many', ), 'meetings_assigned_user' => array ( 'name' => 'meetings_assigned_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Meetings', 'rhs_table' => 'meetings', 'rhs_key' => 'assigned_user_id', 'relationship_type' => 'one-to-many', ), 'meetings_notes' => array ( 'name' => 'meetings_notes', 'lhs_module' => 'Meetings', 'lhs_table' => 'meetings', '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' => 'Meetings', ), 'tasks_modified_user' => array ( 'name' => 'tasks_modified_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Tasks', 'rhs_table' => 'tasks', 'rhs_key' => 'modified_user_id', 'relationship_type' => 'one-to-many', ), 'tasks_created_by' => array ( 'name' => 'tasks_created_by', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Tasks', 'rhs_table' => 'tasks', 'rhs_key' => 'created_by', 'relationship_type' => 'one-to-many', ), 'tasks_assigned_user' => array ( 'name' => 'tasks_assigned_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Tasks', 'rhs_table' => 'tasks', 'rhs_key' => 'assigned_user_id', 'relationship_type' => 'one-to-many', ), 'tasks_notes' => array ( 'name' => 'tasks_notes', 'lhs_module' => 'Tasks', 'lhs_table' => 'tasks', 'lhs_key' => 'id', 'rhs_module' => 'Notes', 'rhs_table' => 'notes', 'rhs_key' => 'parent_id', 'relationship_type' => 'one-to-many', ), 'tracker_monitor_id' => array ( 'name' => 'tracker_monitor_id', 'lhs_module' => 'TrackerPerfs', 'lhs_table' => 'tracker_perf', 'lhs_key' => 'monitor_id', 'rhs_module' => 'Trackers', 'rhs_table' => 'tracker', 'rhs_key' => 'monitor_id', 'relationship_type' => 'one-to-one', ), 'documents_modified_user' => array ( 'name' => 'documents_modified_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Documents', 'rhs_table' => 'documents', 'rhs_key' => 'modified_user_id', 'relationship_type' => 'one-to-many', ), 'documents_created_by' => array ( 'name' => 'documents_created_by', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Documents', 'rhs_table' => 'documents', 'rhs_key' => 'created_by', 'relationship_type' => 'one-to-many', ), 'documents_assigned_user' => array ( 'name' => 'documents_assigned_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'Documents', 'rhs_table' => 'documents', 'rhs_key' => 'assigned_user_id', 'relationship_type' => 'one-to-many', ), 'document_revisions' => array ( 'name' => 'document_revisions', 'lhs_module' => 'Documents', 'lhs_table' => 'documents', 'lhs_key' => 'id', 'rhs_module' => 'DocumentRevisions', 'rhs_table' => 'document_revisions', 'rhs_key' => 'document_id', 'relationship_type' => 'one-to-many', ), 'revisions_created_by' => array ( 'name' => 'revisions_created_by', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'DocumentRevisions', 'rhs_table' => 'document_revisions', 'rhs_key' => 'created_by', 'relationship_type' => 'one-to-many', ), 'inbound_email_created_by' => array ( 'name' => 'inbound_email_created_by', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'InboundEmail', 'rhs_table' => 'inbound_email', 'rhs_key' => 'created_by', 'relationship_type' => 'one-to-one', ), 'inbound_email_modified_user_id' => array ( 'name' => 'inbound_email_modified_user_id', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'InboundEmail', 'rhs_table' => 'inbound_email', 'rhs_key' => 'modified_user_id', 'relationship_type' => 'one-to-one', ), 'saved_search_assigned_user' => array ( 'name' => 'saved_search_assigned_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'SavedSearch', 'rhs_table' => 'saved_search', 'rhs_key' => 'assigned_user_id', 'relationship_type' => 'one-to-many', ), 'sugarfeed_modified_user' => array ( 'name' => 'sugarfeed_modified_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'SugarFeed', 'rhs_table' => 'sugarfeed', 'rhs_key' => 'modified_user_id', 'relationship_type' => 'one-to-many', ), 'sugarfeed_created_by' => array ( 'name' => 'sugarfeed_created_by', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'SugarFeed', 'rhs_table' => 'sugarfeed', 'rhs_key' => 'created_by', 'relationship_type' => 'one-to-many', ), 'sugarfeed_assigned_user' => array ( 'name' => 'sugarfeed_assigned_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'SugarFeed', 'rhs_table' => 'sugarfeed', 'rhs_key' => 'assigned_user_id', 'relationship_type' => 'one-to-many', ), 'eapm_modified_user' => array ( 'name' => 'eapm_modified_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'EAPM', 'rhs_table' => 'eapm', 'rhs_key' => 'modified_user_id', 'relationship_type' => 'one-to-many', ), 'eapm_created_by' => array ( 'name' => 'eapm_created_by', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'EAPM', 'rhs_table' => 'eapm', 'rhs_key' => 'created_by', 'relationship_type' => 'one-to-many', ), 'eapm_assigned_user' => array ( 'name' => 'eapm_assigned_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'EAPM', 'rhs_table' => 'eapm', 'rhs_key' => 'assigned_user_id', 'relationship_type' => 'one-to-many', ), 'oauthkeys_modified_user' => array ( 'name' => 'oauthkeys_modified_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'OAuthKeys', 'rhs_table' => 'oauthkeys', 'rhs_key' => 'modified_user_id', 'relationship_type' => 'one-to-many', ), 'oauthkeys_created_by' => array ( 'name' => 'oauthkeys_created_by', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'OAuthKeys', 'rhs_table' => 'oauthkeys', 'rhs_key' => 'created_by', 'relationship_type' => 'one-to-many', ), 'oauthkeys_assigned_user' => array ( 'name' => 'oauthkeys_assigned_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'OAuthKeys', 'rhs_table' => 'oauthkeys', 'rhs_key' => 'assigned_user_id', 'relationship_type' => 'one-to-many', ), 'consumer_tokens' => array ( 'name' => 'consumer_tokens', 'lhs_module' => 'OAuthKeys', 'lhs_table' => 'oauth_consumer', 'lhs_key' => 'id', 'rhs_module' => 'OAuthTokens', 'rhs_table' => 'oauth_tokens', 'rhs_key' => 'consumer', 'relationship_type' => 'one-to-many', ), 'oauthtokens_assigned_user' => array ( 'name' => 'oauthtokens_assigned_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'OAuthTokens', 'rhs_table' => 'oauth_tokens', 'rhs_key' => 'assigned_user_id', 'relationship_type' => 'one-to-many', ), 'accco_acconti_modified_user' => array ( 'name' => 'accco_acconti_modified_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'ACCCO_Acconti', 'rhs_table' => 'accco_acconti', 'rhs_key' => 'modified_user_id', 'relationship_type' => 'one-to-many', ), 'accco_acconti_created_by' => array ( 'name' => 'accco_acconti_created_by', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'ACCCO_Acconti', 'rhs_table' => 'accco_acconti', 'rhs_key' => 'created_by', 'relationship_type' => 'one-to-many', ), 'accco_acconti_assigned_user' => array ( 'name' => 'accco_acconti_assigned_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'ACCCO_Acconti', 'rhs_table' => 'accco_acconti', 'rhs_key' => 'assigned_user_id', 'relationship_type' => 'one-to-many', ), 'tsi_prescrizionilegali_modified_user' => array ( 'name' => 'tsi_prescrizionilegali_modified_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'TSI_prescrizioniLegali', 'rhs_table' => 'tsi_prescrizionilegali', 'rhs_key' => 'modified_user_id', 'relationship_type' => 'one-to-many', ), 'tsi_prescrizionilegali_created_by' => array ( 'name' => 'tsi_prescrizionilegali_created_by', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'TSI_prescrizioniLegali', 'rhs_table' => 'tsi_prescrizionilegali', 'rhs_key' => 'created_by', 'relationship_type' => 'one-to-many', ), 'tsi_prescrizionilegali_assigned_user' => array ( 'name' => 'tsi_prescrizionilegali_assigned_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'TSI_prescrizioniLegali', 'rhs_table' => 'tsi_prescrizionilegali', 'rhs_key' => 'assigned_user_id', 'relationship_type' => 'one-to-many', ), 'tsi_scadenze_interne_modified_user' => array ( 'name' => 'tsi_scadenze_interne_modified_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'TSI_Scadenze_interne', 'rhs_table' => 'tsi_scadenze_interne', 'rhs_key' => 'modified_user_id', 'relationship_type' => 'one-to-many', ), 'tsi_scadenze_interne_created_by' => array ( 'name' => 'tsi_scadenze_interne_created_by', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'TSI_Scadenze_interne', 'rhs_table' => 'tsi_scadenze_interne', 'rhs_key' => 'created_by', 'relationship_type' => 'one-to-many', ), 'tsi_scadenze_interne_assigned_user' => array ( 'name' => 'tsi_scadenze_interne_assigned_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'TSI_Scadenze_interne', 'rhs_table' => 'tsi_scadenze_interne', 'rhs_key' => 'assigned_user_id', 'relationship_type' => 'one-to-many', ), 'tsi_scadenziario_modified_user' => array ( 'name' => 'tsi_scadenziario_modified_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'TSI_Scadenziario', 'rhs_table' => 'tsi_scadenziario', 'rhs_key' => 'modified_user_id', 'relationship_type' => 'one-to-many', ), 'tsi_scadenziario_created_by' => array ( 'name' => 'tsi_scadenziario_created_by', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'TSI_Scadenziario', 'rhs_table' => 'tsi_scadenziario', 'rhs_key' => 'created_by', 'relationship_type' => 'one-to-many', ), 'tsi_scadenziario_assigned_user' => array ( 'name' => 'tsi_scadenziario_assigned_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'TSI_Scadenziario', 'rhs_table' => 'tsi_scadenziario', 'rhs_key' => 'assigned_user_id', 'relationship_type' => 'one-to-many', ), 'ava_avanzamento_modified_user' => array ( 'name' => 'ava_avanzamento_modified_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'AVA_Avanzamento', 'rhs_table' => 'ava_avanzamento', 'rhs_key' => 'modified_user_id', 'relationship_type' => 'one-to-many', ), 'ava_avanzamento_created_by' => array ( 'name' => 'ava_avanzamento_created_by', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'AVA_Avanzamento', 'rhs_table' => 'ava_avanzamento', 'rhs_key' => 'created_by', 'relationship_type' => 'one-to-many', ), 'ava_avanzamento_assigned_user' => array ( 'name' => 'ava_avanzamento_assigned_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'AVA_Avanzamento', 'rhs_table' => 'ava_avanzamento', 'rhs_key' => 'assigned_user_id', 'relationship_type' => 'one-to-many', ), 'caa_ateco_modified_user' => array ( 'name' => 'caa_ateco_modified_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'CAA_ATECO', 'rhs_table' => 'caa_ateco', 'rhs_key' => 'modified_user_id', 'relationship_type' => 'one-to-many', ), 'caa_ateco_created_by' => array ( 'name' => 'caa_ateco_created_by', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'CAA_ATECO', 'rhs_table' => 'caa_ateco', 'rhs_key' => 'created_by', 'relationship_type' => 'one-to-many', ), 'caa_ateco_assigned_user' => array ( 'name' => 'caa_ateco_assigned_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'CAA_ATECO', 'rhs_table' => 'caa_ateco', 'rhs_key' => 'assigned_user_id', 'relationship_type' => 'one-to-many', ), 'for_corsi_modified_user' => array ( 'name' => 'for_corsi_modified_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'FOR_Corsi', 'rhs_table' => 'for_corsi', 'rhs_key' => 'modified_user_id', 'relationship_type' => 'one-to-many', ), 'for_corsi_created_by' => array ( 'name' => 'for_corsi_created_by', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'FOR_Corsi', 'rhs_table' => 'for_corsi', 'rhs_key' => 'created_by', 'relationship_type' => 'one-to-many', ), 'for_corsi_assigned_user' => array ( 'name' => 'for_corsi_assigned_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'FOR_Corsi', 'rhs_table' => 'for_corsi', 'rhs_key' => 'assigned_user_id', 'relationship_type' => 'one-to-many', ), 'for_partecipazioni_modified_user' => array ( 'name' => 'for_partecipazioni_modified_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'FOR_Partecipazioni', 'rhs_table' => 'for_partecipazioni', 'rhs_key' => 'modified_user_id', 'relationship_type' => 'one-to-many', ), 'for_partecipazioni_created_by' => array ( 'name' => 'for_partecipazioni_created_by', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'FOR_Partecipazioni', 'rhs_table' => 'for_partecipazioni', 'rhs_key' => 'created_by', 'relationship_type' => 'one-to-many', ), 'for_partecipazioni_assigned_user' => array ( 'name' => 'for_partecipazioni_assigned_user', 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'FOR_Partecipazioni', 'rhs_table' => 'for_partecipazioni', 'rhs_key' => 'assigned_user_id', 'relationship_type' => 'one-to-many', ), );