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

13 lines
548 B
Go

package model
import "time"
// Mention represents a user mention in a conversation.
// Reference: Chatwoot app/models/mention.rb — links a user to a conversation they were mentioned in.
type Mention struct {
ID uint `gorm:"primaryKey" json:"id"`
ConversationID uint `gorm:"not null;index" json:"conversation_id"`
UserID uint `gorm:"not null;index" json:"user_id"`
AccountID uint `gorm:"not null;index" json:"account_id"`
CreatedAt time.Time `gorm:"autoCreateTime" json:"created_at"`
}