10 lines
259 B
Go
10 lines
259 B
Go
package model
|
|
|
|
type UserToken struct {
|
|
IdModel
|
|
UserId uint `json:"user_id" gorm:"default:0;not null;index"`
|
|
Token string `json:"token" gorm:"default:'';not null;index"`
|
|
ExpiredAt int64 `json:"expired_at" gorm:"default:0;not null;"`
|
|
TimeModel
|
|
}
|