Skip to content

Instantly share code, notes, and snippets.

@snaffi
Created September 3, 2015 12:16
Show Gist options
  • Save snaffi/9a19062eed36c1ed77ce to your computer and use it in GitHub Desktop.
Save snaffi/9a19062eed36c1ed77ce to your computer and use it in GitHub Desktop.
type PushNotification struct {
Id bson.ObjectId `json:"id,omitempty" bson:"_id,omitempty"`
Text string `json:"text" bson:"text"`
Subject string `json:"subject" bson:"subject"`
EndDate time.Time `json:"end_date,omitempty" bson:"end_date,omitempty"`
StartDate time.Time `json:"start_date,omitempty" bson:"start_date,omitempty"`
Created time.Time `json:"created" bson:"created"`
Updated time.Time `json:"updated" bson:"updated"`
Deleted bool `json:"deleted" bson:"deleted"`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment