<?php

namespace App\Models\Analytics;

use Illuminate\Database\Eloquent\Model;
use App\Models\User;

class AiQuery extends Model
{
    public $timestamps = false;

    protected $table = 'analytics_ai_queries';

    protected $fillable = [
        'user_id', 'query_type', 'query_text', 'created_at',
    ];

    protected $casts = [
        'created_at' => 'datetime',
    ];

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