import { prismaClient } from '../database/prismaClient.js';
export async function createPlugin(data) {
    return prismaClient.plugin.create({
        data,
    });
}
export async function getPlugin(id) {
    return prismaClient.plugin.findUnique({
        where: { id },
    });
}
export async function listPlugins() {
    return prismaClient.plugin.findMany();
}
export async function updatePlugin(id, data) {
    return prismaClient.plugin.update({
        where: { id },
        data,
    });
}
export async function deletePlugin(id) {
    return prismaClient.plugin.delete({
        where: { id },
    });
}
