You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 2, 2026. It is now read-only.
Copy file name to clipboardExpand all lines: migrations/0007_api_keys.sql
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -10,3 +10,21 @@ CREATE TABLE IF NOT EXISTS user_tokens (
10
10
uaid UUID NOT NULLREFERENCES actors (uaid) ON DELETE CASCADE,
11
11
valid_not_after TIMESTAMPNULL
12
12
);
13
+
14
+
COMMENT ON TABLE user_tokens IS 'User access token hashes. Cleans up expired tokens on each insert operation of this table. Use view filtering to exclude expired tokens on queries.';
15
+
16
+
-- We could use the postgres cron extension, but if it is possible and feasible, I'd like to stick
0 commit comments