27 lines
529 B
PHP
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');
|
|
}
|
|
}
|