<?php

namespace App\Core\Ai\Models;

use CodeIgniter\Model;

class AiHistoryModel extends Model
{
    protected $table = 'core_ai_requests';
    protected $primaryKey = 'id';
    protected $returnType = 'array';
    protected $useTimestamps = false;
    protected $allowedFields = [
        'user_id',
        'provider',
        'model',
        'prompt',
        'response',
        'tokens_input',
        'tokens_output',
        'cost_estimate',
        'status',
        'error_message',
        'created_at',
    ];
}
