brunel/domain/user.go
2024-07-28 19:59:50 +01:00

15 lines
264 B
Go

package domain
import "time"
type User struct {
Username string `json:"username"`
PasswordHash string `json:"passwordHash"`
}
type Session struct {
Token string `json:"token"`
Username string `json:"user"`
Expiry time.Time `json:"expiry"`
}