cacert-boardvoting/internal/migrations/2022052201_add_sessions_tables.up.sql

8 lines
228 B
MySQL
Raw Normal View History

-- add sessions table for server side session storage
CREATE TABLE sessions
(
token char(43) PRIMARY KEY,
data BLOB NOT NULL,
expiry TIMESTAMP NOT NULL
);
CREATE INDEX session_expiry_idx ON sessions (expiry);