
- Set up project structure with FastAPI and SQLite - Create models for users, questions, and quizzes - Implement Alembic migrations with seed data - Add user authentication with JWT - Implement question management endpoints - Implement quiz creation and management - Add quiz-taking and scoring functionality - Set up API documentation and health check endpoint - Update README with comprehensive documentation
32 lines
649 B
Python
32 lines
649 B
Python
# Import models for Alembic discovery
|
|
# These imports are used by Alembic for migrations
|
|
# isort: off
|
|
|
|
from app.models.user import User
|
|
from app.models.question import (
|
|
BibleBook,
|
|
Question,
|
|
QuestionCategory,
|
|
QuestionDifficulty,
|
|
QuestionOption,
|
|
)
|
|
from app.models.quiz import (
|
|
Quiz,
|
|
QuizAttempt,
|
|
QuizQuestion,
|
|
QuizQuestionAnswer,
|
|
)
|
|
|
|
# Define which models should be available when importing from app.models
|
|
__all__ = [
|
|
"User",
|
|
"BibleBook",
|
|
"Question",
|
|
"QuestionCategory",
|
|
"QuestionDifficulty",
|
|
"QuestionOption",
|
|
"Quiz",
|
|
"QuizAttempt",
|
|
"QuizQuestion",
|
|
"QuizQuestionAnswer",
|
|
] |