registration-js-vanilla/infra/init.example
2023-09-11 14:13:41 +03:00

14 lines
236 B
Plaintext

db = db.getSiblingDB("user");
db.createUser({
user: "useradmin",
pwd: "userpassword",
roles: [
{
role: "dbOwner",
db: "registration",
},
],
});
print("Database 'user' and admin user created successfully.");