initial commit for GitHub
This commit is contained in:
11
server/app/model/articles.py
Normal file
11
server/app/model/articles.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from typing import Optional
|
||||
|
||||
from pydantic import BaseModel, HttpUrl
|
||||
|
||||
|
||||
class Article(BaseModel):
|
||||
id: int
|
||||
article_title: str
|
||||
body: str
|
||||
is_featured: Optional[bool] = False
|
||||
video_url: Optional[HttpUrl] = None
|
||||
Reference in New Issue
Block a user