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 createUusers(tenantId: string, data: any) {
  // return prisma.uusers.create({ data: { ...data, tenantId } });
  throw new Error("Not implemented: createUusers");
}

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

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

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

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