import { prisma } from '@/lib/prisma'

export async function createNotification({ userId, title, message, type = 'INFO', module, link }: {
  userId: string; title: string; message: string; type?: string; module?: string; link?: string;
}) {
  return prisma.notification.create({ data: { userId, title, message, type, module, link } })
}
