20 lines
686 B
Go
20 lines
686 B
Go
|
|
package models
|
||
|
|
|
||
|
|
import "time"
|
||
|
|
|
||
|
|
type TrapShield struct {
|
||
|
|
ID uint `gorm:"primaryKey" json:"id"`
|
||
|
|
CreatedAt time.Time `json:"created_at"`
|
||
|
|
UpdatedAt time.Time `json:"updated_at"`
|
||
|
|
Name string `gorm:"size:256" json:"name"`
|
||
|
|
Enabled bool `gorm:"default:true" json:"enabled"`
|
||
|
|
SourceIPCIDR string `gorm:"size:64" json:"source_ip_cidr"`
|
||
|
|
OIDPrefix string `gorm:"size:512" json:"oid_prefix"`
|
||
|
|
InterfaceHint string `gorm:"size:256" json:"interface_hint"`
|
||
|
|
TimeWindowsJSON string `gorm:"type:text" json:"time_windows_json"`
|
||
|
|
}
|
||
|
|
|
||
|
|
func (TrapShield) TableName() string {
|
||
|
|
return "logs_trap_shields"
|
||
|
|
}
|