language-learning-app/api/app/domain/models/flashcard.py

29 lines
537 B
Python
Raw Normal View History

from dataclasses import dataclass
from datetime import datetime
@dataclass
class Flashcard:
id: str
user_id: str
bank_entry_id: str
source_lang: str
target_lang: str
prompt_text: str
answer_text: str
prompt_context_text: str | None
answer_context_text: str | None
card_direction: str
prompt_modality: str
created_at: datetime
@dataclass
class FlashcardEvent:
id: str
flashcard_id: str
user_id: str
event_type: str
user_response: str | None
created_at: datetime