14 lines
371 B
SQL
14 lines
371 B
SQL
CREATE TABLE IF NOT EXISTS maplefile.sessions_by_id (
|
|
session_id UUID PRIMARY KEY,
|
|
user_id UUID,
|
|
created_at TIMESTAMP,
|
|
expires_at TIMESTAMP,
|
|
last_activity TIMESTAMP,
|
|
ip_address TEXT,
|
|
user_agent TEXT,
|
|
|
|
-- IP tracking for GDPR compliance
|
|
created_from_ip_address TEXT,
|
|
modified_from_ip_address TEXT,
|
|
ip_anonymized_at TIMESTAMP
|
|
);
|