Table llx element contact: Difference between revisions

Jump to navigation Jump to search
 
(5 intermediate revisions by 2 users not shown)
Line 14: Line 14:


{{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 contrato debe estar vinculado a ficha de intervención, utilizaremos esta tabla. Históricamente, los vínculos se almacenaban en una tabla dedicada a cada pareja. En la versión 2.5 y superiores, los enlaces se deben almacenar en esta tabla.
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" 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"
== 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 28: Line 29:
| rowid  
| rowid  
| int(11)  
| int(11)  
| &nbsp;
| NO
| PRI
| PRI
| NULL
|  
| auto_increment  
| auto_increment  
| technical index
| technical index
Line 40: Line 41:
| NULL
| NULL
|  
|  
| creation date
| creation date of link
|-
|-
| statut
| statut
Line 48: Line 49:
| 5
| 5
|  
|  
| status (5=inactive; 4=active)
| link status (5=inactive; 4=active)
|-  
|-  
| element_id
| element_id
| int(11)
| int(11)
| NO
| NO
| UNI
|  
|  
|  
|  
|  
| ID of element (any table_of_elements->rowid)
| reference of element
|-  
|-  
| fk_c_type_contact
| fk_c_type_contact
| int(11)
| int(11)
| NO
| NO
| UNI
|  
|  
|  
|  
|
| ID of type of contact ([[Table llx_c_type_contact|llx_c_type_contact]]->rowid)
| ID type of contact ([[Table llx_c_type_contact|llx_c_type_contact]]->rowid)  
|-  
|-  
| fk_socpeople
| fk_socpeople
| int(11)
| int(11)
| NO
| 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
| ID of contact ([[Table llx_socpeople|llx_socpeople]]->rowid)  
|}&nbsp;
|}
 
== 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
|}&nbsp;

Navigation menu