Skip to content

Commit

Permalink
263rd Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Shyam-Chen committed Feb 19, 2024
1 parent f437471 commit 3c83c7d
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions db/mongo-init.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ db.createUser({
db = new Mongo().getDB(process.env.MONGO_INITDB_DATABASE);

load(__dirname + '/src/todos.js');
load(__dirname + '/src/users.js');
30 changes: 30 additions & 0 deletions db/src/users.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
db.createCollection('users');

db.users.insertMany([
{
username: 'matteo.collina',
password:
'1f4657a571bd2c494b8ae447798527a1.6821fcc8c228b7bbea6ed3dde76510099ed1b95bcbdb5b7dfb297f125509ed8b05c027ef80d99571d2ec02bbe6cb73f6868e26319d7f4e7576ed464767eda195',
email: '[email protected]',
fullName: 'Matteo Collina',
status: true,
secret: null,
otpEnabled: false,
otpVerified: false,
createdAt: new Date().toISOString(),
updatedAt: new Date().toISOString(),
},
{
username: 'shyam.chen',
password:
'670945309327b221f1e80d12830c7ea2.bec48efc65cc675ce3081da73feeb3b49b4ef17f1fb80a4c77a63016a836c9284924edb629e46cde2ef4a378a859ab79c5c9671554c752a158b8c0188a5019be',
email: '[email protected]',
fullName: 'Shyam Chen',
status: true,
secret: null,
otpEnabled: false,
otpVerified: false,
createdAt: new Date().toISOString(),
updatedAt: new Date().toISOString(),
},
]);

0 comments on commit 3c83c7d

Please sign in to comment.