Skip to content

Commit

Permalink
added timestamp to activities
Browse files Browse the repository at this point in the history
  • Loading branch information
Apple authored and Apple committed Sep 25, 2024
1 parent 22095f4 commit 42b6ab7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
4 changes: 4 additions & 0 deletions misc/activity.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ type Activity struct {
Timestamp primitive.DateTime `json:"timestamp" bson:"timestamp"`
User primitive.ObjectID `json:"user" bson:"user"`
Message string `json:"message" bson:"message"`

// metadata
CreatedAt primitive.DateTime `bson:"createdAt" json:"createdAt"`
UpdatedAt primitive.DateTime `bson:"updatedAt" json:"updatedAt"`
}
12 changes: 8 additions & 4 deletions opportunity/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ type ProfileApplication struct {
}

type Application struct {
ID primitive.ObjectID `bson:"_id" json:"_id"`
Opportunity primitive.ObjectID `bson:"opportunity" json:"opportunity,omitempty"`
Student primitive.ObjectID `bson:"student" json:"student,omitempty"`
ID primitive.ObjectID `bson:"_id" json:"_id"`
Opportunity primitive.ObjectID `bson:"opportunity" json:"opportunity,omitempty"`
Student primitive.ObjectID `bson:"student" json:"student,omitempty"`
Profiles []ProfileApplication `json:"profiles" bson:"profiles"`

// This is the submitted detais of the user on an Opportunity basis
DetailsRequested *map[string]interface{} `json:"detailsRequested" bson:"detailsRequested"`
Profiles []ProfileApplication `json:"profiles" bson:"profiles"`

// metadata
CreatedAt primitive.DateTime `bson:"createdAt" json:"createdAt"`
UpdatedAt primitive.DateTime `bson:"updatedAt" json:"updatedAt"`
}

0 comments on commit 42b6ab7

Please sign in to comment.