cohorta/backend/app/models
Vadym Samoilenko a8b0a40e08 fix(personas): expand PERSONA_ALLOWED_FIELDS + add library/clone endpoints
Port fixes from Semblance:
- PERSONA_ALLOWED_FIELDS: 9 → 62 fields — oceanTraits, frustrations,
  motivations, scenarios, aiSynthesizedBio, household/lifestyle fields,
  audience_brief, research_objective, etc. were silently discarded at
  Persona.create(), causing all OCEAN traits to render as 50% on frontend
- GET /personas/library — shared library endpoint (all users, bulk user lookup)
- POST /personas/:id/clone — clone any persona to current user
- GET /personas/:id — remove 403 for non-owners (read is public to auth users)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-29 14:12:04 +01:00
..
app_settings.py feat(ai-config): wire admin UI to LLM service — endpoint/key/model from DB 2026-05-25 13:10:40 +01:00
credit_transaction.py Rebrand to Cohorta + full UI redesign + registration with email verification 2026-05-23 18:40:08 +01:00
focus_group.py feat: commit all app changes — billing API, new auth, design overhaul 2026-05-23 19:04:43 +01:00
folder.py Apply Jintech security audit remediation (sprint 3) — 87/92 findings fixed 2026-03-20 12:51:18 +00:00
model_pricing.py fix(backend): 4 fixes — await add_message, MODEL_ALIASES, language rule, PDF + silent participants 2026-05-25 20:46:39 +01:00
persona.py fix(personas): expand PERSONA_ALLOWED_FIELDS + add library/clone endpoints 2026-05-29 14:12:04 +01:00
quota.py Add LLM usage tracking infrastructure (Phases A-C) 2026-04-24 18:08:27 +01:00
usage_event.py Add LLM usage tracking infrastructure (Phases A-C) 2026-04-24 18:08:27 +01:00
user.py fix: import datetime class in User.save() — NameError blocked all registration 2026-05-23 22:47:13 +01:00