Add equipment fail feature
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user