diff options
| author | l3wdfut4pwr <l3wdfut4pwr@gmail.com> | 2026-04-04 00:03:04 +0300 |
|---|---|---|
| committer | l3wdfut4pwr <l3wdfut4pwr@gmail.com> | 2026-04-04 00:03:04 +0300 |
| commit | 63e87a3ed84ee9e9e4a4ff329a40d2b7ce5e5d0d (patch) | |
| tree | c24731c200df3b5854a5abc14f7a5481a33d838a /app/models/image.py | |
| parent | d835d79eb24c730ec8148415113e846a01cefd19 (diff) | |
add profile
Diffstat (limited to 'app/models/image.py')
| -rw-r--r-- | app/models/image.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/app/models/image.py b/app/models/image.py index e139123..b75b197 100644 --- a/app/models/image.py +++ b/app/models/image.py @@ -12,11 +12,12 @@ from sqlalchemy import ( Table, func, ) -from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column, relationship +from sqlalchemy.orm import Mapped, mapped_column, relationship -from .collections import Collection +from app.utils.db import Base + +# from .collections import Collection -Base = DeclarativeBase() image_tags = Table( "image_tags", @@ -63,8 +64,10 @@ class Image(Base): ) +""" collections: Mapped[list["Collection"]] = relationship( "Collection", secondary="collection_images", back_populates="images", ) +""" |
