<?php

namespace App\Models\Hotel;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class ReservationHistory extends Model
{
    use HasFactory;

  //* Associated Table & Primary Key
    protected $table = 'reservation_histories';
    protected $primaryKey = 'id';

  //* Fillable Fields
    protected $fillable = [
        'editor_name',
        'reservation_data',
        'reservation_changes',
        'id_reservation',
    ];

  //* Cast Columns
    protected $casts = [
        'reservation_data' => 'array',
        'reservation_changes' => 'array',
        'created_at'  => 'datetime:Y-m-d, H:i',
    ];

}
