refact: use only server

This commit is contained in:
2025-08-27 13:28:50 +02:00
parent cf8a37f183
commit 2934224787
39 changed files with 6843 additions and 1223 deletions

View File

@@ -34,6 +34,28 @@ class ProxmoxCluster(Base):
verify_ssl = Column(Boolean, default=True)
created_at = Column(DateTime, default=datetime.utcnow)
class ProxmoxHost(Base):
__tablename__ = "proxmox_hosts"
id = Column(Integer, primary_key=True, index=True)
name = Column(String, index=True, nullable=False)
description = Column(String)
# Network configuration for WOL
ip_address = Column(String, nullable=False)
mac_address = Column(String, nullable=False)
# Proxmox configuration
proxmox_host = Column(String, nullable=False) # Can be same as ip_address
proxmox_username = Column(String, nullable=False)
proxmox_password = Column(String, nullable=False)
proxmox_port = Column(Integer, default=8006)
verify_ssl = Column(Boolean, default=True)
# Host status
is_online = Column(Boolean, default=False)
last_ping = Column(DateTime)
# Optional shutdown endpoint for host shutdown
shutdown_endpoint = Column(String, nullable=True) # e.g., /api/hosts/shutdown
created_at = Column(DateTime, default=datetime.utcnow)
class ActionLog(Base):
__tablename__ = "action_logs"