Introduce a new feature for managing tenant-level email provider configurations (SMTP, IMAP, etc.) with full CRUD, activation, and test-connection capabilities.
Changes:
- Add alembic migration creating
email_provider_configstable with tenant_id FK, JSONB config column, is_active flag, and indexes - Add API router for email provider configs under
/email-providersexposing list, create, get, update, delete, activate, and test-connection endpoints - Add Pydantic schemas (create/update/response, test-connection request/response) with field-level validation
- Add SQLAlchemy model and service layer with tenant scoping and single-active-config enforcement per tenant
- Register new router in v1 API aggregator