vat_wms/app/Models/StockBatchStatus.php
2025-06-02 07:36:24 +02:00

27 lines
529 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
class StockBatchStatus extends Model
{
protected $table = 'stock_batch_status';
protected $fillable = [
'name',
'description',
];
protected $casts = [
'created_at' => 'datetime',
'updated_at' => 'datetime',
];
public function history(): HasMany
{
return $this->hasMany(StockBatchStatusHistory::class, 'stock_batch_status_id');
}
}