updated interface

This commit is contained in:
2026-03-30 15:49:26 +03:00
parent fbf5802c69
commit 86bfecca26
8 changed files with 1002 additions and 0 deletions

View File

@@ -65,6 +65,10 @@ class Board(db.Model):
"TuyaDevice", back_populates="board",
cascade="all, delete-orphan", lazy="dynamic"
)
devices = db.relationship(
"Device", back_populates="board",
cascade="all, delete-orphan", lazy="dynamic"
)
# ── helpers ──────────────────────────────────────────────────────
@property