From 24c0224dd90533bc962d5e1a198cdc464018176c Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Sat, 19 Jul 2025 11:31:07 +0300 Subject: Changed session durations metric to classic histogram, added last_activity to calculate monthly active users --- internal/data/models.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'internal/data/models.go') 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 { -- cgit v1.3.1