package model import "gorm.io/datatypes" // WidgetTest represents a test scenario/config for widget/UI integration testing. // Reference: Chatwoot WidgetTest model — read-only resource, only available in non-production environments. // Returns test data for widget/UI integration testing scenarios. type WidgetTest struct { Base Name string `gorm:"size:255;not null" json:"name"` Type string `gorm:"size:50;not null;index" json:"type"` // pre_chat_form, offline_message, csat_survey, etc. Config datatypes.JSON `gorm:"type:jsonb;not null" json:"config"` Description string `gorm:"type:text" json:"description,omitempty"` } func (WidgetTest) TableName() string { return "widget_tests" }