<?php
namespace App\Models;
use App\Models\Concerns\BelongsToBusiness;
use Illuminate\Database\Eloquent\Model;
class CrmStatusHistory extends Model {
    use BelongsToBusiness;
    protected $guarded = ['id'];
    protected $casts = ['changed_at' => 'datetime'];
    public function statusable() { return $this->morphTo(); }
    public function changedBy() { return $this->belongsTo(User::class, 'changed_by'); }
}
