Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | bigserial | 19 | √ | nextval('files_id_seq'::regclass) |
|
|
|||||
| key | varchar | 36 | null |
|
|
||||||
| filename | varchar | 256 | null |
|
|
||||||
| content_type | varchar | 128 | √ | null |
|
|
|||||
| size | int8 | 19 | null |
|
|
||||||
| uploaded | timestamptz | 35,6 | √ | now() |
|
|
|||||
| deleted | timestamptz | 35,6 | √ | null |
|
|
|||||
| virus_scan_status | virus_scan_status | 2147483647 | 'not_started'::virus_scan_status |
|
|
||||||
| final | bool | 1 | false |
|
|
||||||
| page_count | int4 | 10 | √ | null |
|
|
|||||
| preview_status | preview_generation_status | 2147483647 | 'not_generated'::preview_generation_status |
|
|
||||||
| virus_scan_retry_after | timestamptz | 35,6 | √ | null |
|
|
|||||
| virus_scan_retry_count | int4 | 10 | 0 |
|
|
||||||
| origin_system | varchar | 256 | √ | null |
|
|
|||||
| origin_reference | varchar | 256 | √ | null |
|
|
|||||
| deleted_by | varchar | 256 | √ | null |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| files_pkey | Primary key | Asc | id |
| files_key_key | Must be unique | Asc | key |
| files_preview_generation_idx | Performance | Asc/Asc/Asc/Desc | preview_status + content_type + virus_scan_status + uploaded |
| files_uploaded_contenttype_deleted | Performance | Desc/Asc/Asc | uploaded + content_type + deleted |
| files_virus_scan_idx | Performance | Desc | uploaded |
| files_virus_scan_status | Performance | Asc | virus_scan_status |
