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>
44 <optionGroupName>tag_used_for
</optionGroupName>
49 <name>entity_id
</name>
50 <type>int unsigned
</type>
51 <title>Entity ID
</title>
52 <required>true
</required>
53 <comment>FK to entity table specified in entity_table column.
</comment>
57 <idColumn>entity_id
</idColumn>
58 <typeColumn>entity_table
</typeColumn>
62 <name>index_entity
</name>
63 <fieldName>entity_table
</fieldName>
64 <fieldName>entity_id
</fieldName>
70 <type>int unsigned
</type>
72 <required>true
</required>
73 <comment>FK to civicrm_tag
</comment>
76 <table>civicrm_tag
</table>
77 <keyColumn>id
</keyColumn>
78 <labelColumn>name
</labelColumn>
86 <table>civicrm_tag
</table>
89 <onDelete>CASCADE
</onDelete>
92 <name>UI_entity_id_entity_table_tag_id
</name>
93 <fieldName>entity_id
</fieldName>
94 <fieldName>entity_table
</fieldName>
95 <fieldName>tag_id
</fieldName>