major-domo-database/app
Cal Corum d9ca88c1c8 Fix custom command creation constraint violation
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>
2025-11-14 08:09:44 -06:00
..
routers_v3 Fix custom command creation constraint violation 2025-11-14 08:09:44 -06:00
__init__.py Initial commit 2023-03-21 16:09:46 -05:00
db_engine.py CLAUDE: Complete PostgreSQL migration for custom commands 2025-10-23 16:07:18 -05:00
dependencies.py CLAUDE: Fix cache_result decorator to handle Response objects properly 2025-08-27 22:48:30 -05:00
main.py Added HelpCommands 2025-10-17 16:36:40 -05:00