ddffd
This commit is contained in:
parent
f47da5f2ce
commit
5771070f24
@ -214,8 +214,10 @@ type Conversation struct {
|
||||
Content string `gorm:"type:text"`
|
||||
Direction string `gorm:"not null"` // inbound / outbound
|
||||
Status string `gorm:"type:varchar(20)"` // sent, delivered, read, failed
|
||||
ParentID *uint `gorm:"index"` // lien vers le message parent (nullable)
|
||||
}
|
||||
|
||||
|
||||
func NewTextMessage(to string, body string) WhatsappMessage {
|
||||
return WhatsappMessage{
|
||||
MessagingProduct: "whatsapp",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user