17 lines
331 B
Go
17 lines
331 B
Go
package model
|
|
|
|
import "time"
|
|
|
|
type CaptchaModel struct {
|
|
ID uint `gorm:"primarykey"`
|
|
CreatedAt time.Time `gorm:"column:added;autoCreateTime"`
|
|
Code string
|
|
Key string `gorm:"column:captkey;autoCreateTime"`
|
|
State int
|
|
Data string
|
|
}
|
|
|
|
func (m *CaptchaModel) TableName() string {
|
|
return "captcha"
|
|
}
|