Changes

Line 18: Line 18:  
= Structure =
 
= Structure =
 
== Table ==
 
== Table ==
'''Version 1.1 2009/10/07'''
+
{|  align="left" width="100%" border="0" cellpadding="1" cellspacing="0" class="dolbox"
{|  align="left" width="100%" border="0" rules="all" cellpadding="1" cellspacing="0" style="margin: 0 0 1px 1px; border: 1px solid #dddddd; border-right-width: 2px; border-bottom-width: 2px; background-color: #f3f3f5"
   
  |style="background-color: #e9e9ef"| <b>Field</b>
 
  |style="background-color: #e9e9ef"| <b>Field</b>
 
  |style="background-color: #e9e9ef"| <b>Type</b>
 
  |style="background-color: #e9e9ef"| <b>Type</b>
Line 36: Line 35:  
| technical index
 
| technical index
 
|-  
 
|-  
| sourceid
+
| fk_source
 
| int(11)
 
| int(11)
 
| NO
 
| NO
Line 52: Line 51:  
| type of source. view content section
 
| type of source. view content section
 
|-  
 
|-  
| targetid
+
| fk_target
 
| int(11)
 
| int(11)
 
| NO
 
| NO
|  
+
| MUL
 
|  
 
|  
 
|  
 
|  
Line 68: Line 67:  
| type of target. view content section
 
| type of target. view content section
 
|}&nbsp;
 
|}&nbsp;
 +
 
== Keys ==
 
== Keys ==
'''Version 1.2 2009/10/25'''
+
{|  align="left" width="100%" border="0" cellpadding="1" cellspacing="0" class="dolbox"
{|  align="left" width="100%" border="0" rules="all" cellpadding="1" cellspacing="0" style="margin: 0 0 1px 1px; border: 1px solid #dddddd; border-right-width: 2px; border-bottom-width: 2px; background-color: #f3f3f5"
   
  |style="background-color: #e9e9ef"| <b>Key</b>
 
  |style="background-color: #e9e9ef"| <b>Key</b>
 
  |style="background-color: #e9e9ef"| <b>Type</b>
 
  |style="background-color: #e9e9ef"| <b>Type</b>
Line 81: Line 80:  
| idx_element_element_idx1  
 
| idx_element_element_idx1  
 
| UNIQUE
 
| UNIQUE
| sourceid,sourcetype,targetid,targettype
+
| fk_source,sourcetype,fk_target,targettype
 
|-  
 
|-  
| idx_element_element_targetid
+
| idx_element_element_fk_target
 
| MULTIPLE
 
| MULTIPLE
| targetid
+
| fk_target
 
|}&nbsp;
 
|}&nbsp;
   Line 107: Line 106:  
* "member" : In this case the id field must be an id of the table llx_adherent
 
* "member" : In this case the id field must be an id of the table llx_adherent
 
* "propal" : In this case the id field must be an id of the table llx_propal
 
* "propal" : In this case the id field must be an id of the table llx_propal
* "sending" : In this case the id field must be an id of the table llx_expedition
+
* "shipping" : In this case the id field must be an id of the table llx_expedition
 
* "delivery" : In this case the id field must be an id of the table llx_livraison
 
* "delivery" : In this case the id field must be an id of the table llx_livraison
   Line 130: Line 129:  
* "member" : Dans ce cas le champ doit être un id de la table llx_adherent
 
* "member" : Dans ce cas le champ doit être un id de la table llx_adherent
 
* "propal" : Dans ce cas le champ doit être un id de la table llx_propal
 
* "propal" : Dans ce cas le champ doit être un id de la table llx_propal
* "sending" : Dans ce cas le champ doit être un id de la table llx_expedition
+
* "shipping" : Dans ce cas le champ doit être un id de la table llx_expedition
 
* "delivery" : Dans ce cas le champ doit être un id de la table llx_livraison
 
* "delivery" : Dans ce cas le champ doit être un id de la table llx_livraison
   Line 152: Line 151:  
* "member" : En este caso el campo id debe de ser un id de la tabla llx_adherent
 
* "member" : En este caso el campo id debe de ser un id de la tabla llx_adherent
 
* "propal" : En este caso el campo id debe de ser un id de la tabla llx_propal
 
* "propal" : En este caso el campo id debe de ser un id de la tabla llx_propal
* "sending" : En este caso el campo id debe de ser un id de la tabla llx_expedition
+
* "shipping" : En este caso el campo id debe de ser un id de la tabla llx_expedition
 
* "delivery" : En este caso el campo id debe de ser un id de la tabla llx_livraison
 
* "delivery" : En este caso el campo id debe de ser un id de la tabla llx_livraison
    
Este tipo permite utilizar 1 sola y única tabla para todo tipo de enlace en lugar de 2<sup>n</sup> tablas (n son el número de entidades gestionadas en Dolibarr).
 
Este tipo permite utilizar 1 sola y única tabla para todo tipo de enlace en lugar de 2<sup>n</sup> tablas (n son el número de entidades gestionadas en Dolibarr).