portal/db/models/blocklist.go

23 lines
255 B
Go

package models
import (
"time"
"gorm.io/gorm"
)
func init() {
registerModel(&Blocklist{})
}
type Blocklist struct {
gorm.Model
IP string
Reason string
BlockedAt time.Time
}
func (Blocklist) TableName() string {
return "blocklist"
}