import { prismaClient } from '../database/prismaClient.js';
export async function createTool(data) {
    console.log(`Creating Tool with ID: ${data.id}`);
    return prismaClient.tool.create({
        data,
    });
}
export async function getTool(id) {
    console.log(`Getting Tool with ID: ${id}`);
    return prismaClient.tool.findUnique({
        where: { id },
    });
}
export async function listTools() {
    console.log('Listing all Tools');
    return prismaClient.tool.findMany();
}
export async function updateTool(id, data) {
    console.log(`Updating Tool with ID: ${id}`);
    return prismaClient.tool.update({
        where: { id },
        data,
    });
}
export async function deleteTool(id) {
    console.log(`Deleting Tool with ID: ${id}`);
    return prismaClient.tool.delete({
        where: { id },
    });
}
