mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 04:40:05 +01:00
16 lines
276 B
Go
16 lines
276 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type RefreshToken struct {
|
|
ID uuid.UUID `gorm:"type:uuid;primaryKey;default:gen_random_uuid()" json:"id"`
|
|
UserID uuid.UUID
|
|
Token string `gorm:"uniqueIndex"`
|
|
ExpiresAt time.Time
|
|
Revoked bool
|
|
}
|