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

# tPri\_ParentRoomStatus

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

## Description

Unused; empty, and only an unused Laravel model names it (php-apis's sync case for it is commented out). tPri\_Room.uuid\_tParentRoomStatus points here, with no foreign key.

<details>

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

```sql
CREATE TABLE `tPri_ParentRoomStatus` (
  `id` int NOT NULL AUTO_INCREMENT,
  `uuid` varchar(255) DEFAULT NULL,
  `uuid_tParent` varchar(255) DEFAULT NULL,
  `fName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `fImage` varchar(255) DEFAULT NULL,
  `sort_order` int DEFAULT '1000',
  `fOrigin` varchar(255) DEFAULT NULL,
  `fInActive` tinyint DEFAULT '0',
  `fDeleted` tinyint DEFAULT '0',
  `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,
  `excludeFromApi` tinyint DEFAULT '0',
  `excludeFromApiTs` bigint DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `uuid` (`uuid`) USING BTREE,
  KEY `fk_parentroomstatus_building` (`uuid_tParent`),
  KEY `fk_parentroomstatus_createdbyuser` (`uuid_tUser_CreatedBy`),
  CONSTRAINT `fk_parentroomstatus_building` FOREIGN KEY (`uuid_tParent`) REFERENCES `tPri_Parent` (`uuid`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_parentroomstatus_createdbyuser` FOREIGN KEY (`uuid_tUser_CreatedBy`) REFERENCES `tPri_User` (`uuid`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB DEFAULT CHARSET=latin1
```

</details>

## Columns

| Name                    | Type         | Default | Nullable | Extra Definition | Parents                                                                                 |
| ----------------------- | ------------ | ------- | -------- | ---------------- | --------------------------------------------------------------------------------------- |
| 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) |
| fName                   | varchar(255) |         | true     |                  |                                                                                         |
| fImage                  | varchar(255) |         | true     |                  |                                                                                         |
| sort\_order             | int          | 1000    | true     |                  |                                                                                         |
| fOrigin                 | varchar(255) |         | true     |                  |                                                                                         |
| fInActive               | tinyint      | 0       | true     |                  |                                                                                         |
| fDeleted                | tinyint      | 0       | true     |                  |                                                                                         |
| fCreatedTs              | bigint       |         | true     |                  |                                                                                         |
| fModifiedTs             | bigint       |         | true     |                  |                                                                                         |
| fServerTs               | bigint       |         | true     |                  |                                                                                         |
| uuid\_tUser\_CreatedBy  | varchar(255) |         | true     |                  | [tPri\_User](https://docs.snapfix.com/engineering-reference/db/tables/tpri_user.md)     |
| uuid\_tUser\_ModifiedBy | varchar(255) |         | true     |                  |                                                                                         |
| excludeFromApi          | tinyint      | 0       | true     |                  |                                                                                         |
| excludeFromApiTs        | bigint       |         | true     |                  |                                                                                         |

## Viewpoints

| Name                                                                             | Definition                                                                                                                 |
| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| [rooms](https://docs.snapfix.com/engineering-reference/db/tables/viewpoint-7.md) | Buildings, sections, areas and rooms, room statuses, guests and beds, the users linked to rooms and areas, and their logs. |

## Constraints

| Name                                | Type        | Definition                                                        |
| ----------------------------------- | ----------- | ----------------------------------------------------------------- |
| fk\_parentroomstatus\_building      | FOREIGN KEY | FOREIGN KEY (uuid\_tParent) REFERENCES tPri\_Parent (uuid)        |
| fk\_parentroomstatus\_createdbyuser | FOREIGN KEY | FOREIGN KEY (uuid\_tUser\_CreatedBy) REFERENCES tPri\_User (uuid) |
| PRIMARY                             | PRIMARY KEY | PRIMARY KEY (id)                                                  |
| uuid                                | UNIQUE      | UNIQUE KEY uuid (uuid)                                            |

## Indexes

| Name                                | Definition                                                                   |
| ----------------------------------- | ---------------------------------------------------------------------------- |
| fk\_parentroomstatus\_building      | KEY fk\_parentroomstatus\_building (uuid\_tParent) USING BTREE               |
| fk\_parentroomstatus\_createdbyuser | KEY fk\_parentroomstatus\_createdbyuser (uuid\_tUser\_CreatedBy) USING BTREE |
| PRIMARY                             | PRIMARY KEY (id) USING BTREE                                                 |
| uuid                                | UNIQUE KEY uuid (uuid) USING BTREE                                           |

## Relations

```mermaid
erDiagram

"tPri_ParentRoomStatus" }o--o| "tPri_Parent" : "FOREIGN KEY (uuid_tParent) REFERENCES tPri_Parent (uuid)"
"tPri_ParentRoomStatus" }o--o| "tPri_User" : "FOREIGN KEY (uuid_tUser_CreatedBy) REFERENCES tPri_User (uuid)"

"tPri_ParentRoomStatus" {
  int id PK
  varchar_255_ uuid_tParent FK
  varchar_255_ uuid_tUser_CreatedBy FK
}
"tPri_Parent" {
  int id PK
  varchar_255_ uuid
  varchar_255_ uuid_tUser_CreatedBy FK
}
"tPri_User" {
  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_parentroomstatus.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.
