diff --git a/fastapi-app/database.py b/fastapi-app/database.py index 80c1439..bf01d92 100644 --- a/fastapi-app/database.py +++ b/fastapi-app/database.py @@ -32,7 +32,7 @@ class H5Model(Base): __tablename__ = "h5_models" id: Mapped[int] = mapped_column(primary_key=True) user_id: Mapped[int] = mapped_column(ForeignKey("users.id")) - model_path: Mapped[str] + path_model: Mapped[str] created_at: Mapped[datetime] = mapped_column(default=datetime.utcnow) user = relationship("User", back_populates="models") diff --git a/fastapi-app/schemas.py b/fastapi-app/schemas.py index 31f261a..27c9494 100644 --- a/fastapi-app/schemas.py +++ b/fastapi-app/schemas.py @@ -13,11 +13,11 @@ class CSVFileUpload(BaseModel): # H5ModelCreate: для добавления модели class H5ModelCreate(BaseModel): - model_path: str + path_model: str # ModelStatisticsCreate: для сохранения статистики модели class ModelStatisticsCreate(BaseModel): - model_id: int + id_model: int accuracy: float loss: float created_at: Optional[datetime] = None