language models updated
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user