7 lines
No EOL
167 B
SQL
7 lines
No EOL
167 B
SQL
CREATE TABLE sessions (
|
|
token TEXT PRIMARY KEY,
|
|
data BYTEA NOT NULL,
|
|
expiry TIMESTAMPTZ NOT NULL
|
|
);
|
|
|
|
CREATE INDEX sessions_expiry_idx ON sessions (expiry); |