docs: add kv db architecture notes

This commit is contained in:
nm17 2024-02-25 22:28:18 +04:00
parent 65a00c69ec
commit 8731609911
Signed by: nm17
GPG key ID: 3303B70C59145CD4

13
docs/kv_db_arch.md Normal file
View file

@ -0,0 +1,13 @@
# Архитектура KV DB (Dragonfly)
- `apikey_{apikey}`
- Поля
- `owner`
- Имеет время окончания
- `devices_{device_id}`
- Поля
- Вся информация о девайсе
- `devices_{device_id}_{tai_timestamp}_{sensor_id}`
- Поля
- `value`
- `unit`