Exclude 'creator' nested object from model_dump when creating custom commands. The issue was that Pydantic was including both creator_id and creator fields, causing Peewee to receive a nested dict that resulted in NULL creator_id values in the database insert, violating the NOT NULL constraint. This fix ensures only creator_id is passed to the ORM for foreign key mapping. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| routers_v3 | ||
| __init__.py | ||
| db_engine.py | ||
| dependencies.py | ||
| main.py | ||