<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class SerenataStatusHistory extends Model
{
    protected $fillable = [
        'organization_id',
        'serenata_id',
        'changed_by_user_id',
        'from_service_status',
        'to_service_status',
        'from_payment_status',
        'to_payment_status',
        'note',
    ];

    public function serenata()
    {
        return $this->belongsTo(Serenata::class);
    }

    public function changedByUser()
    {
        return $this->belongsTo(User::class, 'changed_by_user_id');
    }
}
