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 <type>int unsigned
</type>
12 <required>true
</required>
13 <comment>primary key
</comment>
18 <autoincrement>true
</autoincrement>
21 <name>entity_table
</name>
24 <comment>physical tablename for entity being joined to file, e.g. civicrm_contact
</comment>
28 <name>entity_id
</name>
29 <type>int unsigned
</type>
30 <required>true
</required>
31 <comment>FK to entity table specified in entity_table column.
</comment>
35 <idColumn>entity_id
</idColumn>
36 <typeColumn>entity_table
</typeColumn>
40 <name>index_entity
</name>
41 <fieldName>entity_table
</fieldName>
42 <fieldName>entity_id
</fieldName>
47 <type>int unsigned
</type>
48 <required>true
</required>
49 <comment>FK to civicrm_file
</comment>
54 <table>civicrm_file
</table>
59 <name>index_entity_file_id
</name>
60 <fieldName>entity_table
</fieldName>
61 <fieldName>entity_id
</fieldName>
62 <fieldName>file_id
</fieldName>