31,034
edits
m (→Contenu) |
(→Table) |
||
| (11 intermediate revisions by 2 users not shown) | |||
| Line 5: | Line 5: | ||
{{ListOfTables}} | {{ListOfTables}} | ||
= Contenu = | = Content/Contenu/Contenido = | ||
{{flag en}} This table allows to save links between an entity and a contact from third parties. | |||
For example, when an order must be linked to a delivery contact in particular , we use this table. | |||
{{flag fr}} Cette table permet de sauvegarder les liens entre une entité et un contact de tiers. | {{flag fr}} Cette table permet de sauvegarder les liens entre une entité et un contact de tiers. | ||
Par exemple quand une commande doit être lié à un contact de livraison particulier, on utilisera cette table. | Par exemple quand une commande doit être lié à un contact de livraison particulier, on utilisera cette table. | ||
{{flag sp}} Esta tabla le permite guardar los enlaces entre las entidades y los contactos. | {{flag sp}} Esta tabla le permite guardar los enlaces entre las entidades y los contactos. | ||
Por ejemplo, cuando un | Por ejemplo, cuando un pedido debe estar vinculado a un contacto de envío en particular, utilizaremos esta tabla. | ||
= Structure = | = Structure = | ||
{| align="left" width="100%" border="0 | == Table == | ||
{| align="left" width="100%" border="0" cellpadding="1" cellspacing="0" class="dolbox" | |||
|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 49: | Line 29: | ||
| rowid | | rowid | ||
| int(11) | | int(11) | ||
| | | NO | ||
| PRI | | PRI | ||
| | | | ||
| auto_increment | | auto_increment | ||
| technical index | | technical index | ||
|} | |- | ||
| datecreate | |||
| datetime | |||
| YES | |||
| | |||
| NULL | |||
| | |||
| creation date of link | |||
|- | |||
| statut | |||
| smallint(6) | |||
| YES | |||
| | |||
| 5 | |||
| | |||
| link status (5=inactive; 4=active) | |||
|- | |||
| element_id | |||
| int(11) | |||
| NO | |||
| UNI | |||
| | |||
| | |||
| ID of element (any table_of_elements->rowid) | |||
|- | |||
| fk_c_type_contact | |||
| int(11) | |||
| NO | |||
| UNI | |||
| | |||
| | |||
| ID of type of contact ([[Table llx_c_type_contact|llx_c_type_contact]]->rowid) | |||
|- | |||
| fk_socpeople | |||
| int(11) | |||
| NO | |||
| UNI | |||
| | |||
| | |||
| ID of contact/address ([[Table llx_socpeople|llx_socpeople]]->rowid) or ID of user ([[Table llx_user|llx_user]]->rowid) depending on fk_c_type_contact | |||
|} | |||
== Keys == | |||
{| align="left" width="100%" border="0" cellpadding="1" cellspacing="0" class="dolbox" | |||
|style="background-color: #e9e9ef"| <b>Key</b> | |||
|style="background-color: #e9e9ef"| <b>Type</b> | |||
|style="background-color: #e9e9ef"| <b>Fields</b> | |||
|- | |||
| PRIMARY | |||
| PRIMARY | |||
| rowid | |||
|- | |||
| idx_element_contact_idx1 | |||
| UNIQUE | |||
| element_id,fk_c_type_contact,fk_socpeople | |||
|- | |||
| fk_element_contact_fk_c_type_contact | |||
| MULTIPLE | |||
| fk_c_type_contact | |||
|- | |||
| idx_element_contact_fk_socpeople | |||
| MULTIPLE | |||
| fk_socpeople | |||
|} | |||