from sqlalchemy import Column, Integer, String, BigInteger, Boolean
from sqlalchemy.orm import declarative_base

# Base class for SQLAlchemy models
Base = declarative_base()

class BgRemoveImg(Base):
    """
    SQLAlchemy model for the `bg_remove_img` table.
    """
    __tablename__ = 'bg_remove_img'
    bg_history_id = Column(Integer, primary_key=True, index=True, autoincrement=True)
    user_device_id = Column(Integer, nullable=False)
    tattoo_style_id = Column(Integer, nullable=True)
    name = Column(String(255), nullable=True)
    image_url = Column(String(8192), nullable=False)
    is_history = Column(Boolean, default=False)
    created_at = Column(BigInteger, nullable=True)
    updated_at = Column(BigInteger, nullable=True)
