27 lines
423 B
Go
Raw Permalink Normal View History

2025-04-22 15:46:48 +08:00
package model
import (
"admin/internal/db"
"gorm.io/gorm"
"time"
)
func init() {
db.RegisterTableModels(WhiteList{})
}
type WhiteList struct {
ID int `gorm:"primarykey"`
Account string `gorm:"primarykey"`
AccountType int
Desc string
CreatedAt time.Time
UpdatedAt time.Time
DeletedAt gorm.DeletedAt `gorm:"index"`
}
2025-04-24 20:39:31 +08:00
func (lm *WhiteList) TableName() string {
return "mock_whitelist"
}