feat: add last active time per user

This commit is contained in:
Sam 2023-05-02 02:54:08 +02:00
parent 90c7dcf891
commit cf95e69349
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
8 changed files with 85 additions and 234 deletions

View file

@ -0,0 +1,7 @@
-- +migrate Up
-- 2023-05-02: Add a last_active column to users, updated whenever the user modifies their profile or members.
-- This is not directly exposed in the API.
-- Potential future use cases: showing total number of active users, pruning completely empty users if they don't log in?
alter table users add column last_active timestamptz not null default now();