> 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_settingsparent.md).

# tPri\_SettingsParent

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

## Description

One site's feature switches, such as chat, the AI features (images, voice, video, documents, suggestions, agent, translation and tag rules) and the dynamic housekeeping timeline.

<details>

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

```sql
CREATE TABLE `tPri_SettingsParent` (
  `id` int NOT NULL AUTO_INCREMENT,
  `uuid` varchar(255) DEFAULT NULL,
  `uuid_tParent` varchar(255) DEFAULT NULL,
  `fChatEnable` tinyint DEFAULT '0' COMMENT 'Show or hide the chat icons',
  `fAiImageEnable` tinyint DEFAULT '0' COMMENT 'AI image analysis enabled',
  `fAiVoiceEnable` tinyint DEFAULT '0' COMMENT 'AI voice analysis enabled',
  `fAiVideoEnable` tinyint DEFAULT '0' COMMENT 'AI video analysis enabled',
  `fAiDocumentEnable` tinyint DEFAULT '0' COMMENT 'AI document analysis enabled',
  `fDeleted` tinyint DEFAULT NULL,
  `fCreatedTs` bigint DEFAULT NULL,
  `fModifiedTs` bigint DEFAULT NULL,
  `fServerTs` bigint DEFAULT NULL,
  `uuid_tUser_CreatedBy` varchar(255) DEFAULT NULL,
  `uuid_tUser_ModifiedBy` varchar(255) DEFAULT NULL,
  `fAiSuggestionEnabled` tinyint DEFAULT '0' COMMENT '0-not allowed, 1-ai suggesstions allowed',
  `fAiUseOnlyExistingTag` tinyint DEFAULT '0' COMMENT '0-only existing tags allowed, 1-ai allowed to create new tag',
  `fAiLanguageTranslationEnabled` tinyint DEFAULT '0',
  `fAiAgentEnabled` tinyint DEFAULT '0',
  `fDynamicHousekeepingTimelineEnabled` tinyint(1) DEFAULT '0',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `uuid` (`uuid`) USING BTREE,
  UNIQUE KEY `unique_uuid_tParent` (`uuid_tParent`),
  CONSTRAINT `fk_settingsparent_parent` FOREIGN KEY (`uuid_tParent`) REFERENCES `tPri_Parent` (`uuid`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB DEFAULT CHARSET=latin1
```

</details>

## Columns

| Name                                | Type         | Default | Nullable | Extra Definition | Parents                                                                                 | Comment                                                                                                                                                                                                                                        |
| ----------------------------------- | ------------ | ------- | -------- | ---------------- | --------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| id                                  | int          |         | false    | auto\_increment  |                                                                                         |                                                                                                                                                                                                                                                |
| uuid                                | varchar(255) |         | true     |                  |                                                                                         |                                                                                                                                                                                                                                                |
| uuid\_tParent                       | varchar(255) |         | true     |                  | [tPri\_Parent](https://docs.snapfix.com/engineering-reference/db/tables/tpri_parent.md) |                                                                                                                                                                                                                                                |
| fChatEnable                         | tinyint      | 0       | true     |                  |                                                                                         | Show or hide the chat icons                                                                                                                                                                                                                    |
| fAiImageEnable                      | tinyint      | 0       | true     |                  |                                                                                         | AI image analysis enabled                                                                                                                                                                                                                      |
| fAiVoiceEnable                      | tinyint      | 0       | true     |                  |                                                                                         | AI voice analysis enabled                                                                                                                                                                                                                      |
| fAiVideoEnable                      | tinyint      | 0       | true     |                  |                                                                                         | AI video analysis enabled                                                                                                                                                                                                                      |
| fAiDocumentEnable                   | tinyint      | 0       | true     |                  |                                                                                         | AI document analysis enabled                                                                                                                                                                                                                   |
| fDeleted                            | tinyint      |         | true     |                  |                                                                                         |                                                                                                                                                                                                                                                |
| fCreatedTs                          | bigint       |         | true     |                  |                                                                                         |                                                                                                                                                                                                                                                |
| fModifiedTs                         | bigint       |         | true     |                  |                                                                                         |                                                                                                                                                                                                                                                |
| fServerTs                           | bigint       |         | true     |                  |                                                                                         |                                                                                                                                                                                                                                                |
| uuid\_tUser\_CreatedBy              | varchar(255) |         | true     |                  |                                                                                         |                                                                                                                                                                                                                                                |
| uuid\_tUser\_ModifiedBy             | varchar(255) |         | true     |                  |                                                                                         |                                                                                                                                                                                                                                                |
| fAiSuggestionEnabled                | tinyint      | 0       | true     |                  |                                                                                         | 0-not allowed, 1-ai suggesstions allowed                                                                                                                                                                                                       |
| fAiUseOnlyExistingTag               | tinyint      | 0       | true     |                  |                                                                                         | 1 keeps the AI's tag suggestions to the site's existing tags; 0, the default, lets it propose new tags. The database's own comment says the reverse; aitask\_pyserver reads 1 as existing tags only (app/services/ai\_task\_mysql.py:493-512). |
| fAiLanguageTranslationEnabled       | tinyint      | 0       | true     |                  |                                                                                         |                                                                                                                                                                                                                                                |
| fAiAgentEnabled                     | tinyint      | 0       | true     |                  |                                                                                         |                                                                                                                                                                                                                                                |
| fDynamicHousekeepingTimelineEnabled | tinyint(1)   | 0       | true     |                  |                                                                                         |                                                                                                                                                                                                                                                |

## Viewpoints

| Name                                                                                | Definition                                                                                                                |
| ----------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| [console](https://docs.snapfix.com/engineering-reference/db/tables/viewpoint-12.md) | Site Console and Multi-Site Console: site details and addresses, site settings, multi-sites, devices and username logins. |

## Constraints

| Name                       | Type        | Definition                                                 |
| -------------------------- | ----------- | ---------------------------------------------------------- |
| fk\_settingsparent\_parent | FOREIGN KEY | FOREIGN KEY (uuid\_tParent) REFERENCES tPri\_Parent (uuid) |
| PRIMARY                    | PRIMARY KEY | PRIMARY KEY (id)                                           |
| unique\_uuid\_tParent      | UNIQUE      | UNIQUE KEY unique\_uuid\_tParent (uuid\_tParent)           |
| uuid                       | UNIQUE      | UNIQUE KEY uuid (uuid)                                     |

## Indexes

| Name                  | Definition                                                   |
| --------------------- | ------------------------------------------------------------ |
| PRIMARY               | PRIMARY KEY (id) USING BTREE                                 |
| unique\_uuid\_tParent | UNIQUE KEY unique\_uuid\_tParent (uuid\_tParent) USING BTREE |
| uuid                  | UNIQUE KEY uuid (uuid) USING BTREE                           |

## Relations

```mermaid
erDiagram

"tPri_SettingsParent" |o--o| "tPri_Parent" : "FOREIGN KEY (uuid_tParent) REFERENCES tPri_Parent (uuid)"

"tPri_SettingsParent" {
  int id PK
  varchar_255_ uuid_tParent FK
}
"tPri_Parent" {
  int id PK
  varchar_255_ uuid
  varchar_255_ uuid_tUser_CreatedBy FK
}
```

***

> 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_settingsparent.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.
