Files
gochat/internal/model/draft_message.go
T
2026-06-04 15:44:48 +08:00

12 lines
428 B
Go

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" }