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

33 lines
694 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class StockBatchStatusHistory extends Model
{
protected $table = 'stock_batch_status_history';
protected $fillable = [
'stock_batch_id',
'stock_batch_status_id',
'status_note',
];
protected $casts = [
'created_at' => 'datetime',
'updated_at' => 'datetime',
];
public function stockBatch(): BelongsTo
{
return $this->belongsTo(StockBatch::class);
}
public function status(): BelongsTo
{
return $this->belongsTo(StockBatchStatus::class, 'stock_batch_status_id');
}
}