portal/db/models/blocklist.go

23 lines
255 B
Go
Raw Normal View History

package models
import (
"time"
"gorm.io/gorm"
)
func init() {
registerModel(&Blocklist{})
}
type Blocklist struct {
gorm.Model
IP string
Reason string
BlockedAt time.Time
}
2024-01-16 05:11:12 +00:00
func (Blocklist) TableName() string {
return "blocklist"
}