-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdummy.js
69 lines (66 loc) · 1.34 KB
/
dummy.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
const mongoose = require('mongoose');
const User = require(__dirname+'/user');
mongoose.connect("mongodb://localhost:27017/naman_tsf_db");
const dummyUsers = [
{
name: 'Amit',
mnumber:9867657885,
email: '[email protected]',
credits: 10000
},
{
name: 'Arjun',
mnumber:9866657885,
email: '[email protected]',
credits: 7000
},
{
name: 'Yashi',
mnumber:9867674856,
email: '[email protected]',
credits: 4500
},
{
name: 'Vaibhavi',
mnumber:9867657646,
email: '[email protected]',
credits: 8600
},
{
name: 'Kunika',
mnumber:9867656535,
email: '[email protected]',
credits: 7500
},
{
name: 'Rewa',
mnumber:9867647885,
email: '[email protected]',
credits: 6900
},
{
name: 'Karimi',
mnumber:9867657775,
email: '[email protected]',
credits: 3000
},
{
name: 'Aman',
mnumber:9867658765,
email: '[email protected]',
credits: 2100
},
{
name: 'Vikrant',
mnumber:9867699995,
email: '[email protected]',
credits: 5300
}
]
User.insertMany(dummyUsers,function(err,res){
if(err){
console.log(err);
}else{
console.log(res);
}
});