14 lines
347 B
Go
14 lines
347 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
|
|
Processors []Processor `json:"processors,omitempty"`
|
|
APIKeys []APIKey `json:"api_keys,omitempty"`
|
|
}
|