ashwinR's picture
Upload 245 files
b7a7f32
raw
history blame
524 Bytes
from typing import Optional # noqa
from pydantic import BaseModel
class ${PascalCaseName}Base(BaseModel):
name: str
address: str
class ${PascalCaseName}Create(${PascalCaseName}Base):
pass
class ${PascalCaseName}Update(${PascalCaseName}Base):
pass
class ${PascalCaseName}InDBBase(${PascalCaseName}Base):
id: Optional[int]
class Config:
orm_mode = True
class ${PascalCaseName}InDB(${PascalCaseName}InDBBase):
pass
class ${PascalCaseName}(${PascalCaseName}InDBBase):
pass