-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmodels.js
52 lines (49 loc) · 870 Bytes
/
models.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
var mongoose = require('mongoose');
var EventSchema = new mongoose.Schema({
eventType:String,
externalLink:String,
name:String,//
date:{//
full:Date,
string:String,
},
eventTime:{
full:Date,
string:String
},
location:String,//
capacity:Number,
description:String,//
price:Number,//
memberPrice:Number,
sponsors:[String],
regLink:String,
registration:{
url:String,
date:{
full:Date,
string:String
}
},
year:Number,
past:Boolean
})
exports.Event = mongoose.model('Event',EventSchema);
var UpdateSchema = new mongoose.Schema({
title:String,//
date:{//
full:Date,
string:String,
},
description:String
})
exports.Update = mongoose.model('Update',UpdateSchema);
var BlogSchema = new mongoose.Schema({
title:String,//
date:{//
full:Date,
string:String,
},
text:String
})
exports.Blog = mongoose.model('Blog',BlogSchema);