feat: user/service sessions repo

This commit is contained in:
2025-06-10 19:46:37 +02:00
parent dc41521a99
commit 5b6142dfa6
7 changed files with 585 additions and 13 deletions

View File

@ -15,7 +15,8 @@ CREATE TABLE user_sessions (
TIME ZONE,
ip_address VARCHAR(45), -- supports IPv4/IPv6
user_agent TEXT,
refresh_token TEXT,
access_token_id UUID,
refresh_token_id UUID,
device_info JSONB, -- optional: structured info (browser, OS, etc.)
is_active BOOLEAN NOT NULL DEFAULT TRUE,
revoked_at TIMESTAMP

View File

@ -16,7 +16,8 @@ CREATE TABLE service_sessions (
TIME ZONE,
ip_address VARCHAR(45),
user_agent TEXT,
refresh_token TEXT,
access_token_id UUID,
refresh_token_id UUID,
is_active BOOLEAN NOT NULL DEFAULT TRUE,
revoked_at TIMESTAMP
WITH