package manage

import "time"

// MallAdminUserToken 管理员登录态
type MallAdminUserToken struct {
	AdminUserId int       `json:"adminUserId" form:"adminUserId" gorm:"primarykey;AUTO_INCREMENT"`
	Token       string    `json:"token" form:"token" gorm:"column:token;comment:token值(32位字符串);type:varchar(32);"`
	UpdateTime  time.Time `json:"updateTime" form:"updateTime" gorm:"column:update_time;comment:修改时间;type:datetime"`
	ExpireTime  time.Time `json:"expireTime" form:"expireTime" gorm:"column:expire_time;comment:token过期时间;type:datetime"`
	AgentId     string    `json:"agentId" form:"agentId" gorm:"column:agent_id;comment:代理id;type:varchar(50);"`
}

func (MallAdminUserToken) TableName() string {
	return "tb_newbee_mall_admin_user_token"
}
