feat: T03+T04 backend - FastAPI, DB models, Rentman integration, admin auth, APScheduler

This commit is contained in:
Implementation Engineer
2026-07-09 01:36:46 +02:00
parent 3bfa54b4b3
commit 88cff68f73
78 changed files with 2174 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
"""Pydantic schema for contact form."""
from pydantic import BaseModel, EmailStr, field_validator
class ContactCreate(BaseModel):
name: str
email: EmailStr
phone: str | None = None
message: str
privacy_consent: bool
@field_validator("privacy_consent")
@classmethod
def consent_must_be_true(cls, v: bool) -> bool:
if not v:
raise ValueError("privacy_consent must be True")
return v
class ContactResponse(BaseModel):
success: bool