diff --git a/misc/activity.go b/misc/activity.go index 83539f3..82558b4 100644 --- a/misc/activity.go +++ b/misc/activity.go @@ -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"` } diff --git a/opportunity/application.go b/opportunity/application.go index 7076c36..a6ad892 100644 --- a/opportunity/application.go +++ b/opportunity/application.go @@ -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"` }