fix(phase1): add photo fields to schemas and set datetime default

This commit is contained in:
2026-04-20 21:49:51 +03:00
parent 6ed88fdb84
commit 92f6977cae
18 changed files with 250 additions and 6 deletions

View File

@@ -107,7 +107,7 @@ def create_item(
detail={
"message": f"Item with Part Number '{item.barcode}' already exists in inventory.",
"existing_id": existing.id,
"existing_item": schemas.Item.model_validate(existing).model_dump()
"existing_item": schemas.Item.model_validate(existing).model_dump(mode='json')
}
)