12 lines
428 B
Go
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" } |