23 lines
353 B
Go
23 lines
353 B
Go
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"`
|
|
}
|