Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||
|---|---|---|---|---|---|---|---|---|---|---|
| id | INT UNSIGNED | 10 | √ | null |
|
|
Unique ID |
|||
| file_type_id | INT UNSIGNED | 10 | √ | null |
|
|
Type of file (e.g. Transcript, Income Tax Return, etc). FK to civicrm_option_value. |
|||
| mime_type | VARCHAR | 255 | √ | null |
|
|
mime type of the document |
|||
| uri | VARCHAR | 255 | √ | null |
|
|
uri of the file on disk |
|||
| document | MEDIUMBLOB | 16777215 | √ | null |
|
|
contents of the document |
|||
| description | VARCHAR | 255 | √ | null |
|
|
Additional descriptive text regarding this attachment (optional). |
|||
| upload_date | DATETIME | 19 | √ | null |
|
|
Date and time that this attachment was uploaded or written to server. |
|||
| created_id | INT UNSIGNED | 10 | √ | null |
|
|
FK to civicrm_contact, who uploaded this file |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| PRIMARY | Primary key | Asc | id |
| FK_civicrm_file_created_id | Performance | Asc | created_id |

