graphicek/server/models/sensors.go

13 lines
480 B
Go

package models
type SensorItem struct {
Id int64 `json:"id" db:"id"`
Name string `json:"name" db:"name"`
Type *string `json:"type" db:"type"`
MqttBrokerId *int `json:"mqttBrokerId" db:"mqtt_broker_id"`
MqttTopic *string `json:"mqttTopic" db:"mqtt_topic"`
MqttPath *string `json:"mqttPath" db:"mqtt_path"`
AuthKey string `json:"authKey" db:"auth_key"`
LastContactAt *int64 `json:"lastContactAt" db:"last_contact_at"`
}