init
This commit is contained in:
72
custom/metadata/ecminvoiceouts_emailsMetaData.php
Executable file
72
custom/metadata/ecminvoiceouts_emailsMetaData.php
Executable file
@@ -0,0 +1,72 @@
|
||||
<?php
|
||||
|
||||
$dictionary['ecminvoiceouts_emails'] = array (
|
||||
'table' => 'ecminvoiceouts_emails',
|
||||
'fields' => array (
|
||||
array(
|
||||
'name' => 'id',
|
||||
'type' => 'varchar',
|
||||
'len'=>'36'
|
||||
),
|
||||
array(
|
||||
'name' => 'ecminvoiceout_id',
|
||||
'type' => 'varchar',
|
||||
'len' => '36',
|
||||
),
|
||||
array(
|
||||
'name' => 'email_id',
|
||||
'type' => 'varchar',
|
||||
'len' => '36',
|
||||
),
|
||||
array (
|
||||
'name' => 'date_modified',
|
||||
'type' => 'datetime'
|
||||
),
|
||||
array(
|
||||
'name' => 'deleted',
|
||||
'type' => 'bool',
|
||||
'len' => '1',
|
||||
'default' => '0',
|
||||
'required' => true
|
||||
)
|
||||
),
|
||||
'indices' => array (
|
||||
array(
|
||||
'name' => 'ecminvoiceouts_emailspk',
|
||||
'type' => 'primary',
|
||||
'fields' => array('id')
|
||||
),
|
||||
array(
|
||||
'name' => 'idx_ecmquo_ema_ecmquo',
|
||||
'type' => 'index',
|
||||
'fields' => array('ecminvoiceout_id')
|
||||
),
|
||||
array(
|
||||
'name' => 'idx_ecmquo_ema_ema',
|
||||
'type' => 'index',
|
||||
'fields' => array('email_id')
|
||||
),
|
||||
array(
|
||||
'name' => 'idx_ecminvoiceout_doc',
|
||||
'type' => 'alternate_key',
|
||||
'fields' => array('ecminvoiceout_id','email_id')
|
||||
)
|
||||
),
|
||||
'relationships' => array (
|
||||
'ecminvoiceouts_emails' => array(
|
||||
'lhs_module' => 'EcmInvoiceOuts',
|
||||
'lhs_table' => 'ecminvoiceouts',
|
||||
'lhs_key' => 'id',
|
||||
'rhs_module' => 'Emails',
|
||||
'rhs_table' => 'emails',
|
||||
'rhs_key' => 'id',
|
||||
'relationship_type' => 'many-to-many',
|
||||
'join_table' => 'ecminvoiceouts_emails',
|
||||
'join_key_lhs' => 'ecminvoiceout_id',
|
||||
'join_key_rhs' => 'email_id'
|
||||
)
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user