Commit | Line | Data |
---|---|---|
6a488035 TO |
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> | |
8f069c03 EM |
7 | <comment>Data store for uploaded (attached) files (pointer to file on disk OR blob). Maybe be joined to entities via |
8 | custom_value.file_id or entity_file table. | |
9 | </comment> | |
6a488035 TO |
10 | <add>1.5</add> |
11 | <log>true</log> | |
12 | <field> | |
8f069c03 EM |
13 | <name>id</name> |
14 | <type>int unsigned</type> | |
56b7523d | 15 | <title>File ID</title> |
8f069c03 EM |
16 | <required>true</required> |
17 | <comment>Unique ID</comment> | |
18 | <add>1.5</add> | |
6a488035 TO |
19 | </field> |
20 | <primaryKey> | |
8f069c03 EM |
21 | <name>id</name> |
22 | <autoincrement>true</autoincrement> | |
6a488035 TO |
23 | </primaryKey> |
24 | <field> | |
8f069c03 EM |
25 | <name>file_type_id</name> |
26 | <type>int unsigned</type> | |
56b7523d | 27 | <title>File Type</title> |
8f069c03 EM |
28 | <comment>Type of file (e.g. Transcript, Income Tax Return, etc). FK to civicrm_option_value.</comment> |
29 | <add>1.5</add> | |
6a488035 TO |
30 | </field> |
31 | <field> | |
8f069c03 EM |
32 | <name>mime_type</name> |
33 | <type>varchar</type> | |
56b7523d | 34 | <title>Mime Type</title> |
8f069c03 EM |
35 | <length>255</length> |
36 | <comment>mime type of the document</comment> | |
37 | <add>1.5</add> | |
6a488035 TO |
38 | </field> |
39 | <field> | |
8f069c03 EM |
40 | <name>uri</name> |
41 | <type>varchar</type> | |
56b7523d | 42 | <title>Path</title> |
8f069c03 EM |
43 | <length>255</length> |
44 | <comment>uri of the file on disk</comment> | |
45 | <add>1.5</add> | |
6a488035 TO |
46 | </field> |
47 | <field> | |
8f069c03 EM |
48 | <name>document</name> |
49 | <type>mediumblob</type> | |
56b7523d | 50 | <title>File Contents</title> |
8f069c03 EM |
51 | <comment>contents of the document</comment> |
52 | <add>1.5</add> | |
6a488035 TO |
53 | </field> |
54 | <field> | |
8f069c03 EM |
55 | <name>description</name> |
56 | <type>varchar</type> | |
56b7523d | 57 | <title>File Description</title> |
8f069c03 EM |
58 | <length>255</length> |
59 | <comment>Additional descriptive text regarding this attachment (optional).</comment> | |
60 | <add>1.5</add> | |
6a488035 TO |
61 | </field> |
62 | <field> | |
8f069c03 EM |
63 | <name>upload_date</name> |
64 | <type>datetime</type> | |
56b7523d | 65 | <title>File Upload Date</title> |
8f069c03 EM |
66 | <comment>Date and time that this attachment was uploaded or written to server.</comment> |
67 | <add>1.5</add> | |
6a488035 TO |
68 | </field> |
69 | </table> |