794 B
794 B
Архитектура KV DB (Dragonfly)
apikey_{apikey}
- API ключ для приложений
- Поля
owner
- Имеет TTL
devices_{device_uuid}
- Поля
exists
: booltls_only
: boolmtls_only
: boollat
: decimallong
: decimalalt
: decimal
- Поля
devices_{device_uuid}_sensor{sensor_mac}_{tai_timestamp}
- Только значение
devices_{device_uuid}_{sensor_mac}
- Поля
unit
: str
- Поля
devices_{device_uuid}_commands
devices_mac{device_mac}
- Маппинг до device_uuid
users_{user_uuid}
- username: string
- password_hash: string
!!!! Убедитесь что в переменных ключей нет _
!!!!