from __future__ import annotations from sqlalchemy import Text from sqlalchemy.orm import Mapped, mapped_column from app.db.base import Base class EdgeNode(Base): __tablename__ = "edge_node" edge_id: Mapped[str] = mapped_column(Text, primary_key=True) hostname: Mapped[str] = mapped_column(Text, nullable=False) os_type: Mapped[str] = mapped_column(Text, nullable=False) agent_version: Mapped[str] = mapped_column(Text, nullable=False) capabilities_json: Mapped[str] = mapped_column(Text, nullable=False) node_status: Mapped[str] = mapped_column(Text, nullable=False, index=True) last_heartbeat_at: Mapped[str] = mapped_column(Text, nullable=False) created_at: Mapped[str] = mapped_column(Text, nullable=False) updated_at: Mapped[str] = mapped_column(Text, nullable=False)