aboutsummaryrefslogtreecommitdiffstats
path: root/backend/models/dtos/antispam.py
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2024-07-08 21:35:32 +0100
committerGravatar Chris Lovering <[email protected]>2024-07-21 13:45:30 +0100
commit41169d155f025c78a68889d36b3cc4ebb07a99cf (patch)
treec06a45c930b3fcecc678256820962722c909b18a /backend/models/dtos/antispam.py
parentUpdate middleware to use SQLA to create db sessions (diff)
Move existing models to schemas namespace
This is to make room for a new ORM namespace for SQLAlchemy models
Diffstat (limited to 'backend/models/dtos/antispam.py')
-rw-r--r--backend/models/dtos/antispam.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/backend/models/dtos/antispam.py b/backend/models/dtos/antispam.py
new file mode 100644
index 0000000..b596d4d
--- /dev/null
+++ b/backend/models/dtos/antispam.py
@@ -0,0 +1,9 @@
+from pydantic import BaseModel
+
+
+class AntiSpam(BaseModel):
+ """Schema model for form response antispam field."""
+
+ ip_hash: str
+ user_agent_hash: str
+ captcha_pass: bool