Automated Action 246b4e058e Implement comprehensive FastAPI backend for landing page
Added complete backend infrastructure with:
- Authentication system with OAuth (Google, GitHub, Apple)
- Stripe payment processing with subscription management
- Testimonials management API
- Usage statistics tracking
- Email communication services
- Health monitoring endpoints
- Database migrations with Alembic
- Comprehensive API documentation

All APIs are production-ready with proper error handling,
security measures, and environment variable configuration.

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-01 23:39:39 +00:00

33 lines
819 B
Python

from typing import Optional
from pydantic import BaseModel
from datetime import datetime
class TestimonialBase(BaseModel):
name: str
title: Optional[str] = None
company: Optional[str] = None
content: str
avatar_url: Optional[str] = None
rating: float = 5.0
class TestimonialCreate(TestimonialBase):
pass
class TestimonialUpdate(BaseModel):
name: Optional[str] = None
title: Optional[str] = None
company: Optional[str] = None
content: Optional[str] = None
avatar_url: Optional[str] = None
rating: Optional[float] = None
is_featured: Optional[bool] = None
is_active: Optional[bool] = None
class Testimonial(TestimonialBase):
id: int
is_featured: bool
is_active: bool
created_at: datetime
class Config:
from_attributes = True