Files
portal-api/app/Models/ReinstallLog.php
T

35 lines
615 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class ReinstallLog extends Model
{
use HasFactory;
protected $fillable = [
'product_id',
'product_type',
'customer_id',
'os_id',
'template_id',
'ip_address',
'status',
'error_message',
'initiator',
'note',
];
public function customer()
{
return $this->belongsTo(Customer::class);
}
public function os()
{
return $this->belongsTo(Os::class, 'os_id');
}
}