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

14 lines
No EOL
236 B
Text

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