crud for collections

This commit is contained in:
bdrtr 2025-05-14 18:29:46 +03:00
parent bf71979982
commit 250d3f1f15
4 changed files with 195 additions and 13 deletions

View file

@ -70,10 +70,9 @@ class Items(Base):
item_score: Mapped[float] = mapped_column(Float, default=0.0)
# ilişkiler
collections : Mapped['CollectionsDB']= relationship(
collections : Mapped[list['CollectionsDB']]= relationship(
"CollectionsDB",
secondary=collection_item,
back_populates="items",
lazy='select'
) #back_populates karşı tarafın ismi