Files
autoglue/internal/db/models/refresh-token.go
2025-09-01 13:34:13 +01:00

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
}