🚚 create backup folder

create backup folder for archive the old modules
This commit is contained in:
Rafi Arrafif
2025-07-18 23:20:15 +07:00
parent 8eb68cf0ba
commit 8532d7e104
40 changed files with 671 additions and 671 deletions

View File

@ -0,0 +1,16 @@
import { userRoleAssignmentModel } from "../userRoleAssignment.model";
import { InputUserRoleAssignment } from "../userRoleAssignment.types";
export const assignRoleToUserRepository = async ({
userId,
roleId,
}: InputUserRoleAssignment) => {
const assignRoleToUser = await userRoleAssignmentModel.create({
data: {
userId,
roleId,
},
});
return assignRoleToUser;
};