summaryrefslogtreecommitdiff
path: root/internal/data/models.go
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2025-07-19 11:31:07 +0300
committerKyren223 <Kyren223@proton.me>2025-07-19 18:32:12 +0300
commit24c0224dd90533bc962d5e1a198cdc464018176c (patch)
tree89f2c400f8158e0ef83918f67d4aeb3867e2f799 /internal/data/models.go
parentf793203e043aaa2db38823c84500e82756348ac0 (diff)
Changed session durations metric to classic histogram, added
last_activity to calculate monthly active users
Diffstat (limited to 'internal/data/models.go')
-rw-r--r--internal/data/models.go13
1 files changed, 7 insertions, 6 deletions
diff --git a/internal/data/models.go b/internal/data/models.go
index f052fcd..47a7e9d 100644
--- a/internal/data/models.go
+++ b/internal/data/models.go
@@ -75,12 +75,13 @@ type TrustedUser struct {
}
type User struct {
- ID snowflake.ID
- Name string
- PublicKey ed25519.PublicKey
- Description string
- IsPublicDM bool
- IsDeleted bool
+ ID snowflake.ID
+ Name string
+ PublicKey ed25519.PublicKey
+ Description string
+ IsPublicDM bool
+ IsDeleted bool
+ LastActivity *int64
}
type UserData struct {