- 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)
20 lines
399 B
Python
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
|