-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathecell.js
executable file
·32 lines (30 loc) · 920 Bytes
/
ecell.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
var mongoose = require('mongoose');
var mongoose_csv = require('mongoose-csv');
var ecellRegistrationSchema = mongoose.Schema({
team : [
{
email : String,
name : String,
phoneNumber : Number,
college : String,
year : Number,
city : String,
accommodation : String,
resume : String,
eventName : String,
field : Array,
}
],
eventName : String,
teamEmail : String,
teamNumber : Number,
payment : {
status : String,
order_id : String,
date : String,
amount : String,
},
});
ecellRegistrationSchema.plugin(mongoose_csv);
// create the model for users and expose it to our app
module.exports = mongoose.model('Ecell', ecellRegistrationSchema);