CategoryLinkRepository.ts 924 B

1234567891011121314151617181920212223242526272829303132
  1. // import prisma from '../../prisma/PrismaClient';
  2. // import { Prisma } from '@prisma/client';
  3. // import { now } from '../../utils/TimeLocal';
  4. // const CategoryLinkRepository = {
  5. // create: async (data: Prisma.CategoryLinkUncheckedCreateInput) => {
  6. // return prisma.categoryLink.create({ data });
  7. // },
  8. // findBySource: async (source_type: string, source_id: string) => {
  9. // return prisma.categoryLink.findMany({
  10. // where: {
  11. // source_id,
  12. // source_type,
  13. // deletedAt: null,
  14. // },
  15. // });
  16. // },
  17. // deleteById: async (id: string) => {
  18. // return prisma.categoryLink.update({
  19. // where: {
  20. // id,
  21. // },
  22. // data: {
  23. // deletedAt: now().toDate(),
  24. // },
  25. // });
  26. // },
  27. // };
  28. // export default CategoryLinkRepository;