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
14 lines
337 B
Go
14 lines
337 B
Go
package database
|
|
|
|
// User represents a user of the webhooker service
|
|
type User struct {
|
|
BaseModel
|
|
|
|
Username string `gorm:"uniqueIndex;not null" json:"username"`
|
|
Password string `gorm:"not null" json:"-"` // Argon2 hashed
|
|
|
|
// Relations
|
|
Webhooks []Webhook `json:"webhooks,omitempty"`
|
|
APIKeys []APIKey `json:"api_keys,omitempty"`
|
|
}
|