from typing import Optional

from pydantic.main import BaseModel
from sqlalchemy import Column, Integer, String

from fastapi_tutorial.database import Base


class Blog(Base):
    __tablename__='blogs'
    id = Column(Integer, primary_key=True, index=True)
    title = Column(String)
    body = Column(String)
