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. |
||||
| batch_id | INT UNSIGNED | 10 | null |
|
|
FK to civicrm_batch |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| PRIMARY | Primary key | Asc | id |
| index_entity | Performance | Asc/Asc | entity_table + entity_id |
| UI_batch_entity | Must be unique | Asc/Asc/Asc | batch_id + entity_id + entity_table |

