1 <?xml version=
"1.0" encoding=
"iso-8859-1" ?>
5 <class>EntityTag
</class>
6 <name>civicrm_entity_tag
</name>
7 <comment>Tag entities (Contacts, Groups, Actions) to categories.
</comment>
11 <type>int unsigned
</type>
12 <title>Entity Tag ID
</title>
13 <required>true
</required>
14 <comment>primary key
</comment>
19 <autoincrement>true
</autoincrement>
22 <name>contact_id
</name>
23 <type>int unsigned
</type>
24 <required>true
</required>
25 <comment>FK to contact table.
</comment>
30 <name>contact_id
</name>
31 <table>civicrm_contact
</table>
35 <onDelete>CASCADE
</onDelete>
38 <name>entity_table
</name>
40 <title>Entity Table
</title>
42 <comment>physical tablename for entity being joined to file, e.g. civicrm_contact
</comment>
46 <name>entity_id
</name>
47 <type>int unsigned
</type>
48 <title>Entity ID
</title>
49 <required>true
</required>
50 <comment>FK to entity table specified in entity_table column.
</comment>
54 <idColumn>entity_id
</idColumn>
55 <typeColumn>entity_table
</typeColumn>
59 <name>index_entity
</name>
60 <fieldName>entity_table
</fieldName>
61 <fieldName>entity_id
</fieldName>
67 <type>int unsigned
</type>
69 <required>true
</required>
70 <comment>FK to civicrm_tag
</comment>
73 <table>civicrm_tag
</table>
74 <keyColumn>id
</keyColumn>
75 <labelColumn>name
</labelColumn>
80 <table>civicrm_tag
</table>
83 <onDelete>CASCADE
</onDelete>
86 <name>UI_entity_id_entity_table_tag_id
</name>
87 <fieldName>entity_id
</fieldName>
88 <fieldName>entity_table
</fieldName>
89 <fieldName>tag_id
</fieldName>