services api

This commit is contained in:
2025-07-31 17:26:30 +03:00
parent 479104a04f
commit 1f8db23f75
56 changed files with 1976 additions and 120 deletions

View File

@@ -1,6 +1,7 @@
from Schemas.base_imports import (
CrudCollection,
String,
Text,
Integer,
Boolean,
ForeignKey,
@@ -384,9 +385,9 @@ class AccountRecordsPredict(CrudCollection):
account_records_id: Mapped[int] = mapped_column(ForeignKey("account_records.id"), nullable=False)
account_records_uu_id: Mapped[str] = mapped_column(String(100), nullable=False)
prediction_model: Mapped[str] = mapped_column(String(10), nullable=False)
prediction_result: Mapped[int] = mapped_column(Integer, nullable=False)
prediction_field: Mapped[str] = mapped_column(String(10), nullable=False, server_default="")
prediction_model: Mapped[str] = mapped_column(String, nullable=False)
prediction_result: Mapped[str] = mapped_column(Text, nullable=False)
prediction_field: Mapped[str] = mapped_column(String, nullable=False, server_default="")
treshold: Mapped[float] = mapped_column(Numeric(18, 6), nullable=True)
is_first_prediction: Mapped[bool] = mapped_column(Boolean, server_default="0")
is_approved: Mapped[bool] = mapped_column(Boolean, server_default="0")