How to name the document in Firebase?

Good morning, I hope you read my question and are able to answer me.

Right now, I was able to establish a connection between the game and the Firebase database.

But when creating a document, its name is a random ID.

How can I choose its name when creating it?

I have tried javascript, but without success.

If not, what would be the best way to keep a user linked to a document in the database, where their individual information is stored?

And this is what I’m getting, note the random id in the document name:

First of all, Thanks.

How do you create it?
When you create a field, the document is automatically created with the name you want. But the user ID from the authentication as a document name is the correct way.