brunel/domain/user.go

15 lines
264 B
Go
Raw Normal View History

2024-07-28 20:59:50 +02:00
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"`
}