working commit
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
package descriptor
|
||||
|
||||
const (
|
||||
GrantModifyUsers = "modifyUsers"
|
||||
GrantModifyDatabase = "modifyDatabase"
|
||||
)
|
||||
|
||||
type Dump struct {
|
||||
Timestamp string `json:"timestamp" yaml:"timestamp"`
|
||||
Accounts []Account `json:"accounts" yaml:"accounts"`
|
||||
Grants []Grant `json:"grants" yaml:"grants"`
|
||||
}
|
||||
|
||||
type Account struct {
|
||||
ID int64 `json:"id" yaml:"id" db:"id"`
|
||||
Username string `json:"username" yaml:"username" db:"username"`
|
||||
Passhash string `json:"passhash" yaml:"passhash" db:"passhash"`
|
||||
Disabled bool `json:"disabled" yaml:"disabled" db:"disabled"`
|
||||
CreatedAt string `json:"createdAt" yaml:"createdAt" db:"created_at"`
|
||||
UpdatedAt string `json:"updatedAt" yaml:"updatedAt" db:"updated_at"`
|
||||
}
|
||||
|
||||
type Grant struct {
|
||||
ID int64 `json:"id" yaml:"id" db:"id"`
|
||||
AccountID int64 `json:"accountID" yaml:"accountID" db:"account_id"`
|
||||
Operation string `json:"operation" yaml:"operation" db:"operation"`
|
||||
CreatedAt string `json:"createdAt" yaml:"createdAt" db:"created_at"`
|
||||
}
|
||||
|
||||
type Server struct {
|
||||
DatabaseInitialized bool `json:"databaseInitialized" yaml:"databaseInitialized"`
|
||||
CreatedAt string `json:"createdAt" yaml:"createdAt"`
|
||||
UpdatedAt string `json:"updatedAt" yaml:"updatedAt"`
|
||||
}
|
||||
Reference in New Issue
Block a user