<?php
namespace App\Models;
use App\Models\Concerns\BelongsToMerchant;
use Illuminate\Database\Eloquent\Model;
final class KycDocument extends Model { use BelongsToMerchant; protected $fillable=['public_id','merchant_id','type','status','file_path','original_filename','mime_type','size_bytes','reviewed_by','reviewed_at','rejection_reason','metadata']; protected function casts():array{return ['reviewed_at'=>'datetime','metadata'=>'array'];} public function merchant(){return $this->belongsTo(Merchant::class);} public function reviewer(){return $this->belongsTo(Merchant::class,'reviewed_by');} }