Skip to content

Commit

Permalink
partial update of resume model
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-raj-1729 committed Sep 25, 2024
1 parent ac06576 commit 6509a17
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions resume/resume.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@ package resume
import "go.mongodb.org/mongo-driver/bson/primitive"

type Resume struct {
ID primitive.ObjectID
Student primitive.ObjectID
Title string
ID primitive.ObjectID `json:"_id" bson:"_id"`
Student primitive.ObjectID `json:"student" bson:"student" binding:"required"`
Name string `json:"name" bson:"name" binding:"required"`
PDF ResumePdf `json:"pdf" bson:"pdf" binding:"required"`
IsVerified bool `json:"isVerified" bson:"isVerified" binding:"required"`
}

type ResumePdf struct {
Url string `json:"url,omitempty" bson:"url,omitempty"`
Latex string `json:"latex,omitempty" bson:"latex,omitempty"`
}

0 comments on commit 6509a17

Please sign in to comment.