script
This commit is contained in:
@@ -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}')>"
|
||||
|
||||
Reference in New Issue
Block a user