relation.py 548 B

123456789101112131415161718192021
  1. from sqlalchemy import Boolean, Column, ForeignKey, Integer, String
  2. from app.models.database import BaseModel
  3. class Relation(BaseModel):
  4. __tablename__ = "relation"
  5. id = Column(Integer, primary_key=True, index=True)
  6. # 服务端id
  7. se_id = Column(Integer)
  8. # (datax,job,task,debug)
  9. type = Column(Integer, nullable=False)
  10. # airflow端id
  11. af_id = Column(Integer, nullable=False)
  12. # dag_uuid
  13. dag_uuid = Column(String)
  14. # af_run_id
  15. af_run_id = Column(String)
  16. # 执行状态
  17. status = Column(Integer)