123456789101112131415161718192021222324252627282930313233343536373839 |
- from sqlalchemy import Boolean, Column, ForeignKey, Integer, String
- from app.models.database import BaseModel
- class Programme(BaseModel):
- __tablename__ = "programme"
- id = Column(Integer, primary_key=True, index=True)
- # 可视化编程名称
- name = Column(String, nullable=False)
- # 密码(暗文)
- password = Column(String, nullable=False)
- # 挂载目录
- workspace = Column(String, nullable=False)
- # api_url
- base_url = Column(String, nullable=False)
- # 使用镜像
- image = Column(String, nullable=False)
- # 路径
- path = Column(String, nullable=False)
- # xx名称
- release_name = Column(String, nullable=False)
- # 状态
- status = Column(Integer, nullable=False)
- # 创建时间
- create_time = Column(Integer, nullable=False)
- # 用户id
- user_id = Column(String, nullable=False)
- # 用户名称
- user_name = Column(String, nullable=False)
- # 项目id
- project_id = Column(String, nullable=False)
- # cpu资源
- cpu = Column(Integer, nullable=False)
- # 内存资源
- memory = Column(Integer, nullable=False)
- # 调度节点
- node_selector = Column(String, nullable=False)
|