12 lines
278 B
TypeScript
12 lines
278 B
TypeScript
import { Prisma } from "@prisma/client";
|
|
import { userRoleModel } from "../userRole.model";
|
|
|
|
export const createUserRoleRepo = async (
|
|
data: Prisma.UserRoleUncheckedCreateInput
|
|
) => {
|
|
const newUserRole = await userRoleModel.create({
|
|
data,
|
|
});
|
|
return newUserRole;
|
|
};
|