20 lines
918 B
Go
20 lines
918 B
Go
package channel
|
|
|
|
import "github.com/gochat/gochat/internal/model"
|
|
|
|
// ChannelWebWidget represents a web widget channel configuration.
|
|
// Reference: Chatwoot app/models/channel/web_widget.rb
|
|
type ChannelWebWidget struct {
|
|
model.BaseModelWithoutID
|
|
InboxID uint `gorm:"not null;uniqueIndex" json:"inbox_id"`
|
|
WebsiteURL string `gorm:"size:1024;not null" json:"website_url"`
|
|
WelcomeTitle string `gorm:"size:255" json:"welcome_title"`
|
|
WelcomeTagline string `gorm:"size:255" json:"welcome_tagline"`
|
|
WidgetColor string `gorm:"size:20;default:#1f93ff" json:"widget_color"`
|
|
ReplyTime string `gorm:"size:50;default:in_a_few_minutes" json:"reply_time"`
|
|
HmacToken string `gorm:"size:255" json:"hmac_token,omitempty"`
|
|
PreChatFormEnabled bool `gorm:"default:false" json:"pre_chat_form_enabled"`
|
|
}
|
|
|
|
func (ChannelWebWidget) TableName() string { return "channel_web_widgets" }
|