juntekim.com/db/atlas/stripe_invoice/migrations/0002_auth.sql
2025-12-13 17:01:33 +00:00

6 lines
223 B
SQL

CREATE TABLE sessions (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
user_id UUID NOT NULL REFERENCES users(id) ON DELETE CASCADE,
expires_at TIMESTAMPTZ NOT NULL,
created_at TIMESTAMPTZ NOT NULL DEFAULT now()
);