-
Notifications
You must be signed in to change notification settings - Fork 1
/
model.txt
117 lines (107 loc) · 2.59 KB
/
model.txt
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
Course card
{
img : String,
title : String ,
desc : String (short),
numChapters : Number,
level : String
}
Single Course Data {
title : String,
desc : String,
numChapters : Number,
sections : [Section],
approxTime : Number,
skiilsyouwillgain : [String] //if possible
}
Section {
course : String
title : String,
desc : String,
lessons : [Lesson]
}
Lesson {
topics : [{
title : String,
content : String,
img : {
default : null,
path : String
}
surpriseLEmenet : String (table)
}],
quiz : [Quiz],
comments : [{
user : ObjectId ,
comment : String
}],
course : String,
lesson : String,
html : String
}
Quiz collection {
course : String,
lesson : String
level : String ,
Questions : String,
Options : [String]
Answer : Number,
isAttempted : boolean
}
user : {
id : ObjectId,
name : String,
password : String,
enrolledCourses : [{course : {
Lesson : [{
lessonId : ObjectId
lessonsAttwmpted : Number,
lessonsCompleted : Number
}],
Quiz : [{
lessonId : ObjectId
lessonsAttwmpted : Number,
lessonsCompleted : Number
}]
} }],
certificates : [String]
}
user auth struct
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1ZTFmZTNlZmI5ZjM4MjI1MDkyZGNiOSIsImlhdCI6MTcwOTM3NjU4OCwiZXhwIjoxNzE3MTUyNTg4fQ.fjTxduIQKdn0Md_WlHOnoJOEe4o4seaqq6dWwjki2Qo",
"data": {
"_id": "65e1fe3efb9f38225092dcb9",
"name": "demo",
"email": "demo@gmail.com",
"password": "$2b$12$STb42YT4p7rJl2xzuJJXBO6.43PwO/bs16QCBYF8wrv5CFpICPB8W",
"enrolledCourses": [
{
"course": "Introduction to Stock Markets",
"_id": "65e1fea8d6abf817f0cc7196",
"lessonsCompleted":Number
}
],
"lessonsCompleted": [
{
"lessonName": "11. Corporate actions and impact on stock prices",
"lessonId": "65e1fdb08e4c606494d13c80",
"_id": "65e1fe5afb9f38225092dcc2"
}
],
"__v": 0
}
}
lesson quiz struct
{
question: 'What is the term ',
questionNumber: 5,
options: Array(4),
answerId: 'B',
answerText: 'Asset allocation', …
}
options 0 : {id: 'A', text: 'Fixed income instruments'}
todo :
1)Make quiz for every lesson
2) Lesson completed button disable
3) Lesson access without course enrolled (done)
4) Password ermove