Merge remote-tracking branch 'upstream/4.4' into 4.4-4.5-2014-10-14-11-16-10
[civicrm-core.git] / xml / schema / Core / File.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/Core</base>
5 <class>File</class>
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>
8 <add>1.5</add>
9 <log>true</log>
10 <field>
11 <name>id</name>
12 <type>int unsigned</type>
13 <title>File ID</title>
14 <required>true</required>
15 <comment>Unique ID</comment>
16 <add>1.5</add>
17 </field>
18 <primaryKey>
19 <name>id</name>
20 <autoincrement>true</autoincrement>
21 </primaryKey>
22 <field>
23 <name>file_type_id</name>
24 <type>int unsigned</type>
25 <title>File Type</title>
26 <comment>Type of file (e.g. Transcript, Income Tax Return, etc). FK to civicrm_option_value.</comment>
27 <add>1.5</add>
28 </field>
29 <field>
30 <name>mime_type</name>
31 <type>varchar</type>
32 <title>Mime Type</title>
33 <length>255</length>
34 <comment>mime type of the document</comment>
35 <add>1.5</add>
36 </field>
37 <field>
38 <name>uri</name>
39 <type>varchar</type>
40 <title>Path</title>
41 <length>255</length>
42 <comment>uri of the file on disk</comment>
43 <add>1.5</add>
44 </field>
45 <field>
46 <name>document</name>
47 <type>mediumblob</type>
48 <title>File Contents</title>
49 <comment>contents of the document</comment>
50 <add>1.5</add>
51 </field>
52 <field>
53 <name>description</name>
54 <type>varchar</type>
55 <title>File Description</title>
56 <length>255</length>
57 <comment>Additional descriptive text regarding this attachment (optional).</comment>
58 <add>1.5</add>
59 </field>
60 <field>
61 <name>upload_date</name>
62 <type>datetime</type>
63 <title>File Upload Date</title>
64 <comment>Date and time that this attachment was uploaded or written to server.</comment>
65 <add>1.5</add>
66 </field>
67 </table>