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

# tPri\_PreRegSurvey

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

## Description

One pre-registration survey, with the form shown during sign-up, when it runs (startTs to endTs), and IP and device type filters. The Laravel API reads it, and no row is newer than 2024-11.

<details>

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

```sql
CREATE TABLE `tPri_PreRegSurvey` (
  `id` int NOT NULL AUTO_INCREMENT,
  `uuid` varchar(255) DEFAULT NULL,
  `dynamic_form_json` json DEFAULT NULL,
  `startTs` bigint DEFAULT NULL,
  `endTs` bigint DEFAULT NULL,
  `ip_filter_json` json DEFAULT NULL,
  `device_type` json DEFAULT NULL,
  `fDeleted` tinyint DEFAULT '0',
  `fInActive` 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,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `uuid` (`uuid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1
```

</details>

## Columns

| Name                    | Type         | Default | Nullable | Extra Definition | Comment                    |
| ----------------------- | ------------ | ------- | -------- | ---------------- | -------------------------- |
| id                      | int          |         | false    | auto\_increment  |                            |
| uuid                    | varchar(255) |         | true     |                  |                            |
| dynamic\_form\_json     | json         |         | true     |                  | The survey form as JSON.   |
| startTs                 | bigint       |         | true     |                  |                            |
| endTs                   | bigint       |         | true     |                  |                            |
| ip\_filter\_json        | json         |         | true     |                  | The IP filter as JSON.     |
| device\_type            | json         |         | true     |                  | The device types, as JSON. |
| fDeleted                | tinyint      | 0       | true     |                  |                            |
| fInActive               | tinyint      | 0       | true     |                  |                            |
| fCreatedTs              | bigint       |         | true     |                  |                            |
| fModifiedTs             | bigint       |         | true     |                  |                            |
| fServerTs               | bigint       |         | true     |                  |                            |
| uuid\_tUser\_CreatedBy  | varchar(255) |         | true     |                  |                            |
| uuid\_tUser\_ModifiedBy | varchar(255) |         | true     |                  |                            |

## Viewpoints

| Name                                                                                  | Definition                                                                           |
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
| [onboarding](https://docs.snapfix.com/engineering-reference/db/tables/viewpoint-1.md) | Setting up a new site, the pre-registration survey, invitations, and joining a site. |

## 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


"tPri_PreRegSurvey" {
  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_preregsurvey.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.
