23 lines
326 B
Go
23 lines
326 B
Go
|
package model
|
||
|
|
||
|
import (
|
||
|
"admin/internal/db"
|
||
|
"gorm.io/gorm"
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
db.RegisterTableModels(Ban{})
|
||
|
}
|
||
|
|
||
|
type Ban struct {
|
||
|
ID int `gorm:"primarykey"`
|
||
|
BanType string
|
||
|
Value string
|
||
|
ExpireSeconds int
|
||
|
|
||
|
CreatedAt time.Time
|
||
|
UpdatedAt time.Time
|
||
|
DeletedAt gorm.DeletedAt `gorm:"index"`
|
||
|
}
|