Add equipment fail feature

This commit is contained in:
Urtzi Alfaro
2026-01-11 17:03:46 +01:00
parent b66bfda100
commit ce4f3aff8c
19 changed files with 2101 additions and 51 deletions

View File

@@ -611,6 +611,9 @@ class Equipment(Base):
# Notes
notes = Column(Text, nullable=True)
# Support contact information
support_contact = Column(JSON, nullable=True)
# Timestamps
created_at = Column(DateTime(timezone=True), server_default=func.now())
updated_at = Column(DateTime(timezone=True), server_default=func.now(), onupdate=func.now())
@@ -655,6 +658,7 @@ class Equipment(Base):
"supports_remote_control": self.supports_remote_control,
"is_active": self.is_active,
"notes": self.notes,
"support_contact": self.support_contact,
"created_at": self.created_at.isoformat() if self.created_at else None,
"updated_at": self.updated_at.isoformat() if self.updated_at else None,
}