// NKSC1-c8c7ea42327292095dea8150adbebc85-0708f3a4174e426d0d2ad28718b26adb4894e3d58893d8e7340ae63a514fbf41

package models

import "time"

// AutoReply = aturan balasan instan berbasis kata kunci (tanpa AI). Dicek sebelum AI.
type AutoReply struct {
	ID        uint      `gorm:"primaryKey" json:"id"`
	AgentID   uint      `gorm:"index;not null" json:"agent_id"`
	Keywords  string    `gorm:"type:text" json:"keywords"`                  // dipisah koma
	MatchType string    `gorm:"size:16;default:contains" json:"match_type"` // contains, exact, prefix
	Reply     string    `gorm:"type:text" json:"reply"`
	Enabled   bool      `gorm:"not null;default:true" json:"enabled"`
	SortOrder int       `gorm:"not null;default:0" json:"sort_order"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}
