Skip to content

Commit

Permalink
Add new fields to heartbeat and thread
Browse files Browse the repository at this point in the history
  • Loading branch information
AchoArnold committed Oct 23, 2023
1 parent 40c0be7 commit 65658e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions heartbeat.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ type Heartbeat struct {
ID uuid.UUID `json:"id" example:"32343a19-da5e-4b1b-a767-3298a73703cb"`
Owner string `json:"owner" gorm:"index:idx_heartbeats_owner_timestamp" example:"+18005550199"`
UserID string `json:"user_id" example:"WB7DRDWrJZRGbYrv2CKGkqbzvqdC"`
Charging bool `json:"charging" example:"true"`
Timestamp time.Time `json:"timestamp" example:"2022-06-05T14:26:01.520828+03:00"`
}

Expand Down
1 change: 1 addition & 0 deletions message_thread.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ type MessageThread struct {
IsArchived bool `json:"is_archived" example:"false"`
UserID string `json:"user_id" example:"WB7DRDWrJZRGbYrv2CKGkqbzvqdC"`
Color string `json:"color" example:"indigo"`
Status string `json:"status" example:"pending"`
LastMessageContent string `json:"last_message_content" example:"This is a sample message content"`
LastMessageID uuid.UUID `json:"last_message_id" example:"32343a19-da5e-4b1b-a767-3298a73703ca"`
CreatedAt time.Time `json:"created_at" example:"2022-06-05T14:26:09.527976+03:00"`
Expand Down

0 comments on commit 65658e6

Please sign in to comment.