<?php

namespace Modules\Review\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasOne;
use Illuminate\Database\Eloquent\SoftDeletes;

class Review extends Model
{
    use SoftDeletes;

    protected $guarded = [];

    public function currentDescription(): HasOne
    {
        return $this->hasOne(ReviewDescription::class)->where('language_id', config('current_language_id'));
    }
}
