<?php

namespace App\Models;

use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;

class HopImageupload extends Model
{
    protected $table = 'hop_image_upload';
    protected $primaryKey = 'hop_image_upload_id';
    protected $fillable = [
        'template_check_list_id',
        'status_id',
        'hop_image',
        'ueser_create_id',
        'active_status',
    ];
    // protected $hidden = [
    //     'created_at',
    //     'updated_at',
    //     'deleted_at'

    // ];

    public function reAssignedImages()
    {
        return $this->hasMany('App\Models\ReassignedImage', 'hop_image_upload_id', 'hop_image_upload_id')->orderBy('created_at', 'desc');
    }

}
