planetwars.dev/planetwars-server/migrations/2021-12-13-151129_sessions/up.sql

5 lines
142 B
MySQL
Raw Permalink Normal View History

CREATE TABLE sessions (
id serial PRIMARY KEY,
user_id integer REFERENCES users(id) NOT NULL,
token VARCHAR(255) NOT NULL UNIQUE
)