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" }