diff options
| author | 2020-12-07 20:08:31 +0200 | |
|---|---|---|
| committer | 2020-12-07 20:08:31 +0200 | |
| commit | 62a7dda4a2e83b880a7e16df4687d8ea86c1bd69 (patch) | |
| tree | 8f61ef1e431bc926e74aa3bf7341d0ba7526de84 /backend/models | |
| parent | Merge pull request #16 from python-discord/add-form-response-schema (diff) | |
Create Pydantic model for form response antispam data
Diffstat (limited to '')
| -rw-r--r-- | backend/models/antispam.py | 10 | 
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 | 
