/**
 * Admin Domain Adapter
 *
 * Routes admin_notes CRUD to Prisma. Prisma passthrough for now;
 * Convex path will be added when mutations are available.
 */

import { prisma } from "@/lib/db";

export const adminNotesAdapter = {
  async create(args: { data: Record<string, unknown> }) {
    return prisma.admin_notes.create(args as never);
  },

  async findMany(args: {
    where?: Record<string, unknown>;
    orderBy?: Record<string, unknown>;
    take?: number;
  }) {
    return prisma.admin_notes.findMany(args as never);
  },

  async count(args?: { where?: Record<string, unknown> }) {
    return prisma.admin_notes.count(args as never);
  },

  async delete(args: { where: Record<string, unknown> }) {
    return prisma.admin_notes.delete(args as never);
  },
};
