4ccf4b7184
- backend/app/schemas/auth.py, ai_match.py, escrow.py (схемы) - frontend/components/ui/button.tsx (UI компонент) - email-validator в requirements.txt - frontend/tsconfig.json, tailwind.config.js, postcss.config.js - frontend: login page, projects/[id] page, ai-match page - Dockerfile для backend и frontend - docker-compose.yml с app-контейнерами и healthcheck - .env.example с полными переменными окружения - backend/tests/ — pytest тесты (conftest + test_health) - .drone.yml — CI/CD пайплайн для Drone CI - README.md — полный гайд по деплою
15 lines
513 B
Python
15 lines
513 B
Python
"""Схемы escrow-транзакций."""
|
|
|
|
from pydantic import BaseModel, Field
|
|
|
|
|
|
class EscrowCreate(BaseModel):
|
|
project_id: str = Field(..., description="ID проекта")
|
|
client_id: str = Field(..., description="ID клиента")
|
|
freelancer_id: str = Field(..., description="ID фрилансера")
|
|
amount: float = Field(..., gt=0, description="Сумма в рублях")
|
|
|
|
|
|
class EscrowRelease(BaseModel):
|
|
transaction_id: str = Field(..., description="ID транзакции")
|