refactor: update LoginSession
This commit is contained in:
parent
7bb7edb7d9
commit
782ac58ed2
|
@ -9,8 +9,8 @@ type LoginSession struct {
|
|||
gorm.Model
|
||||
ID uint `gorm:"primaryKey"`
|
||||
AccountID uint
|
||||
Token string `gorm:"uniqueIndex"`
|
||||
Account Account
|
||||
Token string `gorm:"uniqueIndex"`
|
||||
Expiration time.Time
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
|
|
Loading…
Reference in New Issue