add role index

This commit is contained in:
Maidul Islam
2023-09-08 11:04:20 -04:00
committed by Akhil Mohan
parent e8f7b0c181
commit 91c1aca588

View File

@@ -48,6 +48,8 @@ const roleSchema = new Schema<IRole>(
}
);
roleSchema.index({ organization: 1, workspace: 1 });
const Role = model<IRole>("Role", roleSchema);
export default Role;