crud for collections
This commit is contained in:
parent
bf71979982
commit
250d3f1f15
4 changed files with 195 additions and 13 deletions
|
|
@ -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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue