init
This commit is contained in:
72
custom/metadata/ecminvoiceouts_ecmpurchaseordersMetaData.php
Executable file
72
custom/metadata/ecminvoiceouts_ecmpurchaseordersMetaData.php
Executable file
@@ -0,0 +1,72 @@
|
||||
<?php
|
||||
|
||||
$dictionary['ecminvoiceouts_ecmpurchaseorders'] = array (
|
||||
'table' => 'ecminvoiceouts_ecmpurchaseorders',
|
||||
'fields' => array (
|
||||
array(
|
||||
'name' => 'id',
|
||||
'type' => 'varchar',
|
||||
'len'=>'36'
|
||||
),
|
||||
array(
|
||||
'name' => 'ecminvoiceout_id',
|
||||
'type' => 'varchar',
|
||||
'len' => '36',
|
||||
),
|
||||
array(
|
||||
'name' => 'po_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_ecmpurchaseorderspk',
|
||||
'type' => 'primary',
|
||||
'fields' => array('id')
|
||||
),
|
||||
array(
|
||||
'name' => 'idx_ecmio_ecmpo_ecmio',
|
||||
'type' => 'index',
|
||||
'fields' => array('ecminvoiceout_id')
|
||||
),
|
||||
array(
|
||||
'name' => 'idx_ecmio_ecmpo_ecmpo',
|
||||
'type' => 'index',
|
||||
'fields' => array('po_id')
|
||||
),
|
||||
array(
|
||||
'name' => 'idx_ecmio_doc',
|
||||
'type' => 'alternate_key',
|
||||
'fields' => array('ecminvoiceout_id','po_id')
|
||||
)
|
||||
),
|
||||
'relationships' => array (
|
||||
'ecminvoiceouts_ecmpurchaseorders' => array(
|
||||
'lhs_module' => 'EcmInvoiceOuts',
|
||||
'lhs_table' => 'ecminvoiceouts',
|
||||
'lhs_key' => 'id',
|
||||
'rhs_module' => 'EcmPurchaseOrders',
|
||||
'rhs_table' => 'ecmpurchaseorders',
|
||||
'rhs_key' => 'id',
|
||||
'relationship_type' => 'many-to-many',
|
||||
'join_table' => 'ecminvoiceouts_ecmpurchaseorders',
|
||||
'join_key_lhs' => 'ecminvoiceout_id',
|
||||
'join_key_rhs' => 'po_id'
|
||||
)
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
?>
|
||||
72
custom/metadata/ecminvoiceouts_ecmpzdocumentsMetaData.php
Executable file
72
custom/metadata/ecminvoiceouts_ecmpzdocumentsMetaData.php
Executable file
@@ -0,0 +1,72 @@
|
||||
<?php
|
||||
|
||||
$dictionary['ecminvoiceouts_ecmpzdocuments'] = array (
|
||||
'table' => 'ecminvoiceouts_ecmpzdocuments',
|
||||
'fields' => array (
|
||||
array(
|
||||
'name' => 'id',
|
||||
'type' => 'varchar',
|
||||
'len'=>'36'
|
||||
),
|
||||
array(
|
||||
'name' => 'ecminvoiceout_id',
|
||||
'type' => 'varchar',
|
||||
'len' => '36',
|
||||
),
|
||||
array(
|
||||
'name' => 'pz_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_ecmpzdocumentspk',
|
||||
'type' => 'primary',
|
||||
'fields' => array('id')
|
||||
),
|
||||
array(
|
||||
'name' => 'idx_ecmio_ecmpz_ecmio',
|
||||
'type' => 'index',
|
||||
'fields' => array('ecminvoiceout_id')
|
||||
),
|
||||
array(
|
||||
'name' => 'idx_ecmio_ecmpz_ecmpz',
|
||||
'type' => 'index',
|
||||
'fields' => array('pz_id')
|
||||
),
|
||||
array(
|
||||
'name' => 'idx_ecmio_doc',
|
||||
'type' => 'alternate_key',
|
||||
'fields' => array('ecminvoiceout_id','pz_id')
|
||||
)
|
||||
),
|
||||
'relationships' => array (
|
||||
'ecminvoiceouts_ecmpzdocuments' => array(
|
||||
'lhs_module' => 'EcmInvoiceOuts',
|
||||
'lhs_table' => 'ecminvoiceouts',
|
||||
'lhs_key' => 'id',
|
||||
'rhs_module' => 'EcmPzDocuments',
|
||||
'rhs_table' => 'ecmpzdocuments',
|
||||
'rhs_key' => 'id',
|
||||
'relationship_type' => 'many-to-many',
|
||||
'join_table' => 'ecminvoiceouts_ecmpzdocuments',
|
||||
'join_key_lhs' => 'ecminvoiceout_id',
|
||||
'join_key_rhs' => 'pz_id'
|
||||
)
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
?>
|
||||
72
custom/metadata/ecminvoiceouts_ecmsalesordersMetaData.php
Executable file
72
custom/metadata/ecminvoiceouts_ecmsalesordersMetaData.php
Executable file
@@ -0,0 +1,72 @@
|
||||
<?php
|
||||
|
||||
$dictionary['ecminvoiceouts_ecmsales'] = array (
|
||||
'table' => 'ecminvoiceouts_ecmsales',
|
||||
'fields' => array (
|
||||
array(
|
||||
'name' => 'id',
|
||||
'type' => 'varchar',
|
||||
'len'=>'36'
|
||||
),
|
||||
array(
|
||||
'name' => 'ecminvoiceout_id',
|
||||
'type' => 'varchar',
|
||||
'len' => '36',
|
||||
),
|
||||
array(
|
||||
'name' => 'so_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_ecmsalespk',
|
||||
'type' => 'primary',
|
||||
'fields' => array('id')
|
||||
),
|
||||
array(
|
||||
'name' => 'idx_ecmio_ecmso_ecmio',
|
||||
'type' => 'index',
|
||||
'fields' => array('ecminvoiceout_id')
|
||||
),
|
||||
array(
|
||||
'name' => 'idx_ecmio_ecmso_ecmso',
|
||||
'type' => 'index',
|
||||
'fields' => array('so_id')
|
||||
),
|
||||
array(
|
||||
'name' => 'idx_ecmio_doc',
|
||||
'type' => 'alternate_key',
|
||||
'fields' => array('ecminvoiceout_id','so_id')
|
||||
)
|
||||
),
|
||||
'relationships' => array (
|
||||
'ecminvoiceouts_ecmsales' => array(
|
||||
'lhs_module' => 'EcmInvoiceOuts',
|
||||
'lhs_table' => 'ecminvoiceouts',
|
||||
'lhs_key' => 'id',
|
||||
'rhs_module' => 'EcmSales',
|
||||
'rhs_table' => 'ecmsales',
|
||||
'rhs_key' => 'id',
|
||||
'relationship_type' => 'many-to-many',
|
||||
'join_table' => 'ecminvoiceouts_ecmsales',
|
||||
'join_key_lhs' => 'ecminvoiceout_id',
|
||||
'join_key_rhs' => 'so_id'
|
||||
)
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
?>
|
||||
72
custom/metadata/ecminvoiceouts_ecmstockinsMetaData.php
Executable file
72
custom/metadata/ecminvoiceouts_ecmstockinsMetaData.php
Executable file
@@ -0,0 +1,72 @@
|
||||
<?php
|
||||
|
||||
$dictionary['ecminvoiceouts_ecmstockins'] = array (
|
||||
'table' => 'ecminvoiceouts_ecmstockins',
|
||||
'fields' => array (
|
||||
array(
|
||||
'name' => 'id',
|
||||
'type' => 'varchar',
|
||||
'len'=>'36'
|
||||
),
|
||||
array(
|
||||
'name' => 'ecminvoiceout_id',
|
||||
'type' => 'varchar',
|
||||
'len' => '36',
|
||||
),
|
||||
array(
|
||||
'name' => 'ecmstockin_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_ecmstockinspk',
|
||||
'type' => 'primary',
|
||||
'fields' => array('id')
|
||||
),
|
||||
array(
|
||||
'name' => 'idx_ecmio_ecmsin_ecmio',
|
||||
'type' => 'index',
|
||||
'fields' => array('ecminvoiceout_id')
|
||||
),
|
||||
array(
|
||||
'name' => 'idx_ecmio_ecmsin_ecmsio',
|
||||
'type' => 'index',
|
||||
'fields' => array('ecmstockin_id')
|
||||
),
|
||||
array(
|
||||
'name' => 'idx_ecmio_doc',
|
||||
'type' => 'alternate_key',
|
||||
'fields' => array('ecminvoiceout_id','ecmstockin_id')
|
||||
)
|
||||
),
|
||||
'relationships' => array (
|
||||
'ecminvoiceouts_ecmstockins' => array(
|
||||
'lhs_module' => 'EcmInvoiceOuts',
|
||||
'lhs_table' => 'ecminvoiceouts',
|
||||
'lhs_key' => 'id',
|
||||
'rhs_module' => 'EcmStockIns',
|
||||
'rhs_table' => 'ecmstockins',
|
||||
'rhs_key' => 'id',
|
||||
'relationship_type' => 'many-to-many',
|
||||
'join_table' => 'ecminvoiceouts_ecmstockins',
|
||||
'join_key_lhs' => 'ecminvoiceout_id',
|
||||
'join_key_rhs' => 'ecmstockin_id'
|
||||
)
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
?>
|
||||
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'
|
||||
)
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
?>
|
||||
72
custom/metadata/ecminvoiceouts_notesMetaData.php
Executable file
72
custom/metadata/ecminvoiceouts_notesMetaData.php
Executable file
@@ -0,0 +1,72 @@
|
||||
<?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'
|
||||
)
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
?>
|
||||
141
custom/metadata/ecmproducts_documentsMetaData.php
Executable file
141
custom/metadata/ecmproducts_documentsMetaData.php
Executable file
@@ -0,0 +1,141 @@
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
$dictionary['ecmproducts_documents'] = array (
|
||||
|
||||
'table' => 'ecmproducts_documents',
|
||||
|
||||
'fields' => array (
|
||||
|
||||
array(
|
||||
|
||||
'name' => 'id',
|
||||
|
||||
'type' => 'varchar',
|
||||
|
||||
'len'=>'36'
|
||||
|
||||
),
|
||||
|
||||
array(
|
||||
|
||||
'name' => 'ecmproduct_id',
|
||||
|
||||
'type' => 'varchar',
|
||||
|
||||
'len' => '36',
|
||||
|
||||
),
|
||||
|
||||
array(
|
||||
|
||||
'name' => 'document_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' => 'ecmproducts_documentspk',
|
||||
|
||||
'type' => 'primary',
|
||||
|
||||
'fields' => array('id')
|
||||
|
||||
),
|
||||
|
||||
array(
|
||||
|
||||
'name' => 'idx_ecmprod_doc_ecmprod',
|
||||
|
||||
'type' => 'index',
|
||||
|
||||
'fields' => array('ecmproduct_id')
|
||||
|
||||
),
|
||||
|
||||
array(
|
||||
|
||||
'name' => 'idx_ecmprod_doc_doc',
|
||||
|
||||
'type' => 'index',
|
||||
|
||||
'fields' => array('document_id')
|
||||
|
||||
),
|
||||
|
||||
array(
|
||||
|
||||
'name' => 'idx_ecmproduct_doc',
|
||||
|
||||
'type' => 'alternate_key',
|
||||
|
||||
'fields' => array('ecmproduct_id','document_id')
|
||||
|
||||
)
|
||||
|
||||
),
|
||||
|
||||
'relationships' => array (
|
||||
|
||||
'ecmproducts_documents' => array(
|
||||
|
||||
'lhs_module' => 'EcmProducts',
|
||||
|
||||
'lhs_table' => 'ecmproducts',
|
||||
|
||||
'lhs_key' => 'id',
|
||||
|
||||
'rhs_module' => 'Documents',
|
||||
|
||||
'rhs_table' => 'documents',
|
||||
|
||||
'rhs_key' => 'id',
|
||||
|
||||
'relationship_type' => 'many-to-many',
|
||||
|
||||
'join_table' => 'ecmproducts_documents',
|
||||
|
||||
'join_key_lhs' => 'ecmproduct_id',
|
||||
|
||||
'join_key_rhs' => 'document_id'
|
||||
|
||||
)
|
||||
|
||||
),
|
||||
|
||||
);
|
||||
|
||||
|
||||
|
||||
?>
|
||||
141
custom/metadata/ecmquotes_emailsMetaData.php
Executable file
141
custom/metadata/ecmquotes_emailsMetaData.php
Executable file
@@ -0,0 +1,141 @@
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
$dictionary['ecmquotes_emails'] = array (
|
||||
|
||||
'table' => 'ecmquotes_emails',
|
||||
|
||||
'fields' => array (
|
||||
|
||||
array(
|
||||
|
||||
'name' => 'id',
|
||||
|
||||
'type' => 'varchar',
|
||||
|
||||
'len'=>'36'
|
||||
|
||||
),
|
||||
|
||||
array(
|
||||
|
||||
'name' => 'ecmquote_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' => 'ecmquotes_emailspk',
|
||||
|
||||
'type' => 'primary',
|
||||
|
||||
'fields' => array('id')
|
||||
|
||||
),
|
||||
|
||||
array(
|
||||
|
||||
'name' => 'idx_ecmquo_ema_ecmquo',
|
||||
|
||||
'type' => 'index',
|
||||
|
||||
'fields' => array('ecmquote_id')
|
||||
|
||||
),
|
||||
|
||||
array(
|
||||
|
||||
'name' => 'idx_ecmquo_ema_ema',
|
||||
|
||||
'type' => 'index',
|
||||
|
||||
'fields' => array('email_id')
|
||||
|
||||
),
|
||||
|
||||
array(
|
||||
|
||||
'name' => 'idx_ecmquote_doc',
|
||||
|
||||
'type' => 'alternate_key',
|
||||
|
||||
'fields' => array('ecmquote_id','email_id')
|
||||
|
||||
)
|
||||
|
||||
),
|
||||
|
||||
'relationships' => array (
|
||||
|
||||
'ecmquotes_emails' => array(
|
||||
|
||||
'lhs_module' => 'EcmQuotes',
|
||||
|
||||
'lhs_table' => 'ecmquotes',
|
||||
|
||||
'lhs_key' => 'id',
|
||||
|
||||
'rhs_module' => 'Emails',
|
||||
|
||||
'rhs_table' => 'emails',
|
||||
|
||||
'rhs_key' => 'id',
|
||||
|
||||
'relationship_type' => 'many-to-many',
|
||||
|
||||
'join_table' => 'ecmquotes_emails',
|
||||
|
||||
'join_key_lhs' => 'ecmquote_id',
|
||||
|
||||
'join_key_rhs' => 'email_id'
|
||||
|
||||
)
|
||||
|
||||
),
|
||||
|
||||
);
|
||||
|
||||
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user