jm_job_node.py 461 B

1234567891011121314151617
  1. from sqlalchemy import Boolean, Column, ForeignKey, Integer, String
  2. from app.models.database import BaseModel
  3. class JmJobNode(BaseModel):
  4. __tablename__ = "jm_job_node"
  5. id = Column(Integer, primary_key=True, index=True)
  6. # 任务id
  7. job_id = Column(Integer)
  8. # 作业id
  9. homework_id = Column(Integer)
  10. # 作业名称
  11. homework_name = Column(String)
  12. # 起始点(0:起始点;1:非起始点)
  13. start_point = Column(Integer)