Initial commit
This commit is contained in:
15
app/models/device.py
Normal file
15
app/models/device.py
Normal 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 устройств, входящих в люстру
|
||||
Reference in New Issue
Block a user