// import prisma from '../../prisma/PrismaClient'; // import { Prisma } from '@prisma/client'; // import { now } from '../../utils/TimeLocal'; // const CategoryLinkRepository = { // create: async (data: Prisma.CategoryLinkUncheckedCreateInput) => { // return prisma.categoryLink.create({ data }); // }, // findBySource: async (source_type: string, source_id: string) => { // return prisma.categoryLink.findMany({ // where: { // source_id, // source_type, // deletedAt: null, // }, // }); // }, // deleteById: async (id: string) => { // return prisma.categoryLink.update({ // where: { // id, // }, // data: { // deletedAt: now().toDate(), // }, // }); // }, // }; // export default CategoryLinkRepository;