second commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
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" }
|
||||
Reference in New Issue
Block a user