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

# hotsoft\_RoomStatus

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

## Description

One Hotsoft room status; fCode is the code matched against the status Hotsoft sends, and hotsoft\_RoomStatusMapping maps it to Snapfix.

<details>

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

```sql
CREATE TABLE `hotsoft_RoomStatus` (
  `id` int NOT NULL AUTO_INCREMENT,
  `uuid` varchar(255) DEFAULT NULL,
  `type` varchar(255) DEFAULT NULL COMMENT 'roomStatus-main, other',
  `fCode` varchar(255) DEFAULT NULL,
  `fName` varchar(255) DEFAULT NULL,
  `fNameAlias` varchar(255) DEFAULT NULL,
  `fDescription` varchar(255) DEFAULT NULL,
  `fIntegrationType` varchar(255) DEFAULT NULL COMMENT 'sf-ro, sf-rw, other, none',
  `fInActive` tinyint DEFAULT '0',
  `fDeleted` tinyint DEFAULT '0',
  `fCreatedTs` bigint DEFAULT NULL,
  `fModifiedTs` bigint DEFAULT NULL,
  `fDeletedTs` bigint DEFAULT NULL,
  `fServerTs` bigint DEFAULT NULL,
  `uuid_tUser_CreatedBy` varchar(255) DEFAULT NULL,
  `uuid_tUser_ModifiedBy` varchar(255) DEFAULT NULL,
  `uuid_tUser_DeletedBy` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `uuid` (`uuid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC
```

</details>

## Columns

| Name                    | Type         | Default | Nullable | Extra Definition | Children                                                                                                            | Comment                                                                          |
| ----------------------- | ------------ | ------- | -------- | ---------------- | ------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
| id                      | int          |         | false    | auto\_increment  |                                                                                                                     |                                                                                  |
| uuid                    | varchar(255) |         | true     |                  | [hotsoft\_RoomStatusMapping](https://docs.snapfix.com/engineering-reference/db/tables/hotsoft_roomstatusmapping.md) |                                                                                  |
| type                    | varchar(255) |         | true     |                  |                                                                                                                     | main on every staging row; the database comment lists roomStatus-main and other. |
| fCode                   | varchar(255) |         | true     |                  |                                                                                                                     |                                                                                  |
| fName                   | varchar(255) |         | true     |                  |                                                                                                                     |                                                                                  |
| fNameAlias              | varchar(255) |         | true     |                  |                                                                                                                     |                                                                                  |
| fDescription            | varchar(255) |         | true     |                  |                                                                                                                     |                                                                                  |
| fIntegrationType        | varchar(255) |         | true     |                  |                                                                                                                     | sf-rw on every staging row; no Hotsoft code reads it.                            |
| fInActive               | tinyint      | 0       | true     |                  |                                                                                                                     |                                                                                  |
| fDeleted                | tinyint      | 0       | true     |                  |                                                                                                                     |                                                                                  |
| fCreatedTs              | bigint       |         | true     |                  |                                                                                                                     |                                                                                  |
| fModifiedTs             | bigint       |         | true     |                  |                                                                                                                     |                                                                                  |
| fDeletedTs              | bigint       |         | true     |                  |                                                                                                                     |                                                                                  |
| fServerTs               | bigint       |         | true     |                  |                                                                                                                     |                                                                                  |
| uuid\_tUser\_CreatedBy  | varchar(255) |         | true     |                  |                                                                                                                     |                                                                                  |
| uuid\_tUser\_ModifiedBy | varchar(255) |         | true     |                  |                                                                                                                     |                                                                                  |
| uuid\_tUser\_DeletedBy  | varchar(255) |         | true     |                  |                                                                                                                     |                                                                                  |

## Viewpoints

| Name                                                                                     | Definition                                                                                                                                                               |
| ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [integrations](https://docs.snapfix.com/engineering-reference/db/tables/viewpoint-14.md) | Property management system (PMS) integrations (mappings, room statuses, inbound and outbound queues, webhooks), Deputy, and the keys of the Open API and the vendor API. |

## Constraints

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

## Indexes

| Name    | Definition                         |
| ------- | ---------------------------------- |
| PRIMARY | PRIMARY KEY (id) USING BTREE       |
| uuid    | UNIQUE KEY uuid (uuid) USING BTREE |

## Relations

```mermaid
erDiagram

"hotsoft_RoomStatusMapping" }o--o| "hotsoft_RoomStatus" : "FOREIGN KEY (uuid_hotsoft_RoomStatus) REFERENCES hotsoft_RoomStatus (uuid)"

"hotsoft_RoomStatus" {
  int id PK
  varchar_255_ uuid
}
"hotsoft_RoomStatusMapping" {
  int id PK
  varchar_255_ uuid_hotsoft_RoomStatus 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/hotsoft_roomstatus.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.
