forked from RishabhJain-28/owasp-orientation-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparticipants.js
52 lines (49 loc) · 879 Bytes
/
participants.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
const mongoose = require("mongoose");
const participantSchema = new mongoose.Schema({
name: {
type: String,
// minlength: 5,
maxlength: 250,
required: true,
},
year: {
type: String,
maxlength: 15,
},
// username: {
// type: String,
// // minlength: 5,
// maxlength: 250,
// // required: true,
// },
email: {
type: String,
unique: true,
required: true,
},
phoneNo: {
type: Number,
// unique: true,
},
rollNo: {
type: Number,
// unique: true,
},
googleId: {
type: String,
required: true,
},
branch: {
//! DROPDOWN
type: String,
// required: true,
// minLength: 5,
maxlength: 250,
},
profilePicLink: {
type: String,
required: true,
},
});
const Participant = mongoose.model("Participant", participantSchema);
module.exports = Participant;