8 lines
163 B
MySQL
8 lines
163 B
MySQL
|
CREATE TABLE sessions (
|
||
|
token CHAR(43) PRIMARY KEY,
|
||
|
data BLOB NOT NULL,
|
||
|
expiry TIMESTAMP(6) NOT NULL
|
||
|
);
|
||
|
|
||
|
CREATE INDEX sessions_expiry_idx ON sessions (expiry);
|