alchemy functions updated

This commit is contained in:
2024-11-10 14:13:38 +03:00
parent a28d4c22d1
commit aeda315119
12 changed files with 305 additions and 279 deletions

View File

@@ -321,11 +321,11 @@ class CrudCollection(BaseMixin, SmartQueryMixin):
__repr__ = ReprMixin.__repr__
id: Mapped[int] = mapped_column(primary_key=True)
uu_id: Mapped[UUID] = mapped_column(
uu_id: Mapped[str] = mapped_column(
UUID, server_default=text("gen_random_uuid()"), index=True, unique=True
)
ref_id: Mapped[UUID] = mapped_column(String(100), nullable=True, index=True)
ref_id: Mapped[str] = mapped_column(String(100), nullable=True, index=True)
created_at: Mapped[TIMESTAMP] = mapped_column(
"created_at",
TIMESTAMP(timezone=True),
@@ -342,7 +342,7 @@ class CrudCollection(BaseMixin, SmartQueryMixin):
nullable=False,
index=True,
)
cryp_uu_id: Mapped[UUID] = mapped_column(String, nullable=True, index=True)
cryp_uu_id: Mapped[str] = mapped_column(String, nullable=True, index=True)
created_by: Mapped[str] = mapped_column(String, nullable=True)
created_by_id: Mapped[int] = mapped_column(Integer, nullable=True)