"""Node Table in the Database."""
from sqlalchemy import Column, Integer, UniqueConstraint, VARCHAR
from jobmon.server.web.models import Base
[docs]
class Node(Base):
"""Node Table in the Database."""
[docs]
id = Column(Integer, primary_key=True)
[docs]
task_template_version_id = Column(Integer, index=True, nullable=False)
[docs]
node_args_hash = Column(VARCHAR(150), nullable=False)
[docs]
__table_args__ = (
UniqueConstraint(
"task_template_version_id",
"node_args_hash",
name="uc_task_template_version_id_node_args_hash",
),
)