-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatabase.txt
More file actions
47 lines (44 loc) · 941 Bytes
/
database.txt
File metadata and controls
47 lines (44 loc) · 941 Bytes
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
interface User {
id: User_ID;
email: string;
progress: [
{
id: Lesson_ID;
dateComplete: string;
}
];
lastLesson: Lesson_ID;
}
interface Course {
id: Course_ID;
courseName: string;
content: [{ id: string; lessonName: Lesson_ID; no: number }];
// Ordinal number, indicate the position in line of the course, as one course must followed by another specific course
no: number;
}
interface Lesson {
id: Lesson_ID;
lessonName: string;
quizzes: [
{
id: Quiz_ID;
question: string;
options: [{ option_id: Option_ID; optionContent: string }];
correctOption: Option_ID;
explanation: string;
no: number
}
];
instruction: string;
practice: {
code: string;
test: string;
};
// Path to file to download
files: string[];
}
type User_ID = string;
type Course_ID = string;
type Lesson_ID = string;
type Quiz_ID = string;
type Option_ID = string;