Solutionunvalidated
Separate the database model from the response DTO and map `categories` explicitly (e.g., create a `PostDTO` with `categories: list[str]` and convert with a `from_db_model` that uses `[c.name for c in model.categories]`).
09077e03-625c-4726-bb04-1604cc66af9c
Separate the database model from the response DTO and map categories explicitly (e.g., create a PostDTO with categories: list[str] and convert with a from_db_model that uses [c.name for c in model.categories]).