The project does not use SQLAlchemy ORM-level relationships or ForeignKey
constraints. All joins are done manually in CRUD queries. The relationship()
declarations on BizProductionWorkOrder.tasks and BizProductionTask.steps
caused mapper initialization failures because the child table columns lack
ForeignKey definitions.
Create 3 schema files for the production module:
- production_work_order.py: work order base, list query, complete
- production_task.py: task CRUD, steps, materials, outputs, inputs
- cell_product.py: cell product create, update, list query