Files
Toiminnanohjaus/app/Modules/Inventory/Infrastructure/Persistence/Eloquent/TaskMaterialSuggestionModel.php

33 lines
823 B
PHP

<?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',
];
}
}