portal/db/models/blocklist.go

18 lines
208 B
Go

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