Skip to content

Commit 036f6ad

Browse files
committed
Drop unsed indexes
1 parent 5899970 commit 036f6ad

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

api/pkg/entities/message.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ func (s SIM) String() string {
7979
type Message struct {
8080
ID uuid.UUID `json:"id" gorm:"primaryKey;type:uuid;" example:"32343a19-da5e-4b1b-a767-3298a73703cb"`
8181
RequestID *string `json:"request_id" example:"153554b5-ae44-44a0-8f4f-7bbac5657ad4"`
82-
Owner string `json:"owner" gorm:"index:idx_messages_user_id__owner__contact" example:"+18005550199"`
82+
Owner string `json:"owner" example:"+18005550199"`
8383
UserID UserID `json:"user_id" gorm:"index:idx_messages__user_id" example:"WB7DRDWrJZRGbYrv2CKGkqbzvqdC"`
84-
Contact string `json:"contact" gorm:"index:idx_messages_user_id__owner__contact" example:"+18005550100"`
84+
Contact string `json:"contact" example:"+18005550100"`
8585
Content string `json:"content" example:"This is a sample text message"`
8686
Type MessageType `json:"type" example:"mobile-terminated"`
87-
Status MessageStatus `json:"status" gorm:"index:idx_messages_status" example:"pending"`
87+
Status MessageStatus `json:"status" example:"pending"`
8888
// SIM is the SIM card to use to send the message
8989
// * SMS1: use the SIM card in slot 1
9090
// * SMS2: use the SIM card in slot 2
@@ -97,7 +97,7 @@ type Message struct {
9797
RequestReceivedAt time.Time `json:"request_received_at" example:"2022-06-05T14:26:01.520828+03:00"`
9898
CreatedAt time.Time `json:"created_at" example:"2022-06-05T14:26:02.302718+03:00"`
9999
UpdatedAt time.Time `json:"updated_at" example:"2022-06-05T14:26:10.303278+03:00"`
100-
OrderTimestamp time.Time `json:"order_timestamp" gorm:"index:idx_messages_order_timestamp" example:"2022-06-05T14:26:09.527976+03:00"`
100+
OrderTimestamp time.Time `json:"order_timestamp" example:"2022-06-05T14:26:09.527976+03:00"`
101101
LastAttemptedAt *time.Time `json:"last_attempted_at" example:"2022-06-05T14:26:09.527976+03:00"`
102102
NotificationScheduledAt *time.Time `json:"scheduled_at" example:"2022-06-05T14:26:09.527976+03:00"`
103103
SentAt *time.Time `json:"sent_at" example:"2022-06-05T14:26:09.527976+03:00"`

0 commit comments

Comments
 (0)