goweb/model/oauth2.go
2021-08-22 17:23:04 +08:00

18 lines
348 B
Go

package model
import "gorm.io/gorm"
// StoreItem data item
type StoreItem struct {
gorm.Model
ExpiredAt int64
Code string `gorm:"type:varchar(512)"`
Access string `gorm:"type:varchar(512)"`
Refresh string `gorm:"type:varchar(512)"`
Data string `gorm:"type:text"`
}
func (StoreItem) TableName() string {
return "t_oauth2"
}