25 lines
1.0 KiB
Go
25 lines
1.0 KiB
Go
package descr
|
|
|
|
const (
|
|
GrantModifyUsers = "modifyUsers"
|
|
GrantModifyDatabase = "modifyDatabase"
|
|
GrantModifyArtefact = "modifyArtefact"
|
|
GrantModifyDummy = "modifyDummy"
|
|
)
|
|
|
|
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,omitempty" yaml:"updatedAt,omitempty" 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"`
|
|
}
|