<?php
// created: 2015-10-01 16:43:01
$dictionary["sp_mailinghistory_leads"] = array (
  'true_relationship_type' => 'one-to-many',
  'relationships' => 
  array (
    'sp_mailinghistory_leads' => 
    array (
      'lhs_module' => 'Leads',
      'lhs_table' => 'leads',
      'lhs_key' => 'id',
      'rhs_module' => 'SP_MailingHistory',
      'rhs_table' => 'sp_mailinghistory',
      'rhs_key' => 'id',
      'relationship_type' => 'many-to-many',
      'join_table' => 'sp_mailinghistory_leads_c',
      'join_key_lhs' => 'sp_mailinghistory_leadsleads_ida',
      'join_key_rhs' => 'sp_mailinghistory_leadssp_mailinghistory_idb',
    ),
  ),
  'table' => 'sp_mailinghistory_leads_c',
  'fields' => 
  array (
    'id' => 
    array (
      'name' => 'id',
      'type' => 'varchar',
      'len' => 36,
    ),
    'date_modified' => 
    array (
      'name' => 'date_modified',
      'type' => 'datetime',
    ),
    'deleted' => 
    array (
      'name' => 'deleted',
      'type' => 'bool',
      'len' => '1',
      'default' => '0',
      'required' => true,
    ),
    'sp_mailinghistory_leadsleads_ida' => 
    array (
      'name' => 'sp_mailinghistory_leadsleads_ida',
      'type' => 'varchar',
      'len' => 36,
    ),
    'sp_mailinghistory_leadssp_mailinghistory_idb' => 
    array (
      'name' => 'sp_mailinghistory_leadssp_mailinghistory_idb',
      'type' => 'varchar',
      'len' => 36,
    ),
  ),
  'indices' => 
  array (
    0 => 
    array (
      'name' => 'sp_mailinghistory_leadsspk',
      'type' => 'primary',
      'fields' => 
      array (
        0 => 'id',
      ),
    ),
    1 => 
    array (
      'name' => 'sp_mailinghistory_leads_ida1',
      'type' => 'index',
      'fields' => 
      array (
        0 => 'sp_mailinghistory_leadsleads_ida',
      ),
    ),
    2 => 
    array (
      'name' => 'sp_mailinghistory_leads_alt',
      'type' => 'alternate_key',
      'fields' => 
      array (
        0 => 'sp_mailinghistory_leadssp_mailinghistory_idb',
      ),
    ),
  ),
);