The table documents stores information about the documents (pdf, png, jpg) stored in the backend.
| Field | null | Description |
|---|---|---|
| document_id | no | A unique ID of this record (auto generated). |
| file_name | no | Name of the file. |
| content_type | no | Content type of the file. must be one of application/pdf, image/png or image/jpg. |
| driver | yes | The satnms driver name this document refers to or null if it does not refer to a driver / device type. |
| mnc_name | yes | The M&C name this document refers to or null if it does not refer to a M&C. |
| comment | yes | free text |
| modified | no | automatically created timestamp of last change |
The backend handles three types of documents:
Documents are stored on the backend machine in a common directory tree. Global documents are stored at the root of this tree. For each M&C and for each device driver the backend creates a subdirectory. M&C or driver related documents are stored in one of these subdirectories. File names must be unique within the subdirectory where they are are stored.