sessions added
This commit is contained in:
parent
305044a736
commit
9eba8b4555
4 changed files with 49 additions and 37 deletions
|
|
@ -6,11 +6,12 @@ import (
|
|||
)
|
||||
|
||||
type RefreshToken struct {
|
||||
Id uint `gorm:"primary_key"`
|
||||
CreatedAt time.Time `gorm:"column:created_at"`
|
||||
UpdatedAt sql.NullTime `gorm:"column:updated_at"`
|
||||
DeletedAt sql.NullTime `gorm:"column:deleted_at"`
|
||||
UserUuid string `gorm:"column:user_uuid"`
|
||||
TokenUuid string `gorm:"column:token_uuid"`
|
||||
Expires int64 `gorm:"column:expires"`
|
||||
Id uint `gorm:"primary_key"`
|
||||
CreatedAt time.Time `gorm:"column:created_at"`
|
||||
UpdatedAt sql.NullTime `gorm:"column:updated_at"`
|
||||
DeletedAt sql.NullTime `gorm:"column:deleted_at"`
|
||||
UserUuid string `gorm:"column:user_uuid"`
|
||||
RefreshUuid string `gorm:"column:refresh_uuid"`
|
||||
SessionUuid string `gorm:"column:session_uuid"`
|
||||
Expires time.Time `gorm:"column:expires"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue