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

# saved\_dashboard\_views

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

## Description

One saved ops dashboard view of a user, with its filters, tab states, layout, colour label and default flag; ops\_dashboard\_be reads and writes it.

<details>

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

```sql
CREATE TABLE `saved_dashboard_views` (
  `id` int NOT NULL AUTO_INCREMENT,
  `uuid` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
  `uuid_tUser` char(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `fDefault` tinyint DEFAULT '0',
  `global_filters` json NOT NULL,
  `tab_states` json DEFAULT NULL,
  `active_tab` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT 'overview',
  `preferences` json DEFAULT NULL,
  `sort_order` int DEFAULT '0',
  `color_label` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `fCreatedts` bigint DEFAULT '0',
  `fModifiedts` bigint DEFAULT '0',
  `last_accessed_at` bigint DEFAULT '0',
  `access_count` int DEFAULT '0',
  `fDeleted` tinyint DEFAULT '0',
  `fDeletedts` bigint DEFAULT '0',
  `schema_version` int DEFAULT '1',
  PRIMARY KEY (`id`),
  UNIQUE KEY `uuid` (`uuid`),
  UNIQUE KEY `unique_view_name_per_user` (`uuid_tUser`,`name`,`fDeleted`),
  KEY `idx_saved_views_user` (`uuid_tUser`,`fDeleted`),
  KEY `idx_saved_views_user_default` (`uuid_tUser`,`fDeleted`,`fDefault`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
```

</details>

## Columns

| Name               | Type         | Default  | Nullable | Extra Definition | Comment                                                                                                                        |
| ------------------ | ------------ | -------- | -------- | ---------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| id                 | int          |          | false    | auto\_increment  |                                                                                                                                |
| uuid               | char(36)     |          | false    |                  |                                                                                                                                |
| uuid\_tUser        | char(36)     |          | false    |                  |                                                                                                                                |
| name               | varchar(255) |          | false    |                  |                                                                                                                                |
| description        | varchar(500) |          | true     |                  |                                                                                                                                |
| fDefault           | tinyint      | 0        | true     |                  | 1 = the user's default view.                                                                                                   |
| global\_filters    | json         |          | false    |                  | JSON filters for the whole dashboard.                                                                                          |
| tab\_states        | json         |          | true     |                  |                                                                                                                                |
| active\_tab        | varchar(50)  | overview | true     |                  |                                                                                                                                |
| preferences        | json         |          | true     |                  |                                                                                                                                |
| sort\_order        | int          | 0        | true     |                  |                                                                                                                                |
| color\_label       | varchar(20)  |          | true     |                  |                                                                                                                                |
| fCreatedts         | bigint       | 0        | true     |                  |                                                                                                                                |
| fModifiedts        | bigint       | 0        | true     |                  |                                                                                                                                |
| last\_accessed\_at | bigint       | 0        | true     |                  |                                                                                                                                |
| access\_count      | int          | 0        | true     |                  |                                                                                                                                |
| fDeleted           | tinyint      | 0        | true     |                  |                                                                                                                                |
| fDeletedts         | bigint       | 0        | true     |                  | When the view was deleted, in milliseconds; this table spells its time columns with a lower-case ts (fCreatedts, fModifiedts). |
| schema\_version    | int          | 1        | true     |                  |                                                                                                                                |

## Viewpoints

| Name                                                                                | Definition                                                                    |
| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
| [reports](https://docs.snapfix.com/engineering-reference/db/tables/viewpoint-11.md) | Saved dashboard views, report files, monthly group statistics and wallboards. |

## Constraints

| Name                          | Type        | Definition                                                             |
| ----------------------------- | ----------- | ---------------------------------------------------------------------- |
| PRIMARY                       | PRIMARY KEY | PRIMARY KEY (id)                                                       |
| unique\_view\_name\_per\_user | UNIQUE      | UNIQUE KEY unique\_view\_name\_per\_user (uuid\_tUser, name, fDeleted) |
| uuid                          | UNIQUE      | UNIQUE KEY uuid (uuid)                                                 |

## Indexes

| Name                             | Definition                                                                         |
| -------------------------------- | ---------------------------------------------------------------------------------- |
| idx\_saved\_views\_user          | KEY idx\_saved\_views\_user (uuid\_tUser, fDeleted) USING BTREE                    |
| idx\_saved\_views\_user\_default | KEY idx\_saved\_views\_user\_default (uuid\_tUser, fDeleted, fDefault) USING BTREE |
| PRIMARY                          | PRIMARY KEY (id) USING BTREE                                                       |
| unique\_view\_name\_per\_user    | UNIQUE KEY unique\_view\_name\_per\_user (uuid\_tUser, name, fDeleted) USING BTREE |
| uuid                             | UNIQUE KEY uuid (uuid) USING BTREE                                                 |

## Relations

```mermaid
erDiagram


"saved_dashboard_views" {
  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/saved_dashboard_views.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.
