import { prisma } from "../../config/prisma";
import { NotFoundError } from "../../common/errors/http-errors";

// TODO: replace 'any' with actual DTO types once schema.prisma has the model
export async function createUsettings(tenantId: string, data: any) {
  // return prisma.usettings.create({ data: { ...data, tenantId } });
  throw new Error("Not implemented: createUsettings");
}

export async function getUsettingsById(tenantId: string, id: string) {
  // const record = await prisma.usettings.findFirst({ where: { id, tenantId } });
  // if (!record) throw new NotFoundError('Usettings not found');
  // return record;
  throw new Error("Not implemented: getUsettingsById");
}

export async function listUsettingss(tenantId: string) {
  // return prisma.usettings.findMany({ where: { tenantId } });
  throw new Error("Not implemented: listUsettingss");
}

export async function updateUsettings(tenantId: string, id: string, data: any) {
  throw new Error("Not implemented: updateUsettings");
}

export async function deleteUsettings(tenantId: string, id: string) {
  throw new Error("Not implemented: deleteUsettings");
}
