Files
armonia-api/app/schemas/client.py
T
kiskaadee effa1ee86c feat: scaffold FastAPI backend with Turso and anti-ghosting booking state machine
- Initialize project with uv, FastAPI, and libsql-client for Turso persistence
- Implement local SQLite fallback (`file:local.db`) for zero-friction development and testing
- Create schema and seeder with 9 therapy services from Armonía del Ser flyer
- Implement POST /bookings with automatic WhatsApp deep-link generation and SPEI instructions
- Implement POST /payments/verify 1-tap admin acknowledgment flow
- Add automated test suite with 5 passing tests and verification gates (ruff, pyright, pytest)
2026-10-18 09:01:34 -05:00

20 lines
399 B
Python

from __future__ import annotations
from pydantic import BaseModel, Field
class ClientBase(BaseModel):
full_name: str = Field(..., min_length=2, max_length=150)
phone_whatsapp: str = Field(..., min_length=10, max_length=20)
email: str | None = None
notes: str | None = None
class ClientCreate(ClientBase):
pass
class ClientRead(ClientBase):
id: str
created_at: str