1 <?xml version=
"1.0" encoding=
"iso-8859-1" ?>
6 <name>civicrm_file
</name>
7 <comment>Data store for uploaded (attached) files (pointer to file on disk OR blob). Maybe be joined to entities via custom_value.file_id or entity_file table.
</comment>
12 <type>int unsigned
</type>
13 <title>File ID
</title>
14 <required>true
</required>
15 <comment>Unique ID
</comment>
23 <autoincrement>true
</autoincrement>
26 <name>file_type_id
</name>
27 <type>int unsigned
</type>
28 <title>File Type
</title>
29 <comment>Type of file (e.g. Transcript, Income Tax Return, etc). FK to civicrm_option_value.
</comment>
33 <name>mime_type
</name>
35 <title>Mime Type
</title>
37 <comment>mime type of the document
</comment>
45 <comment>uri of the file on disk
</comment>
50 <type>mediumblob
</type>
51 <title>File Contents
</title>
52 <comment>contents of the document
</comment>
56 <name>description
</name>
58 <title>File Description
</title>
60 <comment>Additional descriptive text regarding this attachment (optional).
</comment>
64 <name>upload_date
</name>
66 <title>File Upload Date
</title>
67 <comment>Date and time that this attachment was uploaded or written to server.
</comment>
71 <name>created_id
</name>
72 <type>int unsigned
</type>
73 <title>Created By Contact ID
</title>
74 <comment>FK to civicrm_contact, who uploaded this file
</comment>
76 <label>Created By
</label>
81 <name>created_id
</name>
82 <table>civicrm_contact
</table>
85 <onDelete>SET NULL
</onDelete>