<?php

namespace App\Models;

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

class AiRequest extends Model
{
    use HasFactory;

    protected $fillable = [
        'license_activation_id',
        'domain',
        'prompt',
        'response',
        'request_type',
        'tokens_used',
        'response_time_ms',
    ];

    public function activation()
    {
        return $this->belongsTo(LicenseActivation::class, 'license_activation_id');
    }
}
