Files
navidrome/model/user.go
T
2020-01-20 10:25:35 -05:00

25 lines
483 B
Go

package model
import "time"
type User struct {
ID string
UserName string
Name string
Email string
Password string
IsAdmin bool
LastLoginAt *time.Time
LastAccessAt *time.Time
CreatedAt time.Time
UpdatedAt time.Time
}
type UserRepository interface {
CountAll(...QueryOptions) (int64, error)
Get(id string) (*User, error)
Put(*User) error
FindByUsername(username string) (*User, error)
UpdateLastLoginAt(id string) error
}