generated from Code-Institute-Org/gitpod-full-template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
question_answer.json
44 lines (44 loc) · 1.23 KB
/
question_answer.json
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
{
"description": "This document records the details of a question and answer",
"properties": {
"_id": {
"bsonType": "objectId"
},
"answer": {
"bsonType": "string",
"description": "must be a string if the field exist"
},
"answered_at": {
"bsonType": "date",
"description": "must be a date if the field exist"
},
"answered_by": {
"bsonType": "objectId",
"description": "must be an objectId if the field exist"
},
"asked_by": {
"bsonType": "objectId",
"description": "must be a objectId and is required"
},
"created_at": {
"bsonType": "timestamp",
"description": "must be a date and is required"
},
"event_id": {
"bsonType": "objectId",
"description": "must be an objecId and is required"
},
"question": {
"bsonType": "string",
"description": "must be a string and is required"
}
},
"required": [
"_id",
"question",
"event_id",
"asked_by",
"created_at"
],
"title": "questions_answer"
}