initial load
This commit is contained in:
15
mongo/users.js
Normal file
15
mongo/users.js
Normal file
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// Products
|
||||
//
|
||||
db = db.getSiblingDB('users');
|
||||
db.users.insertMany([
|
||||
{name: 'user', password: 'password', email: 'user@me.com'},
|
||||
{name: 'stan', password: 'bigbrain', email: 'stan@instana.com'}
|
||||
]);
|
||||
|
||||
// unique index on the name
|
||||
db.users.createIndex(
|
||||
{name: 1},
|
||||
{unique: true}
|
||||
);
|
||||
|
Reference in New Issue
Block a user