aboutsummaryrefslogtreecommitdiffstats
path: root/backend/models/antispam.py
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2020-12-12 14:33:37 +0000
committerGravatar GitHub <[email protected]>2020-12-12 14:33:37 +0000
commit558b99282ddf742104c62519817954791beb605a (patch)
treecfa3b6e6a57de4278027e254385ddc759496b2b9 /backend/models/antispam.py
parentAdd name and description fields to Form model (diff)
parentMerge pull request #17 from python-discord/ks123/response-model-endpoint (diff)
Merge branch 'main' into ks123/form-name-description
Diffstat (limited to 'backend/models/antispam.py')
-rw-r--r--backend/models/antispam.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/backend/models/antispam.py b/backend/models/antispam.py
new file mode 100644
index 0000000..b16f686
--- /dev/null
+++ b/backend/models/antispam.py
@@ -0,0 +1,10 @@
+from pydantic import BaseModel
+
+
+class AntiSpam(BaseModel):
+ """Schema model for form response antispam field."""
+
+ ip_hash: str
+ user_agent_hash: str
+ captcha_pass: bool
+ dns_blacklisted: bool