flashcards-docker / models /Flashcardd.py
chavezord's picture
Upload 11 files
10af882 verified
raw
history blame contribute delete
235 Bytes
from pydantic import BaseModel, constr
from typing import Union, Optional
class Flashcard(BaseModel):
name: constr(max_length=100, min_length=5) # type: ignore
translation: Optional[str] = ""
sample_sentence: Optional[str] = ""