fix
This commit is contained in:
19
internal/models/trap_dictionary.go
Normal file
19
internal/models/trap_dictionary.go
Normal file
@@ -0,0 +1,19 @@
|
||||
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"
|
||||
}
|
||||
Reference in New Issue
Block a user