<?php

namespace App\Models;

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

class ChatLog extends Model
{
    use HasFactory;

    protected $table = 'chat_logs';

    protected $guarded = ['id'];

    protected $casts = [
        'meta'             => 'array',
        'matched_product_ids' => 'array',
        'fallback_used'    => 'boolean',
        'is_corrected'     => 'boolean',
        'is_wrong_answer_reported' => 'boolean',
        'confidence_score' => 'integer',
        'query_attempt'    => 'integer',
    ];
}
