-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.py
More file actions
53 lines (53 loc) · 1.06 KB
/
schema.py
File metadata and controls
53 lines (53 loc) · 1.06 KB
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
{
'users': {
id: {
'name': name,
'email': email,
'profile_pic': profile_pic,
'is_teacher': is_teacher,
'is_admin': is_admin,
'exams': {id: {can_take: true, current_take: 1}}
}
},
'exams': {
id: {
'name': name,
'author_id': author_id,
'time_alotted': time_alotted,
'is_open': is_open,
'structure': {
'<qb_id>': {
'amt': amt,
'points': points
},
...,
}
}
},
'ue_<uid>_<exid>_<take#>': {
'score': score, # None if not started
'over_at': over_at,
'status': "not started" | "started" | "finished",
'progress': [
{'qbid': qbid, 'qid': qid, 'answer': [choice_id|text,...]},
]
},
'qb_<id>': {
'name': name,
'author_id': author_id
'questions': {
'qid': {
'id': qid,
'text': text,
'type': type,
'choices': [
{
'id': id,
'text': text,
'is_answer': is_answer # None if example essay answer
}
]
}
}
},
}