Files
grafana/pkg/models/user.go
2015-01-19 16:28:45 +01:00

47 lines
627 B
Go

package models
import "time"
type User struct {
Id int64
Email string
Name string
Login string
Password string
Salt string
IsAdmin bool
AccountId int64
Created time.Time
Updated time.Time
}
type Account2 struct {
Id int64
Name string
Created time.Time
Updated time.Time
}
type AccountUser struct {
AccountId int64
UserId int64
Role RoleType
Created time.Time
Updated time.Time
}
// ---------------------
// COMMANDS
type CreateUserCommand struct {
Email string
Login string
Password string
Salt string
IsAdmin bool
Result User `json:"-"`
}