Pre-fill collection with bulk-data and extending user document


#1

Hi there,

i have the following scenario:

i have manually generated a list of 500 PGP-keypairs on my offline sandbox. Now I need to get this 500 public-keys into a collection. Each user will be able to demand ONE such a key with getKey().

What is the best way to solve this? Shall i just extend the meteor users collection (accounts) or is it “better” (common?) to add a owner-field to the 500-key-collection? Or even creating a new collection for storing the key together with the ownerID?

Btw - i am also thinking about just “linking” the user to the key via Accounts.onCreateUser() by extending the user-document.

thanks in advance for your time!
k.