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>contact_id
</name>
24 <type>int unsigned
</type>
25 <required>true
</required>
26 <comment>FK to contact table.
</comment>
31 <name>contact_id
</name>
32 <table>civicrm_contact
</table>
36 <onDelete>CASCADE
</onDelete>
39 <name>entity_table
</name>
41 <title>Entity Table
</title>
43 <comment>physical tablename for entity being joined to file, e.g. civicrm_contact
</comment>
45 <optionGroupName>tag_used_for
</optionGroupName>
50 <name>entity_id
</name>
51 <type>int unsigned
</type>
52 <title>Entity ID
</title>
53 <required>true
</required>
54 <comment>FK to entity table specified in entity_table column.
</comment>
58 <idColumn>entity_id
</idColumn>
59 <typeColumn>entity_table
</typeColumn>
63 <name>index_entity
</name>
64 <fieldName>entity_table
</fieldName>
65 <fieldName>entity_id
</fieldName>
71 <type>int unsigned
</type>
73 <required>true
</required>
74 <comment>FK to civicrm_tag
</comment>
77 <table>civicrm_tag
</table>
78 <keyColumn>id
</keyColumn>
79 <labelColumn>name
</labelColumn>
87 <table>civicrm_tag
</table>
90 <onDelete>CASCADE
</onDelete>
93 <name>UI_entity_id_entity_table_tag_id
</name>
94 <fieldName>entity_id
</fieldName>
95 <fieldName>entity_table
</fieldName>
96 <fieldName>tag_id
</fieldName>