package entity import "github.com/gogf/gf/v2/os/gtime" // License 手机号账号与授权:一账号一记录;password 不对外(json 排除); // expires_at 未充值(含被撤销)时为 NULL;购买的套餐记录在 payment_order,本表不存。 type License struct { PhoneNum string `json:"phoneNum" orm:"phone_num" description:"手机号账号(主键)"` Password string `json:"-" orm:"password" description:"bcrypt 加盐哈希"` ExpiresAt *gtime.Time `json:"expiresAt" orm:"expires_at" description:"到期时间(自然日,服务端时区),未充值 NULL"` Remark string `json:"remark" orm:"remark" description:"管理端备注(客户端不可见)"` CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"注册时间"` UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` }