1 <?xml version=
"1.0" encoding=
"iso-8859-1" ?>
5 <class>EntityFile
</class>
6 <name>civicrm_entity_file
</name>
7 <comment>Attaches (joins) uploaded files (images, documents, etc.) to entities (Contacts, Groups, Actions).
</comment>
12 <title>Entity File ID
</title>
13 <type>int unsigned
</type>
14 <required>true
</required>
15 <comment>primary key
</comment>
20 <autoincrement>true
</autoincrement>
23 <name>entity_table
</name>
24 <title>Entity Table
</title>
27 <comment>physical tablename for entity being joined to file, e.g. civicrm_contact
</comment>
31 <name>entity_id
</name>
32 <title>Entity ID
</title>
33 <type>int unsigned
</type>
34 <required>true
</required>
35 <comment>FK to entity table specified in entity_table column.
</comment>
39 <idColumn>entity_id
</idColumn>
40 <typeColumn>entity_table
</typeColumn>
44 <name>index_entity
</name>
45 <fieldName>entity_table
</fieldName>
46 <fieldName>entity_id
</fieldName>
52 <type>int unsigned
</type>
53 <required>true
</required>
54 <comment>FK to civicrm_file
</comment>
59 <table>civicrm_file
</table>
64 <name>UI_entity_table_entity_id_file_id
</name>
65 <fieldName>entity_table
</fieldName>
66 <fieldName>entity_id
</fieldName>
67 <fieldName>file_id
</fieldName>