stufflog graphql server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

15 lines
308 B

-- +goose Up
-- +goose StatementBegin
CREATE TABLE session (
session_id CHAR(32) NOT NULL PRIMARY KEY,
user_id CHAR(32) NOT NULL,
expiry_time TIMESTAMP NOT NULL,
INDEX(expiry_time)
);
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
DROP TABLE session;
-- +goose StatementEnd