Introduction to the Checkboxes Table
The checkboxes table is designed to store checkbox data for various processes within the Serial application. This table plays a crucial role in capturing boolean-type responses and potentially contributing to pass/fail criteria in process workflows.Table Structure
The checkboxes table is structured to efficiently store and relate checkbox data to other entities in the system. Here’s a detailed breakdown of its columns:| Column Name | Data Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key, not null | Unique identifier for each checkbox entry |
| company_id | uuid | foreign key, not null | Reference to the associated company |
| process_entry_id | uuid | foreign key, not null | Reference to the related process entry |
| unique_identifier_id | uuid | foreign key, not null | Reference to the associated unique identifier |
| dataset_id | uuid | foreign key, not null | Reference to the related dataset |
| prompt | text | not null | The text prompt or question for the checkbox |
| is_pass | boolean | nullable | Indicates if the checkbox contributes to a pass state |
| is_checked | boolean | not null | The state of the checkbox (checked or unchecked) |
| created_at | timestamp with time zone | not null, default now() | Timestamp of when the checkbox entry was created |
Usage and Functionality
The checkboxes table is designed to be a flexible and integral part of data collection within processes. Here are some key points about its usage:- Process Integration: Each checkbox is associated with a specific process entry, allowing for detailed tracking of checkbox responses within the context of a particular process execution.
-
Pass/Fail Criteria: The
is_passcolumn can be used to determine whether a checked or unchecked state contributes to the overall pass/fail status of a process or step. - Data Aggregation: By linking checkboxes to datasets and unique identifiers, the system can aggregate and analyze checkbox data across multiple processes or entities.
Notes
- Row-level security is enabled on the checkboxes table, ensuring data privacy and access control.
-
Policies are in place to restrict insert and select operations based on the user’s associated company ID:
- The table structure allows for efficient querying of checkbox data, enabling features like filtering process entries based on checkbox states or analyzing trends in checkbox responses over time.

