Columns
Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||
---|---|---|---|---|---|---|---|---|---|---|
id | INT UNSIGNED | 10 | √ | null |
|
|
primary key |
|||
entity_table | VARCHAR | 64 | √ | null |
|
|
physical tablename for entity being joined to file, e.g. civicrm_contact |
|||
entity_id | INT UNSIGNED | 10 | null |
|
|
FK to entity table specified in entity_table column. |
||||
tag_id | INT UNSIGNED | 10 | null |
|
|
FK to civicrm_tag |
Indexes
Constraint Name | Type | Sort | Column(s) |
---|---|---|---|
PRIMARY | Primary key | Asc | id |
FK_civicrm_entity_tag_tag_id | Performance | Asc | tag_id |
UI_entity_id_entity_table_tag_id | Must be unique | Asc/Asc/Asc | entity_id + entity_table + tag_id |