jm_job_edge.py 389 B

123456789101112131415
  1. from sqlalchemy import Boolean, Column, ForeignKey, Integer, String
  2. from app.models.database import BaseModel
  3. class JmJobEdge(BaseModel):
  4. __tablename__ = "jm_job_edge"
  5. id = Column(Integer, primary_key=True, index=True)
  6. # 进节点
  7. in_node_id = Column(Integer)
  8. # 出节点
  9. out_node_id = Column(Integer)
  10. # 任务id
  11. job_id = Column(Integer, nullable=False)