from sqlalchemy import Column, ForeignKey, Integer, DateTime
from sqlalchemy.orm import relationship

from ..database import Base

class Artist_album(Base):
    __tablename__ = "artists_albums"

    id = Column(Integer, primary_key=True, index=True)
    artist_id = Column(Integer, ForeignKey("artists.id"))
    album_id = Column(Integer, ForeignKey("albums.id"))
    created_at = Column(DateTime, nullable=False)
    updated_at = Column(DateTime)

    artist = relationship("Artist", back_populates="artists_albums")
    album = relationship("Album", back_populates="artists_albums")
4a4d8fe2e2bd6b838ce0f4edf6fb432d1e4f9ab6
<mask token>

<mask token>


class Artist_album(Base):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Artist_album(Base):
    __tablename__ = 'artists_albums'
    id = Column(Integer, primary_key=True, index=True)
    artist_id = Column(Integer, ForeignKey('artists.id'))
    album_id = Column(Integer, ForeignKey('albums.id'))
    created_at = Column(DateTime, nullable=False)
    updated_at = Column(DateTime)
    artist = relationship('Artist', back_populates='artists_albums')
    album = relationship('Album', back_populates='artists_albums')

from sqlalchemy import Column, ForeignKey, Integer, DateTime
from sqlalchemy.orm import relationship
from ..database import Base


class Artist_album(Base):
    __tablename__ = 'artists_albums'
    id = Column(Integer, primary_key=True, index=True)
    artist_id = Column(Integer, ForeignKey('artists.id'))
    album_id = Column(Integer, ForeignKey('albums.id'))
    created_at = Column(DateTime, nullable=False)
    updated_at = Column(DateTime)
    artist = relationship('Artist', back_populates='artists_albums')
    album = relationship('Album', back_populates='artists_albums')

from sqlalchemy import Column, ForeignKey, Integer, DateTime
from sqlalchemy.orm import relationship

from ..database import Base

class Artist_album(Base):
    __tablename__ = "artists_albums"

    id = Column(Integer, primary_key=True, index=True)
    artist_id = Column(Integer, ForeignKey("artists.id"))
    album_id = Column(Integer, ForeignKey("albums.id"))
    created_at = Column(DateTime, nullable=False)
    updated_at = Column(DateTime)

    artist = relationship("Artist", back_populates="artists_albums")
    album = relationship("Album", back_populates="artists_albums")