language models updated

This commit is contained in:
2025-01-08 23:00:31 +03:00
parent 08896e4c61
commit 4fe1f36006
4 changed files with 170 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
from api_validations.validations_request import ListOptions
from databases.language_models.account.account import AccountBooksLanguageModel
from databases.sql_models.core_mixin import CrudCollection
from sqlalchemy.orm import mapped_column, Mapped
@@ -18,6 +20,7 @@ class AccountBooks(CrudCollection):
__tablename__ = "account_books"
__exclude__fields__ = []
__language_model__ = AccountBooksLanguageModel
country: Mapped[str] = mapped_column(String, nullable=False)
branch_type: Mapped[str] = mapped_column(SmallInteger, server_default="0")
@@ -50,6 +53,8 @@ class AccountBooks(CrudCollection):
)
class AccountCodes(CrudCollection):
__tablename__ = "account_codes"