72 lines
1.4 KiB
PHP
72 lines
1.4 KiB
PHP
|
|
<?php
|
||
|
|
|
||
|
|
$dictionary['ecminvoiceouts_notes'] = array (
|
||
|
|
'table' => 'ecminvoiceouts_notes',
|
||
|
|
'fields' => array (
|
||
|
|
array(
|
||
|
|
'name' => 'id',
|
||
|
|
'type' => 'varchar',
|
||
|
|
'len'=>'36'
|
||
|
|
),
|
||
|
|
array(
|
||
|
|
'name' => 'ecminvoiceout_id',
|
||
|
|
'type' => 'varchar',
|
||
|
|
'len' => '36',
|
||
|
|
),
|
||
|
|
array(
|
||
|
|
'name' => 'note_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_notespk',
|
||
|
|
'type' => 'primary',
|
||
|
|
'fields' => array('id')
|
||
|
|
),
|
||
|
|
array(
|
||
|
|
'name' => 'idx_ecmquo_not_ecmquo',
|
||
|
|
'type' => 'index',
|
||
|
|
'fields' => array('ecminvoiceout_id')
|
||
|
|
),
|
||
|
|
array(
|
||
|
|
'name' => 'idx_ecmquo_not_not',
|
||
|
|
'type' => 'index',
|
||
|
|
'fields' => array('note_id')
|
||
|
|
),
|
||
|
|
array(
|
||
|
|
'name' => 'idx_ecminvoiceout_doc',
|
||
|
|
'type' => 'alternate_key',
|
||
|
|
'fields' => array('ecminvoiceout_id','note_id')
|
||
|
|
)
|
||
|
|
),
|
||
|
|
'relationships' => array (
|
||
|
|
'ecminvoiceouts_notes' => array(
|
||
|
|
'lhs_module' => 'EcmInvoiceOuts',
|
||
|
|
'lhs_table' => 'ecminvoiceouts',
|
||
|
|
'lhs_key' => 'id',
|
||
|
|
'rhs_module' => 'Notes',
|
||
|
|
'rhs_table' => 'notes',
|
||
|
|
'rhs_key' => 'id',
|
||
|
|
'relationship_type' => 'many-to-many',
|
||
|
|
'join_table' => 'ecminvoiceouts_notes',
|
||
|
|
'join_key_lhs' => 'ecminvoiceout_id',
|
||
|
|
'join_key_rhs' => 'note_id'
|
||
|
|
)
|
||
|
|
),
|
||
|
|
);
|
||
|
|
|
||
|
|
|
||
|
|
?>
|