20 lines
230 B
Go
20 lines
230 B
Go
package domain
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type Session struct {
|
|
Token string
|
|
ExpiresAt time.Time
|
|
User User
|
|
}
|
|
|
|
type NewSession struct {
|
|
TokenHash []byte
|
|
UserID uuid.UUID
|
|
ExpiresAt time.Time
|
|
}
|