Columns
Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
---|---|---|---|---|---|---|---|---|---|---|---|
id | int4 | 10 | √ | null |
|
|
Unique ID for the attachment |
||||
file | uuid | 2147483647 | √ | null |
|
|
Universally Unique ID for the attachment, created by the fastapi storage micro-service |
||||
description | varchar | 10000 | √ | null |
|
|
Description of the attachment |
||||
file_name | varchar | 1000 | √ | null |
|
|
Original uploaded file name |
||||
file_type | varchar | 100 | √ | null |
|
|
Original uploaded file type |
||||
file_size | varchar | 100 | √ | null |
|
|
Original uploaded file size |
||||
application_id | int4 | 10 | null |
|
|
The id of the project (ccbc_public.application.id) that the attachment was uploaded to |
|||||
application_status_id | int4 | 10 | √ | null |
|
|
The id of the application_status (ccbc_public.application_status.id) that the attachment references |
||||
created_by | int4 | 10 | √ | null |
|
|
created by user id |
||||
created_at | timestamptz | 35,6 | now() |
|
|
created at timestamp |
|||||
updated_by | int4 | 10 | √ | null |
|
|
updated by user id |
||||
updated_at | timestamptz | 35,6 | now() |
|
|
updated at timestamp |
|||||
archived_by | int4 | 10 | √ | null |
|
|
archived by user id |
||||
archived_at | timestamptz | 35,6 | √ | null |
|
|
archived at timestamp |
Indexes
Constraint Name | Type | Sort | Column(s) |
---|---|---|---|
attachment_pkey | Primary key | Asc | id |
attachment_file | Must be unique | Asc | file |
ccbc_public_attachment_archived_by_foreign_key | Performance | Asc | archived_by |
ccbc_public_attachment_created_by_foreign_key | Performance | Asc | created_by |
ccbc_public_attachment_updated_by_foreign_key | Performance | Asc | updated_by |