Sensor Platforms
The sensor_platforms table stores information about the platforms on which sensors are mounted.
Table Schema
| Column Name | Data Type | Description |
|---|---|---|
id |
UUID |
Primary Key. A unique identifier for the sensor platform. |
sensor_platform_name |
String(255) |
The name of the sensor platform. This column has a unique constraint. |
sensor_platform_info |
JSONB |
A JSONB column for storing additional, unstructured information about the sensor platform. |
created_at |
TIMESTAMP |
The timestamp when the record was created. Defaults to the current time. |
updated_at |
TIMESTAMP |
The timestamp when the record was last updated. Automatically updates on any modification. |
Constraints and Indexes
- Unique Constraint: A
UniqueConstraintonsensor_platform_nameensures that each sensor platform has a unique name. - GIN Index: A GIN index named
idx_sensor_platforms_infois applied to thesensor_platform_infocolumn to optimize queries on the JSONB data.
Relationships
- Association Tables: The
sensor_platformstable is linked tosensorsandexperimentsthrough association tables.