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