draincloud-core/internal/storage/models/auth.go
2024-12-15 11:56:03 -05:00

26 lines
382 B
Go

package models
import (
"time"
"github.com/google/uuid"
)
type Session struct {
ID uuid.UUID
SessionToken string
CsrfToken string
UserID uuid.UUID
CreatedAt time.Time
ExpiredAt time.Time
}
type User struct {
ID uuid.UUID
Username string
Login string
PasswordHash []byte
CreatedAt time.Time
UpdatedAt time.Time
}