Introduction to the datasets Table
The datasets table is designed to store and manage various types of data collected during manufacturing processes. This table plays a crucial role in the system by providing a flexible structure to accommodate different data types, from simple measurements to complex file attachments, while maintaining relationships with processes, companies, and components.Table Structure
The datasets table is structured to capture a wide range of data attributes and metadata. Here’s a detailed breakdown of its columns:Usage and Functionality
The datasets table is designed to be versatile and accommodate various data collection needs in manufacturing processes. Here are some key points about its usage:-
Multi-type Data Support: The
data_typecolumn allows for different types of data to be stored, including quantitative measurements, qualitative assessments, images, files, checkboxes, and pass/fail results. This flexibility enables the system to handle diverse data collection requirements. -
Process Integration: Each dataset is associated with a specific process through the
process_idandprocess_revisioncolumns. This allows for version control of processes and ensures that datasets are always linked to the correct process version. -
Specification Limits: For quantitative data types, the
lsl(Lower Specification Limit) andusl(Upper Specification Limit) columns allow for the definition of acceptable ranges. This is crucial for quality control and automated pass/fail determinations. -
Component Linking: The
child_component_idcolumn enables datasets to be associated with specific components, which is particularly useful for tracking data across complex assemblies or multi-level bill of materials. -
Active Status Tracking: The
is_activecolumn allows for soft deletion or archiving of datasets without removing them from the database. This is useful for maintaining historical data while focusing queries on current, active datasets.
Notes
-
The
prior_valuesarray suggests that the system can track historical changes to dataset values, which could be useful for trend analysis or auditing purposes. -
The recent addition of the
schema_idcolumn indicates an evolution towards more structured data handling, potentially allowing for complex data parsing from log files or other structured data sources. -
Example usage in TypeScript:
-
The
ordercolumn allows for customizable sequencing of datasets within a process, which can be important for defining the flow of data collection steps.

