-
Notifications
You must be signed in to change notification settings - Fork 0
/
aluminimodel.js
66 lines (58 loc) · 1.42 KB
/
aluminimodel.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
const mongoose = require('mongoose')
// const crypto = require('crypto')
const alumini = new mongoose.Schema({
fullname :{
type : String,
required : true
},
collegeId :{
type : String,
required : true
},
email :{
type : String,
required : true
},
branch :{
type : String,
required : true
},
mobile :{
type : String,
required : true,
},
skill :{
type : String,
required : true,
},
password :{
type : String,
required : true,
},
confirmpassword :{
type : String,
required : true,
},
pg : String,
job : String,
bio : String,
project : String,
github : String,
linkedin : String,
currentcompany : String,
currentjoblocation : String,
experience : String,
quote: String
// resetPasswordToken:String,
// resetPasswordExpire:Date,
})
// users.methods.getResetPassword =function(){
// //create a random 20chars token
// const resetToken = crypto.randomBytes(20).toString("hex");
// //make that token a reset password token
// this.resetPasswordToken = crypto.createHash("sha256").update(resetToken).digest("hex");
// //give that token a expire date
// this.resetPasswordExpire = Date.now()+ 15 * 60 * 1000;
// return resetToken;
// }
module.exports = mongoose.model('Alumini',alumini)