Initial commit

This commit is contained in:
Артём Кокос
2026-02-12 21:52:24 +07:00
commit c7adc24b07
6 changed files with 326 additions and 0 deletions

15
app/models/device.py Normal file
View File

@@ -0,0 +1,15 @@
from pydantic import BaseModel
from typing import List, Optional
class Device(BaseModel):
id: str # MAC-адрес или UUID
ip: str
name: str
room: str
class Group(BaseModel):
id: str
name: str
device_ids: List[str] # Список ID устройств, входящих в люстру