project.py 566 B

12345678910111213141516171819
  1. from sqlalchemy import Boolean, Column, ForeignKey, Integer, String
  2. from app.models.database import BaseModel
  3. class Project(BaseModel):
  4. __tablename__ = "project"
  5. id = Column(Integer, primary_key=True, index=True)
  6. # 项目名称
  7. name = Column(String, nullable=False)
  8. # 项目编码
  9. code = Column(String, nullable=False)
  10. # 项目类型(0:算法组;1:普通项目)
  11. type = Column(Integer, nullable=False)
  12. # 创建时间
  13. create_time = Column(Integer, nullable=False)
  14. # project_token
  15. project_token = Column(String)