This commit is contained in:
cangui 2025-05-09 16:06:29 +02:00
parent f47da5f2ce
commit 5771070f24

View File

@ -214,8 +214,10 @@ type Conversation struct {
Content string `gorm:"type:text"` Content string `gorm:"type:text"`
Direction string `gorm:"not null"` // inbound / outbound Direction string `gorm:"not null"` // inbound / outbound
Status string `gorm:"type:varchar(20)"` // sent, delivered, read, failed 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 { func NewTextMessage(to string, body string) WhatsappMessage {
return WhatsappMessage{ return WhatsappMessage{
MessagingProduct: "whatsapp", MessagingProduct: "whatsapp",