The top-level entity that groups entrypoints and targets is now called Webhook (was Processor). The inbound URL endpoint entity is now called Entrypoint (was Webhook). This rename affects database models, handler comments, routes, and README documentation. closes #12
17 lines
562 B
Go
17 lines
562 B
Go
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:"user_id"`
|
|
Name string `gorm:"not null" json:"name"`
|
|
Description string `json:"description"`
|
|
RetentionDays int `gorm:"default:30" json:"retention_days"` // Days to retain events
|
|
|
|
// Relations
|
|
User User `json:"user,omitempty"`
|
|
Entrypoints []Entrypoint `json:"entrypoints,omitempty"`
|
|
Targets []Target `json:"targets,omitempty"`
|
|
}
|