package model // DraftMessage represents a draft (unsent) message in a conversation. // Reference: Chatwoot app/models/draft_message.rb type DraftMessage struct { Base ConversationID uint `gorm:"index;not null" json:"conversation_id"` UserID uint `gorm:"index;not null" json:"user_id"` Content string `gorm:"type:text" json:"content"` } func (DraftMessage) TableName() string { return "draft_messages" }