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>
12 <type>int unsigned
</type>
13 <title>Entity Tag ID
</title>
14 <required>true
</required>
15 <comment>primary key
</comment>
20 <autoincrement>true
</autoincrement>
23 <name>entity_table
</name>
25 <title>Entity Table
</title>
27 <comment>physical tablename for entity being joined to file, e.g. civicrm_contact
</comment>
29 <optionGroupName>tag_used_for
</optionGroupName>
34 <name>entity_id
</name>
35 <type>int unsigned
</type>
36 <title>Entity ID
</title>
37 <required>true
</required>
38 <comment>FK to entity table specified in entity_table column.
</comment>
42 <idColumn>entity_id
</idColumn>
43 <typeColumn>entity_table
</typeColumn>
48 <type>int unsigned
</type>
50 <required>true
</required>
51 <comment>FK to civicrm_tag
</comment>
54 <table>civicrm_tag
</table>
55 <keyColumn>id
</keyColumn>
56 <labelColumn>name
</labelColumn>
64 <table>civicrm_tag
</table>
67 <onDelete>CASCADE
</onDelete>
70 <name>UI_entity_id_entity_table_tag_id
</name>
71 <fieldName>entity_id
</fieldName>
72 <fieldName>entity_table
</fieldName>
73 <fieldName>tag_id
</fieldName>