Skip to content

Commit

Permalink
chore: add pydantic schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
dantetemplar committed Oct 30, 2023
1 parent 1270e8b commit 7708727
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/schemas/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# fmt: off
__all__ = [

]
# fmt: on

17 changes: 17 additions & 0 deletions src/schemas/some_scheme_in_plural.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from pydantic import BaseModel


class CreateSomeSchemeInSingle(BaseModel):
...


class ViewSomeSchemeInSingle(BaseModel):
...


class UpdateSomeSchemeInSingle(BaseModel):
...

# Note: if some relation is needed, add it here
# from src.schemas.some_scheme2_in_plural import ViewSomeScheme2InPlural
# ViewSomeSchemeInSingle.model_rebuild()

0 comments on commit 7708727

Please sign in to comment.