bank updated
This commit is contained in:
@@ -17,8 +17,6 @@ from api_library.date_time_actions.date_functions import system_arrow, client_ar
|
||||
from api_configs import ApiStatic, Auth
|
||||
|
||||
|
||||
|
||||
|
||||
class PasswordModule:
|
||||
|
||||
@classmethod
|
||||
@@ -174,6 +172,7 @@ class AuthModule(PasswordModule):
|
||||
from databases import (
|
||||
UsersTokens,
|
||||
)
|
||||
|
||||
if remember_me:
|
||||
refresh_token = self.generate_token(Auth.REFRESHER_TOKEN_LENGTH)
|
||||
if already_token := UsersTokens.filter_by_one(
|
||||
|
||||
@@ -649,7 +649,6 @@ class BuildManagement(CrudCollection):
|
||||
)
|
||||
|
||||
|
||||
|
||||
class BuildArea(CrudCollection):
|
||||
"""
|
||||
Builds class based on declarative_base and BaseMixin via session
|
||||
|
||||
@@ -590,7 +590,9 @@ class BuildDecisionBookItems(CrudCollection):
|
||||
String, nullable=True, comment="Decision Book UUID"
|
||||
)
|
||||
item_short_comment: Mapped[str] = mapped_column(
|
||||
String(24), nullable=True, comment="This field is reserved for use in grouping data or in the pivot heading."
|
||||
String(24),
|
||||
nullable=True,
|
||||
comment="This field is reserved for use in grouping data or in the pivot heading.",
|
||||
)
|
||||
|
||||
decision_books: Mapped["BuildDecisionBook"] = relationship(
|
||||
@@ -1232,7 +1234,9 @@ class BuildDecisionBookProjectItems(CrudCollection):
|
||||
Numeric(16, 2), server_default="0", comment="Estimated Cost"
|
||||
)
|
||||
item_short_comment: Mapped[str] = mapped_column(
|
||||
String(24), nullable=True, comment="This field is reserved for use in grouping data or in the pivot heading."
|
||||
String(24),
|
||||
nullable=True,
|
||||
comment="This field is reserved for use in grouping data or in the pivot heading.",
|
||||
)
|
||||
|
||||
build_decision_book_project_id: Mapped[int] = mapped_column(
|
||||
|
||||
@@ -37,7 +37,8 @@ class UsersTokens(CrudCollection):
|
||||
token: Mapped[str] = mapped_column(String, server_default="")
|
||||
domain: Mapped[str] = mapped_column(String, server_default="")
|
||||
expires_at: Mapped[TIMESTAMP] = mapped_column(
|
||||
TIMESTAMP(timezone=True), default=str(system_arrow.shift(date=system_arrow.now(), days=3))
|
||||
TIMESTAMP(timezone=True),
|
||||
default=str(system_arrow.shift(date=system_arrow.now(), days=3)),
|
||||
)
|
||||
|
||||
# users = relationship("Users", back_populates="tokens", foreign_keys=[user_id])
|
||||
@@ -321,7 +322,9 @@ class People(CrudCollection, SelectAction):
|
||||
String, server_default="", comment="Birth place of the person"
|
||||
)
|
||||
birth_date: Mapped[TIMESTAMP] = mapped_column(
|
||||
TIMESTAMP(timezone=True), server_default="1900-01-01", comment="Birth date of the person"
|
||||
TIMESTAMP(timezone=True),
|
||||
server_default="1900-01-01",
|
||||
comment="Birth date of the person",
|
||||
)
|
||||
tax_no: Mapped[str] = mapped_column(
|
||||
String, server_default="", comment="Tax number of the person"
|
||||
|
||||
Reference in New Issue
Block a user