jm_homework.py 1013 B

12345678910111213141516171819202122232425262728293031323334353637
  1. from operator import index
  2. from sqlalchemy import Boolean, Column, ForeignKey, Integer, String
  3. from app.models.database import BaseModel
  4. class JmHomework(BaseModel):
  5. __tablename__ = 'jm_homework'
  6. id = Column(Integer, primary_key=True, index=True)
  7. # 作业名称
  8. name = Column(String)
  9. # 作业类型
  10. type = Column(String)
  11. # 作业分类
  12. tag = Column(String)
  13. # 镜像类别
  14. image_type = Column(Integer)
  15. # 执行镜像
  16. image_url = Column(String)
  17. # DAG_ID
  18. dag_uuid = Column(String)
  19. # DAG文件地址
  20. dag_url = Column(String)
  21. # 脚本文件
  22. script_file = Column(String)
  23. # 执行命令
  24. execute_command = Column(String)
  25. # 更新时间
  26. update_time = Column(Integer)
  27. # 创建时间
  28. create_time = Column(Integer)
  29. # 用户ID
  30. user_id = Column(String, nullable=False)
  31. # 项目ID
  32. project_id = Column(String, nullable=False)
  33. # 状态(0:已删除,1:未删除)
  34. status = Column(Integer, nullable=False)