planetwars.dev/planetwars-server/migrations/2021-12-13-151129_sessions/up.sql
2021-12-30 11:45:59 +01:00

5 lines
No EOL
142 B
SQL

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