diff options
| author | s <[email protected]> | 2025-11-10 13:57:45 -0500 |
|---|---|---|
| committer | s <[email protected]> | 2025-11-10 13:57:45 -0500 |
| commit | 9a9e79f232b83d3bd2a816287272515863df1299 (patch) | |
| tree | fdfc00eacabf3e1e679ce4ebbf5c47e4a086c22c /internal/models/admin.go | |
| parent | 7c0f4b692c3b712bf4a0da3bbac008ff75c405de (diff) | |
| download | dborg-9a9e79f232b83d3bd2a816287272515863df1299.tar.gz dborg-9a9e79f232b83d3bd2a816287272515863df1299.zip | |
refactor: add admin fields to account model and simplify credits structurev0.8.0
Diffstat (limited to 'internal/models/admin.go')
| -rw-r--r-- | internal/models/admin.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/models/admin.go b/internal/models/admin.go index 5cf0f37..22dee9b 100644 --- a/internal/models/admin.go +++ b/internal/models/admin.go @@ -1,12 +1,14 @@ package models type Account struct { + ID int `json:"id"` APIKey string `json:"api_key"` Name string `json:"name"` Credits int `json:"credits"` Unlimited bool `json:"unlimited"` Disabled bool `json:"disabled"` IsPremium bool `json:"is_premium"` + IsAdmin bool `json:"is_admin"` CreatedAt interface{} `json:"created_at,omitempty"` } |
