data_management.py 759 B

12345678910111213141516171819202122232425
  1. from sqlalchemy import Boolean, Column, ForeignKey, Integer, String
  2. from app.models.database import BaseModel
  3. class DataManagement(BaseModel):
  4. __tablename__ = "data_management"
  5. id = Column(Integer, primary_key=True, index=True)
  6. # 数据名称
  7. name = Column(String)
  8. # 表格名称
  9. table_name = Column(String)
  10. # 创建时间
  11. create_time = Column(Integer, nullable=False)
  12. # 创建人名称
  13. user_name = Column(String, nullable=False)
  14. # 创建人编号
  15. user_id = Column(String, nullable=False)
  16. # 项目编号
  17. project_id = Column(String, nullable=False)
  18. # af_run_id
  19. af_run_id = Column(String, nullable=False)
  20. # 状态(1:转存中,2:成功,3:失败)
  21. status = Column(Integer, nullable=False)