diff options
| author | Kyren223 <Kyren223@proton.me> | 2025-07-19 11:31:07 +0300 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2025-07-19 18:32:12 +0300 |
| commit | 24c0224dd90533bc962d5e1a198cdc464018176c (patch) | |
| tree | 89f2c400f8158e0ef83918f67d4aeb3867e2f799 /internal/data/models.go | |
| parent | f793203e043aaa2db38823c84500e82756348ac0 (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.go | 13 |
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 { |
