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