Subscription schema with mongoose

Hello everyone, I’m seeking assistance in designing a schema to effectively manage user subscriptions. I have two main collections: ‘Features’ and ‘Company.’ Each company may have different sets of installed ‘Features.’

Here’s a proposed schema structure using Mongoose:

const featureSchema = new mongoose.Schema({
   name:String
   actions:String[]
})
const permissionSchema = new mongoose.Schema({
   featureId:{type:Schema.Types.ObjectId,ref:'features'},
  permission:[string]
})
const Subscription = new mongoose.Schema({
 name:String
 descriptiojn:String
 permission:[permissionSchema]
})