summaryrefslogtreecommitdiff
path: root/types
diff options
context:
space:
mode:
Diffstat (limited to 'types')
-rw-r--r--types/types.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/types/types.go b/types/types.go
index 79059d4..44cb60a 100644
--- a/types/types.go
+++ b/types/types.go
@@ -97,3 +97,9 @@ type WorkerPool struct {
Wg sync.WaitGroup
Active int64
}
+
+// EnrichedUser is a wrapper for User with additional computed fields for admin views.
+type EnrichedUser struct {
+ *User
+ TimeSinceLogin string `json:"time_since_login"`
+} \ No newline at end of file