4,395
edits
(→Keys) |
|||
| (4 intermediate revisions by 2 users not shown) | |||
| Line 18: | Line 18: | ||
= Structure = | = Structure = | ||
== Table == | == Table == | ||
{| align="left" width="100%" border="0" cellpadding="1" cellspacing="0" class="dolbox" | |||
{| align="left" width="100%" border="0 | |||
|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 | ||
|- | |- | ||
| | | fk_source | ||
| int(11) | | int(11) | ||
| NO | | NO | ||
| Line 52: | Line 51: | ||
| type of source. view content section | | type of source. view content section | ||
|- | |- | ||
| | | 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 | ||
|} | |} | ||
== Keys == | == Keys == | ||
{| align="left" width="100%" border="0" cellpadding="1" cellspacing="0" class="dolbox" | |||
{| align="left" width="100%" border="0 | |||
|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 | ||
| | | fk_source,sourcetype,fk_target,targettype | ||
|- | |- | ||
| | | idx_element_element_fk_target | ||
| MULTIPLE | | MULTIPLE | ||
| | | fk_target | ||
|} | |} | ||
| 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 | ||
* " | * "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 | ||
* " | * "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 | ||
* " | * "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). | ||