final version
This commit is contained in:
@@ -140,18 +140,6 @@ class AlgorithmRepository(Base):
|
||||
algorithm = relationship("Algorithm", back_populates="repository", uselist=False)
|
||||
|
||||
|
||||
class ServiceGroup(Base):
|
||||
"""服务分组模型"""
|
||||
__tablename__ = "service_groups"
|
||||
|
||||
id = Column(String, primary_key=True, index=True)
|
||||
name = Column(String, nullable=False, unique=True, index=True) # 分组名称
|
||||
description = Column(Text, default="") # 分组描述
|
||||
status = Column(String, default="active", index=True) # 状态
|
||||
created_at = Column(DateTime(timezone=True), server_default=func.now())
|
||||
updated_at = Column(DateTime(timezone=True), onupdate=func.now())
|
||||
|
||||
|
||||
class AlgorithmService(Base):
|
||||
"""算法服务模型"""
|
||||
__tablename__ = "algorithm_services"
|
||||
|
||||
Reference in New Issue
Block a user