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>
23 <autoincrement>true
</autoincrement>
26 <name>entity_table
</name>
27 <title>Entity Table
</title>
30 <comment>physical tablename for entity being joined to file, e.g. civicrm_contact
</comment>
34 <name>entity_id
</name>
35 <title>Entity ID
</title>
36 <type>int unsigned
</type>
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 <title>File ID
</title>
49 <type>int unsigned
</type>
50 <required>true
</required>
51 <comment>FK to civicrm_file
</comment>
59 <table>civicrm_file
</table>
64 <name>UI_entity_id_entity_table_file_id
</name>
65 <fieldName>entity_id
</fieldName>
66 <fieldName>entity_table
</fieldName>
67 <fieldName>file_id
</fieldName>