Files
memberApp/backend/models/user.go
Adrian Zürcher a908db4f38 first commit
2025-10-12 14:56:18 +02:00

13 lines
243 B
Go

package models
type User struct {
Name string `json:"user"`
Role string `json:"role"`
Password string `json:"password,omitempty"`
Settings Settings `json:"settings"`
}
func (u *User) IsValid() bool {
return u.Name != ""
}