package database // Webhook represents a webhook processing unit that groups entrypoints and targets type Webhook struct { BaseModel UserID string `gorm:"type:uuid;not null" json:"userId"` Name string `gorm:"not null" json:"name"` Description string `json:"description"` RetentionDays int `gorm:"default:30" json:"retentionDays"` // Days to retain events // Relations User User `json:"user,omitzero"` Entrypoints []Entrypoint `json:"entrypoints,omitempty"` Targets []Target `json:"targets,omitempty"` }