draincloud-core/internal/storage/models/auth.go
2024-10-27 12:44:05 -04:00

22 lines
340 B
Go

package models
import "time"
type Session struct {
ID string
SessionToken string
CsrfToken string
User *User
CreatedAt time.Time
ExpiredAt time.Time
}
type User struct {
ID uint64
Username string
Login string
PasswordHash []byte
CreatedAt time.Time
UpdatedAt time.Time
}