summaryrefslogtreecommitdiffstats
path: root/internal/models
diff options
context:
space:
mode:
authorsinner <[email protected]>2026-04-08 13:47:51 -0400
committersinner <[email protected]>2026-04-08 13:47:51 -0400
commit6c8beb133073ebb3b6d8bb16e852b29dbc23f133 (patch)
tree1410c127c20ae9ec304221af9ad685fe35935fee /internal/models
parent850cc065469d2efaefc7947dcb7a6b79e9da1858 (diff)
downloaddborg-6c8beb133073ebb3b6d8bb16e852b29dbc23f133.tar.gz
dborg-6c8beb133073ebb3b6d8bb16e852b29dbc23f133.zip
feat: add admin edit command for updating account properties
Diffstat (limited to 'internal/models')
-rw-r--r--internal/models/admin.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/internal/models/admin.go b/internal/models/admin.go
index ee551f3..7d774a8 100644
--- a/internal/models/admin.go
+++ b/internal/models/admin.go
@@ -21,8 +21,11 @@ type AccountCreateRequest struct {
}
type AccountUpdateRequest struct {
- Credits int `json:"credits,omitempty"`
- Disabled bool `json:"disabled"`
+ Name *string `json:"name,omitempty"`
+ Credits *int `json:"credits,omitempty"`
+ Unlimited *bool `json:"unlimited,omitempty"`
+ IsPremium *bool `json:"is_premium,omitempty"`
+ Disabled *bool `json:"disabled,omitempty"`
}
type AddCreditsRequest struct {