mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 16:42:26 +08:00
47 lines
627 B
Go
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:"-"`
|
|
}
|