> 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/tpri_jobattribute.md).

# tPri\_JobAttribute

{% 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/tPri_JobAttribute.md).
{% endhint %}

## Description

The value of one attribute (name, category, key and value) on one asset or task, following the register's attribute rule (tPri\_BusinessJobAttributeRule).

<details>

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

```sql
CREATE TABLE `tPri_JobAttribute` (
  `id` int NOT NULL AUTO_INCREMENT,
  `uuid` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `uuid_tBusiness` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `uuid_tJob` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `uuid_tParentJobAttributeRule` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `uuid_tBusinessJobAttributeRule` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `fName` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `atCategory` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `atKey` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `atValue` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sort_order` int DEFAULT '1000',
  `valType` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `fOrigin` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `fInActive` tinyint DEFAULT '0',
  `fDeleted` tinyint DEFAULT '0',
  `fSoftFreeze` tinyint DEFAULT '0' COMMENT 'When the tPri_Job is set to freeze then so is this',
  `fCreatedTs` bigint DEFAULT NULL,
  `fModifiedTs` bigint DEFAULT NULL,
  `fServerTs` bigint DEFAULT NULL,
  `uuid_tUser_CreatedBy` varchar(255) CHARACTER SET latin1 DEFAULT NULL,
  `uuid_tUser_ModifiedBy` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `excludeFromApi` tinyint DEFAULT '0',
  `excludeFromApiTs` bigint DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `uuid` (`uuid`) USING BTREE,
  KEY `idx_jobattribute_uuid_tjob` (`uuid_tJob`),
  KEY `uuid_tBusiness-jobattr` (`uuid_tBusiness`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
```

</details>

## Columns

| Name                            | Type         | Default | Nullable | Extra Definition | Comment                                             |
| ------------------------------- | ------------ | ------- | -------- | ---------------- | --------------------------------------------------- |
| id                              | int          |         | false    | auto\_increment  |                                                     |
| uuid                            | varchar(255) |         | true     |                  |                                                     |
| uuid\_tBusiness                 | varchar(255) |         | true     |                  |                                                     |
| uuid\_tJob                      | varchar(255) |         | true     |                  |                                                     |
| uuid\_tParentJobAttributeRule   | varchar(255) |         | true     |                  |                                                     |
| uuid\_tBusinessJobAttributeRule | varchar(255) |         | true     |                  |                                                     |
| fName                           | varchar(255) |         | true     |                  |                                                     |
| atCategory                      | varchar(255) |         | true     |                  |                                                     |
| atKey                           | varchar(255) |         | true     |                  |                                                     |
| atValue                         | varchar(255) |         | true     |                  |                                                     |
| sort\_order                     | int          | 1000    | true     |                  |                                                     |
| valType                         | varchar(255) |         | true     |                  |                                                     |
| fOrigin                         | varchar(255) |         | true     |                  |                                                     |
| fInActive                       | tinyint      | 0       | true     |                  |                                                     |
| fDeleted                        | tinyint      | 0       | true     |                  |                                                     |
| fSoftFreeze                     | tinyint      | 0       | true     |                  | When the tPri\_Job is set to freeze then so is this |
| fCreatedTs                      | bigint       |         | true     |                  |                                                     |
| fModifiedTs                     | bigint       |         | true     |                  |                                                     |
| fServerTs                       | bigint       |         | true     |                  |                                                     |
| uuid\_tUser\_CreatedBy          | varchar(255) |         | true     |                  |                                                     |
| uuid\_tUser\_ModifiedBy         | varchar(255) |         | true     |                  |                                                     |
| excludeFromApi                  | tinyint      | 0       | true     |                  |                                                     |
| excludeFromApiTs                | bigint       |         | true     |                  |                                                     |

## Viewpoints

| Name                                                                              | Definition                                                                                                                                                                              |
| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [tasks](https://docs.snapfix.com/engineering-reference/db/tables/viewpoint-2.md)  | Tasks (`tPri_Job`): statuses and their history, assignees and followers, tags on tasks, time and cost, task links, view logs, the shared task page, and the task type and origin codes. |
| [assets](https://docs.snapfix.com/engineering-reference/db/tables/viewpoint-9.md) | Asset registers and their categories, attributes and attribute rules, and the links between tasks and assets.                                                                           |

## Constraints

| Name    | Type        | Definition             |
| ------- | ----------- | ---------------------- |
| PRIMARY | PRIMARY KEY | PRIMARY KEY (id)       |
| uuid    | UNIQUE      | UNIQUE KEY uuid (uuid) |

## Indexes

| Name                          | Definition                                                 |
| ----------------------------- | ---------------------------------------------------------- |
| idx\_jobattribute\_uuid\_tjob | KEY idx\_jobattribute\_uuid\_tjob (uuid\_tJob) USING BTREE |
| uuid\_tBusiness-jobattr       | KEY uuid\_tBusiness-jobattr (uuid\_tBusiness) USING BTREE  |
| PRIMARY                       | PRIMARY KEY (id) USING BTREE                               |
| uuid                          | UNIQUE KEY uuid (uuid) USING BTREE                         |

## Relations

```mermaid
erDiagram


"tPri_JobAttribute" {
  int id 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/tpri_jobattribute.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.
