File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
Backend/HistoryService/models Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -6,17 +6,15 @@ const HistorySchema = new mongoose.Schema({
6
6
ref : 'User' ,
7
7
required : true // The user for whom this history entry is being created
8
8
} ,
9
- matchedUser : {
10
- type : mongoose . Schema . Types . ObjectId ,
11
- ref : 'User' ,
12
- required : true // The other user they were matched with
9
+ matchedUsername : {
10
+ type : String ,
11
+ required : true
13
12
} ,
14
- question : {
15
- type : mongoose . Schema . Types . ObjectId , // Reference to the Question model
16
- ref : 'Question' ,
13
+ questionTitle : {
14
+ type : String ,
17
15
required : true
18
16
} ,
19
- datetime : {
17
+ startTime : {
20
18
type : Date , // Time when the session started
21
19
default : Date . now
22
20
} ,
@@ -25,7 +23,7 @@ const HistorySchema = new mongoose.Schema({
25
23
required : true
26
24
} ,
27
25
code : {
28
- type : Buffer , // Store the code as binary file
26
+ type : Number , // Store the code as binary file
29
27
required : true
30
28
}
31
29
} ) ;
You can’t perform that action at this time.
0 commit comments