Basic Access & Refresh Token
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
||||
|
||||
// Base contains common columns for all tables.
|
||||
type Base struct {
|
||||
UUID uuid.UUID `gorm:"type:uuid;default:default:uuid_generate_v4();primarykey"`
|
||||
UUID uuid.UUID `gorm:"type:uuid;primarykey"`
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
DeletedAt gorm.DeletedAt `gorm:"index"`
|
||||
@@ -31,8 +31,7 @@ type Device struct {
|
||||
User User `json:"user" gorm:"ForeignKey:UUID"`
|
||||
Name string `json:"name"`
|
||||
Type string `json:"type"` // Android, iOS, Chrome, FireFox, Edge, etc
|
||||
RefreshExp string `json:"refresh_exp"`
|
||||
RefreshToken string `json:"-"`
|
||||
RefreshKey string `json:"-"`
|
||||
}
|
||||
|
||||
type User struct {
|
||||
|
||||
Reference in New Issue
Block a user