Files
cheesy-arena-lite/db/migrations/20190819192917_CreateUserSessions.sql

12 lines
232 B
MySQL
Raw Normal View History

-- +goose Up
CREATE TABLE user_sessions (
id INTEGER PRIMARY KEY,
token VARCHAR(255),
username VARCHAR(255),
createdat DATETIME
);
CREATE UNIQUE INDEX token ON user_sessions(token);
-- +goose Down
DROP TABLE user_sessions;