mirror of
https://github.com/Dvorinka/SEEN.git
synced 2026-06-04 12:33:02 +00:00
19 lines
435 B
Go
19 lines
435 B
Go
package domain
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type Session struct {
|
|
ID uuid.UUID `json:"id"`
|
|
UserID uuid.UUID `json:"userId"`
|
|
RefreshToken string `json:"refreshToken"`
|
|
UserAgent string `json:"userAgent"`
|
|
IP string `json:"ip"`
|
|
ExpiresAt time.Time `json:"expiresAt"`
|
|
RevokedAt *time.Time `json:"revokedAt,omitempty"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
}
|