29 lines
		
	
	
		
			647 B
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			647 B
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
<?php
 | 
						|
 | 
						|
namespace App\Models;
 | 
						|
 | 
						|
use Illuminate\Database\Eloquent\Factories\HasFactory;
 | 
						|
use Illuminate\Database\Eloquent\Model;
 | 
						|
use Illuminate\Database\Eloquent\Relations\HasOne;
 | 
						|
 | 
						|
class SerialNumberCheckTracking extends Model
 | 
						|
{
 | 
						|
    use HasFactory;
 | 
						|
 | 
						|
    public function __construct()
 | 
						|
    {
 | 
						|
        $this->table = 'serial_number_check_tracking';
 | 
						|
        $this->casts = [
 | 
						|
            'current_point' => 'integer',
 | 
						|
            'use_point' => 'integer',
 | 
						|
            'response' => 'json',
 | 
						|
        ];
 | 
						|
        $this->guarded = [];
 | 
						|
    }
 | 
						|
 | 
						|
    public function serial_number_check(): HasOne
 | 
						|
    {
 | 
						|
        return $this->hasOne(SerialNumberCheck::class);
 | 
						|
    }
 | 
						|
}
 |