Skip to content

Commit 65658e6

Browse files
committed
Add new fields to heartbeat and thread
1 parent 40c0be7 commit 65658e6

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

heartbeat.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ type Heartbeat struct {
1111
ID uuid.UUID `json:"id" example:"32343a19-da5e-4b1b-a767-3298a73703cb"`
1212
Owner string `json:"owner" gorm:"index:idx_heartbeats_owner_timestamp" example:"+18005550199"`
1313
UserID string `json:"user_id" example:"WB7DRDWrJZRGbYrv2CKGkqbzvqdC"`
14+
Charging bool `json:"charging" example:"true"`
1415
Timestamp time.Time `json:"timestamp" example:"2022-06-05T14:26:01.520828+03:00"`
1516
}
1617

message_thread.go

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

0 commit comments

Comments
 (0)