<?php

namespace App\Models;

use Database\Factories\IntentPhraseFactory;
use Illuminate\Database\Eloquent\Attributes\Fillable;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

#[Fillable(['organization_id', 'intent_id', 'locale', 'phrase', 'status'])]
class IntentPhrase extends Model
{
    /** @use HasFactory<IntentPhraseFactory> */
    use HasFactory;

    /**
     * @return BelongsTo<Organization, $this>
     */
    public function organization(): BelongsTo
    {
        return $this->belongsTo(Organization::class);
    }

    /**
     * @return BelongsTo<Intent, $this>
     */
    public function intent(): BelongsTo
    {
        return $this->belongsTo(Intent::class);
    }
}
