from sqlalchemy import Column, Integer, ForeignKey
from app.database import Base


class QuizQuestionLink(Base):
    __tablename__ = "quiz_question_links"

    quiz_id = Column(Integer, ForeignKey("quizzes.id", ondelete="CASCADE"), primary_key=True)
    question_id = Column(Integer, ForeignKey("questions.id", ondelete="CASCADE"), primary_key=True)
    position = Column(Integer, default=0)
