Below are example models:

User: {
  //user info
}

Company {
    users: [{
        type: ObjectId,
        ref: 'User'
   }]
}

to check if a company has a particular user:

Company.findOne({
    users: user._id
})

Not really intuitive I think