File size: 524 Bytes
b7a7f32
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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