generated from csivitu/Template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
approved.js
57 lines (54 loc) · 1.13 KB
/
approved.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
const mongoose = require('mongoose');
const { Schema } = mongoose;
const ApprovedSchema = new Schema({
title: {
type: String,
required: [true, 'Title is required'],
},
cname: {
type: String,
required: [true, 'Name of co-ordinator is required'],
},
email: {
type: String,
required: [true, 'Email is required'],
},
desc: {
type: String,
required: [true, 'Description is required'],
},
start: {
type: Date,
required: [true, 'Date is required'],
},
end: {
type: Date,
required: [true, 'Date is required'],
},
img: {
type: String,
required: [true, 'Image is required'],
},
url: {
type: String,
required: [true, 'URL is required'],
},
org: {
type: String,
required: [true, 'URL is required'],
},
backgroundColor: {
type: String,
required: [true, 'Label Color is required'],
},
borderColor: {
type: String,
required: [true, 'Border Color is required'],
},
textColor: {
type: String,
required: [true, 'Text Color is required'],
},
});
const Approved = mongoose.model('Approved', ApprovedSchema);
module.exports = Approved;