<?php

namespace App\Repositories;

use App\Models\AIConversation;

class AIConversationRepository extends BaseRepository
{
    public function __construct(AIConversation $model)
    {
        parent::__construct($model);
    }

    public function getUserConversations($userId)
    {
        return $this->model->where('user_id', $userId)
            ->orderBy('created_at', 'desc')
            ->paginate(20);
    }
}
