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 <name>index_entity
</name>
55 <fieldName>entity_table
</fieldName>
56 <fieldName>entity_id
</fieldName>
62 <type>int unsigned
</type>
64 <required>true
</required>
65 <comment>FK to civicrm_tag
</comment>
70 <table>civicrm_tag
</table>
73 <onDelete>CASCADE
</onDelete>
76 <name>UI_entity_id_entity_table_tag_id
</name>
77 <fieldName>entity_id
</fieldName>
78 <fieldName>entity_table
</fieldName>
79 <fieldName>tag_id
</fieldName>