summaryrefslogtreecommitdiff
path: root/shrine/models/ipban.go
blob: cf18e6cad221bd1d33055b804b4ccbb5f0abf408 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
package models

import (
	"time"
)

type IPBan struct {
	ID        uint      `gorm:"primaryKey;autoIncrement"`
	IP        string    `gorm:"size:45;uniqueIndex;not null"`
	Reason    string    `gorm:"size:500"`
	CreatedAt time.Time `gorm:"index"`
}