Created
January 28, 2021 13:04
-
-
Save Refffy/cd2d51a029ef82a240835cb55072be65 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pydantic import BaseModel | |
from dataclasses import field | |
from datetime import datetime | |
from typing import List | |
class PostSchema(BaseModel): | |
id: int = None | |
url: str | |
usr_name: str | |
title: str | |
tags: List[str] | |
created_at: datetime = datetime.utcnow() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment