Initial open source release

This commit is contained in:
A 2026-06-04 01:37:39 +08:00
commit 74992e893f
377 changed files with 118084 additions and 0 deletions

View file

@ -0,0 +1,8 @@
-- 0060_user_last_seen: persist exact last seen timestamps for UserStatusOffline.was_online.
ALTER TABLE users
ADD COLUMN IF NOT EXISTS last_seen_at BIGINT NOT NULL DEFAULT 0;
CREATE INDEX IF NOT EXISTS users_last_seen_idx
ON users (last_seen_at DESC)
WHERE last_seen_at > 0;