INNER CODE UNIT · Python

AuthorBase

marty331/fasthtmx · schema/schema.py:23

class AuthorBase(BaseModel):
    first_name: str
    last_name: str
    email: str


class AuthorCreate(AuthorBase):
    pass


class Author(AuthorBase):
    id: int
    books: List[Book] = []

    class Config:
        orm_mode = True

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…