Skip to content

Commit 3179653

Browse files
authored
Merge pull request #307 from NewdlDewdl/feat/add-discount-schema
feat: Add DiscountProgram schema for discount scraper
2 parents daa0cb1 + a776321 commit 3179653

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

api/schema/objects.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,17 @@ type Organization struct {
125125
Picture_data string `bson:"picture_data" json:"picture_data"`
126126
}
127127

128+
type DiscountProgram struct {
129+
Id primitive.ObjectID `bson:"_id" json:"_id"`
130+
Category string `bson:"category" json:"category"`
131+
Business string `bson:"business" json:"business"`
132+
Address string `bson:"address" json:"address"`
133+
Phone string `bson:"phone" json:"phone"`
134+
Email string `bson:"email" json:"email"`
135+
Website string `bson:"website" json:"website"`
136+
Discount string `bson:"discount" json:"discount"`
137+
}
138+
128139
type Event struct {
129140
Id primitive.ObjectID `bson:"_id" json:"_id"`
130141
Summary string `bson:"summary" json:"summary"`

0 commit comments

Comments
 (0)