Gurucool_Test / schemas /school.py
ashwinR's picture
Upload 245 files
b7a7f32
raw
history blame
403 Bytes
from typing import Optional # noqa
from pydantic import BaseModel
class SchoolBase(BaseModel):
name: str
address: str
class SchoolCreate(SchoolBase):
pass
class SchoolUpdate(SchoolBase):
pass
class SchoolInDBBase(SchoolBase):
id: Optional[int]
class Config:
orm_mode = True
class SchoolInDB(SchoolInDBBase):
pass
class School(SchoolInDBBase):
pass