Skip to content

Instantly share code, notes, and snippets.

@Refffy
Created January 28, 2021 13:04
Show Gist options
  • Save Refffy/cd2d51a029ef82a240835cb55072be65 to your computer and use it in GitHub Desktop.
Save Refffy/cd2d51a029ef82a240835cb55072be65 to your computer and use it in GitHub Desktop.
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