Skip to content

Commit

Permalink
edit models
Browse files Browse the repository at this point in the history
  • Loading branch information
toandac committed Apr 18, 2022
1 parent 1bcf492 commit 0a40e53
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion models/record.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,20 @@ type Client struct {

type Record struct {
ID string `json:"id" bow:"key"`
Events []interface{} `json:"events"`
Events []Events `json:"events"`
Meta map[string]string `json:"meta"`
User User `json:"user"`
Client Client `json:"client"`
ClientID string `json:"client_id"`
UpdatedAt time.Time `json:"updatedAt"`
}

type Events struct {
Type int64 `json:"type"`
Data interface{} `json:"data"`
Timestamp int64 `json:"timestamp"`
}

type User struct {
ID string `json:"user_id"`
Email string `json:"email"`
Expand Down

0 comments on commit 0a40e53

Please sign in to comment.