Merge branch 'stv3-org-roles' of https://github.com/Infisical/infisical into stv3-org-roles

This commit is contained in:
Tuan Dang
2023-12-05 08:57:50 +07:00
2 changed files with 6 additions and 1 deletions

View File

@@ -71,4 +71,8 @@ const machineIdentityClientSecretDataSchema = new Schema(
}
);
machineIdentityClientSecretDataSchema.index(
{ machineIdentity: 1, isActive: 1 }
)
export const MachineIdentityClientSecretData = model<IMachineIdentityClientSecretData>("MachineIdentityClientSecretData", machineIdentityClientSecretDataSchema);

View File

@@ -18,7 +18,8 @@ const machineMembershipSchema = new Schema<IMachineMembership>(
workspace: {
type: Schema.Types.ObjectId,
ref: "Workspace",
required: true
required: true,
index: true,
},
role: {
type: String,