16 lines
426 B
Go
16 lines
426 B
Go
package auth
|
|
|
|
import (
|
|
"database/sql"
|
|
"time"
|
|
)
|
|
|
|
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"`
|
|
}
|