urit/internal/models/websession.go
2026-05-02 21:11:50 -04:00

16 lines
412 B
Go

package models
import "time"
// WebSession represents an authenticated HTTP session.
// These are stored in the web_sessions table and referenced by a
// cookie sent to the browser. This gives the HTTP file server the
// same user identity and security level checking as the telnet side.
type WebSession struct {
Token string
UserID int64
UserName string
CreatedAt time.Time
ExpiresAt time.Time
}