Skip to content

PoolBlocks

Bases: Base

ORM model for the pool blocks endpoint.

Attributes:

Name Type Description
uid int

Primary key.

time datetime

Timestamp of the record.

full_json dict

Full JSON data.

Source code in p2pool/models.py
class PoolBlocks(Base):
    """
    ORM model for the pool blocks endpoint.

    Attributes:
        uid (int): Primary key.
        time (datetime): Timestamp of the record.
        full_json (dict): Full JSON data.
    """
    __tablename__ = 'pool_blocks'
    uid = Column(Integer, primary_key=True)
    time = Column(DateTime, default=datetime.now)
    full_json = Column(JSON)