Columns
Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||
---|---|---|---|---|---|---|---|---|---|---|
sensor_id | INT UNSIGNED | 10 | √ | null |
|
|
||||
sensor_deleted | BIT | 3 | 0 |
|
|
|||||
sensor_class | VARCHAR | 64 | null |
|
|
|||||
device_id | INT UNSIGNED | 10 | 0 |
|
|
|||||
sensor_index | VARCHAR | 64 | √ | NULL |
|
|
||||
sensor_type | VARCHAR | 255 | null |
|
|
|||||
sensor_descr | VARCHAR | 255 | √ | NULL |
|
|
||||
sensor_divisor | INT | 10 | 1 |
|
|
|||||
sensor_multiplier | INT | 10 | 1 |
|
|
|||||
sensor_aggregator | VARCHAR | 16 | 'sum' |
|
|
|||||
sensor_current | DOUBLE | 22 | √ | NULL |
|
|
||||
sensor_prev | DOUBLE | 22 | √ | NULL |
|
|
||||
sensor_limit | DOUBLE | 22 | √ | NULL |
|
|
||||
sensor_limit_warn | DOUBLE | 22 | √ | NULL |
|
|
||||
sensor_limit_low | DOUBLE | 22 | √ | NULL |
|
|
||||
sensor_limit_low_warn | DOUBLE | 22 | √ | NULL |
|
|
||||
sensor_alert | BIT | 3 | 1 |
|
|
|||||
sensor_custom | enum('No', 'Yes') | 3 | 'No' |
|
|
|||||
entPhysicalIndex | VARCHAR | 16 | √ | NULL |
|
|
||||
entPhysicalIndex_measured | VARCHAR | 16 | √ | NULL |
|
|
||||
lastupdate | TIMESTAMP | 19 | current_timestamp() |
|
|
|||||
sensor_oids | TEXT | 65535 | null |
|
|
|||||
access_point_id | INT UNSIGNED | 10 | √ | NULL |
|
|
Indexes
Constraint Name | Type | Sort | Column(s) |
---|---|---|---|
PRIMARY | Primary key | Asc | sensor_id |
wireless_sensors_device_id_index | Performance | Asc | device_id |
wireless_sensors_sensor_class_index | Performance | Asc | sensor_class |
wireless_sensors_sensor_type_index | Performance | Asc | sensor_type |