Skip to content

Console

Bases: Base

ORM model for the local console endpoint.

Attributes:

Name Type Description
uid int

Primary key.

time datetime

Timestamp of the record.

full_json dict

Full JSON data.

mode str

Mode of the console.

tcp_port int

TCP port of the console.

Source code in p2pool/models.py
class Console(Base):
    """
    ORM model for the local console endpoint.

    Attributes:
        uid (int): Primary key.
        time (datetime): Timestamp of the record.
        full_json (dict): Full JSON data.
        mode (str): Mode of the console.
        tcp_port (int): TCP port of the console.
    """
    __tablename__ = 'console'
    uid = Column(Integer, primary_key=True)
    time = Column(DateTime, default=datetime.now)
    full_json = Column(JSON)
    mode = Column(String)
    tcp_port = Column(Integer)