> For the complete documentation index, see [llms.txt](https://docs.docbits.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docbits.com/advanced-functions-and-tools/sql-access/sql-access/auto-test-document.md).

# Auto test document

## Spalten

* `id`: internal
* `org_id`: ID to organisation
* `doc_id`: internal
* `doc_type`: DOC Type
* `extracted_data`: text
* `created_by`: integer
* `created_on`: timestamp with time zone
* `last_modified_on`: timestamp with time zone
* `is_deleted`: boolean
* `filename`: internal

## Analyse & Beschreibung

```markdown
# Table Documentation: `public.auto_test_document`

## Introduction

The `public.auto_test_document` table is designed to store metadata and extraction results from document processing within an organization. The table captures information about documents, their types, and the data extracted from them. It includes fields for document identification, processing metadata, and status flags, which are essential for managing document workflows and ensuring data integrity.

## Column Descriptions

### id
- **Meaning**: Unique identifier for each document entry in the table.
- **Role**: Primary key.
- **Typical Contents**: UUID string.
- **Note**: Serves as a unique identifier for records, ensuring each entry is distinct.

### org_id
- **Meaning**: Identifier for the organization associated with the document.
- **Role**: Foreign key.
- **Typical Contents**: UUID string.
- **Note**: Links the document to a specific organization within the system.

### doc_id
- **Meaning**: Identifier of the document being processed.
- **Role**: Foreign key.
- **Typical Contents**: UUID string.
- **Note**: Used to associate extracted data with the original document.

### doc_type
- **Meaning**: Type or category of the document.
- **Role**: Descriptive field.
- **Typical Contents**: String such as "MEDI_ORDER".
- **Note**: Helps in categorizing documents for processing and analysis.

### extracted_data
- **Meaning**: JSON structure containing detailed data extracted from the document.
- **Role**: Data field.
- **Typical Contents**: JSON text with fields, values, and extraction metadata.
- **Note**: Stores the results of the document's data extraction process.

### created_by
- **Meaning**: Identifier of the user who created the document record.
- **Role**: Descriptive field.
- **Typical Contents**: Integer representing a user ID.
- **Note**: Tracks which user initiated the document's entry into the system.

### created_on
- **Meaning**: Timestamp indicating when the document record was created.
- **Role**: Technical field.
- **Typical Contents**: Date and time with timezone information.
- **Note**: Useful for auditing and tracking the document's lifecycle.

### last_modified_on
- **Meaning**: Timestamp indicating the last modification made to the document record.
- **Role**: Technical field.
- **Typical Contents**: Date and time with timezone information.
- **Note**: Helps track changes and updates to the document record.

### is_deleted
- **Meaning**: Flag indicating if the document record has been marked as deleted.
- **Role**: Status field.
- **Typical Contents**: Boolean value.
- **Note**: Facilitates soft deletion of records, allowing for recovery if needed.

### filename
- **Meaning**: Name of the file associated with the document.
- **Role**: Descriptive field.
- **Typical Contents**: String, e.g., "7.pdf".
- **Note**: Provides a reference to the physical file associated with the document entry.

```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.docbits.com/advanced-functions-and-tools/sql-access/sql-access/auto-test-document.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
