20 lines
716 B
Go
20 lines
716 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
type TrapDictionaryEntry struct {
|
|
ID uint `gorm:"primaryKey" json:"id"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
OIDPrefix string `gorm:"size:512;uniqueIndex" json:"oid_prefix"`
|
|
Title string `gorm:"size:512" json:"title"`
|
|
Description string `gorm:"type:text" json:"description"`
|
|
SeverityCode string `gorm:"size:32" json:"severity_code"`
|
|
RecoveryMessage string `gorm:"type:text" json:"recovery_message"`
|
|
Enabled bool `gorm:"default:true" json:"enabled"`
|
|
}
|
|
|
|
func (TrapDictionaryEntry) TableName() string {
|
|
return "logs_trap_dictionary"
|
|
}
|