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>
11 <title>Entity File ID
</title>
12 <type>int unsigned
</type>
13 <required>true
</required>
14 <comment>primary key
</comment>
19 <autoincrement>true
</autoincrement>
22 <name>entity_table
</name>
23 <title>Entity Table
</title>
26 <comment>physical tablename for entity being joined to file, e.g. civicrm_contact
</comment>
30 <name>entity_id
</name>
31 <title>Entity ID
</title>
32 <type>int unsigned
</type>
33 <required>true
</required>
34 <comment>FK to entity table specified in entity_table column.
</comment>
38 <idColumn>entity_id
</idColumn>
39 <typeColumn>entity_table
</typeColumn>
43 <name>index_entity
</name>
44 <fieldName>entity_table
</fieldName>
45 <fieldName>entity_id
</fieldName>
51 <type>int unsigned
</type>
52 <required>true
</required>
53 <comment>FK to civicrm_file
</comment>
58 <table>civicrm_file
</table>
63 <name>index_entity_file_id
</name>
64 <fieldName>entity_table
</fieldName>
65 <fieldName>entity_id
</fieldName>
66 <fieldName>file_id
</fieldName>