Files
netrunner-backend/migrations/0004_auth_sessions.sql
T
2026-04-25 18:21:24 +07:00

7 lines
226 B
SQL

CREATE TABLE auth_sessions (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
user_id UUID,
auth_code VARCHAR(8) NOT NULL UNIQUE,
is_verified BOOLEAN NOT NULL DEFAULT FALSE,
expires_at TIMESTAMPTZ NOT NULL
);