Record used material on tasks and suggest workflow steps' default materials

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
2026-11-26 16:28:16 +02:00
co-authored by Claude Sonnet 5.5
parent 30132deb0e
commit bca1eed166
41 changed files with 1521 additions and 19 deletions
@@ -0,0 +1,32 @@
<?php
namespace App\Modules\Inventory\Infrastructure\Persistence\Eloquent;
use Illuminate\Database\Eloquent\Attributes\Fillable;
use Illuminate\Database\Eloquent\Attributes\Table;
use Illuminate\Database\Eloquent\Model;
/**
* Persistence model, used only inside the Inventory Infrastructure layer.
*
* @property int $id
* @property int $task_id
* @property int $stock_item_id
* @property int $quantity_milli
*/
#[Table('task_material_suggestions')]
#[Fillable(['task_id', 'stock_item_id', 'quantity_milli'])]
class TaskMaterialSuggestionModel extends Model
{
/**
* @return array<string, string>
*/
protected function casts(): array
{
return [
'task_id' => 'integer',
'stock_item_id' => 'integer',
'quantity_milli' => 'integer',
];
}
}