> For the complete documentation index, see [llms.txt](https://docs.snapfix.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.snapfix.com/engineering-reference/db/tables/ai_task_user_outstanding.md).

# ai\_task\_user\_outstanding

{% hint style="info" %}
Generated from the staging database schema, with descriptions drafted by agents ([how to read these docs](https://docs.snapfix.com/how-to-read.md)). [Source on GitHub](https://github.com/snapfix/docs/blob/main/spec/db/tables/ai_task_user_outstanding.md).
{% endhint %}

## Description

Number of a user's assigned tasks in one group (uuid\_tBusiness) that are not green yet, for aitask\_pyserver's assignee suggestions.

<details>

<summary><strong>Table Definition</strong></summary>

```sql
CREATE TABLE `ai_task_user_outstanding` (
  `uuid_tUser` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
  `uuid_tBusiness` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
  `outstanding_count` int NOT NULL DEFAULT '0',
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`uuid_tUser`,`uuid_tBusiness`) USING BTREE,
  KEY `idx_outstanding_business` (`uuid_tBusiness`) USING BTREE,
  KEY `idx_outstanding_updated_at` (`updated_at`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC
```

</details>

## Columns

| Name               | Type        | Default            | Nullable | Extra Definition                                |
| ------------------ | ----------- | ------------------ | -------- | ----------------------------------------------- |
| uuid\_tUser        | varchar(64) |                    | false    |                                                 |
| uuid\_tBusiness    | varchar(64) |                    | false    |                                                 |
| outstanding\_count | int         | 0                  | false    |                                                 |
| updated\_at        | datetime    | CURRENT\_TIMESTAMP | false    | DEFAULT\_GENERATED on update CURRENT\_TIMESTAMP |

## Viewpoints

| Name                                                                           | Definition                                                                                                                                             |
| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [ai](https://docs.snapfix.com/engineering-reference/db/tables/viewpoint-17.md) | Snapfix AI and AI suggestions: agent sessions and messages, brand documents, task insight and title-style data, token usage, the AI job log and queue. |

## Constraints

| Name    | Type        | Definition                                 |
| ------- | ----------- | ------------------------------------------ |
| PRIMARY | PRIMARY KEY | PRIMARY KEY (uuid\_tUser, uuid\_tBusiness) |

## Indexes

| Name                          | Definition                                                   |
| ----------------------------- | ------------------------------------------------------------ |
| idx\_outstanding\_business    | KEY idx\_outstanding\_business (uuid\_tBusiness) USING BTREE |
| idx\_outstanding\_updated\_at | KEY idx\_outstanding\_updated\_at (updated\_at) USING BTREE  |
| PRIMARY                       | PRIMARY KEY (uuid\_tUser, uuid\_tBusiness) USING BTREE       |

## Relations

```mermaid
erDiagram


"ai_task_user_outstanding" {
  varchar_64_ uuid_tUser PK
  varchar_64_ uuid_tBusiness PK
}
```

***

> Generated by [tbls](https://github.com/k1LoW/tbls)


---

# 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.snapfix.com/engineering-reference/db/tables/ai_task_user_outstanding.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.
