<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Relations\BelongsTo;

class Review extends BaseModel
{
    protected function casts(): array { return ['is_hidden' => 'boolean', 'responded_at' => 'datetime']; }
    public function listing(): BelongsTo { return $this->belongsTo(Listing::class); }
    public function booking(): BelongsTo { return $this->belongsTo(Booking::class); }
    public function user(): BelongsTo { return $this->belongsTo(User::class); }
}