@@ -3,18 +3,23 @@ package models
3
3
import "time"
4
4
5
5
type CollaborationHistory struct {
6
+ // Submission related details
7
+ Code string `json:"code" firestore:"code"`
8
+ Language string `json:"language" firestore:"language"`
9
+
10
+ // Match related details
11
+ User string `json:"user" firestore:"user"`
12
+ MatchedUser string `json:"matchedUser" firestore:"matchedUser"`
13
+ MatchedTopics []string `json:"matchedTopics" firestore:"matchedTopics"`
14
+
15
+ // Question related details
6
16
Title string `json:"title" firestore:"title"`
7
- Code string `json:"code" firestore:"code"`
8
- Language string `json:"language" firestore:"language"`
9
- User string `json:"user" firestore:"user"`
10
- MatchedUser string `json:"matchedUser" firestore:"matchedUser"`
11
- MatchID string `json:"matchId" firestore:"matchId"`
12
- MatchedTopics []string `json:"matchedTopics" firestore:"matchedTopics"`
13
17
QuestionDocRefID string `json:"questionDocRefId" firestore:"questionDocRefId"`
14
18
QuestionDifficulty string `json:"questionDifficulty" firestore:"questionDifficulty"`
15
19
QuestionTopics []string `json:"questionTopics" firestore:"questionTopics"`
16
20
17
21
// Special DB fields
18
- CreatedAt time.Time `json:"createdAt" firestore:"createdAt"`
19
- UpdatedAt time.Time `json:"updatedAt" firestore:"updatedAt"`
22
+ CreatedAt time.Time `json:"createdAt" firestore:"createdAt"`
23
+ UpdatedAt time.Time `json:"updatedAt" firestore:"updatedAt"` // updatedAt is unused as history is never updated once created
24
+ HistoryDocRefID string `json:"historyDocRefId"`
20
25
}
0 commit comments