This commit is contained in:
2025-12-08 05:42:52 +01:00
parent 80d8b7aa87
commit 5d483b0df5
32 changed files with 9837 additions and 579 deletions
+4
View File
@@ -34,6 +34,9 @@ class HardwareSnapshot(Base):
# RAM
ram_total_mb = Column(Integer, nullable=True)
ram_used_mb = Column(Integer, nullable=True) # NEW: RAM utilisée
ram_free_mb = Column(Integer, nullable=True) # NEW: RAM libre
ram_shared_mb = Column(Integer, nullable=True) # NEW: RAM partagée (tmpfs/vidéo)
ram_slots_total = Column(Integer, nullable=True)
ram_slots_used = Column(Integer, nullable=True)
ram_ecc = Column(Boolean, nullable=True)
@@ -74,6 +77,7 @@ class HardwareSnapshot(Base):
# Relationships
device = relationship("Device", back_populates="hardware_snapshots")
benchmarks = relationship("Benchmark", back_populates="hardware_snapshot")
disk_smart_data = relationship("DiskSMART", back_populates="hardware_snapshot", cascade="all, delete-orphan")
def __repr__(self):
return f"<HardwareSnapshot(id={self.id}, device_id={self.device_id}, captured_at='{self.captured_at}')>"