<?php

declare(strict_types=1);

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class AcademySavedPrompt extends Model
{
    protected $table = 'academy_saved_prompts';

    protected $fillable = [
        'prompt_template_id',
        'user_id',
    ];

    public function promptTemplate(): BelongsTo
    {
        return $this->belongsTo(AcademyPromptTemplate::class, 'prompt_template_id');
    }

    public function user(): BelongsTo
    {
        return $this->belongsTo(User::class, 'user_id');
    }
}