Send and receive SMS messages using your Android phone programmatically via a simple HTTP API
Use correct column name
Acho Arnold1c34023a308a
diff --git a/api/pkg/entities/message.go b/api/pkg/entities/message.goindex 53c3e2f4..b7d423fb 100644--- a/api/pkg/entities/message.go+++ b/api/pkg/entities/message.go@@ -90,7 +90,7 @@ type Message struct {UserID UserID `json:"user_id" gorm:"index:idx_messages__user_id" example:"WB7DRDWrJZRGbYrv2CKGkqbzvqdC"`Contact string `json:"contact" example:"+18005550100"`Content string `json:"content" example:"This is a sample text message"`- Attachments pq.StringArray `json:"attachments" gorm:"type:text[];column:attachments_new" swaggertype:"array,string"`+ Attachments pq.StringArray `json:"attachments" gorm:"type:text[]" swaggertype:"array,string"`Encrypted bool `json:"encrypted" example:"false" gorm:"default:false"`Type MessageType `json:"type" example:"mobile-terminated"`Status MessageStatus `json:"status" example:"pending"`