Skip to content

Commit

Permalink
add type in opportunity
Browse files Browse the repository at this point in the history
  • Loading branch information
shalearkane committed Jan 22, 2024
1 parent 4183c80 commit d7d6997
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions opportunity/opportunity.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,20 @@ import (
"go.mongodb.org/mongo-driver/bson/primitive"
)

type OpportunityType string

const (
MULTIPLE_PROFILE_SINGLE_WILLINGNESS OpportunityType = "MULTIPLE_PROFILE_SINGLE_WILLINGNESS"
MULTIPLE_PROFILE_MULTIPLE_WILLINGNESS OpportunityType = "MULTIPLE_PROFILE_MULTIPLE_WILLINGNESS"
)

type Opportunity struct {
ID primitive.ObjectID `bson:"id" json:"id,omitempty"`
Company primitive.ObjectID `bson:"company" json:"company,omitempty"`
Profiles []primitive.ObjectID `bson:"profile" json:"profile,omitempty"`
DetailsRequestedSchema map[string]interface{} `bson:"detailsRequestedSchema" json:"detailsRequestedSchema"`
Attachments []misc.Attachment `bson:"attachments" json:"attachments,omitempty"`
Type OpportunityType `bson:"type" json:"type,omitempty"`

// metadata
CreatedAt primitive.DateTime `bson:"createdAt" json:"createdAt"`
Expand Down

0 comments on commit d7d6997

Please sign in to comment.