Skip to content

Commit

Permalink
chore: add timestamp fields to Features (#43)
Browse files Browse the repository at this point in the history
Signed-off-by: Dumbledore <mathenge@healthcloud.co.ke>
  • Loading branch information
ageeknamedslickback committed Nov 4, 2021
1 parent 422b67e commit f7315ce
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,9 +397,13 @@ type UserProfile struct {

// Feature defines the output of a feature as defined by the datastore.
type Feature struct {
ID string `json:"id"`
Name string `json:"name"`
DefaultStatus bool `json:"defaultStatus"`
ID string `json:"id"`
Name string `json:"name"`
DefaultStatus bool `json:"defaultStatus"`
CreatedAt time.Time `json:"createdAt"`
// Keeps track of the timestamps a feature is updated
// ie default status transitioned, added to a user or payer
UpdatedAt time.Time `json:"updatedAt"`
}

// UserInfo is a collection of standard profile information for a user.
Expand Down

0 comments on commit f7315ce

Please sign in to comment.